我正在使用 icefaces-mobi 框架开发一个移动网站。我们已经在 icefaces 框架中开发了一个网站,现在我们想动员我们的网站。成功验证后,我将测试视图名称作为字符串(mDashboard)返回,得到解析并尝试呈现 mDashboard.xhtml,这是我的代码
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:mobi="http://www.icesoft.com/icefaces/mobile/component">
<h:head>
<mobi:deviceResource />
</h:head>
<h:body>
<ui:composition>
<mobi:tabSet currentId="1">
<mobi:contentPane title="Ice Sailer" id="tab1"
facelet="false" client="true" >
<h:outputText value="A" />
</mobi:contentPane>
<mobi:contentPane title="Ice Breaker" id="tab2"
facelet="false" client="true" >
<h:outputText value="B" />
</mobi:contentPane>
<mobi:contentPane title="Ice Skater" id="tab3"
facelet="false" client="true" >
<h:outputText value="C" />
</mobi:contentPane>
</mobi:tabSet>
</ui:composition>
</h:body>
</html>
但是服务器返回带有错误描述的 http 状态 500
根本原因
java.lang.IllegalAccessError: org/icefaces/facelets/tag/icefaces/core/MethodRule org.icefaces.mobi.component.tabset.TabSetMetaHandler.createMetaRuleset(TabSetMetaHandler.java:22) javax.faces.view.facelets.MetaTagHandler.setAttributes (MetaTagHandler.java:127) javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(DelegatingMetaTagHandler.java:102) com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.doNewComponentActions(ComponentTagHandlerDelegateImpl.java:409) com.sun .faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:159) javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120) com.sun.faces.facelets.tag.ui.CompositionHandler .apply(CompositionHandler.java:166) com.sun.faces.facelets.compiler.NamespaceHandler。apply(NamespaceHandler.java:93) com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86) com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152) com. sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:774) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100) com.sun.faces.lifecycle.Phase.doPhase(Phase. java:101) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)buildView(FaceletViewHandlingStrategy.java:774) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) com.sun.faces。生命周期.LifecycleImpl.render(LifecycleImpl.java:139) javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)buildView(FaceletViewHandlingStrategy.java:774) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) com.sun.faces。生命周期.LifecycleImpl.render(LifecycleImpl.java:139) javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
请帮帮我。任何帮助将不胜感激。提前谢谢。