在Tomcat服务器上部署JSF应用程序时出错

时间:2013-02-22 06:44:05

标签: jsf tomcat deployment

当我在localhost中使用glassfish Server开发我的JSF应用程序时,它可以工作,但是当我在我的服务器(Tomcat 7.0)中部署它时,它会显示以下异常,是否有人可以解决此问题?

org.apache.jasper.JasperException: Unable to convert string "#{initParam.pageWidth}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager

        org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:846)

        org.apache.jsp.details_jsp._jspx_meth_h_005foutputText_005f0(details_jsp.java:415)

        org.apache.jsp.details_jsp._jspService(details_jsp.java:159)

        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

        javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)

        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)

        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)

        javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)

        com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:363)

        com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:153)

        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)

note The full stack trace of the root cause is available in the VMware vFabric tc Runtime 2.6.1.RELEASE/7.0.20.B.RELEASE logs.

1 个答案:

答案 0 :(得分:-1)

你必须检查主要的3个库:: jsf-api.jar,jsf-impl.jar,jstl.jarto解决了这个问题。