I have some html which calls some java which uses pcml to call an i-series program. This works fine on my pc but when I place on the WAS it complains it can't fine my .pcml file.
Is it possible to set the classpath for my job as follows ? :
CommandCall cmd = new CommandCall(as400System);
cmd.run("ADDENVVAR ENVVAR(CLASSPATH) VALUE('.:/QIBM/PRODDATA/HTTP/PUBLIC/JT400/PCML:/QIBM/PRODDATA/HTTP/PUBLIC/JT400/PCML/CallPgm.pcml') REPLACE(*YES)");
This is setting it at the job level rather than the system level.
I do this shortly before I do :
pcml = new ProgramCallDocument(as400System, "CallPgm");
My pcml file is in the PCML directory.
I get :
java.util.MissingResourceException: PCML document source 'CallPgm' cannot be found.
Setting classpath at system level is not an option.
I have also copied my pcml to the same directory as my java classes.
How do I find out the full package name. My package is called Servlet. I think I have to include my package name
on my ProgramCallDocument line ? A full package name starts with COM? How do I know want comes after COM and before my package name ?
Thanks for any help
regards
Halvor
Is it possible to set the classpath for my job as follows ? :
CommandCall cmd = new CommandCall(as400System);
cmd.run("ADDENVVAR ENVVAR(CLASSPATH) VALUE('.:/QIBM/PRODDATA/HTTP/PUBLIC/JT400/PCML:/QIBM/PRODDATA/HTTP/PUBLIC/JT400/PCML/CallPgm.pcml') REPLACE(*YES)");
This is setting it at the job level rather than the system level.
I do this shortly before I do :
pcml = new ProgramCallDocument(as400System, "CallPgm");
My pcml file is in the PCML directory.
I get :
java.util.MissingResourceException: PCML document source 'CallPgm' cannot be found.
Setting classpath at system level is not an option.
I have also copied my pcml to the same directory as my java classes.
How do I find out the full package name. My package is called Servlet. I think I have to include my package name
on my ProgramCallDocument line ? A full package name starts with COM? How do I know want comes after COM and before my package name ?
Thanks for any help
regards
Halvor