Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PCML and classpath

131 views
Skip to first unread message

halvor...@fortis.com

unread,
Mar 3, 2006, 8:54:00 AM3/3/06
to
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.

Thanks for any help

regards

Halvor

funkyfresh

unread,
Mar 13, 2006, 3:52:14 PM3/13/06
to
I presume this is WAS on the iseries. Is the pcml file actually there
on the iseries?

So the websphere app running on PC is fine, but fails when deployed to
iseries?

Like you, im assuming it is searching the classpath for the document,
but not finding it. Is the PCML directory on your classpath? If not,
try adding it to the classpath of the websphere server instance

0 new messages