Axis 定制发布
看懂这句代码就差不多了
D:\Java\jdk1.5.0_06\bin\java-Djava.ext.dirs=liborg.apache.axis.client.AdminClient-lhttp://localhost:8080/axis/servlet/AxisServletdeploy.wsdd
然后注意Tomcat运行的JDK和IDE编译的JDK环境;
别犯我的错:
Exceptioninthread"main"AxisFault
faultCode:{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:java.lang.UnsupportedClassVersionError:Badversionnumberin.classfile(unabletoloadclasscom.local.axis.ServerAxisTest);nestedexceptionis:
java.lang.UnsupportedClassVersionError:Badversionnumberin.classfile(unabletoloadclasscom.local.axis.ServerAxisTest)
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:Alice
java.lang.UnsupportedClassVersionError:Badversionnumberin.classfile(unabletoloadclasscom.local.axis.ServerAxisTest);nestedexceptionis:
java.lang.UnsupportedClassVersionError:Badversionnumberin.classfile(unabletoloadclasscom.local.axis.ServerAxisTest)
atorg.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
atorg.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
atorg.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
atorg.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:559)
atorg.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:853)
atorg.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:643)
atorg.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2978)
atorg.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:918)
atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1145)
atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988)
atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
atorg.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
atorg.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
atorg.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
atorg.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
atjavax.xml.parsers.SAXParser.parse(SAXParser.java:395)
atorg.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
atorg.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
atorg.apache.axis.Message.getSOAPEnvelope(Message.java:435)
atorg.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
atorg.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
atorg.apache.axis.client.Call.invokeEngine(Call.java:2803)
atorg.apache.axis.client.Call.invoke(Call.java:2786)
atorg.apache.axis.client.Call.invoke(Call.java:2462)
atorg.apache.axis.client.Call.invoke(Call.java:2385)
atorg.apache.axis.client.Call.invoke(Call.java:1812)
atcom.local.axis.Test.test(Test.java:37)
atcom.local.axis.Test.main(Test.java:16)
切记!