Re: Changing WebMacro.properties location

Holger King <[email protected]> Fri, 04 Nov 2005 08:41:10 +0100
Newsgroups gmane.comp.java.webmacro.user
Organization DIG Digital Informatin Group
Message-ID <[email protected]>
Hi Paul,

so I have to rebuild my own "webmacro.jar"? Please, tell me further 
details about your suggestion.

Greetings,
holger

paul wrote:

> or you can... i use this to send template order confirmations...
>
> WebMacro wm = new WM("/the/location/off/your/props");
>
> cheers
> paul
>
>
> Lane Sharman wrote:
>
>> Hi Holger,
>>
>> webmacro.properties needs to be in the classpath.
>>
>> Lane
>>
>> Holger King wrote:
>>
>>> Hi group,
>>>
>>> is it possible to change the location of the webmacro-specific 
>>> configuration file "WebMacros.properties" from WEB-INF/classes to 
>>> WEB-INF/classes/appconfig. Of course, then it's stored out of the 
>>> classpath. But how to tell the application to find it there? I 
>>> always get the following error message:
>>>
>>> 2005-11-02 12:02:18,964 Klasse: WebMacroServlet   * wm *  - Unable 
>>> to load resource
>>> org.webmacro.NotFoundException: 
>>> org.webmacro.resource.BrokerTemplateProviderHelper@970c0e could not 
>>> locate 128776
>>>     at 
>>> org.webmacro.resource.BrokerTemplateProviderHelper.load(BrokerTemplateProviderHelper.java:148) 
>>>
>>>     at 
>>> org.webmacro.resource.TemplateProvider.load(TemplateProvider.java:175)
>>>     at 
>>> org.webmacro.resource.CachingProvider.load(CachingProvider.java:111)
>>>     at 
>>> org.webmacro.resource.SMapCacheManager.get(SMapCacheManager.java:244)
>>>     at 
>>> org.webmacro.resource.CachingProvider.get(CachingProvider.java:101)
>>>     at org.webmacro.WM.getTemplate(WM.java:261)
>>>     at org.webmacro.servlet.WMServlet.getTemplate(WMServlet.java:372)
>>>     at 
>>> de.dig.albatros.webmacro.WebMacroServlet.handle(WebMacroServlet.java:101) 
>>>
>>>     at org.webmacro.servlet.WMServlet.doRequest(WMServlet.java:255)
>>>     at org.webmacro.servlet.WMServlet.doGet(WMServlet.java:195)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>
>>> But I'm sure, you can help me! Thanx in advance!
>>>
>>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Webmacro-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/webmacro-user
>


-- 
Herzliche Grüße,
Holger King

---------------------------------------------------
DIG Digitale Medienberatungs- und Produktions- GmbH
Neckarstrasse 1-5, D-78727 Oberndorf, Germany
Phone: +49 7423 8750-0
Fax: +49 7423 8750-23
mailto:[email protected]
http://www.dig.de
---------------------------------------------------



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php