• Post Reply Bookmark Topic Watch Topic
  • New Topic

[Axis2] Error while generating client code from WSDL

 
Chris Petersen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

i have a huge problem! whilst compiling client code from WSDL files via Axis2 the compiler throw some errors at me:

[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] ^

i figured out that i could have somthing to do with a parameter the Service class needs. Its called DataHandler... Can I somehow replace this parameter? and why is it not working out with this kind of file type?

cheers for your help,
chris
 
Geoff Ruscoe
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am seeing this exact same problem. We recently switched from Axis1 (1.4) to Axis2 (1.1). I generate my service for Axis2, deploy it and everything seems fine. WSDL looks okay except for the fact it has about twice as many xml schema definitions as I have objects that are being published (but I suppose that is another story).

Anyway, when I create a client (also using Axis2 1.1) it creates a 55,000 line java file for the Stub. In this file there is a class called Class31. In this it creates a method getClass to return Class.

In fact the xmlbeans databinding fails when doing the wsdl2java. This doesn't make sense to me since AXIS2 is what generated the WSDL in the first place.

Any hints would be greatly appreciated.

Thanks,
Geoff
 
Todd Johnson
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you subscribe to and post your question to the Axis 2 mailing list. You should get an immediate reply to your question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!