Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 70075 invoked from network); 3 Aug 2007 16:54:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Aug 2007 16:54:38 -0000 Received: (qmail 79878 invoked by uid 500); 3 Aug 2007 16:54:26 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 79858 invoked by uid 500); 3 Aug 2007 16:54:26 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 79838 invoked by uid 99); 3 Aug 2007 16:54:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 09:54:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robertlazarski@gmail.com designates 64.233.162.229 as permitted sender) Received: from [64.233.162.229] (HELO nz-out-0506.google.com) (64.233.162.229) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 16:54:21 +0000 Received: by nz-out-0506.google.com with SMTP id l1so337583nzf for ; Fri, 03 Aug 2007 09:54:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=U8TQCPPbZKcwUuGP/tbqWwBZCZ/PrW4pj/dK7E19iNl+AFD8Q8TRK4k1d6VLt9gLVdH0Xal5AQqTpCRCj4Rgi4oeJ1RzrR9EZ9IHzX5hMeUB2y1Yiy7IVOwPUSq6nQ/+HNc/nBoDGnGMD2V4DecsD06dCch9c3HFSaXdvFKcOpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FsFPuvgwxbhJhGZ+WgBcC1QMrzzI8HwdP4suhAVTgKRyc8YCXf0BaZPY8ch9ImMVgAZuS1p0JJjvADabwBCd8PnhxbbD87VaROGo3MjiGSv+YWMDm8YdrHsaWLASDFgz671Av5yk/oaZe3a3If4uD+krWtAeZwnB60FHbP4vUpo= Received: by 10.142.222.21 with SMTP id u21mr139616wfg.1186160036679; Fri, 03 Aug 2007 09:53:56 -0700 (PDT) Received: by 10.142.80.19 with HTTP; Fri, 3 Aug 2007 09:53:56 -0700 (PDT) Message-ID: Date: Fri, 3 Aug 2007 12:53:56 -0400 From: "robert lazarski" To: axis-user@ws.apache.org Subject: Re: AW: axis / hibernate woes In-Reply-To: <1CAE170E289AE9419B61D206A2444A3401817F47@srv-hermes.PSAD.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1CAE170E289AE9419B61D206A2444A3401817F3A@srv-hermes.PSAD.de> <1CAE170E289AE9419B61D206A2444A3401817F42@srv-hermes.PSAD.de> <46B35325.60702@regenstrief.org> <1CAE170E289AE9419B61D206A2444A3401817F47@srv-hermes.PSAD.de> X-Virus-Checked: Checked by ClamAV on apache.org 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/L= ocalSessionFactoryBean.html#setMappingDirectoryLocations(org.springframewor= k.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 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 aa= r. > This could be resolved by putting my application itself into Axis2/WEB-IN= F/lib > and then everything works (alas). > > But IHMO there must be a sane solution to have hibernate and my applicati= on > 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=E4ftsf=FChrung: 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