users@jax-rpc.java.net

Re: Error while accessing JAX-RPC webservice

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Thu, 22 Jul 2004 10:22:28 -0700

Shaba,
If you generate the client from the deployed WSDL, you should not have
to set the Stub.ENDPOINT_ADDRESS_PROPERTY.
Give that a try. Also, what does your createProxy method look like?

shaba dil wrote:

> Hi all,
>
> I have made a .war file and deployed it in Tomcat successfully.
>
> And i run it by giving URL.
>
> It runs perfectly.
>
> Made a config-wsdl.xml file.
>
> And i have created stubs using wscompile tool.put the generated
> classes in my classpath.
>
> Wrote client and compiled it.It compiles good.
>
> then i try to run it,it gives error.
>
> Just look the code,
>
> ---------------
> Stub stub = createProxy(); //no error
> 24 stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,
> 25 "http://localhost:8080/CRM-ServerDeploy/crm"); //no error
> 26 this.crmport = (CRMPort
> <file:///D:/Documents%20and%20Settings/personal/Personal%27s%20Documents/projects/java%20projects/CRM/exportToHTML/com/zcrm/server/CRMPort.java.html>)stub;
> //no error
> 27 this.crmport.getAllCampaignTypes(); //here comes error
> -------------------------
>
> In line number 27(just look above code) error comes.
>
> getAllCampaignTypes() is a method in My service interface.That is CRMPort.
>
> The error is,
>
> ---------------------
> Exception: JAXRPCSERVLET30: Internal server error (JAXRPCSERVLET43:
> failed to instantiate service implementor for port "CRMService")
> java.rmi.ServerException: JAXRPCSERVLET30: Internal server error
> (JAXRPCSERVLET43: failed to instantiate service implementor for port
> "CRMService")
> at
> com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:497)
> at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:294)
> at com.zcrm.server.CRMPort_Stub.getAllCampaignTypes(CRMPort_Stub.java:69)
> at
> com.zcrm.domain.soapclientdomain.LookupService.<init>(LookupService.java:27)
> at
> com.zcrm.domain.soapclientdomain.LookupService.main(LookupService.java:40)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ! at java.lang.reflect.Method.invoke(Method.java:324)
> at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
> ------------------------------------
>
> Just have a look on it.I'll send more files if necessory.But can
> anyone guess the error from this much?.
>
> Thanks,
> Shaba
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail
> <http://us.rd.yahoo.com/mail_us/taglines/100/*http://promotions.yahoo.com/new_mail/static/efficiency.html>
> - 100MB free storage!


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Kohlert
Sun Microsystems, Inc.            
doug.kohlert_at_sun.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net