axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grimm, Markus" <Gr...@juris.de>
Subject AW: Path to a resource inside an aar
Date Tue, 16 Sep 2008 09:21:40 GMT
Hi,

try something like this in your ServiceClass:

URL url = getClass().getClassLoader().getResource("template_name.xxx"); 
String path = url.getPath;

// your stuff
loadTemplate(path);



Hope that works. not tested ...

bye,
Markus


-----Urspr√ľngliche Nachricht-----
Von: VTARIN [mailto:vtarin@csd.com.es] 
Gesendet: Dienstag, 16. September 2008 09:18
An: axis-user@ws.apache.org
Betreff: Path to a resource inside an aar


Hello,

I have a service packaged and deployed as an aar archive. Inside it , i have
a freemarker template which is used by the service. 

When i try to load the template (only can do it by passing a path as
parameter), the file is never found, whatever path i use. Is there any way
to access this template using a path ? 
-- 
View this message in context: http://www.nabble.com/Path-to-a-resource-inside-an-aar-tp19506606p19506606.html
Sent from the Axis - User mailing list archive at Nabble.com.


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


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


Mime
View raw message