velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr. <ge...@optonline.net>
Subject Re: Loading velocimacros library from inside package
Date Thu, 30 Oct 2003 11:39:59 GMT

On Wednesday, October 29, 2003, at 05:43 PM, Matt Raible wrote:

> I have a globalMacros.vm file that since in my (expanded) webapp at 
> WEB-INF/classes/net/sf/navigator/displayer/.  I'm trying to load it 
> using the following:
>
> velocimacro.library = net.sf.navigator.displayer.globalMacros.vm
>
> Currently, I have classpath and webapp resource loaders configured.  
> It doesn't find this file in any resource loaders, but does find it 
> when I do:
>
> velocimacro.library = globalMacros.vm

How?

Can you send the whole vel.props?

>
> After reading the documentation, it appears that the classpath 
> resource loader will look in WEB-INF/classes and in WEB-INF/lib/*.jar 
> for resources - which would explain my error.  Is this correct?  If 
> so, I guess I'll build a jar file of the relevant .class files and go 
> that route.

-- 
Geir Magnusson Jr                                   203-247-1713(m)
geirm@optonline.net


---------------------------------------------------------------------
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