New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with package imports on Java 11 (com.sun.source.tree) #92

Closed
col-panic opened this Issue Jan 17, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@col-panic
Copy link

col-panic commented Jan 17, 2019

Somehow, there seems to be aproblem with com.sun.xml.bind.jaxb-osgi:2.4.0.b180830_0438 - it has a package dependency on both com.sun.source.tree and com.sun.source.util which I can't resolve. Due to this I am not able to build features containing this bundle.

The funny thing, however, at OSGI runtime it is resolved by org.eclipse.osgi - but org.eclipse.osgi does not formally export it, hence I is not seen as being satisfied?!?

@col-panic

This comment has been minimized.

Copy link
Author

col-panic commented Jan 17, 2019

Heres the osgi print out at runtime

com.sun.xml.bind.jaxb-osgi_2.4.0.b180830_0438 [720]
  Id=720, Status=ACTIVE      Data Root=/Users/marco/Development/elexis-3.8/ws/.metadata/.plugins/org.eclipse.pde.core/Medelexis [SNAPSHOT] (OS X) (Java11)/org.eclipse.osgi/720/data
  "No registered services."
  No services in use.
  Exported packages
    com.sun.codemodel; version="2.4.0.b1808300438"[exported]
    com.sun.codemodel.fmt; version="2.4.0.b1808300438"[exported]
    com.sun.codemodel.util; version="2.4.0.b1808300438"[exported]
    com.sun.codemodel.writer; version="2.4.0.b1808300438"[exported]
    com.sun.istack; version="3.0.7"[exported]
    com.sun.istack.localization; version="3.0.7"[exported]
    com.sun.istack.logging; version="3.0.7"[exported]
    com.sun.istack.tools; version="3.0.7"[exported]
    com.sun.tools.jxc; version="2.4.0.b1808300438"[exported]
    com.sun.tools.jxc.ap; version="2.4.0.b1808300438"[exported]
    com.sun.tools.jxc.api; version="2.4.0.b1808300438"[exported]
    com.sun.tools.jxc.api.impl.j2s; version="2.4.0.b1808300438"[exported]
    com.sun.tools.jxc.gen.config; version="2.4.0.b1808300438"[exported]
    com.sun.tools.jxc.model.nav; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngdatatype; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngdatatype.helpers; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.ast.builder; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.ast.om; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.ast.util; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.binary; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.binary.visitor; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.digested; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.dt; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.dt.builtin; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.nc; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.parse; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.parse.compact; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.parse.host; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.parse.xml; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.util; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.xml.sax; version="2.4.0.b1808300438"[exported]
    com.sun.tools.rngom.xml.util; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.addon.accessors; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.addon.at_generated; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.addon.code_injector; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.addon.episode; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.addon.locator; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.addon.sync; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.api; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.api.impl.s2j; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.generator.annotation.spec; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.generator.bean; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.generator.bean.field; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.generator.util; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.model; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.model.nav; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.outline; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.dtd; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.dtd.bindinfo; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.gbind; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.internalizer; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.relaxng; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.xmlschema; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.xmlschema.bindinfo; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.xmlschema.ct; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.reader.xmlschema.parser; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.runtime; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.util; version="2.4.0.b1808300438"[exported]
    com.sun.tools.xjc.writer; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.annotation; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.api; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.api.impl; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.marshaller; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.unmarshaller; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.util; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.bytecode; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.model.annotation; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.model.core; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.model.impl; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.model.nav; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.model.runtime; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.model.util; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.runtime; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.runtime.output; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.runtime.property; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.runtime.reflect; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.runtime.reflect.opt; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.runtime.unmarshaller; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.schemagen; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.schemagen.episode; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.schemagen.xmlschema; version="2.4.0.b1808300438"[exported]
    com.sun.xml.bind.v2.util; version="2.4.0.b1808300438"[exported]
    com.sun.xml.dtdparser; version="1.4.0"[exported]
    com.sun.xml.dtdparser.resources; version="1.4.0"[exported]
    com.sun.xml.fastinfoset; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.algorithm; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.alphabet; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.dom; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.org.apache.xerces.util; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.resources; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.sax; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.stax; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.stax.events; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.stax.factory; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.stax.util; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.tools; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.util; version="1.2.15"[exported]
    com.sun.xml.fastinfoset.vocab; version="1.2.15"[exported]
    com.sun.xml.txw2; version="2.4.0.b1808300438"[exported]
    com.sun.xml.txw2.annotation; version="2.4.0.b1808300438"[exported]
    com.sun.xml.txw2.output; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom.impl; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom.impl.parser; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom.impl.parser.state; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom.impl.scd; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom.impl.util; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom.parser; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom.util; version="2.4.0.b1808300438"[exported]
    com.sun.xml.xsom.visitor; version="2.4.0.b1808300438"[exported]
    org.jvnet.fastinfoset; version="1.2.15"[exported]
    org.jvnet.fastinfoset.sax; version="1.2.15"[exported]
    org.jvnet.fastinfoset.sax.helpers; version="1.2.15"[exported]
    org.jvnet.fastinfoset.stax; version="1.2.15"[exported]
    org.jvnet.staxex; version="1.8.0"[exported]
    org.jvnet.staxex.util; version="1.8.0"[exported]
    com.sun.xml.bind.external; version="2.4.0.b1808300438"[exported]
  Imported packages
    com.sun.source.tree; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    com.sun.source.util; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.activation; version="1.2.0" <com.sun.activation.javax.activation_1.2.0 [484]>
    javax.annotation.processing; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.imageio; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.imageio.stream; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.lang.model; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.lang.model.element; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.lang.model.type; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.lang.model.util; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.swing; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.swing.border; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.swing.tree; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.tools; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.xml.bind; version="2.3.0" <jaxb-api_2.4.0.b1808300359 [502]>
    javax.xml.bind.annotation; version="2.3.0" <jaxb-api_2.4.0.b1808300359 [502]>
    javax.xml.bind.annotation.adapters; version="2.3.0" <jaxb-api_2.4.0.b1808300359 [502]>
    javax.xml.bind.attachment; version="2.3.0" <jaxb-api_2.4.0.b1808300359 [502]>
    javax.xml.bind.helpers; version="2.3.0" <jaxb-api_2.4.0.b1808300359 [502]>
    javax.xml.datatype; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    javax.xml.namespace; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    javax.xml.parsers; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    javax.xml.stream; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.xml.stream.events; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.xml.stream.util; version="0.0.0" <org.eclipse.osgi_3.13.100.v20180827-1536 [0]>
    javax.xml.transform; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    javax.xml.transform.dom; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    javax.xml.transform.sax; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    javax.xml.transform.stream; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    javax.xml.validation; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    javax.xml.xpath; version="1.3.0" <javax.xml_1.3.4.v201005080400 [500]>
    org.w3c.dom; version="3.0.0" <javax.xml_1.3.4.v201005080400 [500]>
    org.w3c.dom.ls; version="2.0.0" <javax.xml_1.3.4.v201005080400 [500]>
    org.xml.sax; version="2.0.2" <javax.xml_1.3.4.v201005080400 [500]>
    org.xml.sax.ext; version="2.0.2" <javax.xml_1.3.4.v201005080400 [500]>
    org.xml.sax.helpers; version="2.0.2" <javax.xml_1.3.4.v201005080400 [500]>
  No fragment bundles
  No required bundles
