Re: question on wsdl2java generated client

2007-03-19 Thread Amila Suriarachchi

Are you using any element Name named as class or Class

On 3/17/07, eric zhou [EMAIL PROTECTED] wrote:


 Hi,



I met the following error while compiling client code generated from
wsdl2java,



 [javac] \client\StopServiceStub.java:26070: getClass() in
cient.StopServiceStub.Class31 cannot override getClass() in
java.lang.Object; overridden method is final
[javac] public Class getClass(){
[javac] ^





It seems to be the same described in this post:




http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=next_topicf=51t=004144go=older





Any suggestions are appreciated!





eric





--
Amila Suriarachchi,
WSO2 Inc.


RE: question on wsdl2java generated client

2007-03-19 Thread eric zhou
Amila,

 

Thanks for your reply.

No, I don't have any element Name named as class or Class.

 

However, I did find that the error has something to do with defining an enum
type inside the service implementation class.

Because after I remove the enum type, and replace it with plain String,
everything works fine.

 

Is there some sample code on using custom data type in Axis2?

 

Thank you again,

 

eric

 

  _  

From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 19, 2007 3:19 AM
To: axis-user@ws.apache.org
Subject: Re: question on wsdl2java generated client

 

Are you using any element Name named as class or Class

On 3/17/07, eric zhou [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED] 
wrote:

Hi,

 

I met the following error while compiling client code generated from
wsdl2java, 

 

 [javac] \client\StopServiceStub.java:26070: getClass() in
cient.StopServiceStub.Class31 cannot override getClass() in
java.lang.Object; overridden method is final
[javac] public Class getClass(){
[javac] ^

 

 

It seems to be the same described in this post:

 

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=next_topic
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=next_topicf=51;
t=004144go=older f=51t=004144go=older

 

 

Any suggestions are appreciated!

 

 

eric




-- 
Amila Suriarachchi,
WSO2 Inc. 



question on wsdl2java generated client

2007-03-16 Thread eric zhou
Hi,

 

I met the following error while compiling client code generated from
wsdl2java, 

 

 [javac] \client\StopServiceStub.java:26070: getClass() in
cient.StopServiceStub.Class31 cannot override getClass() in
java.lang.Object; overridden method is final
[javac] public Class getClass(){
[javac] ^

 

 

It seems to be the same described in this post:

 

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=next_topic
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=next_topicf=51;
t=004144go=older f=51t=004144go=older

 

 

Any suggestions are appreciated!

 

 

eric