axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <>
Subject Re: AW: axis / hibernate woes
Date Fri, 03 Aug 2007 16:53:56 GMT
Putting hibernate in the AAR is a special case. It can be done, but
its far easier - as you found out - to put the files under
WEB-INF/classes and the jars in WEB-INF/lib

You can't put hibernate config files inside the AAR because those
config files need to be on the classpath, per the way hibernate loads
those files by default. You can exapnd the AAR though...

What you can do, per Spring is add directories to the classpath, ie,
expand the AAR in WEB-INF/services or WEB-INF/classes/myConfigs[])

You of course don't need Spring to run Hibernate - there probably is a
way to do the same thing via just hibernate - you'll have to google on
that though since I prefer to use Spring to configure Hibernate.


On 8/3/07, Zerbst, Carsten <> wrote:
> Hello Tammy,
> when I put the complete set of hibernate jars into the Axis2/WEB-INF/lib, then
> hibernate is not able to access my mapping descriptions located in the aar.
> This could be resolved by putting my application itself into Axis2/WEB-INF/lib
> and then everything works (alas).
> But IHMO there must be a sane solution to have hibernate and my application
> and my mappings files in the aar and not distributed around the Axis2/WEB-INF/lib and
Axis2/WEB-INF/classes ?
> Thanks so far, Carsten
> ________________________________________________
> PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt
> HR: Amtsgericht Darmstadt, HRB 8805
> Geschäftsführung: Dr. Markus Sachers, Reinhard Betz
> ________________________________________________
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message