Is there a setUrl method on the object (not e.g. setURL). Also, are you sure the SybXADataSource implements Datasource? XADatasource certainly doesn't.
hope this helps david jencks On Mar 9, 2012, at 2:43 PM, James Gartner wrote: > Folks, I have a basic datasource-sybase.xml file: > > <?xml version="1.0" encoding="UTF-8"?> > <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"> > <bean id="dataSource" class="com.sybase.jdbc3.jdbc.SybXADataSource"> > > <property name="url" > value="jdbc:sybase:Tds:machine:port/dbname"/> > <property name="user" value="nnnn"/> > <property name="password" value="nnnn"/> > </bean> > > <service interface="javax.sql.DataSource" ref="dataSource"> > <service-properties> > <entry key="osgi.jndi.service.name" > value="jdbc/sybase"/> > </service-properties> > </service> > </blueprint> > (the machine/port/dbname/nnnn values are filled out correctly when I deploy) > When I put this into the deploy folder, I see in the log that: > > 2012-03-09 13:34:30,486 | ERROR | rint Extender: 2 | BlueprintContainerImpl > > | container.BlueprintContainerImpl 358 | 9 - > org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for > bundle datasource-sybase.xml > org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to > find property descriptor url on class com.sybase.jdbc3.jdbc.SybXADataSource > at > org.apache.aries.blueprint.container.BeanRecipe.getPropertyDescriptor(BeanRecipe.java:820)[9:org.apache.aries.blueprint:0 > > ... > ... > I've been unable to find any reference to what might be causing this -- any > pointers to help me determine the issues here?? Am I missing something in > my xml file? I did the install of the com.sybase.jconn/6.0.5 via the: > install -s wrap:mvn:com/sybase/jconn/6.0.5 and I DID get a bundle installed. > > Any/all help appreciated! > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/deploying-a-database-source-as-service-in-Karaf-2-2-5-tp3814097p3814097.html > Sent from the Karaf - User mailing list archive at Nabble.com.
