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=19070>.
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=19070
Tiles uses Class.forName() to load Controller class
Summary: Tiles uses Class.forName() to load Controller class
Product: Struts
Version: 1.1 RC1
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: Tiles framework
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: bruyeron@fullsix.com
At the end of org.apache.struts.tiles.TilesUtilImpl:
/**
* Return the <code>Class</code> object for the specified fully qualified
* class name, from the underlying class loader.
*
* @param className Fully qualified class name to be loaded
* @return Class object
* @exception ClassNotFoundException if the class cannot be found
*/
public Class applicationClass(String className) throws ClassNotFoundException
{
return Class.forName(className);
}
For some reason this works in Tomcat 4.1.24, but it does not in iPlanet 6.0 Web
Server SP2. Tiles does not work at all in iPlanet if one uses custom tiles
controllers.
Class.forName() is wrong in a webapp context, the Context class loader should be
used instead (via Thread.currentThread().getContextClassLoader() ).
The problem is also in HEAD.
- Renaud
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org
|