Your service is loaded by the jar classloader of the service archive.
So in your skelton if you do something like

this.getClass().getClassLoader().getResourceAsStream("hibernate.cfg.xml");

should work

Thanks
Srinath

On 10/9/06, Christoph Brill <[EMAIL PROTECTED]> wrote:
Hi list,

I'm trying to use Hibernate 3 within an AAR. The packaging is done with
a build file generated by the Axis2 Plugin for eclipse with some
modifications. I need to put a file named "hibernate.cfg.xml" in "/" in
the classpath (or somewhere else where I can find it).

My AAR looks like this:

ROOT
|- de
|  \- huebinet
|     \- ....
|- META-INF
\- hibernate.cfg.xml

When I try to access "/hibernate.cfg.xml" I get a FileNotFoundException.
Where Is the place to put my config-file?

Thanks in advance,
  Christoph Brill


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




--
============================
Srinath Perera:
  Indiana University, Bloomington
  http://www.cs.indiana.edu/~hperera/
  http://www.bloglines.com/blog/hemapani

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

Reply via email to