skip to main content

Client deployment : Deployment through Java Web Start (JavaWS)

Deployment through Java Web Start (JavaWS)
Java Web Start (JavaWS) is a technology that allows users to start application software for the Java Platform directly from the Internet using a web browser.
This chapter explain how to set up JavaWS on the server machine so that users can run the launch script from their browser.
Requirements:
in order to avoid errors related to security checks performed by the latest JVMs, Permissions should be set to "all-permissions" in the MANIFEST file. To achieve it, proceed as follows:
a.
create a text file, e.g. mymanifest.txt and put the following line into it:
b.
c.
Steps:
1.
 
For development and demonstration you can use a self-signed test certificate. (A trust-worthy certificate can be obtained from a certificate authority, such as VeriSign or Thawte, and should be used when the application is put into production).
 
For example,
a.
b.
You will get prompted for a information about the new key, such as password, name, etc. This will create the myKeystore file on disk.
c.
This will prompt for the password. Generating the certificate may take a few minutes.
d.
It should list something like:
Your keystore contains 1 entry:
e.
Note: For most cases, iscobol.jar contains all of the classes necessary for the client. If your application requires other jar files on the client, then you must also sign those jar files by repeating the jarsigner command line above. However, it may be more convenient to combine everything into one jar file.
2.
Edit the isclient.jnlp file:
a.
Create a file named isclient.jnlp with the following contents:
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://127.0.0.1" href="isclient.jnlp">
  <title>isCOBOL sample</title>
  <vendor>Veryant</vendor>
  <j2se version="1.6+"/>
  <j2se version="1.5+"/>
  <jar href="iscobol.jar"/>
 <application-desc main-class="com.iscobol.gui.client.Client">
  <argument>-hostname</argument>
  <argument>192.168.0.17</argument>
  <argument>-port</argument>
  <argument>1234</argument>
  <argument>-c</argument>
  <argument>myapp.properties</argument>
  <argument>MYAPP</argument>
b.
Note - the jnlp pointed by the href attribute is the one that is actually executed.
c.
d.
e.
3.
Place isclient.jnlp and your iscobol.jar file in the directory you have chosen on your web server. You may rename isclient.
4.
5.
6.
If you see the “Java Starting” splash screen and after answering the security warning dialog nothing seems to happen, then there is likely to be a connection or isCOBOL Server configuration problem. To get diagnostic information you can configure Java to show the Java Console. For example, select “Java” from the Windows control panel and select “Java Con­sole/Show Console” on the advanced tab. Then run your test again, the Java console will pop up and the specific error will appear in the console window
 
Security issues
Starting with Java 7 Update 51, Java doesn’t allow users to run applications that are not signed (unsigned), self-signed (not signed by trusted authority) or that are missing permission attributes.
If you followed the above steps, then you obtained a self-signed application, that may return one of these errors when ran with a recent Java:
As a workaround, you can use the Exception Site list feature to run the applications blocked by security settings. Adding the URL of the blocked application to the Exception Site list allows it to run with some warnings. The exception site list is managed in the Security tab of the Java Control Panel. The list is shown in the tab. To add, edit or remove a URL from the list, click Edit Site List.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left