When I try to run my embedded tomcat server 7 spring MVC program using "mvn tomcat7:run" it is running fine but I can't able to access it from my browser.It is showing 404 error.But When I am running same project using eclipse it is running fine.What I did is I copy the .war file in different folder and from that folder I try to run "mvn tomcat7:run". I copy the pom.xml and web.xml file in that folder. I can't use "mvn clean install" from my new folder.It is asking for project directory.Now why I am asking to run my .war file like this . Because I don't want to run this .war file every time from eclipse or from project folder.

Thanks in advance

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.