crashing tomcat with file not found
Hi ! Has anybody experienced the following: (I'm working with TomCat 3.2 under NT4, standalone) I set up my application correctly, it works fine. But when I try to access a file that does not exist, like: http://hostname/appname/notExistingFile.extension then TomCat generates infinite requests for that file which finally leads to a stack overflow which finally crashed tomcat Any ideas ?
JSP's mapping to URL
Hi folks ! I have a bunch of JSP's xxx is the applications name and its location is added to the context path. Suppose that I have a JSP under xxx/myjsp.jsp I want it to be hit when I type in the URL /xxx/myjsp, so for that I put in the web.xml the following lines: servlet servlet-nameAdminDefault/servlet-name jsp-filemyjsp.jsp/jsp-file /servlet servlet-mapping servlet-nameAdminDefault/servlet-name url-pattern/myjsp/url-pattern /servlet-mapping This all works perfectly under another engine, BEA Weblogic. Using TomCat I get the following message: Location: /xxx/myjsp Internal Servlet Error: java.lang.NullPointerException at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:398) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:484) Does anybody know what I make wrong? Thanks a lot !! Andy