maven « Tomcat « JSP-Servlet Q&A





1. Define Servlet Context in WAR-File    stackoverflow.com

How can I tell e.g. Tomcat to use a specific context path when given my WAR-File? Example: I have a war file created by maven build and the resulting name of the file ...

2. Maven Test on servlet receiving an IllegalStatException: Cannot reset buffer - response already committed    stackoverflow.com

During the test phase of my maven build I ave the following code in one @test method:

            request.clearAttributes();
   ...

3. Unable to load .properties in aplication for Tomcat    stackoverflow.com


I need to write a web-aplication that connects to database and reads connections properties from .properties file.
I use Maven and I want to write some unit test for my app. ...

4. Throw exception when using maven with eclipse in web-app    stackoverflow.com

I want to use maven integrated with eclipse to develop webapp according this tutorial: http://jacksonps4.me/wordpress/?p=868 But when I open jsp page, it throw NullPointerException as following

SEVERE: Servlet.service() for servlet ...

5. Maven's tomcat:run mojo doesn't see my servlet    stackoverflow.com

I have a simple WAR project managed by Maven. I have the servlet code under src/main/java/* and all the static content (HTML, images, etc) under src/main/webapp. I can deploy ...

6. Maven: javax.servlet specification deployed    stackoverflow.com

I've a web application configured with Maven which uses a library, also configured with Maven and when I package geronimo-servlet_3.0_spec-1.0.jar is included in WEB-INF/lib and I don't understand why. I check the ...