该用户从未签到
|
93#
发表于 2016-12-20 14:19:51
|只看该作者
运行有错误+ V2 K3 T, ?- P) f8 ^8 u8 F
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
( b# I& p7 F& b5 L7 jorg.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
6 `4 H4 ?6 m ^; M" m' v0 q9 U6 O at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
$ w! D& ~7 l% ^( t1 q7 R3 X1 z' _ at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)" B1 ?+ x$ o; d* S% j( C" E
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)- i1 M5 a% A7 m$ I% a5 T" F
at java.security.AccessController.doPrivileged(Native Method)* }. M- h4 _; i) w* w: r4 J1 m
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
% S1 z8 f8 T: t% C8 F( }0 n+ s- } at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)' \$ H* W4 [( s* q
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
1 t1 Q; M8 g, x/ T1 _7 }7 _5 K at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
0 I0 o1 G$ z* |0 K' }! F& k at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)* p5 A2 Z# F% S5 U, m$ O
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164); z; C( d8 s8 T* J8 p# u
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)- [4 T/ m2 O3 k& T/ ~( U8 }
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)- P6 y1 N$ A; u, \! p
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
& P s( Z y: g8 Y* n1 G5 \9 _ at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
, o" F1 b3 T8 c! t0 T at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)/ r% W+ P* t! d6 H4 O0 j2 j
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
3 Y7 K# z% o$ X. W% y at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4793); U7 v( |& @7 f
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)
% s9 u9 S; r6 s) g; @% C at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) u4 H, l$ v+ }+ \, l
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)- {+ e1 N. s4 ]) j' }: l: f: ?
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)2 N: B/ Y' f- ]) D# V, X
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)$ T. _1 L' e4 }6 W9 J
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586). P& b9 W0 j- A
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1777)) N, H$ E3 y/ Y1 g
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)' H3 s, q+ l9 K: f6 {2 C. O5 Z
at java.util.concurrent.FutureTask.run(FutureTask.java:266) S- R& ^9 | h- G. r0 _+ H
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
4 U6 M. m8 T0 Q$ D2 B: O/ B) t at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
! Y$ h# {/ E; `% O/ _; S" z% A7 e G at java.lang.Thread.run(Thread.java:745)
# c: S3 F+ D1 e1 F TCaused by: org.hibernate.MappingException: component class not found: com.cxstock.pojo.Vusermenu
8 V7 }& F S+ z" p! j at org.hibernate.mapping.Component.getComponentClass(Component.java:104)
% X1 T d' l3 A' ]1 }$ o at org.hibernate.tuple.component.PojoComponentTuplizer.buildGetter(PojoComponentTuplizer.java:133)
' N- c! g$ t, h4 J8 E" D( V at org.hibernate.tuple.component.AbstractComponentTuplizer.<init>(AbstractComponentTuplizer.java:43)- y/ M$ F6 ~+ }. o- n* c
at org.hibernate.tuple.component.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:38)
! Y$ F0 I: ~0 b$ y2 ~ at org.hibernate.tuple.component.ComponentEntityModeToTuplizerMapping.<init>(ComponentEntityModeToTuplizerMapping.java:52)$ J% Z: K8 Q5 p. @7 S: ?" I
at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:50)
8 I' @1 L J' A. E9 I) U) z% j3 X at org.hibernate.mapping.Component.buildType(Component.java:152)
3 ], m# w0 I. w g s at org.hibernate.mapping.Component.getType(Component.java:145)" E- r b! ~; A- P. \; q
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
5 k. A1 D ~. i& j' I" G6 z2 @6 O# U at org.hibernate.mapping.RootClass.validate(RootClass.java:193)' K( q5 a+ j( p) y( M; U
at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)5 t) L, j, {$ F: _; s6 |. e
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)! c3 X2 T2 f7 I! |
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
" W0 l8 c- q0 y2 S3 W at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)+ D U* r# k9 W* {( ~* |: m6 w
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)4 t0 c8 U* R+ \ w
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
; W" y$ ]* z" V at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
8 T, |3 s" L. ~7 R ... 28 more: g2 x' C0 I+ O3 b! x- d2 g h
Caused by: java.lang.ClassNotFoundException: com.cxstock.pojo.Vusermenu4 h1 E' G, H6 N" T9 \
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
7 I( g* m# r. g4 n. }8 p at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167); W+ ^% v0 o- c
at java.lang.Class.forName0(Native Method)
' B/ u1 [8 U1 | at java.lang.Class.forName(Class.java:264)% M. y3 i8 Y. R$ ?: ~' R* A$ D3 ~
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)+ U5 r' ~+ d8 `: A, R
at org.hibernate.mapping.Component.getComponentClass(Component.java:101)1 _2 v4 @- y0 k/ F; u6 A
... 44 more
6 X3 t0 C0 z* ~; c1 S! ^7 [
" c: s, i3 [# N |
|