DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7007>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7007 Invalid names in web.xml generated by JspC for top-level JSP pages Summary: Invalid names in web.xml generated by JspC for top-level JSP pages Product: Tomcat 4 Version: 4.0.4 Beta 1 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The web.xml elements generated by JspC contains invalid names for JSP pages at the top-level in a web application structure. All names are prefixed with a dot ("."), e.g.: <servlet> <servlet-name>.test</servlet-name> <servlet-class>.test</servlet-class> </servlet> <servlet-mapping> <servlet-name>.test</servlet-name> <url-pattern>/test.jsp</url-pattern> </servlet-mapping> The JspC parseFile() method tries to handle the case where the package name is not set with this code: if (clc.getPackageName() == null) { thisServletName = clc.getClassName(); } else { thisServletName = clc.getPackageName() + '.' + clc.getClassName(); } but I guess there are case when getPackageName() returns "" instead of null, so it still doesn't work. Adding a test for the empty string should fix the problem. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>