axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From taisto.onn...@smg.no
Subject Problem with a ws client in servlet (Tomcat4)
Date Sun, 19 Oct 2003 17:11:41 GMT
Hi

My client is running fine as an application but if i try to use the code 
in a servlet an Exception is thrown
Anybody outthere with experience of this ?


import java.sql.*;
import java.util.*;

import javax.xml.namespace.*;
.
.
import org.apache.axis.client.*;

//**************************************** sendToServer(Vector vP)
/**
 *
 * @param vP
 * @return
 */
  public Vector sendToServer(Vector vP){
    Vector vReturn=null;
    try {
      String endpoint =Globals.TARGET_URL;
      String user =Globals.TARGET_USER;
      String pw =Globals.TARGET_PW;
      Service  service = new Service();
      Call     call    = (Call) service.createCall();
      call.setTargetEndpointAddress( new java.net.URL(endpoint) );
      call.setOperationName(new QName(endpoint, "updateProducts"));

      vReturn = (Vector) call.invoke( new Object[] { user,pw,vP} );

    }
    catch (Exception e) {
      System.out.println("Exception in sendToServer");
      System.out.println(e.toString());
    }
    return vReturn;
  }
//---------------------------------------- sendToServer(Vector vP)


StandardWrapperValve[wscmain]: Servlet.service() for servlet wscmain threw 
exception

javax.servlet.ServletException: Servlet execution threw an exception

javax.servlet.ServletException: Servlet execution threw an exception

        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

        at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

        at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)

        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

        at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

        at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

        at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)

        at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)

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


mvh
Taisto Onnela
Webmaster SMG
Office:   33 44 95 09
Cellular: 41 69 33 11
taisto.onnela@smg.no
Mime
View raw message