Hi You need some additional .jars on the classpath. So you need to install more .jars into the OSGi.
You should look at the exception: Cannot > find class [org.apache.commons.dbcp.BasicDataSource] for bean with name > 'xxxxDB" Where it states that it cannot find the class above. Then you need to find the .jar that contains this .class and install it. Some of the .jars can be found here: http://servicemix.apache.org/SMX4/bundles-repository.html On Thu, Apr 23, 2009 at 9:19 PM, Matteo Redaelli <matteo.redae...@libero.it> wrote: > > ciao > > I'm trying to port a maven project to the osgi container servicemix4.0. I > created a new project with > > mvn archetype:create \ > -DarchetypeGroupId=org.springframework.osgi \ > -DarchetypeArtifactId=spring-osgi-bundle-archetype \ > -DarchetypeVersion=1.2.0-m2 \ > -DgroupId=pire.upms \ > -DartifactId=pire-upms-users > -Dversion=1.0-SNAPSHOT > > I installed all supposed camel features > > s...@root:/> osgi/list|grep camel > [ 65] [Active ] [ ] [ 60] camel-core (1.6.0) > [ 66] [Active ] [ ] [ 60] camel-osgi (1.6.0) > [ 67] [Active ] [ ] [ 60] camel-spring (1.6.0) > [ 159] [Active ] [ ] [ 60] camel-ognl (1.6.0) > [ 160] [Active ] [ ] [ 60] camel-jms (1.6.0) > [ 162] [Active ] [ ] [ 60] camel-quartz (1.6.0) > [ 164] [Active ] [ ] [ 60] camel-jdbc (1.6.0) > [ 170] [Active ] [ ] [ 60] camel-velocity (1.6.0) > [ 172] [Active ] [ ] [ 60] camel-juel (1.6.0) > [ 182] [Active ] [ ] [ 60] camel-sql (1.6.0) > [ 186] [Active ] [ ] [ 60] camel-spring-integration (1.6.0) > [ 195] [Active ] [ ] [ 60] camel-jpa (1.6.0) > [ 201] [Active ] [ ] [ 60] camel-ibatis (1.6.0) > > I also added the same dependences in pom.xml I used in my old camel project > > but when I deploy my .jar in deploy folder I get > > "Error creating bean with name 'camelContext:beanPostProcessor': Cannot > resolve reference to bean 'camelContext' while setting bean property > 'camelContext'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'camelContext': Invocation of init method failed; nested exception > is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot > find class [org.apache.commons.dbcp.BasicDataSource] for bean with name > 'xxxxDB" > > > I have a similar error if I switch in my bean definition of datasource > > from > class="org.apache.commons.dbcp.BasicDataSource" > to > class="org.springframework.jdbc.datasource.DriverManagerDataSource" > > What's worng? missing features/bundles? > > Regards > Matteo Redaelli > http://www.redaelli.org/matteo/ > > > > -- > View this message in context: > http://www.nabble.com/porting-camel-routers-%28camel-jdbc%29-to-servicemix4.0-tp23197888p23197888.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus Apache Camel Reference Card: http://refcardz.dzone.com/refcardz/enterprise-integration