[jboss-dev-forums] [JBoss AS 7 Development] - Re: Unable to read informations from manifest

Frank Schwarz do-not-reply at jboss.com
Sun Dec 25 04:46:21 EST 2011


Frank Schwarz [http://community.jboss.org/people/fs5] created the discussion

"Re: Unable to read informations from manifest"

To view the discussion, visit: http://community.jboss.org/message/643137#643137

--------------------------------------------------------------
Still not fixed in 7.0.2 nor in 7.1.0.CR1b. Probably reported as AS7-1970.

I see myself forced to this workaround:

URL jar = MyClass.class.getProtectionDomain().getCodeSource().getLocation();
VirtualFile jarFile = VFS.getChild(jar.toURI());
Manifest manifest = VFSUtils.getManifest(jarFile);
Attributes attributes = manifest.getMainAttributes();
String implementationTitle = attributes.getValue(Name.IMPLEMENTATION_TITLE);
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/643137#643137]

Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111225/28d17f8d/attachment.html 


More information about the jboss-dev-forums mailing list