该用户从未签到
|
93#
发表于 2016-12-20 14:19:51
|只看该作者
运行有错误0 Y4 {2 v! E$ ?( h# }8 L$ U+ C) ^
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
9 c2 E* l- _% ?9 y* y5 Yorg.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; E1 N% A: {: e+ C6 n
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
2 ?) M# B+ j# o1 r+ ^: e1 H at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)+ ?4 h- z8 S$ N3 [ i4 j
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)* f+ K, F5 @+ q2 q E( t
at java.security.AccessController.doPrivileged(Native Method)
8 D+ D& t* a# L. k at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)' R* O' N5 w% F$ D' A; l9 @
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
6 T5 f. a& o# L+ u1 c at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
/ ~$ K3 |" C/ o at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
+ |# g A9 N/ E8 K at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
. ]2 N$ c, c5 b8 ^: j9 T# j) w$ } at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164). R4 t) ^+ z) v
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
9 G- O8 A4 V7 q. d5 ] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)" t! d' E$ }0 @) R' z
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)2 n L1 B) k! c' [- W0 T
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
! z+ c/ F$ ~( Z) Q" Z/ ^ at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
6 y8 y* v% }% ^! y at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)' y; P( h; o8 \
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4793)3 X: L; S* M {( h0 E4 `
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)8 A, n0 B. A7 n5 ?0 S" w: U
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) _5 x( Y* S0 \. w$ C0 [8 s4 V' T
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
' S6 B( T# ~4 R+ }5 [ at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)/ Z4 D. b$ J' B8 O( V1 c! J
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)) Z3 c) H3 X; g2 `; u! X4 @' C
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586)2 {" N: B6 b: w* W+ C3 h8 n
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1777)5 h$ E5 a) N4 P9 Z7 A8 ]" J
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
1 k2 n( j; | N8 N at java.util.concurrent.FutureTask.run(FutureTask.java:266)# H* e- ]5 E* S
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
' B% d# D0 p$ U& C' X! v at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)/ K7 u7 a- r7 i+ E- f; f+ x! j2 s% C
at java.lang.Thread.run(Thread.java:745)" c2 F+ R& C/ W3 Z
Caused by: org.hibernate.MappingException: component class not found: com.cxstock.pojo.Vusermenu
2 G2 j# M! F) t1 z _1 G6 x at org.hibernate.mapping.Component.getComponentClass(Component.java:104)
2 J7 J4 P- z1 s. s# ?: P at org.hibernate.tuple.component.PojoComponentTuplizer.buildGetter(PojoComponentTuplizer.java:133)
) u, s8 ~/ M6 _! H" C) X at org.hibernate.tuple.component.AbstractComponentTuplizer.<init>(AbstractComponentTuplizer.java:43)
! d/ G: q7 A, Q# J- Q8 y- t at org.hibernate.tuple.component.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:38) y" W' `) l$ o8 ?$ w, k3 {
at org.hibernate.tuple.component.ComponentEntityModeToTuplizerMapping.<init>(ComponentEntityModeToTuplizerMapping.java:52)
$ R; d1 g$ c; f9 y: H at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:50)
+ k+ m0 Q9 J: c/ O at org.hibernate.mapping.Component.buildType(Component.java:152)
1 a' y: g$ b+ \9 _2 ~ q# ]7 b$ f at org.hibernate.mapping.Component.getType(Component.java:145)8 T5 @3 M* H* V, w% e
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
; l3 ~1 ~# v1 U+ [. ~ at org.hibernate.mapping.RootClass.validate(RootClass.java:193)
0 q6 [: b; U, s: S/ e at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
4 \; Y. ]# P5 N, x" N at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)9 s. z2 z, m0 B5 S7 m
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
" L9 W5 [$ T* \5 U- C at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)- N7 c0 U& q( V3 s
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)5 N5 W. f( [* |! s( `$ e
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367) F( Z5 K0 l, H1 h6 R3 h# i% N
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
% C: t, K5 p$ A) _) V' k ... 28 more
1 T" @- x/ @7 @" }3 \Caused by: java.lang.ClassNotFoundException: com.cxstock.pojo.Vusermenu/ V+ T- s) `8 s+ ^$ J& k3 X7 T) i
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
B. ]" ~" j& K" h) m: d' |& n9 w& d at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)5 a6 r: z" k s- j0 L7 q2 A" j
at java.lang.Class.forName0(Native Method)
& ?+ E+ N6 m" y- l; e at java.lang.Class.forName(Class.java:264)
( p4 v) `! v3 w& p6 r% R1 m. x8 v( Y; l9 d at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
+ F- B- c3 N; f! B H$ a at org.hibernate.mapping.Component.getComponentClass(Component.java:101)* Y( f9 h) p, M* F& Y" H# v: Z3 I. n! d
... 44 more
' z, L' u! X3 e* _: z/ S/ x( T& l3 v9 U
|
|