Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat start up problem with spring framework

 
pandya devarshi
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have put the structspringhibernate.war file in the webapps folder of the Tomcat5.0 and when start the tomcat server at a time following error is come.

Application is base on the struct,spring and hibernate combination.
I have not much more knowledege of the spring.

If possible give me solution.

printstacktrace in the tomcat

Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Dec 5, 2008 12:15:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Dec 5, 2008 12:15:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Dec 5, 2008 12:15:41 PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
java.lang.NoSuchMethodError: org.apache.commons.logging.LogFactory.release(Ljava
/lang/ClassLoader V
at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.j
ava:1507)
at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:744)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:45
46)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Dec 5, 2008 12:15:45 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Error installing
java.lang.NullPointerException
at org.apache.catalina.loader.WebappClassLoader.closeJARs(WebappClassLoa
der.java:1517)
at org.apache.catalina.loader.WebappLoader.closeJARs(WebappLoader.java:5
26)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
394)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

regards
Devarshi
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure that this has anything to do with Spring/Hibernate/Struts... all the errors look like they're inside the Tomcat container.

The root cause appears to be :

java.lang.NoSuchMethodError: org.apache.commons.logging.LogFactory.release(Ljava
/lang/ClassLoader)V

Meaning that some code tried to call LogFactory.release(Classloader) in the Apache Commons Logging API, and that method doesn't exist.

Perhaps an old version of Apache Commons Logging is on your classpath, and Tomcat is loading that version?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I think you need to put the Apache Commons Logging into your lib directly, or I am thinking it might be better in your war's lib directory.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic