| 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.
|
 |
 |
|
|
subject: JAX-WS, stub generation isues
|
|
|