调用webservices报错 原因是没有导入commons-logging和commons-discovery

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
    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.description.OperationDesc.<clinit>(OperationDesc.java:65)
    at com.cxf.poservice.client.mo.SI_MOCreate_OUTBindingStub._initOperationDesc1(SI_MOCreate_OUTBindingStub.java:26)
    at com.cxf.poservice.client.mo.SI_MOCreate_OUTBindingStub.<clinit>(SI_MOCreate_OUTBindingStub.java:20)
    at com.cxf.poservice.client.mo.CreateMoInPo.createStub(CreateMoInPo.java:118)
    at com.cxf.poservice.client.mo.CreateMoInPo.CreateMoInPo(CreateMoInPo.java:31)
    at com.cxf.poservice.client.mo.CreateMoInPo.main(CreateMoInPo.java:132)

<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency> <dependency>
<groupId>commons-discovery</groupId>
<artifactId>commons-discovery</artifactId>
<version>0.5</version>
</dependency>
上一篇:openjdk7之编译和debug


下一篇:VS2012减负:加快启动速度,减少编辑卡壳