Hi there,
New to these forums, so forgive me if I picked the wrong board… 🙂
I’m trying to parse an xml file, which I would like to place in the “resources” subdirectory of my project folder. I’ve got a little utility class in my package, and if I use this class directly (e.g. from a test main method), it finds the file “resources/bla.xml” just fine. However, if I call a method in this class indirectly from a jsp file, I get a file not found exception which says that it’s expecting the file somewhere else.
Before installing MyEclipse, it was expecting the file in my eclipse directory, i.e. “…/eclipse/resources/bla.xml”. Since installing MyEclipse, it’s looking in the tomcat/bin directory. Of course I can put the xml file in /eclipse/resources/ or in tomcat/bin/ for testing and I don’t get the exception, or I can use the absolute reference (i.e. “http://localhost:8080/%5Bproject%5D/resources/bla.xml”), but obviously that can’t be the long-term solution… surely there’s a way to make a relative reference to a resource file within my project directory?
Anyone know how I can get around this? Is there a setting somewhere that fixes this?
Cheers,
Amos