users@jax-rpc.java.net

Re: (solved!!)Re: Yet another WSCompile error:

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Mon, 12 Jul 2004 10:16:01 -0700

Shaba,
Please check your server side logs to make sure that no exceptions are
being thrown when trying to load your service.

shaba dil wrote:

> HI all,
>
> I got the problom.
>
> It was with naming.The name of service and interface should not be the
> same.
>
> The service name and interface name was similer.That caused problom,
>
> But i experience another one during deploy,Anyone experienced plz,
>
> The error is while i try to locate the service through the browser,ie
>
> -----------------------------
>
> type Status report
>
> message This application is not currently available
>
> description The requested service (This application is not currently
> available) is not currently available.
>
> ----------------------------------------------
>
> Anyone experienced plz have a look on it.
>
> regards,
> Shaba
>
>
>
>
> shaba dil <shaba_dil_at_yahoo.com> wrote:
>
> Hi all,
>
> I am experiencing WSCompile tool error again.
>
> The error is,a method in generated class returns incompatible
> type.That is the needed class is should be a subtype of
> java.rmi.Remote.But getting class is a custom type.
> ---------------------
> D:\jwsdp\jwsdp-1.4\jaxrpc\bin\com\zcrm\server\com\zcrm\server\CRMService_Impl.ja
> va:37: incompatible types
> found : com.zcrm.server.CRMService
> required: java.rmi.Remote
> return getCRMServicePort();
> ---------------------------
>
> com.zcrm.server.CRMService is my interface which was extending
> java.rmi.Remote.I am attaching that file with this.
>
> I have checked my interface.My interface certainly extends
> java.rmi.Remote interface.So i did'nt find any way to get that
> incompatible type error.becoz com.zcrm.server.CRMService interface
> is implementing java.rmi.Remote.
>
> I am attaching config.xml file and interface and implementation
> classes as attachment.
>
> here's the compleate stack of error.
>
> ----------------------------------------
>
>
> D:\jwsdp\jwsdp-1.4\jaxrpc\bin>wscompile -gen -verbose -d
> D:\jwsdp\jwsdp-1.4\jaxr
> pc\bin\com\zcrm\server -classpath D:\jwsdp\jwsdp-1.4\jaxrpc\bin
> D:\jwsdp\jwsdp-1
> .4\jaxrpc\bin\server-config.xml
> warning: You have specified : -gen:both or -gen:client with a SEI.
> The use of th
> ese modes are recommended with WSDL only.
> [creating model: CRMService]
> [creating service: CRMService]
> [creating port: com.zcrm.server.CRMService]
> [creating operation: getAllCampaignTypes]
> [creating operation: getAllCampaigns]
> [creating operation: setNewCampaign]
> [ServiceInterfaceGenerator: creating service interface:
> com.zcrm.server.CRMServi
> ce]
> [ServiceGenerator: creating service: com.zcrm.server.CRMService_Impl]
> [CustomClassGenerator: generating JavaClass for: getAllCampaignTypes]
> [CustomClassGenerator: generating JavaClass for:
> getAllCampaignTypesResponse]
> [CustomClassGenerator: generating JavaClass for: getAllCampaigns]
> [CustomClassGenerat! ! or: generating JavaClass for:
> getAllCampaignsResponse]
> [CustomClassGenerator: generating JavaClass for: setNewCampaign]
> [CustomClassGenerator: generating JavaClass for:
> setNewCampaignResponse]
> [SOAPObjectSerializerGenerator: writing serializer/deserializer
> for: {http://my
> site.com/types}getAllCampaignTypes]
> [SOAPObjectSerializerGenerator: writing serializer/deserializer
> for: {http://my
> site.com/types}getAllCampaignTypesResponse]
> [SOAPObjectSerializerGenerator: writing serializer/deserializer
> for: {http://my
> site.com/types}getAllCampaigns]
> [SOAPObjectSerializerGenerator: writing serializer/deserializer
> for: {http://my
> site.com/types}getAllCampaignsResponse]
> [SOAPObjectSerializerGenerator: writing serializer/deserializer
> for: {http://my
> site.com/types}setNewCampaign]
> [SOAPObjectSerializerGenerator: writing serializer/deserializer
> for: {http://my
> site.com/types}setNewCampaignResponse]
> [SOAPObjectBuilderGenerator: writing object builder for:
> getAllCampaignTypesResp
> onse]
> [SOAPObjectBuilderGenerator: writing object builder for:
> getAllCampaignsResponse
> ]
> [SOAPObjectBuilderGenerator: writing object builder for:
> setNewCampaign]
> [SerializerRegistryGenerator: creating serializer registry:
> com.zcrm.server.CRMS
> ervice_SerializerRegistry]
> D:\jwsdp\jwsdp-1.4\jaxrpc\bin\com\zcrm\server\com\zcrm\server\CRMService_Impl.ja
> va:37: incompatible types
> found : com.zcrm.server.CRMService
> required: java.rmi.Remote
> return getCRMServicePort();
> ^
> D:\jwsdp\jwsdp-1.4\jaxrpc\bin\com\zcrm\server\com\zcrm\server\CRMService_Impl.ja
> va:48: incompatible types
> found : com.zcrm.server.CRMService
> required: java.rmi.Remote
> return getCRMServicePort();
> ^
> D:\jwsdp\jwsdp-1.4\jaxrpc\bin\com\zcrm\server\com\zcrm\server\CRMService_Stub.ja
> va:31: com.zcrm.server.CRMService_Stub is not abstract and does
> not override abs
> tract method getCRMServicePort() in com.zcrm.server.CRMService
> public class CRMService_Stub
> ^
> 3 errors
> error: compilation failed, errors should have been reported
> D:\jwsdp\jwsdp-1.4\jaxrpc\bin>
> -----------------------------------------------
>
> Plz check this error.This error is purely wscompile tool error.
>
> thanks,
> Shaba
>
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail
> <http://us.rd.yahoo.com/mail_us/taglines/10/*http://promotions.yahoo.com/new_mail/static/efficiency.html>
> - Send 10MB messages!
>
> > ATTACHMENT part 2 application/x-zip-compressed name=attachment.zip
> ---------------------------------------------------------------------
> 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
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> <http://us.rd.yahoo.com/mail_us/taglines/new/*http://promotions.yahoo.com/new_mail>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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