I stumbled on this thread as I had the same issues as Deepak had.
@Peer:
I sincerely hope you don't take this the wrong way, but your reply, while 100% correct is, in my very humble opinion, completely beside the point of Deepak's question. He asks for help on something he's working on, so help him with his issue, don't tell him he's doing it wrong.
Although I do realize his method of posting his question might have been a bit weird
And on top of that it's late here in Belgium, so I might be cranky (sorry)
@Deepak:
http://www.ibm.com/developerworks/webservices/library/ws-tip-coding.html
read it
I got the exact same error message as you had. Analyzing the wsdl file that was generated by my Axis2 plugin in Eclipse, I noticed that the 'anyType' was used as a return type whenever I was exposing a method that was returning a 'List<MyObject>' type.
So I modified those methods to return 'MyObject[]' types. Regenerated the webservice (and the wsdl) and behold, no more error.
Hope it helped.
Pieter