-
Jul 11th, 2007, 11:58 AM
#1
Spring datasource inside AAR
I'm trying to setup a datasource to run inside an AAR. I'm using the SpringInit class from the Axis 2 documentation. I have not modified the class. My datasource defined in the application context is as follows:
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
<property name="driverClassName"><value>oracle.jdbc.driver.O racleDriver</value></property>
<property name="url"><value>URL</value></property>
<property name="username"><value>USER</value></property>
<property name="password"><value>PASSWORD</value></property>
</bean>
The big long stack trace is below. Any ideas?
org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
at org.apache.axis2.deployment.repository.util.Archiv eReader.processServiceGroup(ArchiveReader.java:147 )
at org.apache.axis2.deployment.ServiceDeployer.deploy (ServiceDeployer.java:79)
at org.apache.axis2.deployment.DeploymentEngine.doDep loy(DeploymentEngine.java:582)
at org.apache.axis2.deployment.repository.util.WSInfo List.update(WSInfoList.java:201)
at org.apache.axis2.deployment.RepositoryListener.upd ate(RepositoryListener.java:271)
at org.apache.axis2.deployment.RepositoryListener.che ckServices(RepositoryListener.java:189)
at org.apache.axis2.deployment.DeploymentEngine.loadS ervices(DeploymentEngine.java:110)
at org.apache.axis2.deployment.WarBasedAxisConfigurat or.loadServices(WarBasedAxisConfigurator.java:257)
at org.apache.axis2.context.ConfigurationContextFacto ry.createConfigurationContext(ConfigurationContext Factory.java:74)
at org.apache.axis2.transport.http.AxisServlet.initCo nfigContext(AxisServlet.java:486)
at org.apache.axis2.transport.http.AxisServlet.init(A xisServlet.java:406)
at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4230)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:714)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:736)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:448)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:433)
Caused by: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
at org.apache.axis2.deployment.ServiceGroupBuilder.po pulateServiceGroup(ServiceGroupBuilder.java:103)
at org.apache.axis2.deployment.repository.util.Archiv eReader.buildServiceGroup(ArchiveReader.java:106)
at org.apache.axis2.deployment.repository.util.Archiv eReader.processServiceGroup(ArchiveReader.java:140 )
... 36 more
Caused by: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
at org.apache.axis2.deployment.ServiceBuilder.populat eService(ServiceBuilder.java:381)
at org.apache.axis2.deployment.ServiceGroupBuilder.po pulateServiceGroup(ServiceGroupBuilder.java:98)
... 38 more
Caused by: org.apache.axis2.deployment.DeploymentException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
at org.apache.axis2.deployment.ServiceBuilder.loadSer viceLifeCycleClass(ServiceBuilder.java:458)
at org.apache.axis2.deployment.ServiceBuilder.populat eService(ServiceBuilder.java:176)
... 39 more
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1066)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:857)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:378)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:283)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:313)
at service.SpringInit.startUp(SpringInit.java:35)
at org.apache.axis2.deployment.ServiceBuilder.loadSer viceLifeCycleClass(ServiceBuilder.java:454)
... 40 more
Caused by: PropertyAccessExceptionsException (1 errors)
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:781)
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:753)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1057)
... 48 more
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules