有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

OSGiffing现有webservice war时发生java错误

我正在jboss fuse上部署我现有的webservice war(它在tomcat上工作)。我更改了舱单。如下图所示

Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: HelloCxfWS Bundle-SymbolicName: HelloCxfWS Bundle-Version: 1.0.0.qualifier Bundle-ClassPath: WEB-INF/classes/ Required-Bundle: org.apache.cxf.cxf-bundle Import-Package: javax.jws,javax.wsdl,javax.xml.bind,javax.xml.bind.annotation,javax.xml.namespace, javax.xml.ws,META-INF.cxf,META-INF.cxf.osgi, org.apache.cxf.bus, org.apache.cxf.bus.spring,org.apache.cxf.bus.resource, org.apache.cxf.configuration.spring,org.apache.cxf.resource,org.apache.cxf.jaxws, org.apache.servicemix.cxf.transport.http_cxf,org.springframework.beans.factory.config, org.apache.servicemix.cxf.transport.http_osgi Private-Package: com.irk.test.ws.* DynamicImport-Package: *

但我在日志中发现以下错误

13:24:00,757 | WARN | edhat-024/deploy | fileinstall | 7 - org.apache.felix.fileinstall - 3.3.11.redhat-60024 | Error while starting bundle: file:/E:/jboss-fuse-6.0.0.redhat-024/deploy/HelloCxfWS.war org.osgi.framework.BundleException: Unresolved constraint in bundle HelloCxfWS [292]: Unable to resolve 292.0: missing requirement [292.0] osgi.wiring.package; (osgi.wiring.package=org.apache.servicemix.cxf.transport.http_cxf) at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4155)[org.apache.felix.framework-4.0.3.redhat-60024.jar:] at org.apache.felix.framework.Felix.startBundle(Felix.java:2055)[org.apache.felix.framework-4.0.3.redhat-60024.jar:] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apache.felix.framework-4.0.3.redhat-60024.jar:] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1247)[7:org.apache.felix.fileinstall:3.3.11.redhat-60024] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1219)[7:org.apache.felix.fileinstall:3.3.11.redhat-60024] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1208)[7:org.apache.felix.fileinstall:3.3.11.redhat-60024] at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:503)[7:org.apache.felix.fileinstall:3.3.11.redhat-60024] at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[7:org.apache.felix.fileinstall:3.3.11.redhat-60024] 请在这方面提供帮助

问候,


共 (1) 个答案

  1. # 1 楼答案

    应该是

    Require-Bundle:

    而不是

    Required-Bundle:

    捆绑包org.apache.cxf.cxf-bundle可用吗