Trouble accessing XML files inside a .jar

P

Piper707

Hi,

I'm having trouble trying to acccess XML files inside a .jar

1) When the .jar lives in a .war, the files are found correctly. i.e.

logic.jar structure:
---------------
src/com/test/xmlFiles/*.xml
src/com/test/xyz.class

test.war structure:
---------------
test.war/WEB-INF/lib/logic.jar -- files found correctly

..war deployment:
----------------
Jboss/server/default/deploy/test.war

2) But if the .jar is deployed in lib, it doesn't find the XML files,
although the path to the XML files shown is correct

Jboss/server/default/lib/logic.jar -- files NOT found

path shown:
-----------
Jboss/server/default/lib/logic.jar!/src/com/test/xmlFiles/

could this be a classloader issue? The calls to the xml files go from
the jsp pages in the .war.
In the first case, the jsp's and the xml both live in the same .war,
but in the 2nd case, the xml files are in a .jar
(Jboss/server/default/lib/) while the jsp pages continue to remain in a
..war (Jboss/server/default/deploy/).

If it is, how can I get around it?

The idea is to keep the XML files bundled in a single location (.jar)
so that any .war files that need access to it don't need to include
them.

Thanks for any help
Rohit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top