JBoss6:渲染时出现 HTTP 404 (SEAM)
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需改变丰富的面孔和Seam新版本对应的其他组件库
Just change the rich faces & Other component libraries corresponding to seam new version
检查这个: 会话组件和 JSF组件绑定
另请查看 components.xml
chech this : Conversational components and JSF component bindings
Also take a look at components.xml