Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat cannot locate/load external xml file

Status
Not open for further replies.

yigomigo

Programmer
Jul 16, 2004
1
US
Hi all,
I'm trying to build a SOAP webservice hosted on Tomcat. The application I'm building is talking to a couple of third party EJB's in the background.

My problem is : A class that I need to use (provided by this 3rd party company) is trying to locate it's own xml configuration file to setup it's JNDI lookup environment. This class does so in it's initial construction in the background). When I run the application as a consol app the xml config file is located, but when I package everything in a war Tomcat simply won't locate the xml file no matter where I put it.( by default it goes to web-inf/classes/configfile.xml)

I can programatically setup my JNDI environment and get access to granular entity/session beans, but this main class (which tries to lookup this xml file) provides validity/logging/multipleUpdates etc kind of functionality which is essential.

I have no control over this xml file lookup mechanism in this class. Does any body have any oppinion why Tomcat won't locate this file which is included in the deployed module?

Thank you so much in advance.

Yigit

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top