Richfaces 和 Weblogic 10.3
在我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这似乎是 Richfaces 和 Weblogic 的常见问题
http://seamframework.org/Community/RichFacesIssueResourceNotRegistered
This seems to be a common issue with Richfaces and Weblogic
From http://seamframework.org/Community/RichFacesIssueResourceNotRegistered
在 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