The eID Applet Service should not be accessed directly.
Hi Frank (Again),
I hope I’m not bothering you too much J... But I’m trying to figuring out where I have to place which files.
So to be clear, the configurations I have done in my ASP.NET application:
· Created a “WEB-INF\Lib” directory, with all the jar files found in the sdk
· Created a “web.xml” with following content:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>AppletServiceServlet</servlet-name>
<servlet-class>be.fedict.eid.applet.service.AppletServiceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AppletServiceServlet</servlet-name>
<url-pattern>/applet-service</url-pattern>
</servlet-mapping>
· </web-app>
· In my web.config added following in the httphandlers
o <add path="/applet-service" verb="*" type="Be.FedICT.EID.Applet.Service.AppletService, AppletService" validate="true" />
· I created also a “applet-service” directory, where I have placed an aspx page, with the script as I mentioned before. Then I get this message:
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 java.lang.ClassLoader.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
When I place the jar files in the root directory of the web application, and call the script as mentioned before I get the “Http status code 405”
I’m a mixing up, different things?
Do I have to create also a “WEB-INF\Classes” directory? (which structure, files?)
If you have a test application in ASP.NET, I would be very interested J.
Kind Regards,
Tylka
PS: Thank you for your time!!!
<script src="https://www.java.com/js/deployJava.js"></script> <script> var attributes = { code :'be.fedict.eid.applet.Applet.class', archive :'eid-applet.jar', width :600, height :300 }; var parameters = { TargetPage :'your-result-page.jsp/aspx/php', AppletService :'applet-service', BackgroundColor :'#ffffff', Language : 'en' }; var version = '1.6'; deployJava.runApplet(attributes, parameters, version); </script>
Hi Frank,
It WORKS!!! (what did you expected J)
ð The thing is that when you use IIS7, you must also add an handler to <system.webhandler> in the web.config.
So, like said in your manual, very easy integration!!! You have my complements, and keep up the good work!!!
Still, I have one question
· In both cases (identification, authentication), I get the question “Identification required. Please select certificate to be used for authentication”. (Empty window, no certificates to select)
o Is this maybe I’m testing on my local machine? (=> no client and server certificate)
Kind Regards,
Tylka
From:
Frank Cornelis [mailto:in...@frankcornelis.be]
Sent: zondag 15 november 2009 7:09
To: eid-a...@googlegroups.com
Subject: Re: [eid-applet] Question asp.net integration
Hi Tylka,
<add path="/applet-service" verb="*" type="Be.FedICT.EID.Applet.Service.AppletService, AppletService" validate="true" />
Indeed. When I put it to “Ignore” the message disappear. (Accept or required, pop ups the window)
Thx, again for the quick en good support!
From: Frank
Cornelis [mailto:in...@frankcornelis.be]
Sent: zondag 15 november 2009 17:48
To: eid-a...@googlegroups.com
Subject: Re: [eid-applet] Question asp.net integration
Hi Tylka,
You probably need to reconfigure the IIS SSL settings. This can be done via the
IIS Manager, then click Sites, Default Web Site, IIS Settings, and make sure
that no client certificate is required.
Also don't forget the HttpOnly work-around.
Kind Regards,
Frank.
On 11/15/2009 02:23 PM, Tanguy Ingels wrote:
Hi Frank,
It WORKS!!! (what did you expected J)
The thing is that when you use IIS7, you must also add an handler to <system.webhandler> in the web.config.
So, like said in your manual, very easy integration!!! You have my complements, and keep up the good work!!!
Still, I have one question
In both cases (identification, authentication), I get the question “Identification required. Please select certificate to be used for authentication”. (Empty window, no certificates to select)
Is this maybe I’m testing on my local machine? (=> no client and server certificate)