@col-panic

This comment has been minimized.

Copy link
Author

col-panic commented Jan 17, 2019

On bundling


[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: ch.elexis.core.application.feature.feature.group 3.8.0.qualifier
[ERROR]   Missing requirement: com.sun.xml.bind.jaxb-osgi 2.4.0.b180830_0438 requires 'java.package; com.sun.source.tree 0.0.0' but it could not be found
[ERROR]   Cannot satisfy dependency: ch.elexis.core.application.feature.feature.group 3.8.0.qualifier depends on: org.eclipse.equinox.p2.iu; com.sun.xml.bind.jaxb-osgi 0.0.0
@col-panic

This comment has been minimized.

Copy link
Author

col-panic commented Jan 17, 2019

@lukasj

This comment has been minimized.

Copy link
Member

lukasj commented Jan 17, 2019

com.sun.source.* are JDK packages (used to be in tools.jar). Possible way to get them is to provide custom system.bundle fragment exporting these packages. You may be also interested in https://bugs.eclipse.org/bugs/show_bug.cgi?id=540426

@lukasj

This comment has been minimized.

Copy link
Member

lukasj commented Jan 17, 2019

btw: this is API project covering jaxb-api/jakarta.xml.bind-api artifacts. jaxb-osgi is implementation which is in https://github.com/eclipse-ee4j/jaxb-ri repo

@col-panic

This comment has been minimized.

Copy link
Author

col-panic commented Jan 17, 2019

Thank you very much for the hint! I could resolve the problem with the mentioned system.bundle fragment! I'm not really getting your btw comment: Is this the wrong project to post these issues? Thanks a lot @lukasj

@col-panic col-panic closed this Jan 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment