日期:2014-05-19  浏览次数:20787 次

webservice 生成客户端时报错
用的是axis1.4 jdk1.6,tomcat5.5
用下面这句话生成代理时报错:
PROVServiceAgentLocator provService = new PROVServiceAgentLocator();


Java code
Exception in thread "Thread-33" java.lang.IncompatibleClassChangeError: Implementing class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.class$(JAFDataHandlerDeserializerFactory.java:35)
    at org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.getDeserializerClass(JAFDataHandlerDeserializerFactory.java:53)
    at org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.<init>(JAFDataHandlerDeserializerFactory.java:38)
    at org.apache.axis.encoding.DefaultTypeMappingImpl.initMappings(DefaultTypeMappingImpl.java:120)
    at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMappingImpl.java:91)
    at org.apache.axis.encoding.DefaultTypeMappingImpl.getSingletonDelegate(DefaultTypeMappingImpl.java:85)
    at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:155)
    at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:149)
    at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:449)
    at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
    at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
    at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
    at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
    at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
    at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
    at org.apache.axis.client.Service.getAxisClient(Service.java:104)
    at org.apache.axis.client.Service.<init>(Service.java:113)
    at com.asiainfo.aires.valuecard.client.bossVCNGClient.serviceEngine.PROVServiceEngine._1_0_0.PROVServiceAgentLocator.<init>(PROVServiceAgentLocator.java:12)
    at com.asiainfo.aires.valuecard.client.CallBossVCClientCardServiceImpl.callBossVCClientCardActive(CallBossVCClientCardServiceImpl.java:56)
    at com.asiainfo.aires.valuecard.client.ThreadToCardSingleActiveOrRemoveActive$1.run(ThreadToCardSingleActiveOrRemoveActive.java:36)
    at java.lang.Thread.run(Thread.java:619)


在网上找了下都是说是JAR包的问题。但找了半天也没找到。

------解决方案--------------------
客户端生成好了没?
用eclipse生成客服端,再调用
------解决方案--------------------
http://www.iteye.com/topic/1122169