velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Raible <m...@raibledesigns.com>
Subject Re: Loading velocimacros library from inside package
Date Thu, 30 Oct 2003 20:07:17 GMT
I tried that - it didn't work.  Possibly because globalMacros.vm is in 
a jar file in WEB-INF/lib.  I'll try your patch.

Matt

On Oct 30, 2003, at 1:01 PM, Charles Oliver Nutter wrote:

> At a second glance, there could be another problem...I could be wrong, 
> but I think the resource loader uses filesystem pathing, so it would 
> be
>
> net/sf/navigator/displayer/globalMacros.vm
>
> You could give that a shot and see if it works. Since you have the 
> webapp loader, it might pick it up ok.
>
> - Charlie
>
> Matt Raible wrote:
>
>> If I put globalMacros.vm in WEB-INF/classes and set 
>> velocimacro.library  to globalMacros.vm - everything works.
>>
>> If I put globalMacros.vm in the net.sf.navigator.displayer package of 
>> a  jar file (that get's put in WEB-INF/lib) and set 
>> velocimacro.library to  net.sf.navigator.displayer.globalMacros.vm, I 
>> get:
>>
>> ERROR - SimpleLog4JLogSystem.logVelocityMessage(181) | 
>> ResourceManager  : unable to find resource 
>> 'net.sf.navigator.displayer.globalMacros.vm'  in any resource loader.


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


Mime
View raw message