4 Replies Latest reply on Jan 14, 2008 4:13 PM by yalfawad

    Long Deployment

      I am packing quite a few third party jars and different jars i have built with beans in them and I am finding that it takes a pretty substantial amount of time to start up jboss. I turned on debugging and I get tons of messages like the following


      10:46:38,576 DEBUG [MainDeployer] using deployer org.jboss.deployment.JARDeployer@c8769b
      10:46:38,576 DEBUG [MainDeployer] new manifest entry for sdi at tradeserviceMBean.jar entry is dom4j.jar
      10:46:38,580 DEBUG [JARDeployer] No xml files found

      Where tradeserviceMBean.jar is one of my EJB jars and dom4j is one of the jars in its manifest classpath. I see one of these for every jar in the manifest classpath of all of my ejb jars.

      Does the JAR deployer inspect the contents of every JAR and look for an XML file of some sort? Is there a way I can turn that off. All jars I want deployed are listed in my application.xml. there isnt a need to inspect everything in my manifest.

      Thanks,

      Bo

        • 1. Re: Long Deployment
          jc7442

          In \server\default\deploy\ejb3.deployer\META-INF\jboss-service.xml, there is a list of ignored jars. It looks like jars not in the list are scanned.

          You should bea ble to add your own jar in the list.

          • 2. Re: Long Deployment

            That is what I thought was supposed to happen, but dom4j.ja is listed. Am I supposed to list my ejb jars there?

            • 3. Re: Long Deployment
              jc7442

              Yes I think so.

              I use embedded JBoss or my tests. To be able to start quickly embedded container, I do not perform the automatic scan, and I deploy manually my EJB3. That makes the container faster to run. (listing ignored jars was boring to implement and I risk to miss some of he jars).

              I've not tried to see if it was possible to do something similar with JBoss AS ...

              • 4. Re: Long Deployment
                yalfawad

                I am hitting the same issue where JBoss is taking long time to load the Jars during startup.
                Any thoughts?

                main 2008-01-14 15:05:52,798 | DEBUG | session= | user= | deployment.MainDeployer | Copying file:/weber/ps/projects/gmdev/artesia65/jboss/server/teams/deploy/jboss-hibernate.deployer/cglib-full-2.0.1.jar -> /weber/ps/projects/gmdev/artesia65/jboss/server/teams/tmp/deploy/tmp35391cglib-full-2.0.1.jar
                main 2008-01-14 15:10:37,823 | DEBUG | session= | user= | deployment.JARDeployer | No xml files found

                Many Thanks,
                Yazeed Alfawadleh
                Artesia Media Group