Re: [HAPI-devel] Need help using HAPI.

2014-05-20 Thread Christian Ohr
Yes, that's what I was looking for. This dependency is not replaced by Maven because it has a different artifactId. 2014-05-20 15:14 GMT+02:00 James Agnew : > Hi Sara, > > The issue likely lies in the following part of the dependency tree you > posted: > > [INFO] +- org.openmrs.api:openmrs-api:j

Re: [HAPI-devel] Need help using HAPI.

2014-05-20 Thread James Agnew
Hi Sara, The issue likely lies in the following part of the dependency tree you posted: [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided (snip) [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided What this means is that the OpenMRS library has a dependency on a very old version of HAP

Re: [HAPI-devel] Need help using HAPI.

2014-05-20 Thread Sara Fatima
Hi Where do I get the log4j.xml file? Also I tried running mvn dependency:tree Here is what I got. I can't understand what I am supposed to look into this for? E:\GSOC2014\hapiexample>mvn dependency:tree [INFO] Scanning for projects... [INFO] --

Re: [HAPI-devel] Need help using HAPI.

2014-05-20 Thread Christian Ohr
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 : > Hi > > I have corrected the version numbers and could successfully compile. > > Howeve

Re: [HAPI-devel] Need help using HAPI.

2014-05-20 Thread Sara Fatima
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 prope

Re: [HAPI-devel] Need help using HAPI.

2014-05-20 Thread Christian Ohr
Try running mvn dependency:tree in your project and check if there is any old hapi library in the classpath. HapiContext exist as of version 2.1. Sometimes mvn help:effective-pom also helps. Christian 2014-05-20 11:40 GMT+02:00 Sara Fatima : > Hi > I have changed the HAPI base version to 2.2 as

Re: [HAPI-devel] Need help using HAPI.

2014-05-20 Thread Sara Fatima
Hi I have changed the HAPI base version to 2.2 as shown below. However it still doesn't seem to work and i am getting the same error. Do we need to add any JAR files while we are using maven too? ca.uhn.hapi hapi-base 2.2 ca.uhn.hapi hapi-structures-v21 2.2 ca.uhn.hapi hapi-

Re: [HAPI-devel] Need help using HAPI.

2014-05-20 Thread Jens Villadsen
Your Hapi base version is 2.1 while your structures are using 2.2. Please use the same version at all places On 20 May 2014 07:51, Sara Fatima wrote: > Hi > > > > I am facing few errors while using HAPI. > > > > These are the changes I have done into the pom.xml , I have also attached > a scre

[HAPI-devel] Need help using HAPI.

2014-05-19 Thread Sara Fatima
Hi I am facing few errors while using HAPI. These are the changes I have done into the pom.xml , I have also attached a screen shot of the error screen. ca.uhn.hapi *hapi*-base 2.1 ca.uhn.hapi *hapi*-structures-v21 2.2 ca.uhn.hapi *hapi*-structures-v251