|.properties not loaded from WEB-INF/classes [message #202618]
||Thu, 18 October 2007 21:55
Originally posted by: simensen.gmail.com|
A previously working Dynamic Web Module project had its directory
structure reorganized. We moved the WebContent/ folder to
Now .properties files (and only .properties) located in WEB-INF/classes/
are not being found in the classpath for the deployed application.
[altern8@wizzyvm-hci tmp0]$ ls
When I try to start the server from the Servers tab, I see the following:
java.io.FileNotFoundException: Could not open ServletContext resource
If I copy the build.properties file to the project root, the project fires
up as expected:
[altern8@wizzyvm-hci tmp0]$ cp
The project ran fine before, so I am uncertain what I would need to do to
get the application to find .properties files that live under
WEB-INF/classes/. The actual classes that live under WEB-INF/classes/ will
load without a problem.
I am not even sure if this is a Tomcat problem or an Eclipse problem? I am
guessing it is a configuration issue with the webtools plug-in that I
I have found very little documentation on how to move WebContent ->
something else after a project has been created. Maybe if we did it
correctly this problem would clear itself up?
Powered by FUDForum
. Page generated in 0.01760 seconds