aspose file tools
The moose likes Web Services and the fly likes JAX-WS, stub generation isues Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "JAX-WS, stub generation isues" Watch "JAX-WS, stub generation isues" New topic
Author

JAX-WS, stub generation isues

Arun Kumar
Ranch Hand

Joined: May 22, 2006
Posts: 62
Hi Guys,
I am usinng this ant apt task to generate the JAX-WS stubs for my implementation classes. I am facing two issues.

1. My classes throw a "ProcessingException" which is nothing but a framework class and I do not have access to it.

It crashes saying that it does not have default constructor for java.lang.Throwable. So I made it run by commenting out this piece of code.

But what is the solution to it, how to handle the customized checked exception because at the end of all this it will always refer to the java.lang.Throwable


2. Some of the classes that my implementation class accesses have the fields which is of type "java.sql.Date". It cribs saying that



Of course I cannot add the default constructor in that class how to handle it.

Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
If possible, replace the use of Date with XMLGregorianCalendar, which is better suited (that is, has a no-args constructor).
Best wishes!
Arun Kumar
Ranch Hand

Joined: May 22, 2006
Posts: 62
I found this post useful.


http://weblogs.java.net/blog/2005/09/30/using-jaxb-20s-xmljavatypeadapter

It solved my problem.
 
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: JAX-WS, stub generation isues
 
Similar Threads
Clarification about Eclipse 3.4, Axis 2 and Tomcat 5.5
JAX-WS Question
javax.xml.ws Packaging simple Questions
Apache CXF generic client - JAX-WS or wsdl2java stubs?
Spring-WS /JAX-RPC doubt