[ http://issues.apache.org/struts/browse/STR-1478?page=all ] David Evans reopened STR-1478: ------------------------------
Assign To: (was: Struts Developer Mailing List) > The strutsel-exercise-taglib application can not be compiled with jspc > ---------------------------------------------------------------------- > > Key: STR-1478 > URL: http://issues.apache.org/struts/browse/STR-1478 > Project: Struts Action 1 > Type: Bug > Components: Apps > Versions: 1.1 RC1 > Environment: Operating System: All > Platform: PC > Reporter: Petr Jiricka > Attachments: standalone_no_netbeans.txt, struts > > See also issue: http://www.netbeans.org/issues/show_bug.cgi?id=33811 > 1. Download Struts 1.1 RC1 > 2. Unpack the strutsel-exercise-taglib application into a directory > 3. Run jspc from Tomcat 4.0.6 on this directory > The exception in the attachment will occur. > Investigation shows that method > org.apache.struts.util.RequestUtils.applicationClass(String) is the culprit: > public static Class applicationClass(String className) throws > ClassNotFoundException { > // Look up the class loader to be used > ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); > if (classLoader == null) { > classLoader = RequestUtils.class.getClassLoader(); > } > // Attempt to load the specified class > return (classLoader.loadClass(className)); > } > It looks like in jspc, the thread's context classloader is different than in > the running Tomcat. The question is: can this behavior be relied on ? I did > not > see anywhere in the servlet spec what Thread.currentThread > ().getContextClassLoader() should return. May not other servers also have > this > problem ? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]