Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 94186 invoked from network); 31 Oct 2007 18:45:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 18:45:26 -0000 Received: (qmail 28457 invoked by uid 500); 31 Oct 2007 18:45:03 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 28439 invoked by uid 500); 31 Oct 2007 18:45:03 -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 28428 invoked by uid 99); 31 Oct 2007 18:45:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 11:45:03 -0700 X-ASF-Spam-Status: No, hits=-0.2 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.109.254.115] (HELO mail25.messagelabs.com) (193.109.254.115) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 31 Oct 2007 18:45:20 +0000 X-VirusChecked: Checked X-Env-Sender: Sunesh.Kumra@ericssonservices.co.uk X-Msg-Ref: server-9.tower-25.messagelabs.com!1193856282!5688576!1 X-StarScan-Version: 5.5.12.14.2; banners=.,-,- X-Originating-IP: [195.10.3.194] Received: (qmail 25555 invoked from network); 31 Oct 2007 18:44:42 -0000 Received: from rsvd-hutchinson-3g-uk-ltd-194.3.10.195.in-addr.arpa (HELO W104CS049N01.corpuk.net) (195.10.3.194) by server-9.tower-25.messagelabs.com with SMTP; 31 Oct 2007 18:44:42 -0000 Received: from W104CS046N02.corpuk.net (unverified) by W104CS049N01.corpuk.net (Clearswift SMTPRS 5.1.7) with ESMTP id for ; Wed, 31 Oct 2007 18:46:17 +0000 Received: from W104CS060V01.corpuk.net ([10.248.44.131]) by W104CS046N02.corpuk.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 31 Oct 2007 18:44:41 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C81BEE.18C2E3E8" Subject: Spring inside an AAR (Without a ServletContext) Date: Wed, 31 Oct 2007 18:44:39 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Spring inside an AAR (Without a ServletContext) thread-index: AcgW5iLm4Ev7zPUESkehKHgeGXysqAFBcyWQ References: <694316.28825.qm@web52405.mail.re2.yahoo.com> From: "Sunesh Kumra" To: X-OriginalArrivalTime: 31 Oct 2007 18:44:41.0650 (UTC) FILETIME=[190CE120:01C81BEE] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C81BEE.18C2E3E8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, =20 I=20have=20been=20struggling=20to=20get=20my=20Axis2=20service=20(not=20de= ployed=20in=20any Servlet=20Container)=20to=20work=20with=20Spring.=20I=20followed=20the=20e= xample=20in http://ws.apache.org/axis2/1_1/spring.html,=20but=20not=20much=20luck.=20D= id anyone=20get=20that=20example=20to=20work=20?=20I=20had=20to=20place=20the= =20spring.jar=20and axis2-jar=20in=20the=20root=20level=20for=20the=20Spring=20initialization=20= to=20even proceed=20anywhere.=20After=20that=20it=20got=20stuck=20with=20the=20follo= wing=20exceptions. The=20thing=20that=20puzzles=20me=20is=20that=20the=20classes=20that=20it=20= complains=20about are=20in=20the=20same=20jar=20as=20the=20classes=20that=20invoke=20them=20= !!=20 =20 ./springExample.aar ./META-INF ./META-INF/MANIFEST.MF ./META-INF/services.xml ./applicationContext.xml ./lib ./lib/axis2-spring-SNAPSHOT.jar ./lib/spring.jar ./spring ./spring/MyBean.class ./spring/MyBeanImpl.class ./spring/SpringAwareService.class ./spring/SpringInit.class=20 =20 Cheers, =20=20=20=20Sunesh =20 The=20stack=20trace=20of=20the=20error=20is: =20 Starting=20spring=20init [INFO]=20Refreshing org.springframework.context.support.ClassPathXmlApplicationCon text@17e4dee=20=20:=20display=20name [org.springframework.context.support.ClassPathXmlAppl icationContext@17e4dee=20=20];=20startup=20= date [Wed=20Oct=2031=2018:11:09=20GMT=202007];=20root=20of=20co ntext=20hierarchy [INFO]=20Loading=20XML=20bean=20definitions=20from=20class=20path=20resour= ce [applicationContext .xml] [INFO]=20Bean=20factory=20for=20application=20context [org.springframework.context.support .ClassPathXmlApplicationContext@17e4dee =20]: org.springframework.beans.factory.supp ort.DefaultListableBeanFactory@df83e5 =20 [INFO]=20Pre-instantiating=20singletons=20in org.springframework.beans.factory.support .DefaultListableBeanFactory@df83e5 =20:=20defining=20beans [applicationContext,reserveAm ountChargingService,myBean];=20root=20of=20factory=20hierarchy [INFO]=20Destroying=20singletons=20in org.springframework.beans.factory.support.Defaul tListableBeanFactory@df83e5=20=20: defining=20beans=20[applicationContext,reserveAmountCha rgingService,myBean];=20root=20of=20factory=20hierarchy org.springframework.beans.factory.CannotLoadBeanClassException:=20Error loading=20cl ass [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean=20with=20name=20'applicationContext'=20defined=20in=20class=20path=20= resource [applicationC ontext.xml]:=20problem=20with=20class=20file=20or=20dependent=20class;=20n= ested exception=20is=20jav a.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware =20 Caused=20by:=20java.lang.NoClassDefFoundError: org/springframework/context/Applicati onContextAware =20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.defineClass1(Native=20M= ethod) =20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.defineClass(ClassLoader= .java:620) =20=20=20=20=20=20=20=20at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 4) =20=20=20=20=20=20=20=20at=20java.net.URLClassLoader.defineClass(URLClassL= oader.java:260) =20=20=20=20=20=20=20=20at=20java.net.URLClassLoader.access$000(URLClassLo= ader.java:56) =20=20=20=20=20=20=20=20at=20java.net.URLClassLoader$1.run(URLClassLoader.= java:195) =20=20=20=20=20=20=20=20at=20java.security.AccessController.doPrivileged(N= ative=20Method) =20=20=20=20=20=20=20=20at=20java.net.URLClassLoader.findClass(URLClassLoa= der.java:188) =20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.loadClass(ClassLoader.j= ava:306) =20=20=20=20=20=20=20=20at=20sun.misc.Launcher$AppClassLoader.loadClass(La= uncher.java:276) =20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.loadClass(ClassLoader.j= ava:299) =20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.loadClass(ClassLoader.j= ava:299) =20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.loadClass(ClassLoader.j= ava:299) =20=20=20=20=20=20=20=20at=20java.lang.ClassLoader.loadClass(ClassLoader.j= ava:251) =20=20=20=20=20=20=20=20at org.springframework.util.ClassUtils.forName(ClassUtils.java:201) =20=20=20=20=20=20=20=20at org.springframework.beans.factory.support.AbstractBeanDefinition.reso lveBeanClass(AbstractBeanDefinition.java:327) =20=20=20=20=20=20=20=20at org.springframework.beans.factory.support.AbstractBeanFactory.resolve BeanClass(AbstractBeanFactory.java:1075) =20=20=20=20=20=20=20=20at org.springframework.beans.factory.support.DefaultListableBeanFactory. Ericsson=20Services=20Limited=20 Registered=20Office:=20Unit=204,=20Midleton=20Gate,=20Guildford=20Business= =20Park,=20Guildford,=20Surrey,=20GU2=208SG=20 Registered=20Number=20in=20England=20and=20Wales:=203709800=20 This=20communication=20is=20confidential=20and=20intended=20solely=20for=20= the=20addressee(s).=20Any=20unauthorised=20review,=20use,=20disclosure=20o= r=20distribution=20is=20prohibited.=20If=20you=20believe=20this=20message=20= has=20been=20sent=20to=20you=20in=20error,=20please=20notify=20the=20sende= r=20by=20replying=20to=20this=20transmission=20and=20delete=20the=20messag= e=20without=20disclosing=20it.=20Thank=20you.=20 Ericsson=20Services=20Limited=20does=20not=20enter=20into=20contracts=20or= =20contractual=20obligations=20via=20electronic=20mail,=20unless=20otherwi= se=20agreed=20in=20writing=20between=20the=20parties=20concerned. E-mail=20including=20attachments=20is=20susceptible=20to=20data=20corrupti= on,=20interruption,=20unauthorised=20amendment,=20tampering=20and=20viruse= s,=20and=20we=20only=20send=20and=20receive=20e-mails=20on=20the=20basis=20= that=20we=20are=20not=20liable=20for=20any=20such=20corruption,=20intercep= tion,=20amendment,=20tampering=20or=20viruses=20or=20any=20consequences=20= thereof.=20 ______________________________________________________________________ This=20email=20has=20been=20scanned=20by=20the=20MessageLabs=20Email=20Sec= urity=20System. For=20more=20information=20please=20visit=20http://www.messagelabs.com/ema= il=20 ______________________________________________________________________ ------_=_NextPart_001_01C81BEE.18C2E3E8 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable = Hello,   I=20have=20been=20struggling=20to=20get=20my=20= Axis2=20 service (not=20deployed=20in=20any=20Servlet=20Conta= iner)=20to=20work=20 with=20Spring.=20I=20followed=20the=20example=20in=20http://ws.apache.org/a= xis2/1_1/spring.html,=20 but=20not=20much=20luck.=20Did=20anyone=20get=20that=20example=20to=20work= =20?=20I=20had=20to=20place=20 the=20spring.jar=20and=20axis2-jar=20in=20the=20root=20level=20for=20the=20= Spring=20initialization=20to=20 even=20proceed=20anywhere.=20After=20that=20it=20got=20stuck=20with=20the=20= following=20exceptions.=20 The=20thing=20that=20puzzles=20me=20is=20that=20the=20classes=20that=20it=20= complains=20about=20are=20in=20the=20 same=20jar=20as=20the=20classes=20that=20invoke=20them=20!!=20  
./springExample.aar
./META-INF
./META-INF/MANIFEST.MF
./META-INF/services.xml
./applicationContext.xml
./lib
./lib/axis2-spring-SNAPSHOT.jar
./lib/spring.jar
./spring
./spring/MyBean.class
./spring/MyBeanImpl.class
./spring/SpringAwareService.class
./spring/SpringInit.class=20
  Cheers,    =20Sunesh=   The=20stack=20trace=20of=20the=20error=20is:   Starting=20spring=20init
