I am running the sample HL7 message parsing project available here.
When running any file I am getting the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/registry/ebxml/util/UUIDFactory
at cdac.medinfo.sdk.hl7282.utils.StandardMethods.generateUUID(StandardMethods.java:317)
at cdac.medinfo.sdk.hl7282.utils.HL7Config.enableLogging(HL7Config.java:114)
at in.cdac.hl7model.ADT_A01_FileTest.main(ADT_A01_FileTest.java:28)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.registry.ebxml.util.UUIDFactory
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Which is the jar file for the UUIDFactory
class? I have the following jars in my classpath:
The jar file for this dependency is available here: https://www.dropbox.com/s/rxu4jwpqaec1uq7/uuid.jar?dl=0