本文介绍了尝试运行嵌入在 Facelets 中的小程序时出现不兼容的魔法值 1010792557的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我通过 Glassfish 服务器访问嵌入小程序的 Facelets 页面时出现此错误.虽然当我简单地从我的电脑打开它时它工作正常,所以小程序没问题.是否可以在 Glassfish(3.1、JSF 2.0)上运行小程序?
I get this error when I access the Facelets page where the applet is embedded, through Glassfish server.Though when I open it simply from my computer it works fine, so the applet is ok.Is it possible to run applets on Glassfish (3.1, JSF 2.0)?
这是我尝试的方法:
<applet code="test.TestApplet" archive="TestApplet.jar"/>
推荐答案
我终于找到了解决方案:
Finally I found a solution:
如果我将小程序的 jar 文件放入我的 Web 应用程序的资源文件夹中,并将存档文件的路径设置为如下
If I place the applet's jar file into the resources folder of my web application, and I set the archive file's path to it as the following
<applet code="test.TestApplet" archive="../resources/TestApplet.jar"/>
效果很好.
这篇关于尝试运行嵌入在 Facelets 中的小程序时出现不兼容的魔法值 1010792557的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!