2 Replies Latest reply on Jul 3, 2009 4:31 PM by Ales Justin

    awkward error: Jboss trying to install gif image (?)

    arjan tijms Novice

      Hi,

      I'm trying to convert a web application that was previously deployed to Tomcat 6 to run on Jboss AS 5.1. This application happened to have a faulty web.xml file, which Tomcat accepted but Jboss didn't. However, after failing to parse the web.xml file Jboss continued its attempt to deploy the web module and eventually spitted out error messages like this:

      16:50:09,925 ERROR [AbstractKernelController] Error installing to PreInstall: name=vfsfile:/home/arjan.tijms/programs/eclipse34/branch-private/jboss-5.1.0.GA/server/default/deploy/inventory/images/rating/green/7-rating1.0.gif state=Real mode=Manual requiredState=PreInstall
      java.lang.OutOfMemoryError: GC overhead limit exceeded
       at java.util.concurrent.CopyOnWriteArrayList.remove(CopyOnWriteArrayList.java:481)
       at java.util.concurrent.CopyOnWriteArraySet.remove(CopyOnWriteArraySet.java:205)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:937)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
       at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
       at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
       at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
       at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
       at org.jboss.Main.boot(Main.java:221)
       at org.jboss.Main$1.run(Main.java:556)
       at java.lang.Thread.run(Thread.java:619)
      16:51:50,686 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      


      I saw similar errors earlier when I tried to deploy a web module where the WEB-INF/lib directory contained among others the JTA implementation JoTM. Of course this should not be in a web module when deploying to Jboss AS, but if you do that anyway Jboss AS tries to install each and every file (including .class, .xml, .jsp, etc) as an Mbean, which of course doesn't work. This eventually resulted in the same or very similar "GC overhead limit exceeded" exceptions.

        • 1. Re: awkward error: Jboss trying to install gif image (?)
          jaikiran pai Master

           

          jboss-5.1.0.GA/server/default/deploy/inventory/images/rating/green/7-rating1.0.gif

          I don't see a reason why this is being considered as a "deployment". As a workaround can you just delete the "inventory" folder? Or is "inventory" your web application that you are trying to deploy? If yes, then rename it to inventory.war

          • 2. Re: awkward error: Jboss trying to install gif image (?)
            Ales Justin Master

             

            "jaikiran" wrote:
            jboss-5.1.0.GA/server/default/deploy/inventory/images/rating/green/7-rating1.0.gif

            I don't see a reason why this is being considered as a "deployment".

            The profile service treats each directory (in deploy/) w/o any '.' in the name as a grouping directory.
            e.g. deploy/mmessaging/ (useful to gather together similar deployments)
            In this case you have a few of them - inventory, images, rating, green, ...
            So each file inside those is the first one to meet criteria to be a deployment.

            Like Jaikiran said, simply rename the top one so that includes a '.' in the name.