[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    Re: Loading velocimacros library from inside package
From:       Matt Raible <matt () raibledesigns ! com>
Date:       2003-10-30 20:18:19
[Download RAW message or body]

Unfortunately, this patch did not help - I guess I'll resort to putting 
it in WEB-INF/classes.  I think this is a pain in the ass, because now 
I have to tell users they need to download two files (globalMacros.vm 
and struts-menu.jar) instead of just one.  Oh well - thanks for the 
help.

Matt

On Oct 30, 2003, at 1:07 PM, Matt Raible wrote:

> 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


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic