GetClientInfo w/ native IE5
Has anyone succeeded in running the OTN sample java class Forms extension GetClientInfo.class with Microsoft's Internet Explorer?
I'm having problems with the Java security model. This class allows Forms libraries to retrieve the property user.name, the ip address, and the hostname of the client running the forms applet. This means that the archive has to be signed (the normal forms f60all.cab is unsigned I think).
Oracle's solution for this uses their jinitiator jvm instead of the native IE jvm. The two apparently have different security models, so I have to sign using the Microsoft JDK.
I created the cab and signed it using the following commands on my PC:
cabarc n getclientinfo.cab oracle\forms\demos\GetClientInfo.class
makecert -sk FormsKey -n "CN=Factory Operations" f6icert.cer
cert2spc f6icert.cer f6icert.spc
signcode -j javasign.dll -jp low -spc f6icert.spc -k FormsKey getclientinfo.cab
chkjava getclientinfo.cab
then transferred the CAB to the 6iserver/forms60/java directory, and started the applet using HTML with the parameter:
<param name="archive" value="f60all.cab, getclientinfo.cab">
The applet started and ran correctly. You could even see forms open the getclientinfo.cab when it opened the sample form. There was no prompt for authentication of the cab access.
It raised the error:
Java Exception:
com.ms.security.SecurityExceptionEx[oracle/forms/demos/GetClientInfo.getUsername]: Unable to access system property: user.name
I tried changing the default java applet security parameters in the Internet Settings so that both signed and unsigned content have all permissions.
The error continues.
I'm using IE6 with the latest patches and the MS JDK 4.0.