Humm.. It seems that there are conflict with the libs of tomcat, can it be possible?
Because I can invoke the stubs without not using a webAplication in Tomcat, and they work!
Now, what's the problematic lib? :(


In my project lib I have this libs:
SampleAcn.jar
SampleLM.jar <cid:[EMAIL PROTECTED]>
WSEcho.jar <cid:[EMAIL PROTECTED]>
axis-ant.jar <cid:[EMAIL PROTECTED]>
axis.jar <cid:[EMAIL PROTECTED]>
commons-beanutils.jar <cid:[EMAIL PROTECTED]>
commons-collections.jar <cid:[EMAIL PROTECTED]>
commons-dbcp.jar <cid:[EMAIL PROTECTED]>
commons-digester.jar <cid:[EMAIL PROTECTED]>
commons-discovery.jar <cid:[EMAIL PROTECTED]>
commons-fileupload.jar <cid:[EMAIL PROTECTED]>
commons-lang.jar <cid:[EMAIL PROTECTED]>
commons-logging.jar <cid:[EMAIL PROTECTED]>
commons-pool.jar <cid:[EMAIL PROTECTED]>
commons-resources.jar <cid:[EMAIL PROTECTED]>
commons-validator.jar <cid:[EMAIL PROTECTED]>
jakarta-oro.jar <cid:[EMAIL PROTECTED]>
jaxrpc.jar <cid:[EMAIL PROTECTED]>
jdogenie.jar <cid:[EMAIL PROTECTED]>
jstl.jar <cid:[EMAIL PROTECTED]>
jta.jar <cid:[EMAIL PROTECTED]>
log4j-1.2.8.jar <cid:[EMAIL PROTECTED]>
msbase.jar <cid:[EMAIL PROTECTED]>
mssqlserver.jar <cid:[EMAIL PROTECTED]>
msutil.jar <cid:[EMAIL PROTECTED]>
openaccess.jar <cid:[EMAIL PROTECTED]>
saaj.jar <cid:[EMAIL PROTECTED]>
soap.jar <cid:[EMAIL PROTECTED]>
standard.jar <cid:[EMAIL PROTECTED]>
struts.jar <cid:[EMAIL PROTECTED]>
wsdl4j.jar <cid:[EMAIL PROTECTED]>


in Tomcat (5.0.28) libs: ant-launcher.jar <cid:[EMAIL PROTECTED]> ant.jar <cid:[EMAIL PROTECTED]> commons-collections-3.1.jar <cid:[EMAIL PROTECTED]> commons-dbcp-1.2.1.jar <cid:[EMAIL PROTECTED]> commons-el.jar <cid:[EMAIL PROTECTED]> commons-pool-1.2.jar <cid:[EMAIL PROTECTED]> jasper-compiler.jar <cid:[EMAIL PROTECTED]> jasper-runtime.jar <cid:[EMAIL PROTECTED]> jsp-api.jar <cid:[EMAIL PROTECTED]> naming-common.jar <cid:[EMAIL PROTECTED]> naming-factory.jar <cid:[EMAIL PROTECTED]> naming-java.jar <cid:[EMAIL PROTECTED]> naming-resources.jar <cid:[EMAIL PROTECTED]> servlet-api.jar <cid:[EMAIL PROTECTED]>


Any ideas? Thanks one more time..

Bruno Gon�alves wrote:

Mr. Ragade, can you help me?
This is very strange, because nobody had the same problem!
I'm using Tomcat 5.0.28.

Thanks one more time!

Bruno Gon�alves wrote:

I already did that but I exactly have the same problem! :(
How it can be possible?

Thanks anyway!

[EMAIL PROTECTED] wrote:

What are you running this in ? In a standalone client or in an application server (which one?)
Why don't you try using wsdl2java and create stub classes to use instead. It is far simpler.
then your call to the web service just becomes:
ret = echoWebService.test(code,utilizador_portal,password);


    -----Original Message-----
    *From:* Bruno Gon�alves [mailto:[EMAIL PROTECTED]
    *Sent:* Friday, April 15, 2005 5:37 AM
    *To:* [email protected]
    *Subject:* exception when call.invoke

    Hi there!

    I receive this exception:
    */java.lang.ClassCastException:
    org.apache.axis.transport.http.HTTPSender/*


,when I execute this code:

            try {
                String endpoint = "http://localhost:8080/axis/Echo.jws";;

                logger.info("DEBUG >>> 1");
                Service service = new Service();
                logger.info("DEBUG >>> 2");
                Call call = (Call) service.createCall();
                logger.info("DEBUG >>> 3");

call.setTargetEndpointAddress( new
java.net.URL(endpoint) );
call.setOperation("test");
call.addParameter("code", XMLType.XSD_STRING,
ParameterMode.IN);
call.addParameter("utilizador_portal",
XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter("password", XMLType.XSD_STRING,
ParameterMode.IN);
call.setReturnType(XMLType.XSD_STRING);
logger.info("DEBUG >>> 4");
//call.setOperationName(new
QName("http://soapinterop.org/";, "test"));
//logger.info("DEBUG >>> 5");


                String ret = (String) call.invoke(new Object[]
    {"123", "user", "passwd"}); <========= EXCEPTION!!
                logger.info("DEBUG >>> 6");

                System.out.println("RESULT >>> '" + ret + "'");
                logger.info("DEBUG >>> 7");
            } catch (Exception e) {
                System.err.println(e.toString());
            }

    Any help? :(

    ---
    Bruno Vg







Reply via email to