7 Replies Latest reply on Mar 5, 2009 5:59 AM by heiko.braun

    AbstractVFSParsingDeployer doesn't kick in upon server reboo

    heiko.braun

      I did a JBPMMetaDataDeployer that process *.par archives and prepares the meta data (output= JBPMDeploymentMetaData) for the actual JBPMDeployer:

      public class JBPMMetaDataDeployer extends AbstractVFSParsingDeployer<JBPMDeploymentMetaData>
      {
      ...
      }
      


      It's configured to pick up *.par and process *.jpdl.xml files:

      <bean name="org.jbpm:service=MetaDataDeployer"
       class="org.jbpm.integration.jboss5.JBPMMetaDataDeployer">
      
       <property name="suffix">jpdl.xml</property>
       <property name="jarExtension">par</property>
       <property name="allowMultipleFiles">true</property>
      
      


      It all works fine when i copy new artifcat to the deploy directory,
      however upon AS reboot, the JBPMMetaDataDeployer doesn't kick in.
      Although I can see that the main deployer processes it:

      2009-03-04 11:50:51,903 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/Users/h
      braun/dev/prj/jboss/tags/JBoss_5_0_0_GA/build/output/jboss-5.0.0.GA/server/default/deploy/Simple-Alpha2.par
      


      Any ideas what I might doing wrong?

        • 1. Re: AbstractVFSParsingDeployer doesn't kick in upon server r
          jaikiran

           

          2009-03-04 11:50:51,903 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfsfile:/Users/hbraun/dev/prj/jboss/tags/JBoss_5_0_0_GA/build/output/jboss-5.0.0.GA/server/default/deploy/Simple-Alpha2.par


          This message is just a note that the deployment was passed through the list of the deployers available. It doesn't actually mean that any of the deployers in the list of deployers was found relevant for the deployment.

          I usually enable TRACE level logging to get more information. Something like these:

          2009-03-04 17:11:55,399 TRACE [org.jboss.deployers.plugins.deployers.DeployersImpl] Deployer org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer@1406eb6 not relevant for vfsfile:/home/jpai/business/jboss/wc/jbossas/projects/ejb3/trunk/nointerface/src/test/resources/deployers/



          which shows me whether the deployer was considered relevant for the deployment


          • 2. Re: AbstractVFSParsingDeployer doesn't kick in upon server r
            heiko.braun

            I did dig a little further and ame to this point:

            
            public abstract class AbstractVFSParsingDeployer<T> extends AbstractParsingDeployerWithOutput<T> implements FileMatcher
            {
            
            ...
            
             // try all name+suffix matches
             List<VirtualFile> files = vfsDeploymentUnit.getMetaDataFiles(name, suffix);
             switch (files.size())
             {
             case 0 :
             return null;
             case 1 :
             return parseAndInit(vfsDeploymentUnit, files.get(0), root);
             default :
             return handleMultipleFiles(vfsDeploymentUnit, root, files);
             }
            
            ...
            


            Seems that the lookup by name+suffix returns an empty list.
            What I don't understand is why this behaves differently when I copy an archive to the deploy directory when the server is running.

            • 3. Re: AbstractVFSParsingDeployer doesn't kick in upon server r
              emuckenhuber

               

              "heiko.braun@jboss.com" wrote:

              What I don't understand is why this behaves differently when I copy an archive to the deploy directory when the server is running.


              This is a known issue that the jarExtensions are not picked up when starting AS. This will be fixed in 5.1.
              You would need to add your jarExtension to the bootstrap/deployers.xml for the moment like it's done here:

               <bean name="JARStructure" class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure">
               ...
               <value>.spring</value>
               <value>.rails</value>
               <value>.esb</value>
               </bean>
              


              • 4. Re: AbstractVFSParsingDeployer doesn't kick in upon server r
                heiko.braun

                Thanks. Do you know the JIRA number so I can monitor it?

                • 5. Re: AbstractVFSParsingDeployer doesn't kick in upon server r
                  heiko.braun
                  • 6. Re: AbstractVFSParsingDeployer doesn't kick in upon server r

                     

                    "jaikiran" wrote:

                    2009-03-04 17:11:55,399 TRACE [org.jboss.deployers.plugins.deployers.DeployersImpl] Deployer org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer@1406eb6 not relevant for vfsfile:/home/jpai/business/jboss/wc/jbossas/projects/ejb3/trunk/nointerface/src/test/resources/deployers/



                    which shows me whether the deployer was considered relevant for the deployment


                    You can also see which deployers processed a deployment on the JMX console.
                    Find your (sub-)deployment/component in the jboss.deployment namespace.

                    • 7. Re: AbstractVFSParsingDeployer doesn't kick in upon server r
                      heiko.braun

                       


                      You can also see which deployers processed a deployment on the JMX console.
                      Find your (sub-)deployment/component in the jboss.deployment namespace.


                      thanks, that's good to know