|
Do you have an XML parser in your library list? I use the IBM supplied X4J400.jar parser. === Marshall Dunbar DPS, Inc. marshall@xxxxxxxxxxx direct:(828)635-5561 main office:(317)574-4300 (800)654-4689 ==== "cornelius, chad" <chad.cornelius@xxxxxxxxxxxxxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx 01/22/2004 02:13 PM Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> To "'JAVA400-L@xxxxxxxxxxxx'" <JAVA400-L@xxxxxxxxxxxx> cc Subject PCML document example? Does anyone have a good running example of how PCML is used on the 400? I am trying to call a program, but keep getting the following error. I am also not sure where the pcml document should reside. java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at com.ibm.as400.data.ProgramCallDocument.loadSourcePcmlDocument(ProgramCallDoc ument.java:1043) at com.ibm.as400.data.ProgramCallDocument.loadPcmlDocument(ProgramCallDocument. java:946) at com.ibm.as400.data.ProgramCallDocument.<init>(ProgramCallDocument.java:98) at com.state.judicial.databean.LDA.main(LDA.java:30) I am using the JT400Native.jar file. Here is my example: AS400 system = new AS400("server", "username", "passwd"); try { system.connectService(AS400.SIGNON); connected = system.isConnected(); System.out.println(connected); pcml = new ProgramCallDocument(system, "LDApcml"); rc = pcml.callProgram("CURLEY99"); System.out.println("rc = " + rc); } catch(Exception e){ e.printStackTrace(System.err); } Thanks, Chad _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.