This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2921
    
    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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Info while runing the WSDL2java as standalone application
 
Similar Threads
The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound
UTF-16 Encoding -Content is not allowed in prolog.
is there any alternative for ArrayList object in web services
WSDL2Java exits JVM.. how to handle it?
WSDL2Java emitter timeouted problem