Deploy an Axis application in WebLogic8.1

xiaoxiao2021-03-06  43

Deploy Axis WebService in WebService8.1, often similar to the following errors

<2005-3-2 07:27 pm 05 seconds CST> <[servletContext (ID =

3449288, Name = TestWebservice, Context-path = / testwebservice)] root cause of servlet

EXCEPTION.

Java.lang.incompatibleClassChangeError

At Org.Apache.Axis.Message.MessageElement.addTextNode (MessageElement.jav)

A: 1027)

At Org.Apache.Axis.Message.SoAphandler.enDelement (soaphandler.java: 121)

At Org.Apache.axis.Encoding.DeselIzationContextImpl.Endelement (Deseri

AlizationContextimpl.java:1060)

AT WebLogic.Apache.XERCES.PARSERS.ABSTRACTSAXPARSER.ENDELEMENT (Abstracts

Axparser.java:585)

AT WebLogic.Apache.XERCES.IMPL.XMLNAMESPACEBINDER.HANDLEENDELEMENT (XMLNA

MespaceBinder.java:898)

......

This is caused by the Saaj.jar conflicts in WebServices.jar and Axis in WebService8.1, and there are two solutions:

1. Configure WebLogic.xml to force WebLogic first load the Class in Web-INF.

2. Modify StartWeblogic.cmd, place the path of saaj.jar under Axis before WebServices.jar of WebLogic.

See the details: http://ws.apache.org/axis/java/install.html#depend

转载请注明原文地址:https://www.9cbs.com/read-51471.html

New Post(0)