-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: NoSuchMethodError: org.apache.commons.logging.impl.Log4JLogg
PostPosted: Fri Sep 17, 2004 8:47 am 
Newbie

Joined: Fri Sep 17, 2004 8:35 am
Posts: 1
Location: Oslo, Norway
I have made a hibernate app that works on Tomcat5, however when I deploy the app on a Tomcat4.0 app server it doesnt work.

I copied the commons-logging-1.0.4.jar from Tomcat5.0 -> Tomcat4.0 server/lib-category, however I have a problem with:

java.lang.NoSuchMethodError
at org.apache.commons.logging.impl.Log4JLogger.info


Anyone "been there, fixed that" ?

This is kind of urgent, so I hope someone can help me out, in advance: thanks! :-D

Hibernate version:
2.1
Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
2004-09-17 14:10:22 StandardHost[localhost]: Removing web application at context path /portal
2004-09-17 14:10:22 StandardHost[localhost]: Removing web application at context path /quickstart
2004-09-17 14:10:22 SessionListener: contextDestroyed()
2004-09-17 14:10:22 ContextListener: contextDestroyed()
2004-09-17 14:10:23 StandardHost[localhost]: Removing web application at context path /manager
2004-09-17 14:10:23 StandardHost[localhost]: Removing web application at context path
2004-09-17 14:10:36 WebappLoader[/manager]: Deploying class repositories to work directory C:\usr\tomcat\work\Standalone\localhost\manager
2004-09-17 14:10:36 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom
2004-09-17 14:10:36 StandardManager[/manager]: Seeding of random number generator has been completed
2004-09-17 14:10:36 ContextConfig[/manager]: Added certificates -> request attribute Valve
2004-09-17 14:10:36 ContextConfig[/manager]: Configured an authenticator for method BASIC
2004-09-17 14:10:36 StandardWrapper[/manager:default]: Loading container servlet default
2004-09-17 14:10:36 StandardWrapper[/manager:invoker]: Loading container servlet invoker
2004-09-17 14:10:36 StandardHost[localhost]: Installing web application at context path /quickstart from URL file:C:\usr\tomcat\webapps\quickstart
2004-09-17 14:10:36 WebappLoader[/quickstart]: Deploying class repositories to work directory C:\usr\tomcat\work\Standalone\localhost\quickstart
2004-09-17 14:10:36 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/cglib-full-2.0.2.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\cglib-full-2.0.2.jar
2004-09-17 14:10:36 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/commons-collections-2.1.1.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\commons-collections-2.1.1.jar
2004-09-17 14:10:36 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/commons-logging-1.0.4.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\commons-logging-1.0.4.jar
2004-09-17 14:10:36 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/dom4j-1.4.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\dom4j-1.4.jar
2004-09-17 14:10:36 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/ehcache-0.9.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\ehcache-0.9.jar
2004-09-17 14:10:37 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/hibernate2.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\hibernate2.jar
2004-09-17 14:10:37 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/jta.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\jta.jar
2004-09-17 14:10:37 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/log4j-1.2.8.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\log4j-1.2.8.jar
2004-09-17 14:10:37 WebappLoader[/quickstart]: Deploy JAR /WEB-INF/lib/odmg-3.0.jar to C:\usr\tomcat\webapps\quickstart\WEB-INF\lib\odmg-3.0.jar
2004-09-17 14:10:37 StandardManager[/quickstart]: Seeding random number generator class java.security.SecureRandom
2004-09-17 14:10:37 StandardManager[/quickstart]: Seeding of random number generator has been completed
2004-09-17 14:10:37 ContextConfig[/quickstart]: Added certificates -> request attribute Valve
2004-09-17 14:10:37 ContextListener: contextInitialized()
2004-09-17 14:10:37 SessionListener: contextInitialized()
2004-09-17 14:10:37 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@3c8e1e')
2004-09-17 14:10:37 StandardWrapper[/quickstart:default]: Loading container servlet default
2004-09-17 14:10:37 StandardWrapper[/quickstart:invoker]: Loading container servlet invoker
2004-09-17 14:10:37 StandardHost[localhost]: Installing web application at context path from URL file:C:\usr\tomcat\webapps\ROOT
2004-09-17 14:10:37 WebappLoader[]: Deploying class repositories to work directory C:\usr\tomcat\work\Standalone\localhost\_
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/cglib-full-2.0.2.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\cglib-full-2.0.2.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-collections-2.1.1.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\commons-collections-2.1.1.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-logging-1.0.4.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\commons-logging-1.0.4.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/dom4j-1.4.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\dom4j-1.4.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/ehcache-0.9.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\ehcache-0.9.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/hibernate2.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\hibernate2.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/jta.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\jta.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/log4j-1.2.8.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\log4j-1.2.8.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/odmg-3.0.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\odmg-3.0.jar
2004-09-17 14:10:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/pg74.215.jdbc3.jar to C:\usr\tomcat\webapps\ROOT\WEB-INF\lib\pg74.215.jdbc3.jar
2004-09-17 14:10:37 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2004-09-17 14:10:37 StandardManager[]: Seeding of random number generator has been completed
2004-09-17 14:10:37 ContextConfig[]: Added certificates -> request attribute Valve
2004-09-17 14:10:37 StandardWrapper[:default]: Loading container servlet default
2004-09-17 14:10:37 StandardWrapper[:invoker]: Loading container servlet invoker
2004-09-17 14:10:41 StandardWrapperValve[Cat]: Servlet.service() for servlet Cat threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:479)
----- Root Cause -----
java.lang.NoSuchMethodError
at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:133)
at net.sf.hibernate.cfg.Environment.<clinit>(Environment.java:469)
at net.sf.hibernate.cfg.Configuration.<init>(Configuration.java:89)
at CatServlet.doGet(CatServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:479)


Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

[code][/code]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.