RAD 7 / WAS 6.1 - Webservices & client in one webapplication =Errors? - Websphere

This is a discussion on RAD 7 / WAS 6.1 - Webservices & client in one webapplication =Errors? - Websphere ; Hi, I have a web application with some webservices. The webservices were generated with RAD 7 using the IBM JAX-RPC implementation. Now I have to create a webservice client and use it in the same application. When I generate the ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: RAD 7 / WAS 6.1 - Webservices & client in one webapplication =Errors?

  1. RAD 7 / WAS 6.1 - Webservices & client in one webapplication =Errors?

    Hi,

    I have a web application with some webservices. The webservices were generated with RAD 7 using the IBM JAX-RPC implementation.

    Now I have to create a webservice client and use it in the same application.

    When I generate the client and use it in a new Java project it works flawlessly. It even works in a seperate webapplication.

    But when I generate it into the existing application with the webservices, it no longer works. When I call the Java proxy, I get:
    java.lang.ClassCastException: fon.ws.wsi.zukoClient.ZukoSoapBindingStub incompatible with javax.xml.rpc.Stub
    at fon.ws.wsi.zukoClient.ZukoProxy._initZukoProxy(Zuk oProxy.java:33)
    at fon.ws.wsi.zukoClient.ZukoProxy.(ZukoProxy.java:9)
    ...

    Can someone explain this error to me or help me fix it?

    Generally, I should be able to have both webservices and webservice clients in the same webapplication, right?

    Thank you very much!
    Andreas

  2. Re: RAD 7 / WAS 6.1 - Webservices & client in one webapplication= Errors?

    Andreas,

    Can you please post the generated code? ZukoProxy.java and ZukoSoapBindingStub.java?

    thanks,
    dims

    On 03/12/2009 04:38 AM, andreas.reh@brz.gv.at wrote:
    > Hi,
    >
    > I have a web application with some webservices. The webservices were generated with RAD 7 using the IBM JAX-RPC implementation.
    >
    > Now I have to create a webservice client and use it in the same application.
    >
    > When I generate the client and use it in a new Java project it works flawlessly. It even works in a seperate webapplication.
    >
    > But when I generate it into the existing application with the webservices, it no longer works. When I call the Java proxy, I get:
    > java.lang.ClassCastException: fon.ws.wsi.zukoClient.ZukoSoapBindingStub incompatible with javax.xml.rpc.Stub
    > at fon.ws.wsi.zukoClient.ZukoProxy._initZukoProxy(Zuk oProxy.java:33)
    > at fon.ws.wsi.zukoClient.ZukoProxy.(ZukoProxy.java:9)
    > ...
    >
    > Can someone explain this error to me or help me fix it?
    >
    > Generally, I should be able to have both webservices and webservice clients in the same webapplication, right?
    >
    > Thank you very much!
    > Andreas



  3. Re: RAD 7 / WAS 6.1 - Webservices & client in one webapplication =Errors?

    Here is the generated code of the client.
    I'm sorry for the lack of formating, for some reason the code tag does not work for me.

    *ZukoProxy:*

    public class ZukoProxy implements fon.ws.wsi.zukoClient.Zuko {
    private boolean _useJNDI = false;
    private String _endpoint = null;
    private fon.ws.wsi.zukoClient.Zuko __zuko = null;

    public ZukoProxy() {
    _initZukoProxy();
    }

    private void _initZukoProxy() {

    if (_useJNDI) {
    try {
    javax.naming.InitialContext ctx = new javax.naming.InitialContext();
    __zuko = ((fon.ws.wsi.zukoClient.ZukoService)ctx.lookup("java:comp/env/service/zukoService")).getZuko();
    }
    catch (javax.naming.NamingException namingException) {}
    catch (javax.xml.rpc.ServiceException serviceException) {}
    }
    if (__zuko == null) {
    try {
    __zuko = (new fon.ws.wsi.zukoClient.ZukoServiceLocator()).getZuk o();

    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
    }
    if (__zuko != null) {
    if (_endpoint != null)
    ((javax.xml.rpc.Stub)__zuko)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    else
    _endpoint = (String)((javax.xml.rpc.Stub)__zuko)._getProperty("javax.xml.rpc.service.endpoint.address");
    }

    }


    public void useJNDI(boolean useJNDI) {
    _useJNDI = useJNDI;
    __zuko = null;

    }

    public String getEndpoint() {
    return _endpoint;
    }

    public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (__zuko != null)
    ((javax.xml.rpc.Stub)__zuko)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public fon.ws.wsi.zukoClient.Zuko getZuko() {
    if (__zuko == null)
    _initZukoProxy();
    return __zuko;
    }

    public boolean isUserRegistered(java.lang.String user, java.lang.String pwd, java.lang.String gvZbPK) throws java.rmi.RemoteException{
    if (__zuko == null)
    _initZukoProxy();
    return __zuko.isUserRegistered(user, pwd, gvZbPK);
    }
    }
    }


    *ZukoSoapBindingStub:*

    /**
    * ZukoSoapBindingStub.java
    *
    * This file was auto-generated from WSDL
    * by the IBM Web services WSDL2Java emitter.
    * cf90721.10 v53107135043
    */

    package fon.ws.wsi.zukoClient;

    public class ZukoSoapBindingStub extends com.ibm.ws.webservices.engine.client.Stub implements fon.ws.wsi.zukoClient.Zuko {
    public ZukoSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws com.ibm.ws.webservices.engine.WebServicesFault {
    if (service == null) {
    super.service = new com.ibm.ws.webservices.engine.client.Service();
    }
    else {
    super.service = service;
    }
    super.engine = ((com.ibm.ws.webservices.engine.client.Service) super.service).getEngine();
    initTypeMapping();
    super.cachedEndpoint = endpointURL;
    super.connection = ((com.ibm.ws.webservices.engine.client.Service) super.service).getConnection(endpointURL);
    super.messageContexts = new com.ibm.ws.webservices.engine.MessageContext[1];
    }

    private void initTypeMapping() {
    javax.xml.rpc.encoding.TypeMapping tm = super.getTypeMapping(com.ibm.ws.webservices.engine .Constants.URI_LITERAL_ENC);
    java.lang.Class javaType = null;
    javax.xml.namespace.QName xmlType = null;
    javax.xml.namespace.QName compQName = null;
    javax.xml.namespace.QName compTypeQName = null;
    com.ibm.ws.webservices.engine.encoding.SerializerF actory sf = null;
    com.ibm.ws.webservices.engine.encoding.Deserialize rFactory df = null;
    }

    private static com.ibm.ws.webservices.engine.description.Operatio nDesc _isUserRegisteredOperation0 = null;
    private static com.ibm.ws.webservices.engine.description.Operatio nDesc _getisUserRegisteredOperation0() {
    com.ibm.ws.webservices.engine.description.Paramete rDesc[] _params0 = new com.ibm.ws.webservices.engine.description.Paramete rDesc[] {
    new com.ibm.ws.webservices.engine.description.Paramete rDesc(com.ibm.ws.webservices.engine.utils.QNameTab le.createQName("", "user"), com.ibm.ws.webservices.engine.description.Paramete rDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
    new com.ibm.ws.webservices.engine.description.Paramete rDesc(com.ibm.ws.webservices.engine.utils.QNameTab le.createQName("", "pwd"), com.ibm.ws.webservices.engine.description.Paramete rDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
    new com.ibm.ws.webservices.engine.description.Paramete rDesc(com.ibm.ws.webservices.engine.utils.QNameTab le.createQName("", "gvZbPK"), com.ibm.ws.webservices.engine.description.Paramete rDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
    };
    _params0[0].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
    _params0[0].setOption("partName","string");
    _params0[1].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
    _params0[1].setOption("partName","string");
    _params0[2].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
    _params0[2].setOption("partName","string");
    com.ibm.ws.webservices.engine.description.Paramete rDesc _returnDesc0 = new com.ibm.ws.webservices.engine.description.Paramete rDesc(com.ibm.ws.webservices.engine.utils.QNameTab le.createQName("", "registered"), com.ibm.ws.webservices.engine.description.Paramete rDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, true, false, false, false, true, false);
    _returnDesc0.setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}boolean");
    _returnDesc0.setOption("partName","boolean");
    com.ibm.ws.webservices.engine.description.FaultDes c[] _faults0 = new com.ibm.ws.webservices.engine.description.FaultDes c[] {
    };
    _isUserRegisteredOperation0 = new com.ibm.ws.webservices.engine.description.Operatio nDesc("isUserRegistered", com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("urn:zukoService", "isUserRegistered"), _params0, _returnDesc0, _faults0, "null");
    _isUserRegisteredOperation0.setOption("inputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.cr eateQName("urn:zukoService", "isUserRegisteredRequest"));
    _isUserRegisteredOperation0.setOption("ServiceQName",com.ibm.ws.webservices.engine.utils.QNameTable.cr eateQName("urn:zukoService", "zukoService"));
    _isUserRegisteredOperation0.setOption("ResponseNamespace","urn:zukoService");
    _isUserRegisteredOperation0.setOption("buildNum","cf90721.10");
    _isUserRegisteredOperation0.setOption("ResponseLocalPart","isUserRegisteredResponse");
    _isUserRegisteredOperation0.setOption("targetNamespace","urn:zukoService");
    _isUserRegisteredOperation0.setOption("outputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.cr eateQName("urn:zukoService", "isUserRegisteredResponse"));
    _isUserRegisteredOperation0.setOption("portTypeQName",com.ibm.ws.webservices.engine.utils.QNameTable.cr eateQName("urn:zukoService", "zuko"));
    _isUserRegisteredOperation0.setUse(com.ibm.ws.webs ervices.engine.enumtype.Use.LITERAL);
    _isUserRegisteredOperation0.setStyle(com.ibm.ws.we bservices.engine.enumtype.Style.WRAPPED);
    return _isUserRegisteredOperation0;

    }

    private int _isUserRegisteredIndex0 = 0;
    private synchronized com.ibm.ws.webservices.engine.client.Stub.Invoke _getisUserRegisteredInvoke0(Object[] parameters) throws com.ibm.ws.webservices.engine.WebServicesFault {
    com.ibm.ws.webservices.engine.MessageContext mc = super.messageContexts[_isUserRegisteredIndex0];
    if (mc == null) {
    mc = new com.ibm.ws.webservices.engine.MessageContext(super .engine);
    mc.setOperation(ZukoSoapBindingStub._isUserRegiste redOperation0);
    mc.setUseSOAPAction(true);
    mc.setSOAPActionURI("");
    mc.setEncodingStyle(com.ibm.ws.webservices.engine. Constants.URI_LITERAL_ENC);
    mc.setProperty(com.ibm.ws.webservices.engine.clien t.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    mc.setProperty(com.ibm.ws.webservices.engine.WebSe rvicesEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    super.primeMessageContext(mc);
    super.messageContexts[_isUserRegisteredIndex0] = mc;
    }
    try {
    mc = (com.ibm.ws.webservices.engine.MessageContext) mc.clone();
    }
    catch (CloneNotSupportedException cnse) {
    throw com.ibm.ws.webservices.engine.WebServicesFault.mak eFault(cnse);
    }
    return new com.ibm.ws.webservices.engine.client.Stub.Invoke(c onnection, mc, parameters);
    }

    public boolean isUserRegistered(java.lang.String user, java.lang.String pwd, java.lang.String gvZbPK) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
    throw new com.ibm.ws.webservices.engine.NoEndPointException( );
    }
    java.util.Vector _resp = null;
    try {
    _resp = _getisUserRegisteredInvoke0(new java.lang.Object[] {user, pwd, gvZbPK}).invoke();

    } catch (com.ibm.ws.webservices.engine.WebServicesFault wsf) {
    Exception e = wsf.getUserException();
    throw wsf;
    }
    try {
    return ((java.lang.Boolean) ((com.ibm.ws.webservices.engine.xmlsoap.ext.ParamV alue) _resp.get(0)).getValue()).booleanValue();
    } catch (java.lang.Exception _exception) {
    return ((java.lang.Boolean) super.convert(((com.ibm.ws.webservices.engine.xmls oap.ext.ParamValue) _resp.get(0)).getValue(), boolean.class)).booleanValue();
    }
    }

    private static void _staticInit() {
    _isUserRegisteredOperation0 = _getisUserRegisteredOperation0();
    }

    static {
    _staticInit();
    }
    }


    Kind Regards,
    Andreas

  4. Re: RAD 7 / WAS 6.1 - Webservices & client in one webapplication= Errors?

    Andreas,

    * Can you try the following piece of code to see if you still get the exception?

    fon.ws.wsi.zukoClient.Zuko zuko = (new fon.ws.wsi.zukoClient.ZukoServiceLocator()).getZuk o();
    String endpoint = (String)((javax.xml.rpc.Stub)zuko)._getProperty("javax.xml.rpc.service.endpoint.address");
    System.out.println(endpoint);

    * Are you changing the class loader policies? parent-first / parent-last?
    * Do you possibly have a jar that has a javax.xml.rpc.Stub somewhere in your environment?

    thanks,
    dims

    On 03/12/2009 07:42 AM, andreas.reh@brz.gv.at wrote:
    > Here is the generated code of the client.
    > I'm sorry for the lack of formating, for some reason the code tag does not work for me.
    >
    > *ZukoProxy:*
    >
    > public class ZukoProxy implements fon.ws.wsi.zukoClient.Zuko {
    > private boolean _useJNDI = false;
    > private String _endpoint = null;
    > private fon.ws.wsi.zukoClient.Zuko __zuko = null;
    >
    > public ZukoProxy() {
    > _initZukoProxy();
    > }
    >
    > private void _initZukoProxy() {
    >
    > if (_useJNDI) {
    > try {
    > javax.naming.InitialContext ctx = new javax.naming.InitialContext();
    > __zuko = ((fon.ws.wsi.zukoClient.ZukoService)ctx.lookup("java:comp/env/service/zukoService")).getZuko();
    > }
    > catch (javax.naming.NamingException namingException) {}
    > catch (javax.xml.rpc.ServiceException serviceException) {}
    > }
    > if (__zuko == null) {
    > try {
    > __zuko = (new fon.ws.wsi.zukoClient.ZukoServiceLocator()).getZuk o();
    >
    > }
    > catch (javax.xml.rpc.ServiceException serviceException) {}
    > }
    > if (__zuko != null) {
    > if (_endpoint != null)
    > ((javax.xml.rpc.Stub)__zuko)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    > else
    > _endpoint = (String)((javax.xml.rpc.Stub)__zuko)._getProperty("javax.xml.rpc.service.endpoint.address");
    > }
    >
    > }
    >
    >
    > public void useJNDI(boolean useJNDI) {
    > _useJNDI = useJNDI;
    > __zuko = null;
    >
    > }
    >
    > public String getEndpoint() {
    > return _endpoint;
    > }
    >
    > public void setEndpoint(String endpoint) {
    > _endpoint = endpoint;
    > if (__zuko != null)
    > ((javax.xml.rpc.Stub)__zuko)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    >
    > }
    >
    > public fon.ws.wsi.zukoClient.Zuko getZuko() {
    > if (__zuko == null)
    > _initZukoProxy();
    > return __zuko;
    > }
    >
    > public boolean isUserRegistered(java.lang.String user, java.lang.String pwd, java.lang.String gvZbPK) throws java.rmi.RemoteException{
    > if (__zuko == null)
    > _initZukoProxy();
    > return __zuko.isUserRegistered(user, pwd, gvZbPK);
    > }
    > }
    > }
    >
    >
    > *ZukoSoapBindingStub:*
    >
    > /**
    > * ZukoSoapBindingStub.java
    > *
    > * This file was auto-generated from WSDL
    > * by the IBM Web services WSDL2Java emitter.
    > * cf90721.10 v53107135043
    > */
    >
    > package fon.ws.wsi.zukoClient;
    >
    > public class ZukoSoapBindingStub extends com.ibm.ws.webservices.engine.client.Stub implements fon.ws.wsi.zukoClient.Zuko {
    > public ZukoSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws com.ibm.ws.webservices.engine.WebServicesFault {
    > if (service == null) {
    > super.service = new com.ibm.ws.webservices.engine.client.Service();
    > }
    > else {
    > super.service = service;
    > }
    > super.engine = ((com.ibm.ws.webservices.engine.client.Service) super.service).getEngine();
    > initTypeMapping();
    > super.cachedEndpoint = endpointURL;
    > super.connection = ((com.ibm.ws.webservices.engine.client.Service) super.service).getConnection(endpointURL);
    > super.messageContexts = new com.ibm.ws.webservices.engine.MessageContext[1];
    > }
    >
    > private void initTypeMapping() {
    > javax.xml.rpc.encoding.TypeMapping tm = super.getTypeMapping(com.ibm.ws.webservices.engine .Constants.URI_LITERAL_ENC);
    > java.lang.Class javaType = null;
    > javax.xml.namespace.QName xmlType = null;
    > javax.xml.namespace.QName compQName = null;
    > javax.xml.namespace.QName compTypeQName = null;
    > com.ibm.ws.webservices.engine.encoding.SerializerF actory sf = null;
    > com.ibm.ws.webservices.engine.encoding.Deserialize rFactory df = null;
    > }
    >
    > private static com.ibm.ws.webservices.engine.description.Operatio nDesc _isUserRegisteredOperation0 = null;
    > private static com.ibm.ws.webservices.engine.description.Operatio nDesc _getisUserRegisteredOperation0() {
    > com.ibm.ws.webservices.engine.description.Paramete rDesc[] _params0 = new com.ibm.ws.webservices.engine.description.Paramete rDesc[] {
    > new com.ibm.ws.webservices.engine.description.Paramete rDesc(com.ibm.ws.webservices.engine.utils.QNameTab le.createQName("", "user"), com.ibm.ws.webservices.engine.description.Paramete rDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
    > new com.ibm.ws.webservices.engine.description.Paramete rDesc(com.ibm.ws.webservices.engine.utils.QNameTab le.createQName("", "pwd"), com.ibm.ws.webservices.engine.description.Paramete rDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
    > new com.ibm.ws.webservices.engine.description.Paramete rDesc(com.ibm.ws.webservices.engine.utils.QNameTab le.createQName("", "gvZbPK"), com.ibm.ws.webservices.engine.description.Paramete rDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
    > };
    > _params0[0].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
    > _params0[0].setOption("partName","string");
    > _params0[1].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
    > _params0[1].setOption("partName","string");
    > _params0[2].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
    > _params0[2].setOption("partName","string");
    > com.ibm.ws.webservices.engine.description.Paramete rDesc _returnDesc0 = new com.ibm.ws.webservices.engine.description.Paramete rDesc(com.ibm.ws.webservices.engine.utils.QNameTab le.createQName("", "registered"), com.ibm.ws.webservices.engine.description.Paramete rDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, true, false, false, false, true, false);
    > _returnDesc0.setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}boolean");
    > _returnDesc0.setOption("partName","boolean");
    > com.ibm.ws.webservices.engine.description.FaultDes c[] _faults0 = new com.ibm.ws.webservices.engine.description.FaultDes c[] {
    > };
    > _isUserRegisteredOperation0 = new com.ibm.ws.webservices.engine.description.Operatio nDesc("isUserRegistered", com.ibm.ws.webservices.engine.utils.QNameTable.cre ateQName("urn:zukoService", "isUserRegistered"), _params0, _returnDesc0, _faults0, "null");
    > _isUserRegisteredOperation0.setOption("inputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.cr eateQName("urn:zukoService", "isUserRegisteredRequest"));
    > _isUserRegisteredOperation0.setOption("ServiceQName",com.ibm.ws.webservices.engine.utils.QNameTable.cr eateQName("urn:zukoService", "zukoService"));
    > _isUserRegisteredOperation0.setOption("ResponseNamespace","urn:zukoService");
    > _isUserRegisteredOperation0.setOption("buildNum","cf90721.10");
    > _isUserRegisteredOperation0.setOption("ResponseLocalPart","isUserRegisteredResponse");
    > _isUserRegisteredOperation0.setOption("targetNamespace","urn:zukoService");
    > _isUserRegisteredOperation0.setOption("outputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.cr eateQName("urn:zukoService", "isUserRegisteredResponse"));
    > _isUserRegisteredOperation0.setOption("portTypeQName",com.ibm.ws.webservices.engine.utils.QNameTable.cr eateQName("urn:zukoService", "zuko"));
    > _isUserRegisteredOperation0.setUse(com.ibm.ws.webs ervices.engine.enumtype.Use.LITERAL);
    > _isUserRegisteredOperation0.setStyle(com.ibm.ws.we bservices.engine.enumtype.Style.WRAPPED);
    > return _isUserRegisteredOperation0;
    >
    > }
    >
    > private int _isUserRegisteredIndex0 = 0;
    > private synchronized com.ibm.ws.webservices.engine.client.Stub.Invoke _getisUserRegisteredInvoke0(Object[] parameters) throws com.ibm.ws.webservices.engine.WebServicesFault {
    > com.ibm.ws.webservices.engine.MessageContext mc = super.messageContexts[_isUserRegisteredIndex0];
    > if (mc == null) {
    > mc = new com.ibm.ws.webservices.engine.MessageContext(super .engine);
    > mc.setOperation(ZukoSoapBindingStub._isUserRegiste redOperation0);
    > mc.setUseSOAPAction(true);
    > mc.setSOAPActionURI("");
    > mc.setEncodingStyle(com.ibm.ws.webservices.engine. Constants.URI_LITERAL_ENC);
    > mc.setProperty(com.ibm.ws.webservices.engine.clien t.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    > mc.setProperty(com.ibm.ws.webservices.engine.WebSe rvicesEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    > super.primeMessageContext(mc);
    > super.messageContexts[_isUserRegisteredIndex0] = mc;
    > }
    > try {
    > mc = (com.ibm.ws.webservices.engine.MessageContext) mc.clone();
    > }
    > catch (CloneNotSupportedException cnse) {
    > throw com.ibm.ws.webservices.engine.WebServicesFault.mak eFault(cnse);
    > }
    > return new com.ibm.ws.webservices.engine.client.Stub.Invoke(c onnection, mc, parameters);
    > }
    >
    > public boolean isUserRegistered(java.lang.String user, java.lang.String pwd, java.lang.String gvZbPK) throws java.rmi.RemoteException {
    > if (super.cachedEndpoint == null) {
    > throw new com.ibm.ws.webservices.engine.NoEndPointException( );
    > }
    > java.util.Vector _resp = null;
    > try {
    > _resp = _getisUserRegisteredInvoke0(new java.lang.Object[] {user, pwd, gvZbPK}).invoke();
    >
    > } catch (com.ibm.ws.webservices.engine.WebServicesFault wsf) {
    > Exception e = wsf.getUserException();
    > throw wsf;
    > }
    > try {
    > return ((java.lang.Boolean) ((com.ibm.ws.webservices.engine.xmlsoap.ext.ParamV alue) _resp.get(0)).getValue()).booleanValue();
    > } catch (java.lang.Exception _exception) {
    > return ((java.lang.Boolean) super.convert(((com.ibm.ws.webservices.engine.xmls oap.ext.ParamValue) _resp.get(0)).getValue(), boolean.class)).booleanValue();
    > }
    > }
    >
    > private static void _staticInit() {
    > _isUserRegisteredOperation0 = _getisUserRegisteredOperation0();
    > }
    >
    > static {
    > _staticInit();
    > }
    > }
    >
    >
    > Kind Regards,
    > Andreas



  5. Re: RAD 7 / WAS 6.1 - Webservices & client in one webapplication =Errors?

    Issue solved!

    RAD placed a jaxrpc.jar into my webinf/lib without my notice.
    This jar contains the class javax.xml.rpc.stub, which is mentioned in the exception.

    I removed the jar, and everything works fine now.

    Thanks a lot for your help and kind mails, dims!

    Regards,
    Andreas

+ Reply to Thread