XML files are not included in the eclipse build directory

Posted on 09/06/2009 by Charalampos Chrysikopoulos

Some time now I had a problem with running a dynamic web app project in eclipse as a web application (right click on project name and then RUN AS > RUN ON SERVER).

I had mostly spring enabled applications and the problem was that the application-context.xml file was not deployed in tomcat (in the webapps directory of tomcat, not the workspace direcory). The reason was that the xml file, and all other xml files were not copied in the build (in most cases bin) directory by eclipse. I couldn't find the reason for that.

After searching in internet I found this thread . I don't have the TPTP project installed in my eclipse, so I don't think that this is the reason. Another thread here.

The solution is simple although I don't know if there are any side effects.

"Change the Java/Compiler/Building preference, and remove *.xml from the filtered resources."

And that worked... at last.

This entry was posted in eclipse, spring, xml and tagged by Charalampos Chrysikopoulos

Add new comment