User development,

A new message was posted in the thread "Trivial vfs-3.0.x manifest access 
fails":

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

Author  : Thomas Diesler
Profile : http://community.jboss.org/people/[email protected]

Message:
--------------------------------------------------------------
When trying to access the manifest from a jar, I get
 
Caused by: java.io.FileNotFoundException: 
/home/tdiesler/svn/jboss-osgi/trunk/testsuite/example/target/test-libs/example-simple.jar/META-INF/MANIFEST.MF
 (Not a directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:67)
    at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:225)
    at 
org.jboss.osgi.vfs30.VirtualFileAdaptor30.openStream(VirtualFileAdaptor30.java:106)
    at org.jboss.osgi.vfs.VFSUtils.getManifest(VFSUtils.java:49)
    at org.jboss.osgi.spi.util.BundleInfo.<init>(BundleInfo.java:109)


 
Essentially I do
 
VirtualFile root = VFS.getChild(url);
VirtualFile manifest = root.getChild(JarFile.MANIFEST_NAME);
InputStream stream = manifest.openStream();


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

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


_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to