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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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.
It is sorta covered in the JavaRanch Style Guide.
subject: JAX-WS, stub generation isues