Showing posts with label JAX-WS. Show all posts
Showing posts with label JAX-WS. Show all posts

Tuesday

java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener

BUG:
java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener

FIX:
Download jaxws-rt-2.1.4.jar and copy it under WEB-INF/lib

java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/resolver/CatalogManager

BUG:
 java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/resolver/CatalogManager

FIX:
Download resolver.jar and copy it under WEB-INF/lib

https://mvnrepository.com/artifact/com.sun.org.apache.xml.internal/resolver/20050927

Parsing wsdl error: soapenc:Array' to a(n) 'type definition

BUG:   While I was parsing wsdl file by using wsimport command (JAX-WS), I got this error: soapenc:Array' to a(n) 'type definition

FIX:   soapenc:Array is 'RPC-Encoding' web service style. Apache Axis 1 supports RPC encoded so parse the wsdl by Apache Axis 1.

You can use Soap-UI for parsing:
     Tools >> Axis1 Artifacts >> (write wsdl and output directory) >> Generate