【问题标题】:org.apache.commons.discovery.DiscoveryException: No implementation defined for org.apache.commons.logging.LogFactoryorg.apache.commons.discovery.DiscoveryException:没有为 org.apache.commons.logging.LogFactory 定义实现
【发布时间】:2014-08-12 08:49:27
【问题描述】:

当我尝试启动 osgi 包时,我的 karaf 中运行了一个 Web 服务客户端,引发以下错误

org.osgi.framework.BundleException: Activator start error in bundle wsdlclient [83].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)[org.apache.felix.framework-4.2.1.jar:]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)[org.apache.felix.framework-4.2.1.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apache.felix.framework-4.2.1.jar:]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1263)[11:org.apache.felix.fileinstall:3.2.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1235)[11:org.apache.felix.fileinstall:3.2.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1224)[11:org.apache.felix.fileinstall:3.2.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:519)[11:org.apache.felix.fileinstall:3.2.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:308)[11:org.apache.felix.fileinstall:3.2.8]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at com.sample.SayHelloServiceLocator.<init>(SayHelloServiceLocator.java:12)
at com.sample.MainGreet.greet(MainGreet.java:12)
at wsdlclient.Activator.start(Activator.java:23)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)

这是由于

org.apache.commons.discovery.DiscoveryException: No implementation defined for org.apache.commons.logging.LogFactory

任何人都可以帮助解决任何错误

我已经安装了所有的依赖axis.jar,saaj.jar,wsdl4j.jar,commons-discovery.jar,commons-logging.jar

【问题讨论】:

    标签: apache-karaf osgi-bundle karaf


    【解决方案1】:

    添加作为包的公共日志记录 jar(具有包属性的清单文件)将解决此问题。 我删除了jar并安装了This jar文件

    【讨论】:

    • 它对我有用 jar 有 META-INF 没有 maven 文件夹作为依赖项
    猜你喜欢
    • 1970-01-01
    • 2017-04-24
    • 1970-01-01
    • 1970-01-01
    • 2015-11-29
    • 2019-10-27
    • 1970-01-01
    • 2011-12-10
    • 1970-01-01
    相关资源
    最近更新 更多