1

经过大量工作将我们的代码迁移到另一个并修复了所有清单和捆绑包,当我尝试在服务器上运行小程序时,我收到了很多类似这样的错误:

java.lang.NoClassDefFoundError: org/jitsi/service/configuration/ConfigurationService
    at net.java.sip.communicator.service.resources.AbstractResourcesService.<init>(AbstractResourcesService.java:127)
    at net.java.sip.communicator.impl.resources.ResourceManagementServiceImpl.<init>(ResourceManagementServiceImpl.java:48)
    at net.java.sip.communicator.impl.resources.ResourceManagementActivator.start(ResourceManagementActivator.java:36)
    at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1243)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:620)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1904)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1822)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jitsi.service.configuration.ConfigurationService not found by [12515]
    at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:812)
    at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
    at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:670)
    at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:102)
    at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1426)
    at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:747)
    at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
    at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807)
    at java.lang.ClassLoader.loadClass(Unknown Source)

所有的捆绑包都得到了正确的解决,即使我试图从外部 jar 中取出一些代码到我们的代码中,它仍然给我抛出了那个错误,我知道这是 Felix 中的一个问题,我需要修复,但我没有不知道从哪里开始,所有的捆绑包都在适当的时间开始......

我正在用 ant/Felix 构建应用程序。

可能是激活器的问题?感谢大家的帮助,希望听到一些意见...

4

1 回答 1

3

您的包正在使用该类org.jitsi.service.configuration.ConfigurationService,但它不导入包。确保它org.jitsi.service.configuration列在包清单的 Import-Package 标头中。

于 2013-10-15T07:26:34.420 回答