From: Christian O. <chr...@gm...> - 2014-05-20 11:03:17
|
You need a log4j.xml to make the warnings go away. And you still seem to have version conflicts in your project. Have you run mvn dependency:tree to check? Christian 2014-05-20 12:45 GMT+02:00 Sara Fatima <sar...@gm...>: > Hi > > I have corrected the version numbers and could successfully compile. > > However when I am trying to run the class I have getting following errors. > > log4j:WARN No appenders could be found for logger > (ca.uhn.hl7v2.parser.DefaultModelClassFactory). > log4j:WARN Please initialize the log4j system properly. > Exception in thread "main" java.lang.NoSuchMethodError: > ca.uhn.hl7v2.validation.impl.ValidationContextFactory.defaultValidation()Lca/uhn/hl7v2/validation/ValidationContext; > at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:109) > at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:100) > at > org.openmrs.module.hapiexample.CreateAMessage.main(CreateAMessage.java:33) > > > Regards > Sara Fatima > > > > |