Using Web Start Workstation with Java 7 u51 (Java7u51, Java 1.7.0_51-b13)

book

Article ID: 19096

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

Description:

A Technical Advisory has been issued to address problems starting the APM Web Start Workstation. The Advisory allows users to run the Web Start workstation with Java 7 u45, but does not work with Java 7 u51. This article updates the Advisory to allow users to run the Web Start workstation with the enhanced security present in Java 7 u51 and above by taking the additional step of reducing the Security Level from High to Medium.

Solution:

Java 7u51x64 is installed on the user's Workstation PC.
APM Web Start Workstation 9.5.1.0

Check the local Java version on the workstation PC with the command

java -version

<Please see attached file for image>

Figure 1

Open an IE browser on the user's Workstation PC.

Enter the address of the EM Web Start in the browser:

http://xxx:8081/workstation

The Web Start workstation fails to launch.

<Please see attached file for image>

Figure 2

<Please see attached file for image>

Figure 3


<jnlp codebase="http://xxx.ca.com:8081/">
 <information>
  <title>CA Introscope Workstation 9.5.1.0</title>
  <vendor>CA Technologies</vendor>
  <description>Introscope Workstation</description>
  <icon href="/images/ca_technologies_logo.png"/>
  <icon kind="splash" href="/images/ca_technologies_logo.png"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
  <jar href="workstationProduct/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar"/>
  <extension name="Introscope Workstation" href="jnlp/com.wily.introscope.workstation.feature.jsp"/>
  <extension name="Eclipse Plugins" href="jnlp/eclipseplugins.jsp"/>
  <property name="osgi.instance.area" value="@user.home/Application Data/Wily/Introscope/product/workstation"/>
  <property name="osgi.configuration.area" value="@user.home/Application Data/Wily/Introscope/product/workstation"/>
<property name="eclipse.product" value="com.wily.introscope.workstation.productWebstart"/>
<j2se version="1.6*&1.6.0_05+" java-vm-args="-Xms64m -Xmx512m -Dsun.java2d.noddraw=true" href="http://java.sun.com/products/autodl/j2se"/>
<property name="sun.java2d.noddraw" value="true"/>
</resources>
<application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
  <argument>-noexit</argument>
  <argument>-clean</argument>
  <argument>-loginhost</argument>
  <argument>xxx.ca.com</argument>
  <argument>-loginport</argument>
  <argument>5001</argument>
  <argument>-autofill</argument>
  <argument>true</argument>
  <argument>-timezone</argument>
  <argument>timezone</argument>
  <argument>-conmeth</argument>
  <argument>all</argument>
 </application-desc>
</jnlp> 

<Please see attached file for image>

Figure 4

java.lang.SecurityException: Missing required Permissions manifest attribute in main jar: http://xxx.ca.com:8081/workstationProduct/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar


    at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source)       
    at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source) 
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Web Start fails to start with SecurityException.

Implement Technical Advisory Workaround Option 1 for Java 7u45 by making updates on EM-MOM.

Option 1. Update the file <EM_HOME>/product/enterprisemanager/plugins/com.wily.introscope.workstation.webstart_X .X.X/WebContent/jnlp/workstation.jsp with the following items. This workaround requires that the Security Level setting for Java in the Java Control Panel is set to a maximum of "High".

  • Remove the following JNLP properties in the <resources> section
    <property     
    name="osgi.instance.area" 
    value="@user.home/Application Data/Wily/Introscope/product/workstation"/>
    <property 
     name="osgi.configuration.area" 
     value="@user.home/Application Data/Wily/Introscope/product/workstation"/>
    <property 
     name="eclipse.product" 
     value="com.wily.introscope.workstation.productWebstart"/> 

  • Add the following arguments to the <application-desc main-class="org.eclipse.equinox.launcher.WebStartMain"> section
    <argument>-product</argument>
    <argument>com.wily.introscope.workstation.productWebstart</argument>
    <argument>-data</argument>
    <argument>@user.home/Application Data/Wily/Introscope/product/workstation</argument>
    <argument>-dev</argument>
    <argument>@user.home/Application Data/Wily/Introscope/product/workstation</argument> 

Web Start still fails to launch.

<Please see attached file for image>

Figure 5

<Please see attached file for image>

Figure 6


