1 Reply Latest reply on Jun 12, 2003 4:31 PM by gvaughn

    Possible Deployer Bug

    ericmolitor

      Ran into a problem that I'll elaborate with more information if needed.

      jboss-3.2.1_tomcat-4.1.24 running on JDK 1.4.1_02

      If I deploy filename.war the war deploys fine and all classes load properly.

      If I deploy filename.ear (with appropriate application.xml) which includes filename.war then certain jar files (even though I see them pushed when the war file deploys) apparently fail to register with the classloader and we end up with classes not being found.

      I've replicated this with our application and four or five dummy test ears (and wars). It appears to effect specific jars and appears to only occur on 3.2.1. (We did not see this behavior in 3.2.0)

      Anybody else seen something like this? I'll provide more info when and where I can, just ask.

      Cheers,
      Eric

        • 1. Re: Possible Deployer Bug
          gvaughn

          Yes, I've seen something quite similar. I have an ejb jar contained in a sar. In this case, it is not recognized as an ejb jar and is deployed by the JarDeployer. If I deploy the ejb jar as a separate deployment unit (not in the sar) then it works fine. The key point I see in my log is this:

          2003-06-12 15:05:53,821 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/java/jboss-3.2.1_tomcat-4.1.24/server/b2bintegration/tmp/deploy/server/b2bintegration/deploy/HFVSOrderComments.sar/2.HFVSOrderComments.sar-contents/HFVSOrderCommentBean.jar
          2003-06-12 15:05:53,836 DEBUG [org.jboss.deployment.JARDeployer] No META-INF or WEB-INF resource found, assuming it if for us
          2003-06-12 15:05:53,836 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@8bdcd2

          I have verified that my ejb jar has a META-INF directory (in all caps) containing ejb-jar.xml and jboss.xml and it deploys fine standalone, so I'm quite certain this is a JBoss 3.2.1 bug (also seen in 3.2.2RC1). I've also tried wrapping the ejb jar file in an ear in the sar with the same results.

          Luckily that grammatical error in the error message made it easy to find the location in the source: org.jboss.deployment.JarDeployer near line 103. If you haven't downloaded the source, here's one place you can see it: http://www.thecortex.net/clover/eg/jboss/report/org/jboss/deployment/JARDeployer.html

          My take is that the DeploymentInfo's classloader is setup wrong, but that's as far as I've had time to trace into the code. I hope someone with more familiarity with the code can look into it.