[jboss-user] [JBoss Microcontainer Development] New message: "Re: Structure deployer cannot access manifest"
Ales Justin
do-not-reply at jboss.com
Thu Mar 4 08:33:48 EST 2010
User development,
A new message was posted in the thread "Structure deployer cannot access manifest":
http://community.jboss.org/message/529914#529914
Author : Ales Justin
Profile : http://community.jboss.org/people/alesj
Message:
--------------------------------------------------------------
> Is this a bug, perhaps related to the root not beeing mounted?
Most likely -- see HERE.
public static Manifest getManifest(VirtualFile archive) throws IOException {
if (archive == null)
throw new IllegalArgumentException("Null archive");
VirtualFile manifest = archive.getChild(JarFile.MANIFEST_NAME);
if (manifest == null || !manifest.exists()) { // HERE -- manifest.exists() == false
if (log.isTraceEnabled())
log.trace("Can't find manifest for " + archive.getPathName());
return null;
}
return readManifest(manifest);
}
You need an explicit mount -- like explained eariler: http://community.jboss.org/message/529846#529846
It will a bit tricker here, since you wanna use your VFS abstraction.
Meaning your abstraction will have to know wheather it needs to mount or not.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529914#529914
More information about the jboss-user
mailing list