[INFO]=20Refreshing= =20org.springframework.context.support.ClassPathXmlApplicatio= nCon
text@17e4dee:=20display=20name=20 [org.springframework.context.support.ClassPathXmlAppl
icationContext@17e4dee];=20startup=20date=20[We= d=20Oct=2031=20 18:11:09=20GMT=202007];=20root=20of=20co
ntext=20hierarchy
[INFO]=20= Loading=20XML=20bean=20 definitions=20from=20class=20path=20resource=20[applicationContext
.xml= ]
[INFO]=20Bean=20 factory=20for=20application=20context=20[org.springframework.context.suppo= rt
.ClassPathXmlApplicationContext@17e4dee]:=20 org.springframework.beans.factory.supp
ort.DefaultListableBeanFactory@df83e5
[INFO]= =20 Pre-instantiating=20singletons=20in=20org.springframework.beans.factory.su= pport
.DefaultListableBeanFactory@df83e5:=20defining=20= beans=20 [applicationContext,reserveAm
ountChargingService,myBean];=20root=20of=20= factory=20 hierarchy
[INFO]=20Destroying=20singletons=20in=20 org.springframework.beans.factory.support.Defaul
tListableBeanFactory@df83e5:=20defining=20beans= =20 [applicationContext,reserveAmountCha
rgingService,myBean];=20root=20of=20= factory=20 hierarchy
org.springframework.beans.factory.CannotLoadBeanClassExceptio= n:=20 Error=20loading=20cl
ass=20[org.apache.axis2.extensions.spring.receivers.ApplicationCo= ntextHolder]=20 for
bean=20with=20name=20'applicationContext'=20defined=20in=20class=20= path=20resource=20 [applicationC
ontext.xml]:=20problem=20with=20class=20file=20or=20depen= dent=20class;=20nested=20 exception=20is=20jav
a.lang.NoClassDefFoundError:=20org/springframework/context/ApplicationContextAware=
 
