Excellent news, glad it worked it out. FYI, there is a axis2 1.3RC1 that you
may want to try. There should be an official release in a few weeks.

Robert

On 7/11/07, Brian Kates <[EMAIL PROTECTED]> wrote:


I think I solved the problem.  I didn't have the Oracle jar in my tomcat
common/lib folder.  I didn't have it there for my Axis 1.1 WAR deployment
either, but anyway I put it there and my service deploys.  Still not sure if
I actually have a datasource (I'll test that out next), but at least it
deploys!

-Brian




 *"robert lazarski" <[EMAIL PROTECTED]>*

07/11/2007 03:01 PM  Please respond to
[email protected]

  To
[email protected]  cc

 Subject
Re: [Axis2] Spring datasource inside AAR






Are you saying the same exact AAR worked in axis 1.1 but doesn't in axis2
1.2 ? If so, can you try axis2 1.3 RC1 ?

Robert

On 7/11/07, *Brian Kates *<[EMAIL PROTECTED] <[EMAIL PROTECTED]>> wrote:

I know that datasource with that driver works because I copied it directly
from an Axis 1.1 project.  I'm not entirely sure how to package an axis
deployment outside of an AAR.  I'll have to poke around for an example.
 I'll let you know if I can run the project outside of an AAR...

Thanks.

-Brian


  *"robert lazarski" <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
*>*

07/11/2007 11:10 AM
  Please respond to*
[EMAIL PROTECTED] <[email protected]>


  To
[EMAIL PROTECTED] <[email protected]>  cc

 Subject
Re: [Axis2] Spring datasource inside AAR








It looks like your oracle driver doesn't accept those properties. I
think you need to use the 10i drivers, even with 9i. That's what I
did. My version looks identical at first glance.

  <bean id="myDataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
      <property name="driverClassName">
          <value>oracle.jdbc.driver.OracleDriver</value>
      </property>

      <property name="url">
          
<value>*jdbc:oracle:thin:@luke.copperkey.com:1521*<http://jdbc:oracle:thin:@luke.copperkey.com:1521/>
:zion</value>
      </property>

      <property name="username">
           <value>SMBDEMOGUSER</value>
      </property>

      <property name="password">
           <value>SMBDEMOGUSER</value>
      </property>

  </bean>

I know that works with axis2 1.2 and a recent svn. Note, I didn't
deploy inside the AAR though. You might try outside the AAR first, and
then let us know as it may be a bug. I do know I tested axis2 1.1 with
mysql inside the AAR. There has been a few classloader issues with
jdbc at certain points but until now those all seemed flushed out.

HTH,
Robert

On 7/11/07, Brian Kates <[EMAIL PROTECTED] <[EMAIL PROTECTED]>> wrote:
>
> 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.DriverManagerDataSource">
>         <property
> name="driverClassName"><value>oracle.jdbc.driver.OracleDriver
</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.ArchiveReader.processServiceGroup
(ArchiveReader.java:147)
>         at
> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java
:79)
>         at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(
DeploymentEngine.java:582)
>         at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(
WSInfoList.java:201)
>         at
> org.apache.axis2.deployment.RepositoryListener.update(
RepositoryListener.java:271)
>         at
> org.apache.axis2.deployment.RepositoryListener.checkServices(
RepositoryListener.java:189)
>         at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(
DeploymentEngine.java:110)
>         at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(
WarBasedAxisConfigurator.java:257)
>         at
>
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:74)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
AxisServlet.java:486)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:406)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1139)
>         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:760)
>         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: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(HostConfig.java:1138)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.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(
NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         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:
> 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.populateServiceGroup(
ServiceGroupBuilder.java:103)
>         at
>
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup
(ArchiveReader.java:106)
>         at
>
org.apache.axis2.deployment.repository.util.ArchiveReader.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.populateService(
ServiceBuilder.java:381)
>         at
> org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(
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.loadServiceLifeCycleClass(
ServiceBuilder.java:458)
>         at
> org.apache.axis2.deployment.ServiceBuilder.populateService(
ServiceBuilder.java:176)
>         ... 39 more
> Caused by:
> org.springframework.beans.factory.BeanCreationException:
> 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.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1066)
>         at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:857)
>         at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:378)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:233)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
AbstractBeanFactory.java:145)
>         at
>
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:283)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(
AbstractApplicationContext.java:313)
>         at service.SpringInit.startUp(SpringInit.java:35)
>         at
> org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(
ServiceBuilder.java:454)
>         ... 40 more
> Caused by: PropertyAccessExceptionsException (1 errors)
>         at
> org.springframework.beans.BeanWrapperImpl.setPropertyValues(
BeanWrapperImpl.java:781)
>         at
> org.springframework.beans.BeanWrapperImpl.setPropertyValues(
BeanWrapperImpl.java:753)
>         at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1057)
>         ... 48 more
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> For additional commands, e-mail: [EMAIL PROTECTED]<[EMAIL PROTECTED]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]<[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]<[EMAIL PROTECTED]>


--------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED]<[EMAIL PROTECTED]>For additional 
commands, e-mail:
[EMAIL PROTECTED] <[EMAIL PROTECTED]>

--------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]

Reply via email to