IntelliJ Java IDE
The moose likes Websphere and the fly likes Access XML files from servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "Access XML files from servlets" Watch "Access XML files from servlets" New topic
Author

Access XML files from servlets

PN S
Greenhorn

Joined: Nov 29, 2001
Posts: 3
I 'm involved in an application similar to Petstore architecture - wherein a servlet is made use of to access an XML file, get its URL and thus read its contents.
When the statement -
getResource("\\web-inf\\xml\\<filename.xml>")
is given in the init() method of the servlet an exception is thrown.
Is there any specific convention to access a web resource such as an xml file in Websphere(3.5 version AE).The same statement however works in VAJ 3.5.However when i expoert the same code to WAS an exception results.Any reason as to why the web resource is not being located?
Could anyone help me out with this - i've been held up at this point for quite some time.
 
 
subject: Access XML files from servlets
 
Threads others viewed
Pentaho 3.5 for java developers + problem
Tomcat - The requested resource is not available
The content is not allowed in prolog.
SSL Web Service Client
A few questions of a beginner
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture