tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Bragg" <li...@gmnet.net>
Subject Error Starting webapp. FAIL - Application at context path /cyclos could not be started.
Date Thu, 05 Jul 2012 17:15:16 GMT
Hi,

After upgrading one of my web applications (cyclos) I can no longer start up the
web application.  I get the following error:

FAIL - Application at context path /cyclos could not be started.

I tried undoing my upgrade, but I still get errors.  Has anybody run into this? 
What would be the best way to find a solution?

The following is in my catalina log:

-----
Jul 5, 2012 1:03:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 5, 2012 1:03:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/cyclos] startup failed due to previous errors
Jul 5, 2012 1:03:23 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
SEVERE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but
failed to unregister it when the web application was stopped. To prevent a memory
leak, the JDBC Driver has been forcibly unregistered.
Jul 5, 2012 1:03:23 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: A web application appears to have started a thread named [MySQL Statement
Cancellation Timer] but has failed to stop it. This is very likely to create a
memory leak.
Jul 5, 2012 1:03:23 PM org.apache.catalina.loader.WebappClassLoader
clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type
[java.lang.ThreadLocal] (value [java.lang.ThreadLocal@50ba0dfc]) and a value of
type [org.apache.cxf.bus.CXFBusImpl] (value
[org.apache.cxf.bus.CXFBusImpl@66ec44cb]) but failed to remove it when the web
application was stopped. To prevent a memory leak, the ThreadLocal has been
forcibly removed.

-----

Also, the following is in my localhost log:

-----

Jul 5, 2012 1:03:10 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application at '/cyclos'
Jul 5, 2012 1:03:11 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jul 5, 2012 1:03:22 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'sessionFactory' defined in class path resource
[nl/strohalm/cyclos/spring/persistence.xml]: Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError:
org/hibernate/type/StandardBasicTypes
Caused by: java.lang.NoClassDefFoundError: org/hibernate/type/StandardBasicTypes
	at nl.strohalm.cyclos.utils.hibernate.PeriodType.<clinit>(PeriodType.java:35)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at org.hibernate.type.CompositeCustomType.<init>(CompositeCustomType.java:69)
	at org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:265)
	at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:283)
	at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)
	at org.hibernate.mapping.Property.isValid(Property.java:207)
	at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)
	at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
	at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)
	at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
	at
nl.strohalm.cyclos.spring.CustomSessionFactoryBean.newSessionFactory(CustomSessionFactoryBean.java:61)
	at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
	at
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
	at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
	at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1251)
	at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:613)
	at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.hibernate.type.StandardBasicTypes
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
	... 52 more
Jul 5, 2012 1:03:22 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class
nl.strohalm.cyclos.http.LifecycleListener
java.lang.RuntimeException:
org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'sessionFactory' defined in class path resource
[nl/strohalm/cyclos/spring/persistence.xml]: Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError:
org/hibernate/type/StandardBasicTypes
	at nl.strohalm.cyclos.http.LifecycleListener$2.call(LifecycleListener.java:127)
	at nl.strohalm.cyclos.http.LifecycleListener$2.call(LifecycleListener.java:102)
	at nl.strohalm.cyclos.utils.access.LoggedUser.runAsSystem(LoggedUser.java:303)
	at
nl.strohalm.cyclos.http.LifecycleListener.contextInitialized(LifecycleListener.java:102)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
	at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1251)
	at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:613)
	at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory' defined in class path resource
[nl/strohalm/cyclos/spring/persistence.xml]: Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError:
org/hibernate/type/StandardBasicTypes
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
	at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
	... 20 more
Caused by: java.lang.NoClassDefFoundError: org/hibernate/type/StandardBasicTypes
	at nl.strohalm.cyclos.utils.hibernate.PeriodType.<clinit>(PeriodType.java:35)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at org.hibernate.type.CompositeCustomType.<init>(CompositeCustomType.java:69)
	at org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:265)
	at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:283)
	at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)
	at org.hibernate.mapping.Property.isValid(Property.java:207)
	at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)
	at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
	at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)
	at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
	at
nl.strohalm.cyclos.spring.CustomSessionFactoryBean.newSessionFactory(CustomSessionFactoryBean.java:61)
	at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
	at
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
	... 30 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.type.StandardBasicTypes
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
	... 52 more
Jul 5, 2012 1:03:22 PM org.apache.catalina.core.ApplicationContext log
INFO: Cyclos
Jul 5, 2012 1:03:23 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext

-----

I am using tomcat6 on Ubuntu 10.04LTS, and my cyclos webapp home is in
/var/lib/tomcat6/webapps/cyclos/

Thanks
Rick






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message