Can't launch Unicorn Client 5.1.4 app from SGD Webtop

Dear fourm user,

My customer has installed Unicorn app in Windows 2003 server. They want to launch the Unicorn app from SGD webtop. I created a Unicorn link in user webtop, the user launch Unicorn application from Webtop but received error message " Fatal Exception Occurred. Program will exit "

Details as follow:

--

1) Create Windows Application Object

Name: CMS Client

Application Command: C:\UNICORN-CLIENT\java\bin\javaw.exe

Arguments for Command: -jar -DOrbixWeb.IT_ORBIXD_PORT=%PORT% -DOrbixWeb.IT_ORBIXD_IIOP_PORT=%PORT% -DOrbixWeb.NS_HOST_NAME=%PORT% -DOrbixWeb.IT_NS_PORT=%PORT% .\lib\enterpriselogin.jar 3

Max Instances: 1

Note: the rest are defaults.

2) Link the CMS Client to a Win2003 server.

3) Link CMS client to user1 and user2

4) From SGD, user1 or user2 loged in.

5) Click CMS client app( See windows blue background and also see the error " Fatal Exception Occurred. Program will exit " ).

Note:

1) I login to to Win2003 server through Remote Desktop Application.

- Click Start button

- Click the Unicorn application and it successfully launch.

2) I open Command Prompt

- Browse to Unicorn Installation directory

- type: C:\UNICORN-CLIENT\java\bin\javaw.exe -jar -DOrbixWeb.IT_ORBIXD_PORT=%PORT% -DOrbixWeb.IT_ORBIXD_IIOP_PORT=%PORT% -DOrbixWeb.NS_HOST_NAME=%PORT% -DOrbixWeb.IT_NS_PORT=%PORT% .\lib\enterpriselogin.jar 3 ( The Unicorn launch failed with error " Fatal Exception Occurred. Program will exit "

Did i missed any steps. Appreciate if some experts can help me to guide on launching the Unicorn Application.

Thanks in advance.

[1698 byte] By [Alisamprasa] at [2007-11-27 10:19:23]
# 1

By using an environment variable I assume this variable must be different for all users/instances. Is this program working when you make a direct RDP connection to the WIndows 2003 Server?

Is the environment variable PORT set during logon?

If not change the %PORT% with something usefull as a first test to see if that helps.

Have you verified that the normal logonscrips are running? With Active Directory a different tab is present in the user properties for the user to connect to a Windows Terminal Server.

- Remold | Everett

remolda at 2007-7-28 16:57:21 > top of Java-index,Desktop,Sun Secure Global Desktop Software...
# 2

Hi Remold,

Thank you for your reply.

According to customer the Unicorn command and arguments are the same for all users. I used Remote Desktop Connection to connect to Win2003 server, click start and click the application and it was successfully launch the app. But with the same RDP session i open Command Prompt and manually typied the command but i saw error message which i mentioned earlier.

Is the environment variable PORT set during logon?

If not change the %PORT% with something usefull as a first test to see if that helps.

Ans: I am not sure. Please help and guide me on how to test.

Have you verified that the normal logonscrips are running?

Ans: How to verify the logon script?

Any other info you required ?

Thanks.

Alisamprasa at 2007-7-28 16:57:21 > top of Java-index,Desktop,Sun Secure Global Desktop Software...
# 3

Basically: when you get the program running by starting it from the command line it will start with SSGD.

What I normally do is:

Logon to the Applicaiton Server via RDP

Start teh command prompt

cd to the directory from where the application must be started (startup directory)

start the program (application command line)

Configure the application in SSGD

Split the application command line in application command and arguments (like you already did)

and on the advanced tab of the application (this is a sub tab of the tab attributes in the Object Manager) specify the protocol arguments.

The protocol arguments are: -dir "<startup directory>"

For example: -dir "c:\Program Files"

To verify if the environment variable is set type the command 'set' in the command line and look for a line beginning with: PORT=

PORT is not a standard environment variable, so this must be set somewhere during logon or the Start Menu item for this application starts a batch file (or alike) which calls the actual Java application.

To be short: first get it running from the command line before change the configuration within SSGD.

- Remold | Everett

remolda at 2007-7-28 16:57:21 > top of Java-index,Desktop,Sun Secure Global Desktop Software...
# 4

Hi Remold,

First of all, your solution has worked perfectly well.

I would like to share the steps i have changed:

1) Edit the Windows Application Object

- Name: CMS Client

- Command: C:\UNICORN-CLIENT\java\bin\javaw.exe

- Command Argument: -jar -DOrbixWeb.IT_ORBIXD_PORT=%PORT% -DOrbixWeb.IT_ORBIXD_IIOP_PORT=%PORT% -DOrbixWeb.NS_HOST_NAME=%PORT% -DOrbixWeb.IT_NS_PORT=%PORT% .\lib\enterpriselogin.jar 3

And In Advanced Tab:

- Protocol: -dir "C:\UNICORN-CLIENT"

Then, login user1 from SGD webtop, click CMS Client and it successfully launch.

Thousand thanks for saving my day on-site :-)

Regards,

Mohamed Ali.

Alisamprasa at 2007-7-28 16:57:21 > top of Java-index,Desktop,Sun Secure Global Desktop Software...