1 Reply Latest reply on Feb 18, 2009 4:34 AM by Ales Justin

    Possible bug in jboss-cl dep resolution

    David Lloyd Master

      I'm deploying a couple of JARs in the "all" profile of a jbossas built from the 5.1 branch and getting a weird problem. I was originally getting that NPE bug, so I updated jboss-cl to a 2.0.3-SNAPSHOT I built from svn and installed locally. Having done so, my deployment now generates a very large number of:

      18:48:26,025 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,068 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,068 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,073 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,073 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,078 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,078 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,080 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,080 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,080 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,080 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,080 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,081 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,081 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,081 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,124 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,124 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,125 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,125 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.spi.deployer [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.
      18:48:26,126 WARN [RequirementDependencyItem] VFSDeploymentClassLoaderPolicyModule <unknown>:1.0.0.CR1 resolved PackageRequirement{org.jboss.deployers.vfs.deployer.kernel [0.0.0,?)} to VFSClassLoaderPolicyModule deployers-classloader:0.0.0 which has import-all=true. Cannot check its consistency.


      The jboss-classloading.xml of the first module looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <classloading xmlns="urn:jboss:classloading:1.0" import-all="false">
       <capabilities>
       <module name="jboss-threads" version="1.0.0.CR1"/>
       <package name="org.jboss.threads" version="1.0.0.CR1"/>
       </capabilities>
       <requirements/>
      </classloading>


      The second one looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <classloading xmlns="urn:jboss:classloading:1.0" version="1.0.0.CR1" import-all="false">
       <requirements>
       <module name="jboss-threads" from="1.0.0.CR1" from-inclusive="true"/>
       <package name="org.jboss.deployers.vfs.deployer.kernel"/>
       <package name="org.jboss.deployers.vfs.spi.deployer"/>
       </requirements>
      </classloading>


      This seems familiar but last time I had a problem like this, I was able to fix it by updating jboss-cl. I've tried 2.0.2.GA, 2.0.3-SNAPSHOT, and 2.2.0-SNAPSHOT to no avail - they all produce the same problem.

      Ideas? I would expect it to fail once, maybe. Not to go into a loop like this...