-
1. Re: Missing Constraint: Import-Package: org.springframework.beans...
theozaf Mar 10, 2011 4:30 AM (in response to jadexter)Did you find ane solution for this? I am facing the exact same problem.
-
2. Re: Missing Constraint: Import-Package: org.springframework.beans...
davsclaus Mar 10, 2011 5:12 AM (in response to jadexter)Fuse ESB 4.3.1 has been released. Maybe you can try using that release instead of 4.3.0.
-
3. Re: Missing Constraint: Import-Package: org.springframework.beans...
ffang Mar 11, 2011 1:54 AM (in response to theozaf)Hi,
Our FUSE ESB now use spring 3.0.x, so the older version archetype generate spring version range like version="[2.5.0,3.0.0)" doesn't work.
Please use 2011.01.0-fuse-00-00, like
mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-cxf-code-first-osgi-bundle \
-DarchetypeVersion=2011.01.0-fuse-00-00 \
-DgroupId=org.fusesource.example \
-DartifactId=cxf-code-first-bundle
as described here[2]
In the generated pom.xml you will see some version not filtered correctly
Then it should work, I already raise a issue ESB-1411[1] to track it.
http://fusesource.com/issues/browse/ESB-1411
http://fusesource.com/docs/esb/4.3.1/esb_deploy_osgi/DeployCxf-Running.html
Freeman
-
4. Re: Missing Constraint: Import-Package: org.springframework.beans...
jadexter Mar 11, 2011 2:47 PM (in response to ffang)Thank you, this did solve the issue. The POM needed to be changed per your recommendations.
-
5. Re: Missing Constraint: Import-Package: org.springframework.beans...
jadexter Mar 11, 2011 2:56 PM (in response to theozaf)See ffang's response. You may be using an older archetype as well that either omits or specifies a version of spring that is too old. As he points out, there are are still some issues with the archetype he's recommending, so you will need to update the dependency versions as he describes.
Interestingly, I just discovered the issue by running my bundle in the newly release version 4.3.0 on apache.org. The servicemix console displayed the same error in slightly different way, that made it clear to me that the spring version was too old.
Edited by: jadexter on Mar 11, 2011 7:54 PM