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:[EMAIL PROTECTED] 
Gesendet: Dienstag, 16. September 2008 09:18
An: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to