Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Info while runing the WSDL2java as standalone application

 
rajendhar gangoni
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
while i am running the WSDL2java as the standalone application
i am getting this message saying
--The class java.lang.Throwable is defined in a java or javax package and cannot be converted into an xml schema type. An xml schema anyType will be
used to define this class in the wsdl file.
any help can be appreciated...
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Originally posted by rajendhar gangoni:
while i am running the WSDL2java as the standalone application


Actually that message makes no sense in the context of WSDL2Java - which creates Java code from the WSDL.

That message would appear if you use Java2WSDL and you are trying to expose an exception that isn't derived from java.lang.Exception.

"The rules" state that exceptions can only be exposed through a web service endpoint (as SOAP faults) if they are a subclass of java.lang.Exception - other Throwables are illegal.

See also here.
[ December 24, 2008: Message edited by: Peer Reynders ]
 
rajendhar gangoni
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..
i got it.
But now i struck with other problem
When i am call the WSDL2Java from a struts action class.
the run method in the WSDL2Java is internally invoking the System.exit()
so that my Application Server(Jboss) is forcefully shutting down.
how can i come out this problem
please help me..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic