1 Reply Latest reply on Aug 24, 2004 8:56 PM by Matt Higgins

    problem deploying a war in an ear

    Matt Higgins Newbie

      I am running Jboss 3.2.4

      I have an ear with the following layout


      I can deploy the war on its own no problem but when I package it in the ear and deploy that I get the the following:

      Cause: java.lang.NoSuchMethodException: org.apache.catalina.core.StandardContext.setLoader(org.apache.catalina.Loader))
      Cause: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setLoader StandardContext[null]
      Cause: java.lang.NoSuchMethodException: org.apache.catalina.core.StandardContext.setLoader(org.apache.catalina.Loader))
      ObjectName: jboss.j2ee:service=EARDeployment,url='app.ear'

      I looked trough all of the jars in JBOSS_HOME and found the above package in catlina.jar which is in the jbossweb-tomcat50.sar. I attempted to include this in my ear and got another err. I am confident this is not the crrect solution anyway. Any help would be appreciated.

      Here are what I belive to be the relavant parts of my server/app config:

       <display-name>Our App</display-name>

      <?xml version="1.0"?>

      jboss-service.xml (This is just a snip of the complete config please advise if I need to post more)
       <mbean code="org.jboss.management.j2ee.LocalJBossServerDomain"
       <attribute name="MainDeployer">jboss.system:service=MainDeployer</attribute>
       <attribute name="SARDeployer">jboss.system:service=ServiceDeployer</attribute>
       <attribute name="EARDeployer">jboss.j2ee:service=EARDeployer</attribute>
       <attribute name="WARDeployer">jboss.web:service=WebServer</attribute>
       <attribute name="JNDIService">jboss:service=Naming</attribute>
       <attribute name="JTAService">jboss:service=TransactionManager</attribute>

        • 1. Re: problem deploying a war in an ear
          Matt Higgins Newbie

          Ok fixed the probelm by removing the loader-repository decleration in jboss-app


          since this is the only app deployed in this server I don't care about
          polluting the classpath. Still not sure of the total purose of this, besids walling apps off from eacher, but this is the "Beginners Corner" after all.