Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-rc3, 2.0.0-M1
  • Fix Version/s: 1.0
  • Component/s: Core: Containers
  • Labels:
    None
  • Environment:

    Tomcat 5.5.7 with Java 1.5.0, Tomcat 5.0.19 with Java 1.4.2

  • Log Output:
    Hide
    INFO: Deploying web application archive mule.war
    Mar 23, 2005 10:34:10 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(/appl/tomcat/webapps/mule/WEB-INF/lib/geronimo-spec-j2ee-1.4-rc2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    ERROR 2005-03-23 22:34:11,921 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.commons.digester.Digester: Begin event threw error
    java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
    Show
    INFO: Deploying web application archive mule.war Mar 23, 2005 10:34:10 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/appl/tomcat/webapps/mule/WEB-INF/lib/geronimo-spec-j2ee-1.4-rc2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class ERROR 2005-03-23 22:34:11,921 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.commons.digester.Digester: Begin event threw error java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
  • Similar Issues:
    None

Description

The library geronimo-spec-j2ee-1.4-rc2.jar included in the Mule distribution conflicts with the servlet-api.jar included in the default Tomcat server (they both implement the class javax.servlet.Servlet).

I found the following workaround:
Replace $TOMCAT_HOME/common/lib/servlet-api.jar with geronimo-spec-j2ee-1.4-rc2.jar (rename it to "servlet-api.jar") and remove geronimo-spec-j2ee-1.4-rc2.jar from the Mule web app. This seems to work.

Activity

Hide
Ross Mason added a comment -

Thanks for reporting this. I think I will package Mule with seperate j2ee spec jars and ensure that the web app doesn't include the servlet jar.

Cheers,

Ross

Show
Ross Mason added a comment - Thanks for reporting this. I think I will package Mule with seperate j2ee spec jars and ensure that the web app doesn't include the servlet jar. Cheers, Ross
Hide
Ross Mason added a comment -

I've changed the Mule deployment so that it doesn't use the geronimo-j2ee spec jar. Instead it uses the composite jars and doesn't ship with the servlet spec any more. The next release will reflect this change (1.0 April 14th)

cheers,

Show
Ross Mason added a comment - I've changed the Mule deployment so that it doesn't use the geronimo-j2ee spec jar. Instead it uses the composite jars and doesn't ship with the servlet spec any more. The next release will reflect this change (1.0 April 14th) cheers,

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: