Je ne peux pas faire fonctionner webRDP
J'ai essayé d'utiliser WEBRDP, qui est un client RDP
basé sur Java (donc multi-plateforme) qui peut fonctionner comme un programme autonome (fichier unique .jar
) ou intégré sur une page Web.
Lorsque j'essaie de me connecter en l'utilisant en double-cliquant sur le fichier .jar
, j'obtiens The server has reset the connection
, à la fois sur Windows Server 2008 R2 et Windows 7. J'ai essayé toutes sortes de combinaisons d'identifiants avec des noms de domaine (moyens longs et courts) et sans.
Lorsque j'ai essayé de l'utiliser à partir d'un page web, j'ai eu l'erreur suivante dans le Java Console
:
Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
load: class com.webinflection.webrdp.MainApplet not found.
java.lang.ClassNotFoundException: com.webinflection.webrdp.MainApplet
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: com.webinflection.webrdp.MainApplet
Qu'est-ce qui cause ces problèmes?
Ceci est la page html
non modifiée que j'utilise. Je pensais que j'essaierais de le faire fonctionner avant de passer par la configuration appropriée:
<html>
<head>
<title>webRDP</title>
<meta http-equiv='content-type' content='text/html; charset=iso-8859-1'>
<meta http-equiv='content-style-type' content='text/css'>
<meta http-equiv='expires' content='Wed, 26 Feb 1997 08:21:57 GMT'>
<meta http-equiv='pragma' content='no-cache'>
<!-- Sets margin around applet -->
<style>
body.swproxyBody { margin:4px;; }
</style>
<script type='text/javascript'>
// This method is called after the user logs out of their RDP session. The method name is
a configurable applet parameter.
function rdpOnLogout() {
alert ( ' User has Logged out ' );
}
</script>
</head>
<body class='swproxyBody'>
<!-- Loads the applet and utilizes 100% of browser window width and height. Width and
height could be hard coded to specific values -->
<applet name='rdp' code='com.webinflection.webrdp.MainApplet' archive='webRDP.jar'
width='100%' height='100%'>
<!-- Hostname or IP Address of Terminal Server -->
<!-- This is a required parameter -->
<param name='host' value='10.1.1.25'>
<!-- Port that the Terminal Server -->
<!-- This is a required parameter. -->
<param name='port' value='3389'>
<!-- Username to authenticate to Terminal Server with -->
<!-- Optional SSO Parameter -->
<param name='username' value='joe'>
<!-- Password to authenticate to Terminal Server with -->
<!-- Optional SSO Parameter. If left blank, the Terminal Server will prompt the
user to supply their password.-->
<param name='password' value='cat1dog2'>
<!-- AD Domain name to authenticate to Terminal Server with -->
<!-- Optional SSO Parameter. In some Terminal Server deployments, this
parameter will be required. -->
<param name='domain' value=''>
<!-- Application to start. This value should be url encoded. In this example we are
launching c:windowssystem32notepad.exe-->
<param name='program' value='c%3A%5Cwindows%5Csystem32%5Cnotepad.
exe'>
<!-- Working directory for Application. This value should be url encoded. In this
example the working directory will be set to c:windowssystem32 -->
<param name='directory' value='c%3A%5Cwindows%5Csystem32%5C'>
<!-- In this example I used a site ( http://meyerweb.com/eric/tools/dencoder/ ) to
encode the above values -->
<!-- This specifies a javascript method to be called after the user logs out of the
RDP session. This stops the session from hanging is a disconnected state. -->
<param name='onlogout' value='rdpOnLogout'>
</applet>
</body>
</html>