Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » .properties not loaded from WEB-INF/classes
.properties not loaded from WEB-INF/classes [message #202618] Thu, 18 October 2007 21:55
Eclipse User
Originally posted by: simensen.gmail.com

A previously working Dynamic Web Module project had its directory
structure reorganized. We moved the WebContent/ folder to
server/WebContent/.

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
wtpwebapps/project/WEB-INF/classes/build.properties
wtpwebapps/project/WEB-INF/classes/build.properties


When I try to start the server from the Servers tab, I see the following:

java.io.FileNotFoundException: Could not open ServletContext resource
[/build.properties]


If I copy the build.properties file to the project root, the project fires
up as expected:


[altern8@wizzyvm-hci tmp0]$ cp
wtpwebapps/project/WEB-INF/classes/build.properties
wtpwebapps/project/


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
missed.

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?
Previous Topic:Preserving text editor caret position
Next Topic:Class property of org.eclipse.wst.validation.validator extension
Goto Forum:
  


Current Time: Thu Oct 23 15:58:48 GMT 2014

Powered by FUDForum. Page generated in 0.01941 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software