-
1. Re: camel project deploy problem
ffang May 4, 2014 9:54 PM (in response to longsha1223)Hi,
You need install spring-jdbc feature in that fabric container which can provide org.springframework.jdbc.datasource package.
Freeman
-
2. Re: camel project deploy problem
longsha1223 May 5, 2014 11:45 PM (in response to ffang)Hi ,
I have do some command as below :
osgi:install -s mvn:org/springframework/spring-jdbc/4.0.3.RELEASE
but I got some exception :
Bundle IDs:
Error executing command: Error installing bundles:
Unable to install bundle mvn:org/springframework/spring-jdbc/4.0.3.RELEASE
And I do another install command :
osgi:install file:/home/neo/.m2/repository/org/springframework/spring-jdbc/4.0.3.RELEASE/spring-jdbc-4.0.3.RELEASE.jar
it is work !! But the deployed bean still have same exception when start.
What can I do for this ???
another qustion :
if I put mvn: before my url , it means it will to get jar from maven's repository or not ?
Thanks ,
Best Regards.
-
3. Re: camel project deploy problem
ffang May 6, 2014 12:59 AM (in response to longsha1223)Hi,
The error
osgi.wiring.package=org.springframework.jdbc.datasource)(version>=3.0.0)(!(version>=4.0.0))
means you need install spring-jdbc version 3.x
so please use
features:install spring-jdbc (which will install spring-jdbc 3.2.8 for JBoss FUSE 6.1)
And for your another question
using mvn: will search the artifacts from maven repo, (both local and remote), you can find the pre-defined maven repo from etc/org.ops4j.pax.url.mvn.cfg
Freeman
-
4. Re: camel project deploy problem
davsclaus May 6, 2014 1:36 AM (in response to ffang)1 of 1 people found this helpfulYou should install spring-jdbc using a feature
features:install spring-jdbc
And the correct spring bundle(s) is installed for you.
-
5. Re: camel project deploy problem
longsha1223 May 6, 2014 3:41 AM (in response to ffang)Hi ,
When I use the command : features:install spring-jdbc , it occurs error message as below :
Error executing command: The container is managed by fabric, please use fabric:profile-edit --features spring-jdbc/0.0.0 target-profile instead. See fabric:profile-edit --help for more information.
When I use the command :
fabric:profile-edit --features spring-jdbc/3.2.8 NeoDemo
It's work
But when I start my bean that I deployed , I got the exception message as below :
org.osgi.service.resolver.ResolutionException: Unable to resolve dummy/0.0.0: missing requirement [dummy/0.0.0] osgi.identity; osgi.identity=spring-jdbc; type=karaf.feature; version=3.2.8
What can i do ??
The difference between features:install spring-jdbc and fabric:profile-edit --features is ??
Thanks ,
Best Regards.
-
6. Re: camel project deploy problem
ffang May 6, 2014 3:56 AM (in response to longsha1223)Hi,
The exact spring version is 3.2.8.RELEASE_1, so please use 3.2.8.RELEASE_1 instead of 3.2.8 when you use
fabric:profile-edit --features
And about the question
The difference between features:install spring-jdbc and fabric:profile-edit --features is ??
Normally features:install is used in standalone fuse container, if the container is managed by fabric, you should add that feature to the fabric profile.
Freeman