Skip to Content
author's profile photo Former Member
Former Member

Integration Of Apache axis client through PDK !!

Hello There !!

    I am trying to call a web service through the PDK. Following is my machine configuration ...

    Downloaded : tomcat_pdk_5_0_5_0.zip and SAPPDKEclipsePlugins_5.0.5.0.zip from SDN.

    Servlet Engine : tomcat-3.3.1a

    JDK : jdk1.3.1

    Web Service Client : Apache Axis 1.0

    Development Environment : Eclipse 2.1.1

    I have created a portal service which uses the axis client to invoke the web service. The

    reason I selected axis as the client since the web service is published through axis so

    that there will be less incompatibility.

    I also have created an iview which will call the protal srvice when the user fill in some data and

    clicks a button. The iview is working properly as well as the portal service.

    The PDK does not throw any errors when deploying the portal service. As part of the portal

    service , I have included the following axis .jar files which are needed to use axis client ...

                   axis.jar , commons-discovery.jar , commons-logging.jar , crimson.jar , jaxp.jar ,

                   jaxrpc.jar , log4j.jar , saaj.jar , wsdl4j.jar , xalan.jar , xerces.jar .

     Also , added to /jre/lib/ext the following .jar files ...

                  jcert.jar , jnet.jar, jsse.jar.

     I have turned on debugging under axis to determine what causes the exception but I cannot

     figure out the exact reason. By looking at the exception , it looks like it is unable to connect to

     web service provider , but that is not the case since I can put the web service endpoint

     address by opening up a browser on the same machine and the wer service provider is

     responding to the request since I can see the response page. Also , I looked areound apache

     axis forums, what I found was if some how axis client is not finding all the class files in the

     class patch but I am not sure about it. Is there something I need to do add the third party

     libraries in the PDK environment.

     When I portal service is called , I am getting the following exception ...

64793 DEBUG org.apache.axis.client.AxisClient  - Exception:

AxisFault

faultCode: Server.userException

faultString: java.net.ConnectException: Operation timed out: connect

faultActor: null

faultDetail:

stackTrace: java.net.ConnectException: Operation timed out: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)

at java.net.Socket.<init>(Socket.java:273)

at java.net.Socket.<init>(Socket.java:100)

at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:136)

at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:175)

at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:118)

at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)

at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)

at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)

at org.apache.axis.client.Call.invokeEngine(Call.java:2113)

at org.apache.axis.client.Call.invoke(Call.java:2102)

at org.apache.axis.client.Call.invoke(Call.java:1851)

at org.apache.axis.client.Call.invoke(Call.java:1777)

at org.apache.axis.client.Call.invoke(Call.java:1315)

at bpatel1.CooperLightingRosettaNetProductSearchServiceSoapBindingStub.getProductSearch(CooperLightingRosettaNetProductSearchServiceSoapBindingStub.java:673)

at com.cooperindustries.customerfirst.businesslogic.division.lighting.adapter.productsearch.CFCLProductSearchStrategy.performSearch(CFCLProductSearchStrategy.java:98)

at com.cooperindustries.customerfirst.businesslogic.division.lighting.adapter.productsearch.CFCLProductSearchStrategy.searchProduct(CFCLProductSearchStrategy.java:66)

at com.cooperindustries.customerfirst.businesslogic.division.lighting.adapter.CFCLAdapterImpl.searchProduct(CFCLAdapterImpl.java:86)

at com.cooperindustries.customerfirst.ui.ProductSearch$ProductSearchDynPage.searchProduct(ProductSearch.java:143)

at com.cooperindustries.customerfirst.ui.ProductSearch$ProductSearchDynPage.onSendButtonClicked(ProductSearch.java:119)

at java.lang.reflect.Method.invoke(Native Method)

at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:153)

at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:95)

at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:139)

at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:127)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:291)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:198)

at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:231)

at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:475)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:291)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:198)

at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:483)

at com.sapportals.portal.prt.portalconnection.sapnative.DelegatedPlugIn.handleRequest(DelegatedPlugIn.java:725)

at com.sapportals.portal.prt.portalconnection.sapnative.PortalPlugIn.handleRequest(PortalPlugIn.java:132)

at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:635)

at javax.servlet.http.HttpServlet.service(HttpServlet.java)

at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)

at org.apache.tomcat.core.Handler.invoke(Handler.java:322)

at org.apache.tomcat.core.Handler.service(Handler.java:235)

at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)

at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)

at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)

at java.lang.Thread.run(Thread.java:484)

       I will really appreciate if some one can tell me how to resolve the above issue.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2003 at 10:17 AM

    The network connection was the problem since it could not connect to the server.

    Add comment
    10|10000 characters needed characters exceeded