axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
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

http://www.springframework.org/docs/api/org/springframework/orm/hibernate/LocalSessionFactoryBean.html#setMappingDirectoryLocations(org.springframework.core.io.Resource[])

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.

HTH,
Robert

On 8/3/07, Zerbst, Carsten <Carsten.Zerbst@prostep.com> 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: 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