Forums Register Login

When I unzip my war,I could find xercesImpl-2.7.1.jar.When I search for XMLGregorianCalendarImpl.Thi

+Pie Number of slices to send: Send

When I unzip my war,I could find xercesImpl-2.7.1.jar.When I search for XMLGregorianCalendarImpl.This class is in xercesImpl-2.7.1.jar.It has exactly same package as it is in the error like org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl.Why it is not finding it in Runtime?


In my XSD,I have the following code
<xs:element name="creationDate" type="xs:dateTime" minOccurs="0"/>

And in my DAO,I have the following code to insert into database.

Date carDate = new java.util.Date();
if(creditAssessmentRequest.getCreationDate()!=null) {
carDate = creditAssessmentRequest.getCreationDate().toGregorianCalendar().getTime();
}
but I have the following error ,When insert data into database.

] Root cause of ServletException.
java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl
at org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl.newXMLGregorianCalendar(Unknown Source)
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:546)
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:520)
at com.sun.xml.bind.v2.runtime.FilterTransducer.parse(FilterTransducer.java:80)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:241)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
Truncated. see log file for complete stacktrace

If I want to insert system timestamp,how do I do that?
If I want to insert just Date,how do I do that?
+Pie Number of slices to send: Send
 

I could find xercesImpl-2.7.1.jar.



Where in the directory structure do you find it?

Bill
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2206 times.
Similar Threads
java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2 on weblogic server stop
Debug EJB 3.0 project in Eclipse 3.7 with Oracle WebLogic 12C server
XSD - CONVERTING XSD DATETIME TO JAVA.UTIL.DATE - java.lang.NoClassDefFoundError: org/apache/xerces/
XSD TYPE dateTime - returns XMLGregorian calendar- how to convert into java.util.Date
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:08:09.