You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <ji...@apache.org> on 2005/09/18 23:21:54 UTC

[jira] Resolved: (VELOCITY-84) Classloader problem limit LogSystem creation

     [ http://issues.apache.org/jira/browse/VELOCITY-84?page=all ]
     
Will Glass-Husain resolved VELOCITY-84:
---------------------------------------

    Resolution: Fixed
     Assign To:     (was: Velocity-Dev List)

Hi,

Reviewing this old bug.  Velocity now checks the ThreadContext classloader - I think this will solve this issue (unreleased v1.5).  
This will let you put the Velocity jar in the app server classloader and your app classes in the webapp classloader (for example).  See issue VELOCITY-196.

If it is still of concern please reopen the issue.

WILL

> Classloader problem limit LogSystem creation
> --------------------------------------------
>
>          Key: VELOCITY-84
>          URL: http://issues.apache.org/jira/browse/VELOCITY-84
>      Project: Velocity
>         Type: Bug
>   Components: Source
>     Versions: 1.2
>  Environment: Operating System: All
> Platform: PC
>     Reporter: Uri Agassi

>
> When you run velocity using external-dir ClassLoader (by putting it in the -
> Djava.ext.dir property in the java command line), you cannot use a class for 
> the LogSystem that is in the regular classpath (a NoClassDefFoundError will be 
> issued).
> This will happen every time that the velocity package is on a ClassLoader that 
> is higher in the hierarchy than the LogSystem class, due to the behaviour of 
> the ClassLoader.
> To resolve this, the Velocity.init should have an overloading with a 
> ClassLoader as parameter, and it should be used in every Class.forName in the 
> code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org