Page 1 of 1

Web Service Client Error

Posted: Wed Apr 09, 2008 6:07 am
by Nisusmage
Can anyone help me on this problem.? I've a simple small webservice up and running. I've got the WSDL definitions in the WS Client and I'm trying to pass it 1 row of 4 columns of information. But I get this error. I'v found many posts on this error but none that fix my problem.

PavlovCreateTask..Web_Services_Client_0: TJClient::initialize: unable to create Java Virtual Machine; classpath = C:\IBM\InformationServer\Server\DSEngine\java/lib/wsclient.jar
C:\IBM\InformationServer\Server\DSEngine\java/lib/axis.jar
C:\IBM\InformationServer\Server\DSEngine\java/lib/commons-discovery.jar
C:\IBM\InformationServer\Server\DSEngine\java/lib/commons-logging.jar
C:\IBM\InformationServer\Server\DSEngine\java/lib/jaxrpc.jar
C:\IBM\InformationServer\Server\DSEngine\java/lib/saaj.jar
C:\IBM\InformationServer\Server\DSEngine\java/lib/wsdl4j.jar

Posted: Wed Apr 09, 2008 10:17 am
by eostic
It's an install/configuration problem with 8.x.... I'm not handy right now to my machine to give you the environment variables, but do some searching on the forum here for DATASTAGE_JRE and DATASTAGE_JVM, and/or look for issues surrounding JavaPack, which in some cases in 8.x exhibits the same symptoms.

Ernie

Posted: Wed Apr 09, 2008 5:46 pm
by lstsaur
Since you are in Windows platform, just add C:\IBM\InformationServer\ASBNode\apps\jre\bin to your PATH environment variable. Then, it should solve "unable to create JVM" problem.

Posted: Sat Apr 12, 2008 8:09 am
by Nisusmage
Still No solution.

I've tried all variations of the classpath and the path environment variables. Do i have to restart after each change? I don't think so, just checking. I've this and it just takes a very long time to test and it feels as if I'm grasping at straws.

Is anyone else battling with this? Or is this just my installation?

Posted: Sat Apr 12, 2008 8:34 am
by Nisusmage
YEEEAASS!!! It works.

Okay here are my findings for all windows users.

1) You need to create 2 new System Environment Variables.
1. Name: DATASTAGE_JRE
Value: C:\IBM\InformationServer\ASBNode\apps
2. Name: DATASTAGE_JVM
Value: \jre\bin\j9vm
2) Restart your Server. (Very important, bugged me for hours.)

And voila.. it works.
The Datastage JVM using a combination of the 2 paths to find the path of the JVM. i.e. DATASTAGE_JRE+DATASTAGE_JVM which concatenates as "C:\IBM\InformationServer\ASBNode\apps\jre\bin\j9vm", for clarity purposes.

Note: Make sure that these directories actually exist as well. There are a lot of different paths in this forum about this issue. So work out your configuration first.

G