该用户从未签到
|
93#
发表于 2016-12-20 14:19:51
|只看该作者
运行有错误( m7 X8 d* v* [
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener% q F! ], O3 K
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 8.0\wtpwebapps\MyStock\WEB-INF\classes\spring-basic.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: component class not found: com.cxstock.pojo.Vusermenu( r8 X# s4 l; E( X/ r, i
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336), {# n; g3 b0 b! D( U& b0 V
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471), m& v/ L$ }5 |' w& m6 B( U
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)2 S3 E0 M) A; D, [
at java.security.AccessController.doPrivileged(Native Method)
' J/ e/ C+ P' m5 B+ l7 T at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
# s& `1 i- Q0 A/ w2 k u1 } at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)6 `" n' k7 } X, X) I5 b
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)+ n2 {' g9 b8 V- U
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
% ^1 p3 r0 ?3 V at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185); q: A( N! w5 f; r& o* j8 \) y
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
`$ q/ @% o) b% y% h5 ? at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
4 ]9 m8 h( t* I [ at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
) U9 [6 ?; {1 v- _ at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)3 M1 F9 |3 w3 H& T9 h9 K
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
' |3 p( e- s4 P5 _# g at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)& F" M! x2 w5 P9 q+ Q: U
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)+ u7 r5 n- _6 F0 ]8 m
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4793)
$ ] M$ Y3 i$ u' v# H at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)
4 `- A; M; n! k# H' M at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)1 x' f/ |9 W- C9 H
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)( J# V# _% m- R
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
( k1 i' D7 U: ] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)$ c; f9 u- c9 R, O* f
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586) L1 W+ h. X+ ~. Q* T$ m! j5 Y
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1777)' L. N0 u% z5 a4 Z" p u, d
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
5 X. q, ~1 {5 A3 X$ N# c at java.util.concurrent.FutureTask.run(FutureTask.java:266)
& m7 a# S- B) X- b& L4 d+ B at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
$ J8 c# v* Q8 L& e; _ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)' D1 V: F4 V( |+ n7 ~* w
at java.lang.Thread.run(Thread.java:745)" ?! U4 A5 \, E( \
Caused by: org.hibernate.MappingException: component class not found: com.cxstock.pojo.Vusermenu
7 S" G: D" ]& }" o# q at org.hibernate.mapping.Component.getComponentClass(Component.java:104)
0 Y8 i3 c' b; T at org.hibernate.tuple.component.PojoComponentTuplizer.buildGetter(PojoComponentTuplizer.java:133)
* f- S! k; e& i) N at org.hibernate.tuple.component.AbstractComponentTuplizer.<init>(AbstractComponentTuplizer.java:43)
' h. o- W/ J9 [ at org.hibernate.tuple.component.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:38): V; z" J' ~9 A
at org.hibernate.tuple.component.ComponentEntityModeToTuplizerMapping.<init>(ComponentEntityModeToTuplizerMapping.java:52) |! Y1 J' h9 m
at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:50)' A, U/ \' W6 m* D4 ?8 O1 O
at org.hibernate.mapping.Component.buildType(Component.java:152)
3 U0 j* m' B9 c. R- k at org.hibernate.mapping.Component.getType(Component.java:145)! v: D0 z+ y9 M7 K2 H
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)3 j _1 J1 R" E
at org.hibernate.mapping.RootClass.validate(RootClass.java:193)3 `' |( V5 P% M/ ~" L& S! u: u" Z
at org.hibernate.cfg.Configuration.validate(Configuration.java:1102), h8 X3 n* L( H) x
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)( [! m* S' e# q* i: w$ x; p
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
. Q# l3 j- y+ _% O7 \0 i$ E at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)2 ^6 K( A1 v0 K7 S
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
/ V5 k7 {3 a( n( j at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
8 y/ Y" i c4 ]0 L at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
8 ^5 ?2 v; T& s, \ ... 28 more) o4 i, {" I4 q9 T p
Caused by: java.lang.ClassNotFoundException: com.cxstock.pojo.Vusermenu }# G( ?; T" R: c
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333), g! ~* _) ]6 `: X5 P7 a; I! s
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)+ B, F" R- T6 X. x" \3 q( J
at java.lang.Class.forName0(Native Method)& D/ s3 r& P7 [2 u$ @; x9 v
at java.lang.Class.forName(Class.java:264); J8 d; X* \6 _1 q/ t
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)5 B7 p/ S- _& E! s4 m7 s
at org.hibernate.mapping.Component.getComponentClass(Component.java:101)
8 L; }2 s! ?; v- c( } h ... 44 more
. X- i/ D# e$ ]# ?
6 ^& e0 R4 {3 |3 ]6 U! t5 I% x |
|