axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Loading a resource from the classpath in Axis2 with Spring
Date Fri, 09 Mar 2007 19:49:02 GMT
Ian--

The scenario seems to manifest by which context loader you are using to load the config file
where a WebApplicationContext classLoader will favour loading from /WEB-INF
but other contexts such as ClassPathXmlApplicationContext or FileSystemXmlApplicationContext
favour either locating the <config>file on CLASSPATH -or-
absolute path 
(usually specified as file:<some valid file URL path>)

Cheers,
Martin--
--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of the individual
or entity to which it is addressed and may contain information that is privileged, proprietary
, confidential and exempt from disclosure. If you are not the intended recipient, you are
notified that any dissemination, distribution or copying of this communication is strictly
prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant)
s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé
ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il
est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
----- Original Message ----- 
From: "Ian Shafer" <ian@1321.org>
To: <axis-user@ws.apache.org>
Sent: Friday, March 09, 2007 12:12 PM
Subject: Loading a resource from the classpath in Axis2 with Spring


> Hello,
> 
> I'm running Axis2 1.1.1 with Spring. I've got my ServiceTCCL set to 
> composite (It'd be great to see some documentation on this; I know there 
> are three settings, but I'm not exactly sure what each of them does). My 
> problem is that I'm using iBATIS, which tries to load resources from the 
> classpath. This doesn't work because it is not possible to set the 
> ClassLoader that iBATIS uses (I think). (In my ServiceLifeCycle.startUp, 
> I set Spring's ClassLoader like this: 
> )appCtx.setClassLoader(service.getClassLoader()).
> 
> So my question is, is there a solution for this? Right now, the only 
> thing I can think of is to put the resources in the servlet's 
> WEB-INF/classes directory.
> 
> Also, as a side note, I am able to load the first iBATIS config file 
> (because this is set in my Spring app context XML file), it's the files 
> that this first config file references that cannot be read (this happens 
> in iBATIS code). I tried to put all my config data in that first file, 
> but iBATIS will not let you do this.
> 
> Thanks for any help,
> 
> Ian
> 
> 
> ---------------------------------------------------------------------
> 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