Caused=20by:=20java.lang.NoClassDefFoundError:=20= org/springframework/context/Applicati
onContextAware
  &nb= sp;    =20 at=20java.lang.ClassLoader.defineClass1(Native=20 Method)
       =20at=20 java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  &nb= sp;    =20 at=20 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4= )
       =20 at=20 java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 &nbs= p;     =20 at=20 java.net.URLClassLoader.access$000(URLClassLoader.java:56)
  =      =20 at=20 java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  &nbs= p;    =20 at=20java.security.AccessController.doPrivileged(Native=20 Method)
       =20at=20 java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  =      =20 at=20 java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   = ;    =20 at=20 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
 &nb= sp;     =20 at=20 java.lang.ClassLoader.loadClass(ClassLoader.java:299)
   = ;    =20 at=20 java.lang.ClassLoader.loadClass(ClassLoader.java:299)
   = ;    =20 at=20 java.lang.ClassLoader.loadClass(ClassLoader.java:299)
   = ;    =20 at=20 java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   = ;    =20 at=20 org.springframework.util.ClassUtils.forName(ClassUtils.java:201)
 =       =20 at=20 org.springframework.beans.factory.support.AbstractBeanDefinition.reso
l= veBeanClass(AbstractBeanDefinition.java:327)
    &n= bsp;  =20 at=20 org.springframework.beans.factory.support.AbstractBeanFactory.resolve
