I've built both server and client (of fromwsdl sample) according to the
instructions without problems. But when I try to test the client (ant run)
then there's some exception. The SunAppServer logs have written the
following trace:
[#|2005-12-21T15:18:
18.656+0100|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.resource.webservices.jaxws.servlet.http|_ThreadID=11;|caught
throwable
java.lang.NoSuchMethodError: javax.xml.soap.MessageFactory.newInstance
(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;
at com.sun.xml.ws.util.SOAPUtil.createMessageFactory(SOAPUtil.java:174)
at com.sun.xml.ws.util.SOAPUtil.<clinit>(SOAPUtil.java:43)
at com.sun.xml.ws.util.SOAPConnectionUtil.getSOAPMessage(
SOAPConnectionUtil.java:76)
at
com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.getSOAPMessage(
SOAPMessageDispatcher.java:208)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(
SOAPMessageDispatcher.java:109)
at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.handle(
WSServletDelegate.java:279)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(
WSServletDelegate.java:232)
at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java
:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java
:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java
:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(
SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(
ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(
ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(
StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java
:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(
ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(
ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(
ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(
WorkerThread.java:55)
|#]
[#|2005-12-21T15:18:
18.718+0100|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.resource.webservices.jaxws.servlet.http|_ThreadID=12;|caught
throwable
java.lang.NoClassDefFoundError
at com.sun.xml.ws.util.SOAPConnectionUtil.getSOAPMessage(
SOAPConnectionUtil.java:76)
at
com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.getSOAPMessage(
SOAPMessageDispatcher.java:208)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(
SOAPMessageDispatcher.java:109)
at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.handle(
WSServletDelegate.java:279)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(
WSServletDelegate.java:232)
at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java
:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java
:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java
:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(
SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(
ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(
ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(
StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java
:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(
ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(
ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(
ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(
WorkerThread.java:55)
|#]
I've read that this exception may be caused by the version of
saajImpl.jarbut I've checked is the same version of jax-ws library.
Regards,
Jaime