You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/04/27 07:27:45 UTC
[jira] Closed: (STR-1478) The strutsel-exercise-taglib application
can not be compiled with jspc
[ http://issues.apache.org/struts/browse/STR-1478?page=all ]
David Evans closed STR-1478:
----------------------------
Resolution: Not A Problem
> 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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org