Hello.

I have been working on this problem for days now and it seems as if I'm
taking one step 
forward and two back. I could use your help please. The short story is that
I'm trying
to logout a josso session id via a web service from within a servlet and it
fails seemingly
within the Axis layer before contacting the outside world.

Here is the mysterious error from my tomcat log:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.apache.axis.ConfigurationException:
java.lang.ClassCastException:
org.josso.gateway.WebserviceClientAuthentication
java.lang.ClassCastException:
org.josso.gateway.WebserviceClientAuthentication

What I have and what I know:
- Tomcat 5.5.15
- Java 1.5
- A third party webapp (JOSSO 1.5) that provides single-sign-on services
with an exposed 
web service. (using I think Axis 1.2)
- My own web application servlet that is attempting to call one of the
exposed services on a 
different server. 
- That my call, from within my own servlet, fails down inside of the Axis
call:
(org.apache.axis.client.Call.invoke(Call.java:1804)).
- That if I test the web service directly using something like e-tester
(from empirix), the web 
service works.
- That I think... I  have setup ant helper task correctly to generate the
stub classes (using 
the same wsdl that I tested above).
- That I'm about to go crazy.

So I guess the really quick question is if the above exception, which is
repeated, makes any 
sense? I am posting long details at the bottom.


Regards,

-Dennis 


---------------------------------------------------------

build.xml snippet: 
 
<target name="generate-axis-stubs" description="build Axis stubs"> 
<!-- Generate Stub/Skeleton pair for the SSOIdentityProvider Service --> 
<axis-wsdl2java 
output="${build.home}" 
testcase="false" 
verbose="true" 
url="${basedir}/wsdl/SSOIdentityProvider.wsdl" 
serverside="true" 
skeletondeploy="true"> 
<classpath path="${compile.classpath}"/> 
</axis-wsdl2java> 
</target>  

---------------------------------------------------------------------------

servlet code snippet: 
 
URL endpoint = new URL
("http://10.16.207.59/josso/services/SSOIdentityProvider";); 
SSOIdentityProviderService webService = new
SSOIdentityProviderServiceLocator();  
SSOIdentityProvider impl = webService.getSSOIdentityProvider(endpoint);

impl.globalSignoff(jossoSessionCookie.getValue()); 

---------------------------------------------------------------------------

AxisFault 
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException 
faultSubcode: 
faultString: org.apache.axis.ConfigurationException:
java.lang.ClassCastException:
org.josso.gateway.WebserviceClientAuthentication 
java.lang.ClassCastException:
org.josso.gateway.WebserviceClientAuthentication 
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:302)
 
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
 
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
 
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.java:394)
 
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:276)
 
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
 
at
org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125) 
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
 
at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
 
at
org.apache.axis.deployment.wsdd.WSDDDeployment.getGlobalRequest(WSDDDeployment.java:473)
 
at
org.apache.axis.configuration.FileProvider.getGlobalRequest(FileProvider.java:269)
 
at org.apache.axis.AxisEngine.getGlobalRequest(AxisEngine.java:365) 
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:126) 
at org.apache.axis.client.Call.invokeEngine(Call.java:2765) 
at org.apache.axis.client.Call.invoke(Call.java:2748) 
at org.apache.axis.client.Call.invoke(Call.java:2424) 
at org.apache.axis.client.Call.invoke(Call.java:2347) 
at org.apache.axis.client.Call.invoke(Call.java:1804) 
at
org.josso.gateway.identity.service.ws.impl.SSOIdentityProviderSoapBindingStub.globalSignoff(SSOIdentityProviderSoapBindingStub.java:303)
 
 

-----------------------------------------------

The global signoff method from SSOIdentityProviderSoapbindingStub.java

    public void globalSignoff (java.lang.String in0) throws
java.rmi.RemoteException,
           
org.josso.gateway.identity.service.ws.impl.IdentityProvisioningException
    {
        if (super.cachedEndpoint == null)
        {
            throw new org.apache.axis.NoEndPointException();
        }
        org.apache.axis.client.Call _call = createCall();
        _call.setOperation(_operations[2]);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("");
       
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new javax.xml.namespace.QName(
                "http://josso.org/gateway/identity/service/ws/impl";,
"globalSignoff"));

        setRequestHeaders(_call);
        setAttachments(_call);
        try
        {
            java.lang.Object _resp = _call.invoke(new java.lang.Object[]
            {
                in0
            });

            if (_resp instanceof java.rmi.RemoteException)
            {
                throw (java.rmi.RemoteException) _resp;
            }
            extractAttachments(_call);
        }
        catch (org.apache.axis.AxisFault axisFaultException)
        {
            if (axisFaultException.detail != null)
            {
                if (axisFaultException.detail instanceof
java.rmi.RemoteException)
                {
                    throw (java.rmi.RemoteException)
axisFaultException.detail;
                }
                if (axisFaultException.detail instanceof
org.josso.gateway.identity.service.ws.impl.IdentityProvisioningException)
                {
                    throw
(org.josso.gateway.identity.service.ws.impl.IdentityProvisioningException)
axisFaultException.detail;
                }
            }
            throw axisFaultException;
        }
    }

--------------------------------------

End
-- 
View this message in context: 
http://www.nabble.com/Axis-Version-1-Question-Problem-tf4884334.html#a13979518
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to