[jboss-user] [JBoss Microcontainer Development] New message: "Structure deployer cannot access manifest"

Thomas Diesler do-not-reply at jboss.com
Thu Mar 4 08:10:01 EST 2010


User development,

A new message was posted in the thread "Structure deployer cannot access manifest":

http://community.jboss.org/message/529906#529906

Author  : Thomas Diesler
Profile : http://community.jboss.org/people/thomas.diesler@jboss.com

Message:
--------------------------------------------------------------
This code used to determine whether a bundle gets deployed
 
   public boolean determineStructure(StructureContext structureContext) throws DeploymentException
   {
      VirtualFile root = structureContext.getRoot();
 
         // This file is not for me, because I'm only interested
         // in root deployments that contain a MANIFEST.MF
         Manifest manifest = VFSUtils.getManifest(root);
         if (root != structureContext.getFile() || manifest == null)
            return false;
 
         // This file is also not for me, because I need to see Bundle-SymbolicName
         Attributes attribs = manifest.getMainAttributes();
         String symbolicName = attribs.getValue(Constants.BUNDLE_SYMBOLICNAME);
         if (symbolicName == null)
            return false;
 
    ....

 
With deployers-2.2.0.Alpha3 (i.e. jboss-vfs-3.0.0.CR2) the manifest returned from VFSUtils is null.
 
Is this a bug, perhaps related to the root not mounted?

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/529906#529906




More information about the jboss-user mailing list