Root application in Tomcat6 and servlet mapping :-(
am 19.10.2007 15:40:29 von stefan.machwirthHi everybody,
hope this is a right group for this question.
I have the following cheesy problem: I'd like to place a servlet as a
default root application within Tomcat6.
So I put the following ROOT.xml into "conf\Catalina\localhost":
So in "D:\apache-tomcat-6.0.14\startapp" is my application content,
including a WEB-INF, but some plain html-files, too. In the web.xml
there is following servlet mapping:
The idea is, that on a simple server request ("localhost:8080") this
servlet should answer the request as the root default application.
This works fine. But there are - as mentioned - these static GUI
files. The problem is, that all request-URLs to the other root
webcontent ("localhost:8080/gui.jsp", "localhost:8080/my.gif" or
others) are catched by this servlet-mapping, too :-(
The problem is, that this mapping "/" recognizes *ALL* requests. Is
there a way to configure a servlet-mapping which directs all requests
for the server name into the servlet, but serves other resources under
the root context like normal files?
Thanx a lot!
Stefan