我正在尝试使用 Java 通过 WebServiceFactory 连接到 Polarion。但是 NoClassDefFoundError - 抛出异常。我发现谷歌没有任何帮助:(
serverUrl = "http://.../polarion/ws/services/";
WebServiceFactory factory = new WebServiceFactory(serverUrl);
错误信息:
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45)
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at com.polarion.alm.ws.client.tracker.TrackerWebServiceServiceLocator.<init>(TrackerWebServiceServiceLocator.java:16)
at com.polarion.alm.ws.client.WebServiceFactory.<init>(WebServiceFactory.java:78)
at sesa.polarion.connection.PolarionConnectionImpl.<init>(PolarionConnectionImpl.java:92)
at sesa.XmlPolarionCon.main.Main.main(Main.java:28)
编辑:
我发现这可能是 Java 库(在 Eclipse 中)的问题。导入的 jar 库运行不正常,图标看起来不正常。就像普通的 jar-Icon 一样,左下角有一张纸(我希望你能有点想象我的意思)。这是什么意思?
可悲的是,由于我的声誉,我无法发布图片:(
谢谢