Re: [Joost] AIX errors running joost.jar
Status: Beta
Brought to you by:
obecker
From: Udick, J. <Joh...@fp...> - 2012-12-07 16:41:40
|
thanks all final execution: java -cp commons-logging-1.1.1/commons-logging-1.1.1.jar:joost.jar net.sf.joost.Main -nodecl mydata.xml itvl_read.stx | awk 'NF>0' John Udick joh...@fp... (719) 237-5580 From: Andreas Benneke [mailto:ab...@be...] Sent: Friday, December 07, 2012 11:08 AM To: Discussion list for Joost users Subject: Re: [Joost] AIX errors running joost.jar Hi, please note that the "-cp" seems to be ignored by java if "-jar" is given... You may try something like this (assuming the commons-logging.jar is located at ./commons-logging-1.1.1/commons-logging-1.1.1.jar): java -cp ./commons-logging-1.1.1/commons-logging-1.1.1.jar;./joost.jar net.sf.joost.Main -nodecl mydata.xml itvl_read.stx Regards, Andreas Am 07.12.2012 16:34, schrieb Udick, John: Maurice, I have installed the commons logging but still get the same response. Is there a particular environment variable that needs to be set? Could it be something other than java itself, maybe something from OS? The commons logging is installed at the same location as the joost.jar: drwxrwxrwx 3 gpadmin staff 4096 Dec 05 11:49 commons-logging-1.1.1 -rwxrwxrwx 1 gpadmin staff 528111 Nov 20 16:53 joost.jar -rwxr-xr-x 1 oracle dba 656027305 Dec 07 10:08 mydata.xml [@etl700]$ /usr/java6/bin/java -cp commons-logging-1.1.1 -jar joost.jar -nodecl mydata.xml itvl_read.stx | awk 'NF>0' Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.Log at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:72) at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.Log at java.net.URLClassLoader.findClass(URLClassLoader.java:434) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) ... 3 more Could not find the main class: net.sf.joost.Main. Program will exit. John Udick joh...@fp...<mailto:joh...@fp...> (719) 237-5580 From: Maurice Jumelet [mailto:ma...@ju...] Sent: Wednesday, December 05, 2012 10:09 AM To: Discussion list for Joost users Subject: Re: [Joost] AIX errors running joost.jar John, This seems to be a class-loading issue - not related to joost - , the AIX environment you are using does not have commons logging in the classpath (http://commons.apache.org/logging/). Dit you try downloading the commons logging.jar and adding it to the classpath? java -cp commons-logging-1.1.1 -jar joost.jar .... Regards, Maurice 2012/12/5 Udick, John <Joh...@fp...<mailto:Joh...@fp...>> We run joost.jar on Linux without any issue on java 1.4, 1.5 and 1.6; however, when running on AIX the process fails. Is there a separate or special step required to get this process to work with AIX? [@mdw scripts]$ java -jar joost.jar -nodecl itvl_data.xml itvl_read.stx | awk 'NF>0' LINUX: Linux mdw 2.6.18-238.27.1.el5.hotfix.bz516490 #1 SMP Tue Sep 20 18:01:41 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode) AIX: AIX etlsvr## 1 6 00F647744C00 java version "1.6.0" Java(TM) SE Runtime Environment (build pap3260sr9fp2-20110627_03(SR9 FP2)) IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260sr9-20110624_85526 (JIT enabled, AOT enabled) J9VM - 20110624_085526 JIT - r9_20101028_17488ifx17 GC - 20101027_AA) JCL - 20110530_01 [@etlsvr## scripts]$ java -jar joost.jar -nodecl itvl_data.xml itvl_read.stx | awk 'NF>0' Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.Log at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:72) at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.Log at java.net.URLClassLoader.findClass(URLClassLoader.java:434) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) ... 3 more Could not find the main class: net.sf.joost.Main. Program will exit. John Udick joh...@fp...<mailto:joh...@fp...> (719) 237-5580 ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Joost-help mailing list Joo...@li...<mailto:Joo...@li...> https://lists.sourceforge.net/lists/listinfo/joost-help |