This is an
J2EE /
ant /
Servlet question. And since I was only able to post it once it goes here (as the J2EE forum seems to be mostly EJB questions).
I had a Servlet which worked under WS 3.5. I changed the ant file to support creating a 'ear' file. There was a config file that the Servlet used and I wanted to include that in the 'ear' file.
The Servlet looked for config file in the directory in which is runs. And that was the problem. The Servlet was not able to find the config file until I put it here: .../app/XYZ/ Everything in the 'ear' file gets installed into .../app/XYZ/installedApps/
So I was not able to figure out how to include the config file in the 'ear' file, and have settled for installing it as a separate step, outside of the 'ear' file.
Any ideas about how I would be able to include the config file in the 'ear' file, so that the Servlet would be able to find it?