Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Problem in generated server.xml preventing web-app from reading files
Problem in generated server.xml preventing web-app from reading files [message #711440] Sat, 06 August 2011 02:08 Go to previous message
Steve Ash is currently offline Steve Ash
Messages: 4
Registered: June 2011
Junior Member
Hello,

I am using Tomcat 7.0.19, Eclipse 3.7 (i.e. WTP 3.3) and Maven (via m2e-wtp from jboss). If I use default options (i.e. automatically publish, no check in "serve modules without publishing") then everything works fine -- except that it redeploys constantly.

When I try to run with "serve modules without publishing" I cannot start my web app. I can't find some files:

INFO: Starting Servlet Engine: Apache Tomcat/7.0.19
log4j:ERROR Could not read configuration file from URL [file:/home/ashsteph/workspace/fuzzy-project_trunk/fuzzy-admin-webapp/src/main/resources/WEB-INF/classes/log4j.properties].
java.io.FileNotFoundException: /home/ashsteph/workspace/fuzzy-project_trunk/fuzzy-admin-webapp/src/main/resources/WEB-INF/classes/log4j.properties (No such file or directory)

This path its looking for is invalid and incorrect. It should be looking in target. Following the path of someone else on this forum I examined the server.xml that WTP is generated and spotted something strange:

In the <Context> tag there was an attribute:

extraResourcePaths="/WEB-INF/classes|/home/ashsteph/workspace/fuzzy-project_trunk/fuzzy-admin-webapp/target/classes;/home/ashsteph/workspace/fuzzy-project_trunk/fuzzy-admin-webapp/target/m2e-wtp/web-resources

this /WEB-INF/classes| business seems a bit odd-- the rest are semicolon delimited. If I remove the "/WEB-INF/classes|" but keep the rest of the semi-colon list -- then everything works beautfiully.

Who is appending this /WEB-INF/classes| pipe-delimited thing? And how do I fix this?

Steve

 
Read Message
Read Message
Read Message
Previous Topic:Problem with tomcat 7.0.11 + Maven + "serve modules without publishing" : return of bug 31
Next Topic:DOM of editing file
Goto Forum:
  


Current Time: Wed May 22 04:12:33 EDT 2013

Powered by FUDForum. Page generated in 0.01846 seconds