Hello all,
I am working on the deployment of my asp.net website project.
It is developed with ASP.NET and I need deploy it on IIS7.
For the user-login-management, I have a java login applet from my customer.
(My customer says that their applet is signed and there should be no security problem)
I am beginner with asp.net and never worked with Java.
The Java login applet is working fine when I integrate it into my website on the "Visual Studio development server".
But when I deploy the website to "IIS7", I see issues. something to do with java.net.SocketPermission.
Can you please if possible help me out to understand what is going wrong??
1) To summarize, a javaapplet is called from within aspx page.
2) The java applet tries to access an xml file on the IIS webserver.
3) While trying to read the xml file, the java applet is throwing the following error.
SSBNode - loadLogonDoc(), error: failure reading configuration from http://site.project.local/Account/userrights.xml
java.security.AccessControlException: access denied ("java.net.SocketPermission" "192.168.1.9:80" "connect,resolve")
Please find below the complete java console log:
Java-Plug-in 10.11.2.21
JRE-Version verwenden 1.7.0_11-b21 Java HotSpot(TM) Client VM
Benutzer-Home-Verzeichnis = C:\Users\Administrator
----------------------------------------------------
c: Konsolenfenster löschen
f: Objekte in Finalisierungs-Queue finalisieren
g: Garbage Collect
h: Diese Hilfemeldung anzeigen
l: Class Loader-Liste ausgeben
m: Speicherauslastung drucken
o: Logging auslösen
q: Konsole ausblenden
r: Policy-Konfiguration neu laden
s: System- und Deployment-Eigenschaften ausgeben
t: Threadliste ausgeben
v: Thread-Stack ausgeben
x: Class Loader-Cache leeren
0-5: Trace-Ebene auf <n> setzen
----------------------------------------------------
SSBusSocketConnection started. Listening for packets on port 22000
RmiObserverThread - started
CBDistributer - class bag.am.ss.applets.ssbus.SSBNode registered for logon listening
SSBNode - logonInfo() empfangen.
UrlParamReader - documentBase decoded: http://site.project.local/Account/jlogin.aspx
SSBusSocketConnection - sent DatagramPacket(CBTlgRegisterNode) to visserver/192.168.1.9:22000
SSBusSocketConnection - received DatagramPacket(CBTlgRegisterNode), 176 bytes.
SSBNode - loadLogonDoc(), error: failure reading configuration from http://site.project.local/Account/userrights.xml
java.security.AccessControlException: access denied ("java.net.SocketPermission" "192.168.1.9:80" "connect,resolve")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.plugin2.applet.SecurityManagerHelper.checkConnectHelper(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkConnect(Unknown Source)
at java.net.Socket.connect(Unknown Source)