http://nagoya.apache.org/bugzilla/show_bug.cgi?id=144 *** shadow/144 Sat Feb 3 18:21:57 2001 --- shadow/144.tmp.27269 Sat Feb 3 18:21:57 2001 *************** *** 0 **** --- 1,70 ---- + +============================================================================+ + | JSP file names have 'null' appended to them when defined in web.xml BugRat | + +----------------------------------------------------------------------------+ + | Bug #: 144 Product: Tomcat 3 | + | Status: NEW Version: Tomcat 3.1 | + | Resolution: Platform: | + | Severity: Normal OS/Version: | + | Priority: High Component: | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I tried to create a web.xml file to run the snoop.jsp file that comes with Tomcat +(see TOMCAT_HOME/examples/jsp/snp). + + I created a new webapps directory, called myJspTest, and defined it in the +server.xml file. + + I placed the snoop.jsp file in it, and a WEB-INF/web.xml file. The web.xml file +contains this: + + <!DOCTYPE web-app + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" + "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> + + <web-app> + + <servlet> + <servlet-name> + snoop + </servlet-name> + <jsp-file> + /snoop.jsp + </jsp-file> + <init-param> + <param-name>foo</param-name> + <param-value>bar</param-value> + </init-param> + </servlet> + + <servlet-mapping> + <servlet-name> + snoop + </servlet-name> + <url-pattern> + /snoop + </url-pattern> + </servlet-mapping> + + <session-config> + <session-timeout>30</session-timeout> <!-- 30 minutes --> + </session-config> + + </web-app> + + However, when I invoked .../myJsp/Test/snoop, I received this error: + + Error: 404 + + Location: /myJspTest/snoop.jspnull + + File Not Found + /myJspTest/snoop.jspnull + + How does one create the web.xml file to invoke snoop.jsp without the server adding +the 'null' to it? + + + ------- Additional Comments From [EMAIL PROTECTED] 2001-02-03 18:21 ------- + *** Bug 145 has been marked as a duplicate of this bug. *** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]