Re: Changing WebMacro.properties location

paul <[email protected]> Wed, 02 Nov 2005 13:17:46 -0500
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
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