0 Replies Latest reply on Sep 15, 2002 11:25 AM by edurin

    ClassLoader problem in WAR of EAR

    edurin

      Hello,

      I am trying to deploy an EAR holding a WAR and and jar holding some EJB's.
      Both modules use STRUTS.JAR.
      I put STRUTS.JAR at the root of my EAR file. I prefered this solution to making a duplication of this library in each module.


      I added a MANIFEST.MF file in the META-INF directory of each module to tell them where is STRUTS.JAR
      I think I have a correct syntax for the Class-Path attribute of my EJB module :

      Class-Path: struts.jar / /dionysos

      For the web module I tried different syntaxes for the Class-Path attribute:

      struts.jar
      jar:file:struts.jar
      /struts.jar
      ./struts.jar
      jar:file:/struts.jar


      And I always get the class in STRUTS.JAR to be not found by Tomcat:

      Class org.apache.struts.taglib.bean.MessageTag not found.

      Does somebody has an answer or a clue ?

      NB : I thought about putting many line returns at the end of my MANIFEST.MF.

      Thanks

      Emmanuel DURIN
      http://www.durin.org