有人在安全网站上使用过 RichFaces 吗? 我正在使用以下证书:
Tomcat 6 RichFaces 3.3.1(也尝试过 3.1.4.GA)中级证书
我的应用程序正在使用 Rich 面板栏。 使用 HTTPS 时,仅呈现面板标签,并且出现以下 JavaScript 错误:
“RichFaces”未定义
这是创建错误的 JavaScript:new Richfaces.PanelBar
使用 HTTP 时,面板栏按预期呈现,没有任何 JavaScript 错误。
因此,应用程序在使用 HTTPS 时似乎无法找到必要的 RichFaces 库。 我无法找到有关 HTTPS 附加配置的任何文档。
任何帮助将非常感激。
Has anyone used RichFaces on a secure site? I'm using the following:
Tomcat 6 RichFaces 3.3.1 (also tried 3.1.4.GA) intermediate certificate
My application is using the Rich panel bar. When using HTTPS, only the panel labels are rendered and I get the following JavaScript error:
'RichFaces' is undefined
This is the JavaScript creating the error: new Richfaces.PanelBar
When using HTTP, the panel bar renders as expected without any JavaScript errors.
So it appears the application is unable to find the necessary RichFaces Library when using HTTPS. I've been unable to locate any documentation regarding additional configuration for HTTPS.
Any help would be much appreciated.
发布评论
评论(2)
我们成功地通过 HTTPS 使用 Richfaces (Apache->mod-jk->JBoss 5.1.0)。 我们还没有看到您遇到的具体问题,但我们确实遇到了这个问题 https://jira.jboss.org/jira/browse/JBIDE-4500 https://jira.jboss.org/jira/browse/RF-7399]2。 可能有帮助,也可能没有帮助,但我至少想确认您可以通过 HTTPS 正常运行 Richfaces。
We are successfully using Richfaces over HTTPS (Apache->mod-jk->JBoss 5.1.0). We haven't seen the exact but problem you're running into, but we did hit this issue https://jira.jboss.org/jira/browse/JBIDE-4500 https://jira.jboss.org/jira/browse/RF-7399]2. May or may not be helpful, be I at least wanted to confirm that you can run Richfaces over HTTPS just fine.
当您的应用程序未将具有特定 MIME 类型信息的文件发送到浏览器时,浏览器会尝试猜测正确的 MIME 类型。
这在 https 下比在 http 下受到更多限制。 因此,这可能会导致您观察到的 404 响应。
尝试在 web.xml 中定义所有相关文件/MIME 类型映射。
例如。
When your application does not send files with a specific MIME TYPE information to the browser the browser tries to guess the correct MIME TYPE.
This is more restrict under https than under http. In consequence this could lead to the 404 response you have observed.
Try defining all relevant file/MIME TYPE mappings in your web.xml.
eg.