我无法使用webRDP


1

我尝试使用webRDP,它是一个基于Java的(所以是多平台的)RDP客户端,可以作为独立程序(单个.jar文件)或嵌入在网页中。

当我尝试通过双击.jar文件使用它进行连接时The server has reset the connection,在Windows Server 2008 R2和Windows 7上都得到。

当我尝试从网页使用它时,在出现以下错误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

是什么导致这些问题?

这是html我正在使用的未修改页面。我以为在尝试正确的配置之前会尝试使其工作:

<html>
<head>
<title>webRDP&#0153;</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:\windows\system32\notepad.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:\windows\system32\ -->
<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>

Answers:


1

问题1,随着服务器重置连接,可能需要将Windows设置为允许所有远程桌面客户端。webRDP当前不支持NLA或TLS。

问题2,从网页上运行它时,根据您在代码中的引用方式,Jar似乎不完整或损坏,或者浏览器无法找到该Jar。在没有看到您用来嵌入它的HTML以及文件和文件权限的情况下,这是我能提供的最好的选择。


谢谢,但是我仍然有问题2。md5校验和是相同的,因此我确定文件没有损坏。我使用的是《配置指南》中的html网页,没有任何修改(直到我可以正常使用)。您认为这可能是文件所有权问题吗?
paradroid 2011年

可能是您是在本地计算机上的某个文件夹中完成所有操作,还是实际上将其发布到Web服务器并尝试从那里使用它?在后一个示例中,出现权限/所有权问题的可能性更大。
Peelman 2011年

它被托管在运行Apache的Linux服务器(Debian)上。所有文件均由Apache用户(www-data)拥有。看起来不是示例html网页中的问题吗?: <applet name='rdp' code='com.webinflection.webrdp.MainApplet' archive='webRDP.jar' width='100%' height='100%'>
paradroid 2011年

如果您尝试直接从Web浏览器中点击小程序,会发生什么?和/或将小程序的相对路径更改为完整的URL?
Peelman 2011年

当我使用applet的完整路径时,浏览器会尝试下载它。在archive=字段中使用完整的URL会产生相同的错误。我正在使用HTTPS,如果有什么区别。我已将该html网页添加到我的问题中。谢谢。
paradroid 2011年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.