What happens if you run this command from the "web" directory?

Matt

On 2/16/07, Trent <[EMAIL PROTECTED]> wrote:
Hi. Running through the appfuse Hibernate + Spring-MVC tutorial, I chose the 
minimal path (nothing
more than CRUD operations etc). I'm using 2.0-M3.

When I execute PersonControllerTest from Maven (in root dir of app), I get this 
error in
PersonControllerTest.txt:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.63 sec <<< 
FAILURE!
testHandleRequest(com.mycompany.webapp.controller.PersonControllerTest)  Time 
elapsed: 0.595
sec  <<< ERROR!
org.springframework.beans.factory.BeanDefinitionStoreException: IOException 
parsing XML
document from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested 
exception is
java.io.FileNotFoundException: Could not open ServletContext resource 
[/WEB-INF/dispatcher-
servlet.xml]
Caused by: java.io.FileNotFoundException: Could not open ServletContext 
resource [/WEB-INF/
dispatcher-servlet.xml]


However, there are 3 dispatcher-servlet.xml files:
./target/appname-1.0-SNAPSHOT/WEB-INF/dispatcher-servlet.xml
./target/tomcat5x/container/webapps/appname-1.0-SNAPSHOT/WEB-INF/dispatcher-servlet.xml
./target/war/work/appfuse-spring-2.0-m3/WEB-INF/dispatcher-servlet.xml

Is there a config setting I need to change to have maven pick this up?
--
"Einstein argued that there must be simplified explanations of nature, because
God is not capricious or arbitrary. No such faith comforts the software
engineer." ~ Fred Brooks

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to