Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Trouble accessing XML files inside a .jar

Thread Tools

Trouble accessing XML files inside a .jar
Posts: n/a

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:

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

..war deployment:

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:

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

Thanks for any help

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
csv.reader has trouble with comma inside quotes inside brackets Bret Python 3 06-09-2009 09:27 PM
RowCommand: accessing ObjectDataSource from inside gridview inside a repeater? HockeyFan ASP .Net 1 07-04-2007 05:49 AM
Accessing USER CONTROL which is inside Masterpagethrough Another USER Control inside normal page. Kiran More ASP .Net Web Controls 2 11-14-2006 12:58 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
how to keep xml data inside xml =?Utf-8?B?YW5kcmV3MDA3?= ASP .Net 5 10-28-2005 11:01 AM