我試圖將我們的服務器從本地Linux框轉移到雲託管服務。原始服務器使用Apache Tomcat版本6.0.24和Java版本1.6.0_17。新服務器使用Apache Tomcat版本6.0.29和Java版本1.6.0_22。將使用JSF的應用程序遷移到不同的服務器
我所有的其他web應用程序工作正常,但這是唯一使用JSF的。它是在3年前使用一些愚蠢的拖放用戶界面開發的,代碼很難看透。目前,我也正在將應用程序轉換爲不使用JSF的應用程序,只是使用Spring和jsp,如果我重定向到已轉換的那些頁面,他們可以正常工作。請注意,我的本地機器上也不會發生此錯誤。那我得到的錯誤是:
異常詳細信息:org.apache.jasper.el.JspELException /UserMainPage.jsp(25,95) '#{} UserMainPage.DIMainPanel1' 無法轉換#{UserMainPage.DIMainPanel1 }型類java.lang.String類javax.faces.component.UIComponent
錯誤的可能來源: 類名稱:org.apache.jasper.el.JspValueExpression 文件名:JspValueExpression.java 方法名稱:getValue 行號:107
堆棧跟蹤:
org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:107) com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:229) javax.faces.webapp.UIComponentELTag.createComponent (UIComponentELTag.java:211) javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476) javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660) javax.faces.webapp.UIComponentClassicTagBase。的doStartTag(UIComponentClassicTagBase.java:1126) com.sun.faces.taglib.html_basic.PanelGridTag.doStartTag(PanelGridTag.java:344) org.apache.jsp.UserMainPage_jsp._jspx_meth_h_005fpanelGrid_005f0(UserMainPage_jsp.java:1016) org.apache.jsp.UserMainPage_jsp._jspx_meth_ui_005fpanelGroup_005f0(UserMainPage_jsp.java:833) org.apache.jsp.UserMainPage_jsp._jspx_meth_ui_005fpanelLayout_005f0(UserMainPage_jsp.java:758) org.apache.jsp.UserMainPage_jsp._jspx_meth_ui_005ftab_005f0(UserMainPage_jsp.java:712 ) org.apache.jsp.UserMainPage_jsp._jspx_meth_ui_005ftabSet_005f0(UserMainPage_jsp.java:656) org.apache.jsp.UserMainPage_jsp._jspx_meth_ui_005fform_005f0(UserMainPage_jsp.java:582) org.apache.jsp.UserMainPage_jsp._jspx_meth_ui_005fbody_005f0(UserMainPage_jsp.java: 534) org.apache.jsp.UserMainPage_jsp._jspx_meth_ui_005fhtml_005f0(UserMainPage_jsp.java:361) org.apache.jsp.UserMainPage_jsp._jspx_meth_ui_005fpage_005f0(UserMainPage_jsp.java:317) 組織.apache.jsp.UserMainPage_jsp._jspx_meth_f_005fview_005f0(UserMainPage_jsp.java:275) org.apache.jsp.UserMainPage_jsp._jspService(UserMainPage_jsp.java:243) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.catalina.core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doF ILTER(ApplicationFilterChain。的java:206) org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) org.apache.catalina.core .ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) com.sun.rave.web.ui.appbase。 (ViewHandlerImpl.java:320) com.sun。 (LifecycleImpl.java:251) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java: 144) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:225) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:563) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache。 catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java: 190) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) org.apache.jk.common.ChannelSocket $ SocketConnection .runIt(ChannelSocket.java:896) org.apache.tomcat.util.threads.ThreadPool $ ControlRunnable.run(ThreadPool.java:690) java.lang.Thread.run(Thread.java:662)
這是它的抱怨的JSP部分:
<h:panelGrid binding="#{UserMainPage.DIMainPanel1}" border="0" cellpadding="0" cellspacing="0" columns="2" id="DIMainPanel1" style="height:38px" width="671">
我已經用盡了自己在這一個。任何人都有一個想法可能是什麼問題?
你有沒有試過查看生成的JSP代碼? – Will 2011-01-12 23:33:48