From: Tripp, B. <Bry...@uh...> - 2004-01-28 01:06:44
|
Hi Anibal, You also need commons-logging.jar in your classpath. Actually, in general it's best to put all the jars in HAPI_HOME/lib in your classpath. Bryan -----Original Message----- From: Anibal Constante Brito To: hl7...@li... Sent: 27/01/2004 5:59 PM Subject: [HAPI-devel] about log4j Hello: I tried to run the example that appear in HAPI Technical Documentation in Message Parsing Tutoral. The exmple compile and build, but when I run it this happen: java.lang.NoClassDefFoundError: org/apache/commons/logging/Log at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at ca.uhn.hl7v2.parser.Parser.<clinit>(Parser.java:52) at HAPI.main(HAPI.java:13) Exception in thread "main" I think that the problem was the log4j and trying to copy the log4j-1.2.8.jar to /ext folder, and /lib folder of jre. Beside copy to /bin folder of jsdk. But not tired I copy the example in the same folder at testpanel without any result. Please if any body can help a pleasure very much. Anibal. This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. |