當我在localhost中使用glassfish Server開發我的JSF應用程序時,它可以工作,但是當我將它部署在我的服務器(Tomcat 7.0)中時,它顯示以下異常,是否有人可以解決此問題?在Tomcat服務器上部署JSF應用程序時出錯
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.
#{initParam.pageWidth}「將意味着Tomcat運行時庫中缺少一些lib?http://weblogs.java.net/blog/cayhorstmann/archive/2009/12/29/jsf-20-and-tomcat – user1428716 2013-02-22 06:53:19
請列出你的JAR文件在'/ WEB-INF/lib',包括版本。 – BalusC 2013-02-22 11:10:41
JSF-api.jar中2.0 JSF-impl.jar中2.0 的jstl.jar – user1676876 2013-02-22 11:37:30