0

当我在 localhost 中使用 glassfish 服务器开发我的 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.
4

1 回答 1

-1

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

于 2013-02-22T07:06:09.490 回答