| Author |
Reading ear manifest.mf from JSP
|
K Thapa
Greenhorn
Joined: Sep 02, 2004
Posts: 8
|
|
Hello all, In order to display application ear version,I need to access ear-specific Manifest.mf file from my jsp. When I do: application.getResourceAsStream("META-INF/MANIFEST.MF") it gives me the war specific Manifest.mf(as expected) . Changin it to application.getResourceAsStream("../META-INF/Manifest.mf") returns null. I also tried few other things like but they all return null: 1. ClassLoader.getSystemClassLoader().getResourceAsStream(" META-INF/Manifest.mf") 2.this.getClass().getClassLoader().getParent().getResourceAsStream(" META-INF/Manifest.mf") Here is my structure abc.ear - META-INF ( has manifest.mf and application.xml) - xyz.war ( has readmanifest.jsp/WEB-INF/ META-INF->manifest.mf ) readmanifest.jsp should read manifest.mf one level up. How do I get hold of the ear-level( app level) Classloader in Websphere? Is there an alternate way to achieve what I am trying to do? Thanks in advance. [ November 21, 2007: Message edited by: K Thapa ] [ November 21, 2007: Message edited by: K Thapa ]
|
 |
Maciej Miklas
Ranch Hand
Joined: Feb 12, 2007
Posts: 61
|
|
|
Do you have solution for your problem?
|
 |
K Thapa
Greenhorn
Joined: Sep 02, 2004
Posts: 8
|
|
Use basic java I/O. Something like:
|
 |
 |
|
|
subject: Reading ear manifest.mf from JSP
|
|
|