tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46462] New: JSPWiki JSP compilation prevented by org.apache.jasper.Constants.JSP_PACKAGE_NAME
Date Fri, 02 Jan 2009 04:29:17 GMT

           Summary: JSPWiki JSP compilation prevented by
           Product: Tomcat 6
           Version: 6.0.18
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: major
          Priority: P2
         Component: Jasper


JSPWiki is currently an Incubator project at Apache. We intend to use the
package name org.apache.jspwiki. However, any classes in this package tree fail
to load when imported into a JSP page, specifically during Jasper's attempt to
compile it.

For example, 

<%@ page import="org.apache.jspwiki.WikiPage" %>

does not compile. My colleague Harry Metske traced the cause to this line in

        if( !name.startsWith(Constants.JSP_PACKAGE_NAME) ) {
            // Class is not in org.apache.jsp, therefore, have our
            // parent load it
            clazz = parent.loadClass(name);            
            if( resolve )
            return clazz;

The recommended bug fix would be to append a period (".") to the expression
passed into name.startsWith(), which in this case would then evaluate to
"org.apache.jsp.", and allow JSPWiki classes to load and compile.

This issue is important for us as we emerge from incubation. Lack of a fix
means that JSPWiki cannot release under the desired package name

See additional commentary in the Apache JIRA database here:

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message