Agile JavaClient and Java Web Start

JavaClient uses Java Web Start technology to launch all required jar files and resources into local cache to deploy with online and offline mode. We will discuss how JavaClient is loaded from remote Application Server.

Detect Java Web Start

Usually we access JavaClient from the entrance http://host:port/JavaClient/start.html . This start.html will detect if Java Web Start is installed on local client machine with below script language in browser's engine. If the browser is not IE, we use navigator element and its function to detect application/x-java-jnlp-file. Else it will use VBScript in IE's engine to detect the object of JavaWebStart. The detailed code is like below. You also can refer to Oracle document in this link. http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/launch.html

pcclient.jnlp

pcclient.jnlp is the entrance point of JavaClient. We save the file to local and open in notepad. We will notice there is codebase defined as below:

codebase="http://agile.mycompany.com:7001/JavaClient"

That means all the jar and resource must be loaded from the base URL /JavaClient/.

Below entry define the required data for JavaClient. It requires 1.6+ JRE, and defines the expected max heap size. The required jar and other expected extension resources in other referenced jnlp files.

After all the resource is loaded into local cache, the main class com.agile.ui.pcclient.PCClient runs and asks for login. If we click the Option in login window, we see URL is pre-defined. It is actually read from the pcclient.jnlp.

	serverURL=t3://agile.mycompany.com:7001

Additionally information we can see directly from JavaClient is the webserverName, appserverVersion and UpdateVersions, all of them are defined here as well.

Local Cache

Previously we say all jar and resource are loaded from remote into local machine, if we go to java's cache directory we will see all of them.

Comments:

Hi Jie,

All of a sudden, my start.html page does not load at all. No error message nothing - a blank page opens up.
I have FF22 & IE8. Agile version is 9.3.0.1 and app server is OAS10.3.0.1
I have an old JNLP stored however it is not opening - a message comes up after verification "your security settings have an application from running with an out-of-date version of java".
I have fixed this message by reducing the security setting for Java to medium.
However, the start page still does not load.
Any suggestions?

Regards,
Manju

Posted by Manju on November 19, 2013 at 06:05 AM CST #

Hi Manju,
If you are using JRE 6, you need to upgrade to latest Update of JRE 6, not reducing the security setting.

Jie

Posted by Jie Chen on December 02, 2013 at 08:15 PM CST #

Hi Jie,

I able to launch the start page and java client. But after key in username and password, it popup error stated "server is not available"
any idea?

Thanks.
Kee Hoong

Posted by Kee Hoong on February 11, 2014 at 03:34 PM CST #

Possible cause:
1. Your serverURL is pointing to a Loadbalancer/IIS which does not support t3/ormi protocol.
2. serverURL is pointing to the Admin server if app server is weblogic.

Posted by guest on February 18, 2014 at 08:28 AM CST #

Post a Comment:
  • HTML Syntax: NOT allowed
About


Jie Chen is the L3 memeber in Oracle Agile Support.
This blog focuses on the Maintenance, Diagnosis and Tuning related technical skills.
The technology covers Java/JavaEE, Weblogic, Security, Clustering, and Database of course.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today