13:51:31,062 INFO SettingsFactory:283 - Default entity-mode: pojo
13:51:31,156 INFO SessionFactoryImpl:154 - building session factory
13:51:32,218 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI,
no JNDI name configured
13:51:33,906 INFO SessionFactoryImpl:729 - closing
13:51:33,921 ERROR ContextLoader:204 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'compassIndexBuilder' defined in ServletContext resource [/WEB-INF/applic
ationContext-compass.xml]: Cannot resolve reference to bean 'compassGps' while s
etting bean property 'compassGps'; nested exception is org.springframework.beans
.factory.BeanCreationException: Error creating bean with name 'compassGps' defin
ed in ServletContext resource [/WEB-INF/applicationContext-compass.xml]: Invocat
ion of init method failed; nested exception is java.lang.ClassCastException: $Pr
oxy0 cannot be cast to org.hibernate.impl.SessionFactoryImpl
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'compassGps' defined in ServletContext resource [/WEB-INF/applicationCont
ext-compass.xml]: Invocation of init method failed; nested exception is java.lan
g.ClassCastException: $Proxy0 cannot be cast to org.hibernate.impl.SessionFactor
yImpl
Caused by:
java.lang.ClassCastException: $Proxy0 cannot be cast to org.hibernate.impl.Sessi
onFactoryImpl
at org.compass.gps.device.hibernate.lifecycle.DefaultHibernateEntityLifecycleIn
jector.injectLifecycle(DefaultHibernateEntityLifecycleInjector.java:95)
at org.compass.gps.device.hibernate.HibernateGpsDevice.doStart(HibernateGpsDevi
ce.java:......
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-12-24 13:51:33 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class or
g.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'compassIndexBuilder' defined in ServletContext resource [/WEB-INF/applic
ationContext-compass.xml]: Cannot resolve reference to bean 'compassGps' while s
etting bean property 'compassGps'; nested exception is org.springframework.beans
.factory.BeanCreationException: Error creating bean with name 'compassGps' defin
ed in ServletContext resource [/WEB-INF/applicationContext-compass.xml]: Invocat
ion of init method failed; nested exception is java.lang.ClassCastException: $Pr
oxy0 cannot be cast to org.hibernate.impl.SessionFactoryImpl
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'compassGps' defined in ServletContext resource [/WEB-INF/appl
icationContext-compass.xml]: Invocation of init method failed; nested exception
is java.lang.ClassCastException: $Proxy0 cannot be cast to org.hibernate.impl.Se
ssionFactoryImpl
Caused by: java.lang.ClassCastException: $Proxy0 cannot be cast to org.hibernate
.impl.SessionFactoryImpl
at org.compass.gps.device.hibernate.lifecycle.DefaultHibernateEntityLifecycleIn
jector.injectLifecycle(DefaultHibernateEntityLifecycleInjector.java:95)
at org.compass.gps.device.hibernate.HibernateGpsDevice.doStart(HibernateGpsDevi
ce.java:149)
at org.compass.gps.device.AbstractGpsDevice.start(AbstractGpsDevice.java:125)
at org.compass.gps.device.support.parallel.AbstractParallelGpsDevice.start(Abst
ractParallelGpsDevice.java:73)
at org.compass.gps.device.AbstractGpsDeviceWrapper.start(AbstractGpsDeviceWrapp
er.java:65)
at org.compass.gps.impl.AbstractCompassGps.start(AbstractCompassGps.java:166)
......
严重: Error listenerStart
2008-12-24 13:51:33 org.apache.catalina.core.StandardContext start
------解决方案--------------------