This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes Info while runing the WSDL2java as standalone application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Info while runing the WSDL2java as standalone application" Watch "Info while runing the WSDL2java as standalone application" New topic
Author

Info while runing the WSDL2java as standalone application

rajendhar gangoni
Greenhorn

Joined: Dec 23, 2008
Posts: 12
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

Joined: Aug 19, 2005
Posts: 2922
    
    5
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

Joined: Dec 23, 2008
Posts: 12
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..
 
GeeCON Prague 2014
 
subject: Info while runing the WSDL2java as standalone application