wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes tomcat start up problem with spring framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "tomcat start up problem with spring framework" Watch "tomcat start up problem with spring framework" New topic
Author

tomcat start up problem with spring framework

pandya devarshi
Greenhorn

Joined: Sep 04, 2008
Posts: 12
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

Joined: Oct 18, 2000
Posts: 4121

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?


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17258
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: tomcat start up problem with spring framework