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.

Reply via email to