Web Service Client Error

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Nisusmage
Premium Member
Premium Member
Posts: 103
Joined: Mon May 07, 2007 1:57 am

Web Service Client Error

Post 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
~The simpliest solutions are always the best~
~Trick is to understand the complexity to implement simplicity~
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post 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
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post 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.
Nisusmage
Premium Member
Premium Member
Posts: 103
Joined: Mon May 07, 2007 1:57 am

Post 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?
~The simpliest solutions are always the best~
~Trick is to understand the complexity to implement simplicity~
Nisusmage
Premium Member
Premium Member
Posts: 103
Joined: Mon May 07, 2007 1:57 am

Post 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
~The simpliest solutions are always the best~
~Trick is to understand the complexity to implement simplicity~
Post Reply