This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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...
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 ]
Joined: Dec 23, 2008
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..