I'm trying to do some simple work with url-pattern that works well on localhost but fails when the application is deployed on the GAE server. What I want to do is next:
- One servlet to serve all requests
- This servlet will forward some requests to jsp files (in most cases)
To do this I've configured the web.xml:
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.mycompany.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/MyServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>MyServlet</welcome-file>
</welcome-file-list>
This works fine with the GAE localhost server, but when the app is deployed on the real GAE server, it doesn't. The problem is that when I access to myapp.appspot.com/anything GAE responds:
Error: Not Found The requested URL /anything was not found on this server.
Can anyone help me, plese?