axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Kilburn" <skilb...@geopraxis.ca>
Subject lib in .aar ignored?
Date Wed, 04 Jun 2008 21:00:12 GMT
In my testing of Spring, I added to the WeatherSpringService.aar the three
spring jars used by the service (spring-beans.jar, spring-context.jar,
spring-core.jar) in a /lib directory.  However, I get a NoClassDefFound
error using this approach.  It goes away if I drop the files into
axis2/WEB-INF/lib.

Does anyone have any advice?
_____________________________________________________________
Stephen Kilburn
GeoPraxis Inc.

Error: org.apache.axis2.deployment.DeploymentException: Error loading class
[org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for
bean with name 'applicationContext' defined in class path resource
[applicationContext.xml]: problem with class file or dependent class; nested
exception is java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGrou
p(ArchiveReader.java:151) at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(Deploy
mentFileData.java:136) at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:
597) at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.jav
a:144) at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.jav
a:330) at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListe
ner.java:227) at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.j
ava:131) at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAx
isConfigurator.java:284) at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
ext(ConfigurationContextFactory.java:82) at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.ja
va:511) at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:431) at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11
39) at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3956) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
60) at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
org.apache.catalina.core.StandardService.start(StandardService.java:448) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at
org.apache.catalina.startup.Catalina.start(Catalina.java:552) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by:
org.apache.axis2.deployment.DeploymentException: Error loading class
[org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for
bean with name 'applicationContext' defined in class path resource
[applicationContext.xml]: problem with class file or dependent class; nested
exception is java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware at
org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(Service
GroupBuilder.java:106) at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(
ArchiveReader.java:110) at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGrou
p(ArchiveReader.java:144) ... 37 more Caused by:
org.apache.axis2.deployment.DeploymentException: Error loading class
[org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for
bean with name 'applicationContext' defined in class path resource
[applicationContext.xml]: problem with class file or dependent class; nested
exception is java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.ja
va:431) at
org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(Service
GroupBuilder.java:101) ... 39 more Caused by:
org.apache.axis2.deployment.DeploymentException: Error loading class
[org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for
bean with name 'applicationContext' defined in class path resource
[applicationContext.xml]: problem with class file or dependent class; nested
exception is java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(Service
Builder.java:521) at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.ja
va:205) ... 40 more Caused by:
org.springframework.beans.factory.CannotLoadBeanClassException: Error
loading class
[org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for
bean with name 'applicationContext' defined in class path resource
[applicationContext.xml]: problem with class file or dependent class; nested
exception is java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanCla
ss(AbstractBeanFactory.java:1141) at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.predictBeanType(AbstractAutowireCapableBeanFactory.java:522) at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(
AbstractBeanFactory.java:1174) at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(
AbstractBeanFactory.java:754) at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:422) at
org.springframework.context.support.AbstractApplicationContext.finishBeanFac
toryInitialization(AbstractApplicationContext.java:729) at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:381) at
sample.spring.service.SpringInit.startUp(SpringInit.java:64) at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(Service
Builder.java:518) ... 41 more Caused by: java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware at
java.lang.ClassLoader.defineClass1(Native Method) at
java.lang.ClassLoader.defineClass(Unknown Source) at
java.security.SecureClassLoader.defineClass(Unknown Source) at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1853) at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:875) at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1330) at java.lang.ClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
java.lang.ClassLoader.loadClass(Unknown Source) at
org.springframework.util.ClassUtils.forName(ClassUtils.java:249) at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBean
Class(AbstractBeanDefinition.java:381) at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanCla
ss(AbstractBeanFactory.java:1135) ... 49 more Caused by:
java.lang.ClassNotFoundException:
org.springframework.context.ApplicationContextAware at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1363) at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1209) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 62
more 




---------------------------------------------------------------------
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