Uses violtion with cxf-dosgi 1.4 in virgo 3.6 [message #1066933] |
Fri, 05 July 2013 08:14 |
Jay Huang Messages: 20 Registered: February 2012 |
Junior Member |
|
|
Hi,
I am using virgo 3.6 and trying to use apache cxf distributed osgi. I downloaded 'cxf-dosgi-ri-singlebundle-distribution-1.4.0', and put in repository/usr,
on startup, it throws uses violation error:
Resolver report:
An Import-Package could not be resolved. Resolver error data <Import-Package: javax.servlet; version="0.0.0">. Caused by missing constraint in bundle <com.javcly.jms.activemq_1.0.0>
constraint: <Import-Package: javax.servlet; version="0.0.0"> constrained to bundle <cxf-dosgi-ri-singlebundle-distribution> constrained bundle version range "[1.4.0,1.4.0]"
Uses violation: <Import-Package: javax.servlet; version="[2.3.0,4.0.0)"> in bundle <cxf-dosgi-ri-singlebundle-distribution_1.4.0[1373011492980]>
Found conflicts:
package 'javax.servlet.descriptor_2.6.0' in bundle 'javax.servlet_3.0.0.v201112011016[109]' used by 'javax.servlet_2.6.0' in bundle 'javax.servlet_3.0.0.v201112011016[109]'
conflicts with 'javax.servlet.descriptor_2.5.0' in bundle 'cxf-dosgi-ri-singlebundle-distribution_1.4.0[1373011492980]'
package 'javax.servlet.annotation_2.6.0' in bundle 'javax.servlet_3.0.0.v201112011016[109]' used by 'javax.servlet_2.6.0' in bundle 'javax.servlet_3.0.0.v201112011016[109]'
conflicts with 'javax.servlet.annotation_2.5.0' in bundle 'cxf-dosgi-ri-singlebundle-distribution_1.4.0[1373011492980]'
Then I extract the cxf-dosgi jar and open the MANIFEST.MF, change the 'uses' parts of javax.servlet.* to version 2.6.0, rejar it and replace the old one.
This time it throws an import constraint error:
Resolver report:
An Import-Package could not be resolved. Resolver error data <Import-Package: org.osgi.service.log; version="0.0.0">. Caused by missing constraint in bundle <com.javcly.jms.activemq_1.0.0>
constraint: <Import-Package: org.osgi.service.log; version="0.0.0"> constrained to bundle <cxf-dosgi-ri-singlebundle-distribution> constrained bundle version range "[1.4.0,1.4.0]"
It seems dropping the cxf jar into virgo does not 'just work', am I using a wrong version of cxf-dosgi? Has anyone successfully get cxf-dosgi 1.4 working with virgo 3.6?
Thanks.
Jay
|
|
|
|
Powered by
FUDForum. Page generated in 0.03258 seconds