Bug 207799 - NoClassDefFoundError for XMLGregorianCalendarImpl
Summary: NoClassDefFoundError for XMLGregorianCalendarImpl
Status: VERIFIED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-10-29 11:25 EDT by Ivy CLA
Modified: 2008-05-27 19:19 EDT (History)
1 user (show)

See Also:


Attachments
Use DatatypeFactory to construct XMLGregorianCalendar. (3.96 KB, patch)
2007-12-23 17:06 EST, Alexandros Karypidis CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivy CLA 2007-10-29 11:25:46 EDT
Using Websphere v6.1 JRE

Teneo's ECoreDataTypes.java expects to find the class XMLGregorianCalendarImpl in the package com.sun.org.apache.xerces.internal.jaxp.datatype.  In the 6.1 JRE, this class has been moved to package org.apache.xerces.jaxp.datatype.

Running Teneo with the v6.1 JRE results in a NoClassDefFoundError.

Stack trace follows:

java.lang.NoClassDefFoundError:  com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl
at java.lang.J9VMInternals.verifyImpl (Native Method)
at java.lang.J9VMInternals.verify (J9VMInternals.java:59)
at java.lang.J9VMInternals.initialize (J9VMInternals.java:120)
at org.eclipse.emf.teneo.hibernate.annotations.HbEDataTypeAnnotator.getCustomDataType(HbEDataTypeAnnotator.java:88)
at org.eclipse.emf.teneo.hibernate.annotations.HbEDataTypeAnnotator.annotate(HbEDataTypeAnnotator.java:52)
at org.eclipse.emf.teneo.hibernate.annotations.mapper.AnnotationGenerator.processPackage(AnnotationGenerator.java:151)
at org.eclipse.emf.teneo.hibernate.annotations.mapper.AnnotationGenerator.map(AnnotationGenerator.java:124)
at org.eclipse.emf.teneo.hibernate.annotations.mapper.PersistenceMappingBuilder.buildMapping(PersistenceMappingBuilder.java:130)
at org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbDataStore.java:548)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel(HbSessionDataStore.java:170)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initialize(HbSessionDataStore.java:78)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.getSessionFactory(HbSessionDataStore.java:196)
at samplePgm(samplePgm.java:48)
Comment 1 Alexandros Karypidis CLA 2007-12-23 17:06:48 EST
Created attachment 85768 [details]
Use DatatypeFactory to construct XMLGregorianCalendar.

http://dev.eclipse.org/newslists/news.eclipse.technology.emft/msg04139.html
Comment 2 Martin Taal CLA 2007-12-28 09:47:55 EST
Alexandros, thanks for the contribution. Patch has been committed. This will be in the next build.
 
 gr. Martin
Comment 3 Martin Taal CLA 2007-12-28 10:08:11 EST
Solution in build 0.8.0.I200712280940

gr. Martin
Comment 4 Nick Boldt CLA 2008-01-28 16:57:09 EST
Move to verified as per bug 206558.