[ http://issues.apache.org/jira/browse/VELOCITY-461?page=all ]
Will Glass-Husain resolved VELOCITY-461.
----------------------------------------
Fix Version/s: 1.5
Resolution: Fixed
This is fixed in Velocity 1.5-beta. (download:
http://cvs.apache.org/dist/jakarta/velocity/ )
See Velocity-196.
This applies to templates loaded with ClasspathResourceLoader, custom
implementations of ResourceLoaders, Introspectors, property files loaded from
classpath, etc.
> Class loading issue
> -------------------
>
> Key: VELOCITY-461
> URL: http://issues.apache.org/jira/browse/VELOCITY-461
> Project: Velocity
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: any java env
> Reporter: Vladimir Goncharov
> Priority: Blocker
> Fix For: 1.5
>
>
> If Velocity.jar is loaded from the WL classpath then it cannot load resources
> from the war or ear. This applies to both template resources as well as to
> the loader of the resources loaders themselves e.g. custom
> ClasspathResourceLoader couldn't be loaded when velocity.jar was loaded from
> the WL app claspath and the custom class was loaded from the ear.
> In my view all appearances of this.getClass().getClassLoader() should be
> replaced by Thred.currentThread.getContextClassLoader()
> Thanks
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]