|
Re: XMLGregorianCalendar error Eclipse Luna [message #1429832 is a reply to message #1429421] |
Tue, 23 September 2014 20:29 |
Tauno Voipio Messages: 742 Registered: August 2014 |
Senior Member |
|
|
Khajan Joshi wrote on Tue, 23 September 2014 10:55I am getting the following error after generating the java code after wsimport.
Error
Abstract class javax.xml.datatype.XMLGregorianCalendar cannot be used as a runtime class because it is not extended by a non abstract class
which is suitable as a runtime class
I am using dateTime as argument to one method,
This is the service interface method.
public List<Weather> getForecast(
@WebParam(name = "arg0", targetNamespace = "xyzdotcom/")
XMLGregorianCalendar arg0,
@WebParam(name = "arg1", targetNamespace = "xyzdotcom/")
int arg1)
throws Exception_Exception
This is a Java question. An abstract class is a template for a class and it cannot be used directly. See the discussion at <http://stackoverflow.com/questions/835889/java-util-date-to-xmlgregoriancalendar>.
--
Tauno Voipio
|
|
|
Powered by
FUDForum. Page generated in 0.08349 seconds