该用户从未签到
|
93#
发表于 2016-12-20 14:19:51
|只看该作者
运行有错误8 J2 @! m' M! M8 j/ k, A) W
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
; J+ u: O# V0 q# J% G) c2 Lorg.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.Vusermenu4 z, v1 h& V& X
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)) K* ?" j% c+ M# {& O2 I8 B
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)' ], B& V# W7 j
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)4 D: g3 \, `6 E7 O7 y) Q
at java.security.AccessController.doPrivileged(Native Method)
; h. z: X" I* A" Z) o at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
" [3 M2 n1 H0 G- \/ B" t# w at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)- L4 D7 l( T8 E& q0 }8 D( q
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
0 R3 ~ I6 @( L+ C, l7 f+ j at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
! y' ~7 r) K' H at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
; @7 g1 J: I! _ at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)5 n1 a4 G& H; a, L
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)5 ^# O& Z, ^. N) k( F3 k8 Q' _* t
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)% [, F9 {5 w2 \6 r$ l; f. F [
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
4 ]0 G! \9 `( U% W at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)6 C* h6 u: m8 B8 `8 K" B
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)# @- V4 |$ g4 p4 v3 O
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
. p- Q4 c3 J( V$ ?8 X at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4793)
5 ~" R2 N% x9 _ N1 M! E( H at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)/ W& {' @( ?2 E
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
8 C5 m5 `* Q( F: z at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
/ x+ a# s$ q5 \7 Z% e2 k at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)6 ~4 F3 A) \ L1 H' k( m# b4 }7 _
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)& t4 \: K& V6 L, F
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586)
6 C1 E8 L5 R `) C1 |9 P at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1777)9 D3 V$ s" n S( x( P* v+ e
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)+ j9 l( O* C) S6 ~, C6 D
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
) |) q" X7 I: n8 o& I at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
6 f# }1 s7 k$ D) S0 H at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)$ E9 V d8 I" |2 o0 u% G$ v8 M
at java.lang.Thread.run(Thread.java:745)# R& a. l$ \' H$ t2 E
Caused by: org.hibernate.MappingException: component class not found: com.cxstock.pojo.Vusermenu
2 f, {, |' K; t# h0 M at org.hibernate.mapping.Component.getComponentClass(Component.java:104)
) m* t: o( p6 u1 C6 G at org.hibernate.tuple.component.PojoComponentTuplizer.buildGetter(PojoComponentTuplizer.java:133)
/ y. B M' d) Y0 H, m at org.hibernate.tuple.component.AbstractComponentTuplizer.<init>(AbstractComponentTuplizer.java:43)' E9 W [( o# y3 r: @
at org.hibernate.tuple.component.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:38)
' S1 O: e& h3 m$ i4 m: e2 P8 S0 J: k' T at org.hibernate.tuple.component.ComponentEntityModeToTuplizerMapping.<init>(ComponentEntityModeToTuplizerMapping.java:52)! K0 v9 _5 c( Z+ F% L
at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:50)
' s7 I6 A( F7 O: a, ^ at org.hibernate.mapping.Component.buildType(Component.java:152)
2 f( D9 e" K; `& R' s, c/ d at org.hibernate.mapping.Component.getType(Component.java:145)- t4 t9 k& Y |- K* N) X
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)* K& q, D9 q3 _, E0 k2 p7 P( i- ?
at org.hibernate.mapping.RootClass.validate(RootClass.java:193)
# o5 W+ W4 s* ]# u1 d at org.hibernate.cfg.Configuration.validate(Configuration.java:1102): L1 _* Z; Z# V8 y
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
0 E7 a: q* n# @2 L) B d at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
" {2 B0 L( Y$ D% Q% t9 y at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
1 G) f: u, \: n at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)0 y5 [! s9 Z( j4 |1 A
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)/ T2 X8 @$ m* }: j! F8 l$ w
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333), V/ ?. r7 X8 T8 Z e
... 28 more
) Y2 \) v4 s- x/ O$ O+ VCaused by: java.lang.ClassNotFoundException: com.cxstock.pojo.Vusermenu
: V! \/ H+ [. S. ~3 F* u2 x8 N( r" D at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
( n, f, P% ]; T5 {$ \: z at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
5 @1 _7 G7 h% ?. w7 h- C, @ at java.lang.Class.forName0(Native Method)9 E2 {# e! _8 N" I* \, n9 V
at java.lang.Class.forName(Class.java:264); g) m% ^+ T+ f3 Q0 S
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)0 o9 H0 R1 g/ b2 H
at org.hibernate.mapping.Component.getComponentClass(Component.java:101)
' j1 l5 }/ q9 A2 ?; a ... 44 more9 D8 X3 O1 @% R
2 k) n" H6 p8 U* |/ S
|
|