You need to install the JDBC driver first.
Then afterwards your own application.


On Wed, Feb 26, 2014 at 9:49 AM, contactreji <[email protected]> wrote:
> Hi Claus
>
> I have modified my POM to look like
>
>         <plugin>
>                                 <groupId>org.apache.felix</groupId>
>                                 <artifactId>maven-bundle-plugin</artifactId>
>                                 <version>2.3.4</version>
>                                 <extensions>true</extensions>
>                                 <configuration>
>
>                                         <instructions>
>                                                 
> <Import-Package>org.apache.activemq.xbean,
>                                                         
> javax.activation;version=1.1,
>                                                         
> org.apache.activemq.spring,
>                                                         
> org.apache.activemq.broker,
>                                                         
> org.apache.activemq.security,
>                                                         
> org.apache.activemq.jaas,
>                                                         
> org.apache.activemq.pool,
>                                                         
> org.apache.activemq.camel.component,
>                                                         
> org.apache.camel.component.jms,
>                                                         *</Import-Package>
>                                                 
> <DynamicImport-Package>*</DynamicImport-Package>
>                                         </instructions>
>                                 </configuration>
>                         </plugin>
>
>
> The MANIFEST file too contains the DynamicImport details
>
> Manifest-Version: 1.0
> Export-Package: com.ibm.maximo;uses:="javax.xml.bind.annotation,javax.
>  xml.bind,javax.xml.datatype,com.ibm.maximo.runtime,javax.xml.bind.ann
>  otation.adapters,javax.xml.namespace",com.ibm.maximo.runtime;uses:="j
>  avax.xml.bind.annotation.adapters,javax.xml.bind",com.ibm.maximo.wsdl
>  .otecwebservices_otecdowntime;uses:="javax.xml.ws,javax.xml.namespace
>  ,javax.jws.soap,com.ibm.maximo,javax.jws,javax.xml.bind.annotation",c
>  om.outotec.asset.downtime;uses:="javax.activation,org.apache.camel,or
>  g.apache.log4j,org.springframework.beans.factory.annotation,org.apach
>  e.cxf.ws.addressing,org.apache.cxf.binding,org.apache.cxf.message,org
>  .apache.cxf.configuration.security,org.apache.cxf.transport,org.apach
>  e.cxf.binding.soap.interceptor,org.apache.cxf.endpoint,org.apache.cxf
>  .interceptor,javax.xml.parsers,javax.xml.transform.dom,org.w3c.dom,co
>  m.ibm.maximo.wsdl.otecwebservices_otecdowntime,com.ibm.maximo,javax.s
>  ql,javax.xml.transform,javax.xml.transform.stream,javax.xml.bind,outo
>  tec.pi.mes.id51.plantstanstillhours",com.outotec.serializationclasses
>  ;uses:="com.ibm.maximo,org.apache.camel,javax.xml.bind,javax.jms,org.
>  apache.activemq",com.test;uses:="javax.sql,org.apache.camel,org.sprin
>  gframework.jdbc.core",outotec.pi.mes.id51.plantstanstillhours;uses:="
>  javax.jws.soap,com.ibm.maximo,javax.jws,javax.xml.bind.annotation,jav
>  ax.xml.ws,javax.xml.namespace"
> Built-By: RE267981
> Tool: Bnd-1.15.0
> Bundle-Name: Plant StandStill hours/Asset Down Time
> Created-By: Apache Maven Bundle Plugin
> *DynamicImport-Package: **
> Build-Jdk: 1.7.0_04
> Bundle-Version: 1.0.0
> Bnd-LastModified: 1393403229333
> Bundle-ManifestVersion: 2
>
>
> Still I get the same error.
>
> Can you advice me if I need to add any spl maven dependency apart from those
> added as show
> <dependencies>
>
>                 <dependency>
>                         <groupId>org.osgi</groupId>
>                         <artifactId>org.osgi.core</artifactId>
>                         <version>4.3.0</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>hsqldb</groupId>
>                         <artifactId>hsqldb</artifactId>
>                         <version>1.8.0.10</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>mysql</groupId>
>                         <artifactId>mysql-connector-java</artifactId>
>                         <version>5.1.6</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-sql</artifactId>
>                         <version>2.10.0.fuse-71-047</version>
>                 </dependency>
>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-core</artifactId>
>                         <version>2.10.0.fuse-71-047</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-cxf</artifactId>
>                         <version>2.10.0.fuse-71-047</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>log4j</groupId>
>                         <artifactId>log4j</artifactId>
>                         <version>1.2.16</version>
>                 </dependency>
>
>
>                 <dependency>
>                         <groupId>org.slf4j</groupId>
>                         <artifactId>slf4j-api</artifactId>
>                         <version>1.6.1</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.slf4j</groupId>
>                         <artifactId>slf4j-log4j12</artifactId>
>                         <version>1.6.1</version>
>                 </dependency>
>
>
>                 <dependency>
>                         <groupId>org.apache.cxf</groupId>
>                         <artifactId>cxf-rt-transports-http-jetty</artifactId>
>                         <version>2.6.0.fuse-71-047</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-test-spring</artifactId>
>                         <version>2.10.0.fuse-71-047</version>
>                         <scope>test</scope>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>junit</groupId>
>                         <artifactId>junit</artifactId>
>                         <version>4.10</version>
>                         <scope>test</scope>
>                 </dependency>
>
>
>
>
>
>                 <dependency>
>                         <groupId>commons-lang</groupId>
>                         <artifactId>commons-lang</artifactId>
>                         <version>2.6</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.commons</groupId>
>                         <artifactId>commons-lang3</artifactId>
>                         <version>3.1</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-mail</artifactId>
>                         <version>2.10.6</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.servicemix.specs</groupId>
>                         
> <artifactId>org.apache.servicemix.specs.activation-api-1.1</artifactId>
>                         <version>2.1.0</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>javax.mail</groupId>
>                         <artifactId>mail</artifactId>
>                         <version>1.4</version>
>                 </dependency>
>
>
>                 <dependency>
>                         <groupId>org.apache.activemq</groupId>
>                         <artifactId>activemq-camel</artifactId>
>                         <version>5.8.0</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-mail</artifactId>
>                         <version>2.10.0.fuse-71-047</version>
>
>                 </dependency>
>
>
>
>
>                 <dependency>
>                         <groupId>commons-dbcp</groupId>
>                         <artifactId>commons-dbcp</artifactId>
>                         <version>20030825.184428</version>
>                 </dependency>
>
>
>         </dependencies>
>
> I have enabled camel-sql feature in the Jboss Fuse features too.
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/JDBC-Connection-object-in-Camel-Processor-tp5747896p5747996.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to