B= eanClass(AbstractBeanFactory.java:1075)
     &= nbsp; =20 at=20 org.springframework.beans.factory.support.DefaultListableBeanFactory. Ericsson=20Services=20Limited=20

Registered=20Office:=20Unit=204,=20Mi= dleton=20Gate,=20Guildford=20Business=20Park,=20Guildford,=20Surrey,=20GU2= =208SG=20<= /span>

Registered=20Number=20in=20England=20= and=20Wales:=203709800=20

This=20communication=20is=20confident= ial=20and=20intended=20solely=20for=20the=20addressee(s).=20Any=20unauthor= ised=20review,=20use,=20disclosure=20or=20distribution=20is=20prohibited.=20= If=20you=20believe=20this=20message=20has=20been=20sent=20to=20you=20in=20= error,=20please=20notify=20the=20sender=20by=20replying=20to=20this=20tran= smission=20and=20delete=20the=20message=20without=20disclosing=20it.=20Tha= nk=20you.=20
Ericsson=20Services=20Limited=20does=20not=20enter=20into=20contracts=20or= =20contractual=20obligations=20via=20electronic=20mail,=20unless=20otherwi= se=20agreed=20in=20writing=20between=20the=20parties=20concerned.
E-mail=20including=20attachments=20is=20susceptible=20to=20data=20corrupti= on,=20interruption,=20unauthorised=20amendment,=20tampering=20and=20viruse= s,=20and=20we=20only=20send=20and=20receive=20e-mails=20on=20the=20basis=20= that=20we=20are=20not=20liable=20for=20any=20such=20corruption,=20intercep= tion,=20amendment,=20tampering=20or=20viruses=20or=20any=20consequences=20= thereof.
=20=

 


______________________________________________________________________
= This=20email=20has=20been=20scanned=20by=20the=20MessageLabs=20Email=20Sec= urity=20System.
For=20more=20information=20please=20visit=20http://www.messagelabs.com/ema= il=20
______________________________________________________________________
= ------_=_NextPart_001_01C81BEE.18C2E3E8--