• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-WS, stub generation isues

 
Arun Kumar
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this post useful.


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

It solved my problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic