JBoss6:渲染时出现 HTTP 404 (SEAM)

发布于 2024-10-15 11:11:34 字数 4574 浏览 10 评论 0原文

我正在使用 JBOSS Seam 2.2.1,并且正在尝试使用应用程序服务器 Jboss6。在某些页面中,我在执行搜索等操作时收到 HTTP 404 错误页面,这会重新呈现一些组件。当我导航回上一页时,我可以看到搜索结果。在其他一些使用 rich:modalpanel 的页面中,没有错误,但结果未呈现。在这两种情况下我都没有得到例外。如果使用应用服务器Jboss5.1则不会出现此问题。有人可以帮我解决这个问题吗?

这是我用最新版本 RichFaces 3.3.3.Final 替换 richFaces 时得到的堆栈跟踪:

javax.faces.FacesException:javax.faces.FacesException:无法实例化类:org.richfaces.component.html.HtmlDataTable。 在 com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:562) 在 org.jboss.seam.jsf.SeamApplication.createComponent(SeamApplication.java:92) 在 com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:243) 在 com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:139) 在 com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) 在 com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) 在 com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) 在 com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) 在 com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) 在 com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) 在 com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109) 在 com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64) 在 com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131) 在 com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:337) 在 com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:307) 在 com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68) 在 com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109) 在 com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) 在com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) 在 com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248) 在 com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294) 在 com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273) 在 com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140) 在 com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:65) 在 com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) 在 com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) 在 com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109) 在 com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) 在 com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) 在 com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) 在 com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248) 在 com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294) 在 com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273) 在 com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140) 在 com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113) 在 com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) 在 com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) 在 com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) 在 com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524) 在 com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567

Im using JBOSS Seam 2.2.1 and I am trying to work with application server Jboss6 .In some of the pages, I get HTTP 404 error page while performing actions like search, that would rerender some componets. When I navigate back to the previous page, I am being able to see the search result. In some other pages using rich:modalpanel there is not error, but the result doesn't get rendered. I dont get an exception in both the cases. This issue doesn't arise if application server Jboss5.1 is used. Could someone please help me on this issue.

This is the stacktrace I got when I replaced richFaces with the latest version RichFaces 3.3.3.Final:

javax.faces.FacesException: javax.faces.FacesException: Cant instantiate class: org.richfaces.component.html.HtmlDataTable.
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:562)
at org.jboss.seam.jsf.SeamApplication.createComponent(SeamApplication.java:92)
at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:243)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:139)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)
at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)
at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:337)
at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:307)
at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:65)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567

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

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

发布评论

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

评论(2

听风吹 2024-10-22 11:11:34

只需改变丰富的面孔和Seam新版本对应的其他组件库

Just change the rich faces & Other component libraries corresponding to seam new version

深海夜未眠 2024-10-22 11:11:34

检查这个: 会话组件和 JSF组件绑定

另请查看 components.xml

<?xml version="1.0" encoding="UTF-8"?>
 <components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-2.2.xsd
 http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.2.xsd">
<core:init jndi-pattern="@jndiPattern@"/>
 </components>

chech this : Conversational components and JSF component bindings

Also take a look at components.xml

<?xml version="1.0" encoding="UTF-8"?>
 <components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-2.2.xsd
 http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.2.xsd">
<core:init jndi-pattern="@jndiPattern@"/>
 </components>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文