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 <sara.mirz...@gmail.com>:
> 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
>
>
>
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel