java - Package uses conflict: Import-Package with jasperreports -


I have a common "usage conflict" problem in OSGi, I am new to OSG, if it is very simple then I am sorry. I have read and asked questions, I have also read this, which tell in more detail about debugging these problems; Still, I can not understand that I do not get duplicate exports (while referring to that last article, "there should always be more than one supplier who uses you to compromise the obligation.")

The complete error is

  Initial @ Reference: File: ../../ Dev / My / Target / Dependency / Jasperport-3.7.1- osgi.jar [151] Package Conflict Uses: Import-Package: org.apache.commons .collections.comparators; Version = "0.0.0"   

This is the relevant snippet of jasper manifest. It is too long to fully paste

  export-package: .., net.sf.jasperreports.crosstabs.fill.calculation; Usage: = "org.apache.commons.collections, net.sf.jasperreports.engine, org.apache.commons.collections.comparators, org.apache.commons.logging, ..."   

And here the output of package is: Org.apache.commons.collections.comparators to show that the package has been exported properly and only once

  Osgi & gt; Package org.apache.commons.collections.comparators org.apache.commons.collections.comparators; Version = "3.2.0" & lt; Org.apache.commons.collections_3.2.0 [869] & gt;   

Any ideas? Something else I can try? I really doubt this, but Equinox complains that the exported version is 3.2.0 but uses version 0.0.0?

Try to run it on Apache Felix, it provides a comprehensive trace when it detects conflict is.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -