Changing WebMacro.properties location

Holger King <[email protected]> Wed, 02 Nov 2005 12:09:19 +0100
Newsgroups gmane.comp.java.webmacro.user
Organization DIG Digital Informatin Group
Message-ID <[email protected]>
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!

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