You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/01/02 05:29:17 UTC
DO NOT REPLY [Bug 46462] New: JSPWiki JSP compilation prevented by
org.apache.jasper.Constants.JSP_PACKAGE_NAME
https://issues.apache.org/bugzilla/show_bug.cgi?id=46462
Summary: JSPWiki JSP compilation prevented by
org.apache.jasper.Constants.JSP_PACKAGE_NAME
Product: Tomcat 6
Version: 6.0.18
Platform: Macintosh
URL: https://issues.apache.org/jira/browse/JSPWIKI-464
OS/Version: Mac OS X 10.4
Status: NEW
Severity: major
Priority: P2
Component: Jasper
AssignedTo: dev@tomcat.apache.org
ReportedBy: ajaquith@apache.org
Hi,
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
org.apache.jasper.servlet.JasperLoader:
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 )
resolveClass(clazz);
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
"org.apache.jspwiki."
See additional commentary in the Apache JIRA database here:
https://issues.apache.org/jira/browse/JSPWIKI-464
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46462] JSPWiki JSP compilation prevented by
org.apache.jasper.Constants.JSP_PACKAGE_NAME
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46462
metskem <ha...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|https://issues.apache.org/ji|https://issues.apache.org/ji
|ra/browse/JSPWIKI-464 |ra/browse/JSPWIKI-465
--- Comment #2 from metskem <ha...@gmail.com> 2009-01-02 03:52:38 PST ---
I created a new separate JIRA issue for JSPWiki:
https://issues.apache.org/jira/browse/JSPWIKI-465
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46462] JSPWiki JSP compilation prevented by
org.apache.jasper.Constants.JSP_PACKAGE_NAME
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46462
--- Comment #1 from Mark Thomas <ma...@apache.org> 2009-01-02 03:10:31 PST ---
This has been fixed in trunk and proposed for 6.0.x. providing it gets two more
+1 votes it will be included in 6.0.19 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46462] JSPWiki JSP compilation prevented by
org.apache.jasper.Constants.JSP_PACKAGE_NAME
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46462
Harry Metske <me...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |metskem@apache.org
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46462] JSPWiki JSP compilation prevented by
org.apache.jasper.Constants.JSP_PACKAGE_NAME
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46462
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Mark Thomas <ma...@apache.org> 2009-01-14 16:22:56 PST ---
This has been fixed in 6.0.x and will be included in 6.0.19 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46462] JSPWiki JSP compilation prevented by
org.apache.jasper.Constants.JSP_PACKAGE_NAME
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46462
jalkanen <ja...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jalkanen@apache.org
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org