1 Reply Latest reply on Jun 24, 2004 11:34 AM by ant.on

    deploying two identical webapps independently

    ant.on

      i have two exploded wars that are identical except for a few configuration parameters.

      if i deploy just one (put it under a.war directory in deploy directory) - all is fine

      if i deploy both at the same time (a.war and b.war directories) - they influence each other and blow up

      i have followed the following wiki entry:
      http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration

      configuration:
      - sun jdk 1.4.2_04
      - jboss3.2.3

      1. just deploying a.war

      1.1 changing jbossweb-tomcat41.sar/META-INF/jboss-service.xml

      <attribute name="Java2ClassLoadingCompliance">true</attribute>
      <attribute name="UseJBossWebLoader">false</attribute>
      


      result:

      blows up - javax.servlet.ServletException: org/xml/sax/Attributes
      although this file is present in a jar under WEB-INF/lib

      1.2 changing jbossweb-tomcat41.sar/META-INF/jboss-service.xml

      <attribute name="Java2ClassLoadingCompliance">false</attribute>
      <attribute name="UseJBossWebLoader">true</attribute>
      


      result:

      blows up


      1.3 changing jbossweb-tomcat41.sar/META-INF/jboss-service.xml

      <attribute name="Java2ClassLoadingCompliance">false</attribute>
      <attribute name="UseJBossWebLoader">false</attribute>
      


      result:

      blows up


      1.4 created a.war/WEB-INF/jboss-web.xml with the following:

      <jboss-web>
      <class-loading>
       <loader-repository>
       dot.com:loader=a.war
       </loader-repository>
      </class-loading>
      <jboss-web>
      


      result:

      blows up


      1.5 tried 1.4 with 1.1-1.3

      result:

      blows up

      1.6 put a.war into a.ear, put b.war into b.ear

      created application.xml:
      <!DOCTYPE application PUBLIC
       "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
       "http://java.sun.com/dtd/application_1_3.dtd">
      <application>
       <display-name>a</display-name>
       <module>
       <web>
       <web-uri>a.war</web-uri>
       <context-root>/a</context-root>
       </web>
       </module>
      </application>
      


      and jboss-app.xml
      <jboss-app>
       <loader-repository>dot.com:loader=a.ear</loader-repository>
      </jboss-app>
      


      same with b.ear/b.war, with proper changes

      result: blows up with javax.servlet.ServletException: org/xml/sax/Attributes


      i am very-very confused. thank you for your help