[
https://issues.apache.org/jira/browse/CXF-6794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166631#comment-15166631
]
Xilai Dai edited comment on CXF-6794 at 2/25/16 4:16 AM:
---------------------------------------------------------
@Colm: this ERROR (in the karaf.log) can be reproduced on plain karaf 4.0.4
with only setting changes:
{code}
karaf.framework=equinox
{code}
in the etc/config.properties.
and yes all the cxf-core bundles started and in the Active status from the
console, but there is ERROR logs:
{code}
2016-02-25 12:09:57,529 | ERROR | 8d8-961af9b70a25 | cxf-core
| 53 - org.apache.cxf.cxf-core - 3.1.5 | FrameworkEvent ERROR -
org.apache.cxf.cxf-core
org.osgi.framework.BundleException: Could not resolve module:
org.apache.cxf.cxf-core [53]
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: org.springframework.osgi.io;
version="[1.2.0,2.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.osgi.util;
version="[1.2.0,2.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.aop;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.aop.framework;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.aop.support;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.beans;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.beans.factory;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package:
org.springframework.beans.factory.config; version="[3.1.0,5.0.0)";
resolution:="optional"
Unresolved requirement: Import-Package:
org.springframework.beans.factory.support; version="[3.1.0,5.0.0)";
resolution:="optional"
Unresolved requirement: Import-Package:
org.springframework.beans.factory.wiring; version="[3.1.0,5.0.0)";
resolution:="optional"
Unresolved requirement: Import-Package:
org.springframework.beans.factory.xml; version="[3.1.0,5.0.0)";
resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.context;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.context.event;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.context.support;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.core;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.core.io;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.core.io.support;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.core.type;
version="[3.1.0,5.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package:
org.springframework.core.type.classreading; version="[3.1.0,5.0.0)";
resolution:="optional"
Unresolved requirement: Import-Package: org.springframework.util;
version="[3.1.0,5.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)"
Unresolved requirement: Import-Package: javax.annotation;
version="[0.0.0,2.0.0)"
-> Export-Package: javax.annotation;
bundle-symbolic-name="javax.annotation-api"; bundle-version="1.2.0";
version="1.2.0"
javax.annotation-api [52]
at
org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
{code}
was (Author: xldai):
@Colm: Some additional changes we did before start karaf container, e.g
{code}
karaf.framework=equinox
org.osgi.framework.system.capabilities=
......
osgi.service;effective:=active;objectClass=org.apache.cxf.Bus, \
......
{code}
in the config.properties and changes in the org.apache.karaf.features.cfg, I
will double check it again, if it could not be reproduced on a plain Karaf
container, I will close this issue.
> [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)