<jnlp codebase="http://xxx.ca.com:8081/">
<information>
 <title>CA Introscope Workstation 9.5.1.0</title>
  <vendor>CA Technologies</vendor>
  <description>Introscope Workstation</description>
  <icon href="/images/ca_technologies_logo.png"/>
  <icon kind="splash" href="/images/ca_technologies_logo.png"/>
 </information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="workstationProduct/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar"/>
<extension name="Introscope Workstation" href="jnlp/com.wily.introscope.workstation.feature.jsp"/>
<extension name="Eclipse Plugins" href="jnlp/eclipseplugins.jsp"/>
<j2se version="1.6*&1.6.0_05+" java-vm-args="-Xms64m -Xmx512m -Dsun.java2d.noddraw=true" href="http://java.sun.com/products/autodl/j2se"/>
<property name="sun.java2d.noddraw" value="true"/>
</resources>
<application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
  <argument>-noexit</argument>
  <argument>-clean</argument> 
  <argument>-loginhost</argument>
  <argument>xxx.ca.com</argument>
  <argument>-loginport</argument>
  <argument>5001</argument>
  <argument>-autofill</argument>
  <argument>true</argument>
  <argument>-timezone</argument>
  <argument>timezone</argument>
  <argument>-product</argument>
  <argument>com.wily.introscope.workstation.productWebstart</argument>
  <argument>-data</argument>
  <argument>@user.home/Application Data/Wily/Introscope/product/workstation</argument>
  <argument>-dev</argument>
  <argument>@user.home/Application Data/Wily/Introscope/product/workstation</argument>
  <argument>-conmeth</argument>
  <argument>all</argument>
</application-desc>
</jnlp> 

java.lang.SecurityException: Missing required Permissions manifest attribute in main jar: http://xxx.ca.com:8081/workstationProduct/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar


     at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source)       
     at com.sun.deploy.security.DeployManifestChecker.verifyMainJar(Unknown Source) 
     at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
     at com.sun.javaws.Launcher.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)

Implement extra steps for Java 7 u51

Execute javacpl.exe for Java 7 on workstation box to invoke the Java Control Panel.

<Please see attached file for image>

Figure 7

Delete temporary files and applications

<Please see attached file for image>

Figure 8

Reduce security to Medium

<Please see attached file for image>

Figure 9

<Please see attached file for image>

Figure 10

Close browser

Open Browser and go to http://xxx:8081/workstation

Check "I accept the risk and want to run this application"

Click Run

<Please see attached file for image>

Figure 11

The application begins to download.

<Please see attached file for image>

Figure 12

Repeat for the 2nd warning box:

<Please see attached file for image>

Figure 13

Click "Don't Block" when prompted to "Block potentially unsafe components from being run?"

<Please see attached file for image>

Figure 14

Workstation Login appears. Enter host, port, and credentials.

Click "Connect"

<Please see attached file for image>

Figure 15

The Web Start workstation opens.

<Please see attached file for image>

Figure 16

<Please see attached file for image>

Figure 17

Environment

Release:
Component: APMISP

Attachments

1558717635194000019096_sktwi1f5rjvs16un6.gif get_app
1558717633360000019096_sktwi1f5rjvs16un5.gif get_app
1558717631475000019096_sktwi1f5rjvs16un4.gif get_app
1558717629561000019096_sktwi1f5rjvs16un3.gif get_app
1558717627657000019096_sktwi1f5rjvs16un2.gif get_app
1558717625512000019096_sktwi1f5rjvs16un1.gif get_app
1558717623541000019096_sktwi1f5rjvs16un0.gif get_app
1558717621571000019096_sktwi1f5rjvs16umz.gif get_app
1558717618620000019096_sktwi1f5rjvs16umy.gif get_app
1558717616776000019096_sktwi1f5rjvs16umx.gif get_app
1558717613835000019096_sktwi1f5rjvs16umw.gif get_app
1558717612017000019096_sktwi1f5rjvs16umv.gif get_app
1558717610136000019096_sktwi1f5rjvs16umu.gif get_app
1558717608243000019096_sktwi1f5rjvs16umt.gif get_app
1558717606473000019096_sktwi1f5rjvs16ums.gif get_app
1558717604578000019096_sktwi1f5rjvs16umr.gif get_app
1558717602369000019096_sktwi1f5rjvs16umq.gif get_app