tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32471] New: - Tomcat's commons-logging conflicts with webapp that also has its own org.apache.commons.logging.Log
Date Wed, 01 Dec 2004 15:41:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32471>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32471

           Summary: Tomcat's commons-logging conflicts with webapp that also
                    has its own org.apache.commons.logging.Log
           Product: Tomcat 5
           Version: 5.5.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P3
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ryanagler@hotmail.com


Starting with version 5.5.3, Tomcat will crash while initializing a webapp that 
has an org.apache.commons.logging.Log of its own.  In my case, I have a Cocoon 
webapp that contains commons-logging-1.0.3.jar in WEB-INF/lib.  After starting 
Tomcat, and making the first request to the webapp, I get this in 
catalina.out: "You have more than one version 
of 'org.apache.commons.logging.Log' visible, which is not allowed", after which 
Tomcat stops responding to requests.  If I remove 
the 'org.apache.commons.logging.Log' class from the webapp's commons-logging-
1.0.3.jar, tomcat then serves pages normally.  5.5.2 loads the webapp without 
having to remove 'org.apache.commons.logging.Log', so something that changed in 
5.5.3 must cause this issue.  Below is more from catalina.out when the error 
occurs:

- Servlet.service() for servlet Cocoon threw exception
java.lang.NoClassDefFoundError
	at org.apache.jk.server.JkCoyoteHandler.appendHead
(JkCoyoteHandler.java:341)
	at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:416)
	at org.apache.coyote.Response.action(Response.java:182)
	at org.apache.coyote.Response.sendHeaders(Response.java:374)
	at org.apache.jk.server.JkCoyoteHandler.doWrite
(JkCoyoteHandler.java:230)
	at org.apache.coyote.Response.doWrite(Response.java:542)
	at org.apache.catalina.connector.OutputBuffer.realWriteBytes
(OutputBuffer.java:360)
	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
	at org.apache.catalina.connector.OutputBuffer.doFlush
(OutputBuffer.java:313)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message