File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Error when trying to invoke web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error when trying to invoke web services" Watch "Error when trying to invoke web services" New topic
Author

Error when trying to invoke web services

Meghana Reddy
Ranch Hand

Joined: Jan 29, 2002
Posts: 76
Hi

When I try to create and test a web service in IRAD 6.0.1.1 , I get the following runtime error when I try to invoke the web service using the java proxy client generated by IRAD. No clue of what is happening behind the scenes. I have tested the end point URL and the Web service URI individually and they are working fine. Just that the client and the service end point are not able to communicate. Did anybody encounter this error before?

Thanks for the help.


7/2/07 19:12:14:115 EDT] 0000004f PivotHandlerW E WSWS3400I: Info: unexpected exception.
[7/2/07 19:12:14:125 EDT] 0000004f PivotHandlerW E TRAS0014I: The following exception was logged java.lang.NoClassDefFoundError: com/mkt/ws/cac/DADSService
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at com.ibm.ws.webservices.engine.utils.ClassUtils$2.run(ClassUtils.java:231)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.webservices.engine.utils.ClassUtils.loadClass(ClassUtils.java:206)
at com.ibm.ws.webservices.engine.utils.ClassUtils.forName(ClassUtils.java:179)
at com.ibm.ws.webservices.engine.dispatchers.java.JavaBeanDispatcher.getServiceClass(JavaBeanDispatcher.java:180)
at com.ibm.ws.webservices.engine.dispatchers.java.JavaBeanDispatcher.createServiceObject(JavaBeanDispatcher.java:198)
at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.createAndInitServiceObject(SessionDispatcher.java:252)
at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:200)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:144)
at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:274)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:688)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)


Meghana Reddy
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
He Meghana,

Could you provide some more inputs. Whats this class com/mkt/ws/cac/DADSService ? Does the package sound familiar?

~Amit Tank
[ July 03, 2007: Message edited by: Amit M Tank ]

Amit Tank
Linked In
Meghana Reddy
Ranch Hand

Joined: Jan 29, 2002
Posts: 76
Hi,

This is the Java Bean class that I am trying to expose as a webservice. Thats the package in which the class has to be. I have checked on the server the WSDL files and everywhere and the package seems to be perfect.

I see this in the test client's result.jsp page

[7/4/07 13:09:51:587 EDT] 00000033 PivotHandlerW E WSWS3400I: Info: unexpected exception.

[7/4/07 13:09:51:597 EDT] 00000033 PivotHandlerW E TRAS0014I: The following exception was logged java.lang.NoClassDefFoundError:
com/mkt/ws/cac/DADSService

at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:260)
at com.ibm.ws.webservices.engine.utils.ClassUtils$2.run(ClassUtils.java:231)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.webservices.engine.utils.ClassUtils.loadClass(ClassUtils.java:206)
at com.ibm.ws.webservices.engine.utils.ClassUtils.forName(ClassUtils.java:179)
at com.ibm.ws.webservices.engine.dispatchers.java.JavaBeanDispatcher.getServiceClass(JavaBeanDispatcher.java:180)
at com.ibm.ws.webservices.engine.dispatchers.java.JavaBeanDispatcher.createServiceObject(JavaBeanDispatcher.java:198)
at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.createAndInitServiceObject(SessionDispatcher.java:252)
at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:200)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:144)
at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:274)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:688)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
.
java.lang.NoClassDefFoundError: com/mkt/ws/cac/DADSService
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:260)
at com.ibm.ws.webservices.engine.utils.ClassUtils$2.run(ClassUtils.java:231)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.webservices.engine.utils.ClassUtils.loadClass(ClassUtils.java:206)
at com.ibm.ws.webservices.engine.utils.ClassUtils.forName(ClassUtils.java:179)
at com.ibm.ws.webservices.engine.dispatchers.java.JavaBeanDispatcher.getServiceClass(JavaBeanDispatcher.java:180)
at com.ibm.ws.webservices.engine.dispatchers.java.JavaBeanDispatcher.createServiceObject(JavaBeanDispatcher.java:198)
at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.createAndInitServiceObject(SessionDispatcher.java:252)
at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:200)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:144)
at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:274)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:688)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

[7/4/07 13:09:51:677 EDT] 00000033 UserException E WSWS3228E: Error: Exception: WebServicesFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultString: WSWS3400I: Info: unexpected exception.
faultActor: null
faultDetail:

WSWS3400I: Info: unexpected exception.
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.bindExceptionToResponse(PivotHandlerWrapper.java:367)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:280)
at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:144)
at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:274)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:688)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Seems your webservice is not deployed properly. Did you try to invoke wsdl through the browser and check if it returns the wsdl?
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Seems your webservice is not deployed properly. Did you try to invoke wsdl through the browser and check if it returns the wsdl?
Suja Kuttappy
Greenhorn

Joined: Aug 01, 2007
Posts: 3
Im facing the same problem.Is this issue resolve? how did you resolve it?
 
 
subject: Error when trying to invoke web services
 
Similar Threads
Web service client calls service on wrong host
Error Commiting transaction
Getting Time out issue in Webservice call
Client can't access webservice deployed on a local server because of java.lang.NoClassDefFoundError
javax.xml.ws.WebServiceException: java.net.SocketTimeoutException: Async operation timed out