Info while runing the WSDL2java as standalone application
rajendhar gangoni
Greenhorn
Joined: Dec 23, 2008
Posts: 12
posted
0
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: 2906
posted
0
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 ]
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..
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Info while runing the WSDL2java as standalone application