Richfaces 和 Weblogic 10.3

发布于 2024-10-06 00:38:58 字数 1315 浏览 0 评论 0原文

在我的 web.xml 中,我有:

 <filter>
  <display-name>RichFaces Filter</display-name>
  <filter-name>richfaces</filter-name>
  <filter-class>org.ajax4jsf.Filter</filter-class>
  <init-param>
   <param-name>enable-cache</param-name>
   <param-value>true</param-value>
  </init-param>

  <init-param>
   <param-name>forceparser</param-name>
   <param-value>false</param-value>
  </init-param>
 </filter>

在 Tomcat 6 中运行时,应用程序运行良好。 在 Weblogic 10.3 中运行时,我收到很多 ResourceNotFoundExceptions:

org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : /org/richfaces/ui.pack.js.seam
        at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:408)
        at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:352)
        at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
        at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)

这可以解决吗?

当我注释掉过滤器时,应用程序似乎运行良好。 由于客户需求,我需要使用Weblogic。

In my web.xml I have:

 <filter>
  <display-name>RichFaces Filter</display-name>
  <filter-name>richfaces</filter-name>
  <filter-class>org.ajax4jsf.Filter</filter-class>
  <init-param>
   <param-name>enable-cache</param-name>
   <param-value>true</param-value>
  </init-param>

  <init-param>
   <param-name>forceparser</param-name>
   <param-value>false</param-value>
  </init-param>
 </filter>

When running in Tomcat 6 the application runs fine.
When running in Weblogic 10.3 I get a lot of ResourceNotFoundExceptions:

org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : /org/richfaces/ui.pack.js.seam
        at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:408)
        at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:352)
        at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
        at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)

Can this be solved?

When I comment out the filter the application seems to run fine.
I need to use Weblogic due to customer demand.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

硪扪都還晓 2024-10-13 00:38:58

这似乎是 Richfaces 和 Weblogic 的常见问题

http://seamframework.org/Community/RichFacesIssueResourceNotRegistered

所以,对于那些也遇到过
之前提到过
'ResourceNotFoundException',尝试
以下,您的问题将
大概可以解决:

  1. 清除浏览器缓存(IE 上为 CTRL+F5)
  2. 将您的 Richfaces 库升级到至少 3.1.5(因为此版本
    解决了与此相关的一些问题
    例外)或3.2.0SR1
  3. 如果您使用的是 Java 6,请降级到 Java 5

This seems to be a common issue with Richfaces and Weblogic

From http://seamframework.org/Community/RichFacesIssueResourceNotRegistered

So, for those that also run into the
before mentioned
'ResourceNotFoundException', try the
following and your problem will
probably be solved:

  1. Clear your browser''s cache (CTRL+F5 on IE)
  2. Upgrade your Richfaces library to atleast 3.1.5 (as this version
    solved some issues related to this
    exception) or 3.2.0SR1
  3. If you're using Java 6, downgrade to Java 5
苦笑流年记忆 2024-10-13 00:38:58

在 Seam 2.2.2.Final、RichFaces 3.3.4.Final 和 WebLogic 12c 中遇到相同的错误消息。从应用程序的 web.xml 中删除过滤器定义似乎有帮助。 Seam 应该自动安装过滤器,请参见示例 https://docs.jboss.com/seam/2.2.2.Final/reference/en-US/html/configuration.html#d0e24558

Encountered the same error message with Seam 2.2.2.Final, RichFaces 3.3.4.Final and WebLogic 12c. Removing the filter definition from the application's web.xml seemed to help. Seam should install the filter automatically, see for example https://docs.jboss.com/seam/2.2.2.Final/reference/en-US/html/configuration.html#d0e24558

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文