cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xilai Dai (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6794) [OSGi] the org.apache.ws.commons.schema.* package should also has resolution:=optional in the cxf-core bundle
Date Mon, 22 Feb 2016 07:57:18 GMT
Xilai Dai created CXF-6794:
------------------------------

             Summary: [OSGi] the org.apache.ws.commons.schema.* package should also has resolution:=optional
in the cxf-core bundle
                 Key: CXF-6794
                 URL: https://issues.apache.org/jira/browse/CXF-6794
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 3.1.5
            Reporter: Xilai Dai


Currently when install cxf-core 3.1.5 bundle into the OSGi container (e.g. karaf with equinox),
the ERROR will appear when try to resolve the XmlSchema dependency:
{code}
Caused by: org.osgi.framework.BundleException: Could not resolve module: org.apache.cxf.cxf-core
[110]
  Unresolved requirement: Import-Package: com.ctc.wstx.msv; version="[4.4.0,5.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: com.ctc.wstx.stax; version="[4.4.0,5.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.codehaus.stax2; version="[3.1.0,4.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.codehaus.stax2.validation; version="[3.1.0,4.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.msv.grammar; version="[2013.6.0,2014.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.msv.grammar.xmlschema; version="[2013.6.0,2014.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.msv.reader; version="[2013.6.0,2014.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.msv.reader.xmlschema; version="[2013.6.0,2014.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.xml.bind.marshaller; version="[2.2.0,3.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: com.sun.xml.fastinfoset.stax; version="[1.2.0,2.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: net.sf.cglib.proxy; version="[2.1.3,3.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: javax.validation; version="[1.0.0,2.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: javax.validation.bootstrap; version="[1.0.0,2.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: javax.validation.executable; version="[1.0.0,2.0.0)";
resolution:="optional"
  Unresolved requirement: Import-Package: javax.validation.spi; version="[1.0.0,2.0.0)"; resolution:="optional"
  Unresolved requirement: Import-Package: org.apache.ws.commons.schema; version="[2.2.0,3.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)[org.eclipse.osgi-3.10.2.jar:]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)[org.eclipse.osgi-3.10.2.jar:]
	at org.apache.karaf.bundle.command.Install.execute(Install.java:96)[24:org.apache.karaf.bundle.core:4.0.4]
	... 11 more
{code}

Seems we are missing org.apache.ws.commons.schema* in the cxf.osgi.import section of the core/pom.xml.

Fix suggestion: add 
{code}
org.apache.ws.commons.schema*;version="${cxf.xmlschema.version}";resolution:=optional
{code}
into the core/pom.xml





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message