Good day
I feel I'm close to the goal with my test of
the eID Middleware SDK Applet and its
native libraries I had like to get a basic identification test running based on this 'eID Applet' product before I test the 'eId-IdP'
I followed the installation explanation
Using the eID Applet within a NetBeans web applicationon YouTube :(to recommend), except I don't use Maven nor GlassFish.
I'm using NetBeans 7.0 , Apache-Tomcat 7.0 , JDK 1.6 , JSP 2 , JSTL 1.1 ...
The 5 '
be.fedICT.eId-applet - eid-applet-...' libraries seem to be correctly installed in the IDE.
Probably one of you did already encounter this error:
In the applet space of my 'Identification' page : "Error. Click for details"
In the Java Console:
load: class be.fedict.eid.applet.Applet.class not found.
java.lang.ClassNotFoundException: be.fedict.eid.applet.Applet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: be.fedict.eid.applet.Applet.class
In my 'identification.jsp' page :
...
<body>
<h1>Identification</h1>
<script src="
https://www.java.com/js/deployJava.js"></script>
<script>
var attributes =
{ code:'be.fedict.eid.applet.Applet.class',
archive:'eid-applet-package-1.0.1.GA.jar',
width:400,
height:300
};
var parameters =
{ TargetPage:'identification-result.jsp',
AppletService:'identification-service', // applet-service
BackgroundColor:'#ffffff',
Language : 'en'
};
var version='1.6'; // JRE6
deployJava.runApplet(attributes, parameters, version);
</script>
...
(No need to put "<%@page import="be.fedict.eid.applet.Applet" %>" at the top of the page.)
To find it by myself, I read
-
http://groups.google.com/group/eid-applet/msg/d0a1fc900b23ad64
--> <script src="
https://www.java.com/js/deployJava.js <view-source:
https://www.java.com/js/deployJava.js>">
</script>
--> No "Error. Click for details" anymore, but still no applet appearing.
The first 'be.fedICT.eid-applet - eid-applet-...' library appearing in the 'Projects' tab of the IDE is 'be.fedICT.eid-applet - eid-applet-
package-1.0.1.GA.jar' and contains a.o. the 'Applet.class' in the 'be.fedict.eid.applet' package. Its path is 'C:\Documents and Settings\All Users\Documents\SoftwDevelProd\eId Applet\
eid-applet-sdk-1.0.1.GA\eid-applet-sdk'.
The path of the JSP pages of the test application are rather situated in another directory : 'C:\Documents and Settings\Charles\My Documents\ApplicProgram\JSP\Test1\web'. --> not the same directory.
Q1: What should I preferably do to make the 'eid-applet-package-1.0.1.GA.jar' file (and later other ones) accessible to the JSP pages of my application ?
- - - - - - - - - -
With 'keytools', I generated a .keystore (public keys store - RSA) and put a copy of this file in a parent directory that I specified in the 'server.xml' file :
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="200" scheme="https" secure="true" SSLEnabled="true"
keystoreFile="C:/Documents and Settings/Charles/My Documents/ApplicProgram/.keystore"
keystorePass="changeit" clientAuth="false" sslProtocol="TLS" />
Q2: I wonder if I have to replace TLS with RSA.
Does anyone of this group have an idea ?
Thanks
Charles