File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes JAX-WS, stub generation isues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS, stub generation isues" Watch "JAX-WS, stub generation isues" New topic

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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
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.

It solved my problem.
I agree. Here's the link:
subject: JAX-WS, stub generation isues
It's not a secret anymore!