I try to deploy org.apache.aries.samples.blog.jdbc.eba-0.3.eba with
apache-karaf-2.2.9 and get the following error
BlueprintContainerImpl           | 9 - org.apache.aries.blueprint - 0.3.2 |
Bundle org.apache.aries.application.management is waiting for dependencies
[(objectClass=org.apache.aries.application.management.spi.resolve.DeploymentManifestManager)]
2012-08-21 09:22:18,634 | ERROR | raf-2.2.9/deploy | fileinstall                
     
| 6 - org.apache.felix.fileinstall - 3.2.4 | In main loop, we have serious
trouble
java.lang.NoSuchMethodError:
org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I
        at org.apache.aries.util.VersionRange.intersect(VersionRange.java:388)
        at
org.apache.aries.application.impl.VersionRangeImpl.intersect(VersionRangeImpl.java:145)
The only hint i found is under
http://computerfloss.com/2011/11/a-little-problem-in-the-osgi-version-class/

the signature of compareTo() method was changed (compareTo(Object) was
actually removed without being depreciated between OSGi 1.5 and 1.6),
causing formerly working code to become problematic. 

What would be the quickest way to solve this problem (e.g. cahange
Bundle-Version-Info in MANIFEST.MF?) because in the Class
http://svn.apache.org/repos/asf/aries/tags/org.apache.aries.util-0.3.1/src/main/java/org/apache/aries/util/VersionRange.java
I don't want to change all compareTo.
Any idea or help appriciated what component causes this API-Change.
Is it Felix?
Thanks
Frank




--
View this message in context: 
http://karaf.922171.n3.nabble.com/java-lang-NoSuchMethodError-org-osgi-framework-Version-compareTo-Lorg-osgi-framework-Version-tp4025745.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Reply via email to