File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
JAX-WS, stub generation isues
Joined: May 22, 2006
Oct 21, 2009 14:27:27
I am usinng this
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
. 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
2. Some of the classes that my implementation class accesses have the fields which is of type "java.sql.Date". It cribs saying that
Date does not have a no-arg default constructor. this problem is related to the following location: at java.sql.Date at public java.sql.Date com.ing.tpa.services.valueobject.ParticipantValueObject.getBirthDate() at com.ing.tpa.services.valueobject.ParticipantValueObject at private com.ing.tpa.services.valueobject.ParticipantValueObject com.ing.tpa.services.wsfacade.jaxws.FindAllParticipantByPlanIDResponse._return at com.ing.tpa.services.wsfacade.jaxws.FindAllParticipantByPlanIDResponse
Of course I cannot add the default constructor in that class how to handle it.
Joined: Oct 04, 2006
Oct 21, 2009 21:02:41
If possible, replace the use of Date with
, which is better suited (that is, has a no-args constructor).
Joined: May 22, 2006
Oct 22, 2009 09:34:55
I found this post useful.
It solved my problem.
I agree. Here's the link:
subject: JAX-WS, stub generation isues
Clarification about Eclipse 3.4, Axis 2 and Tomcat 5.5
Apache CXF generic client - JAX-WS or wsdl2java stubs?
javax.xml.ws Packaging simple Questions
Spring-WS /JAX-RPC doubt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014