2013-11-22 78 views
-1

網頁顯示http status 500。 該怎麼辦?簡單的jsp頁面不能在tomcat 7.0中使用eclipse indigo

這裏是堆棧跟蹤,

Nov 22, 2013 4:49:01 PM org.apache.catalina.core.StandardWrapperValve invoke 
SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/jsftesting] threw exception 
java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacade cannot be cast to javax.portlet.PortletContext 
at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:71) 
at org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory.getFacesContext(TomahawkFacesContextFactory.java:107) 
at javax.faces.webapp.FacesServlet.prepareFacesContext(FacesServlet.java:235) 
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:168) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) 
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) 
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) 
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987) 
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) 
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) 
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
at java.lang.Thread.run(Thread.java:619) 
+0

什麼代碼導致了這一點? – Bull

回答

0

好像有些問題,同時啓動服務器。 請詳細說明您創建的項目類型以及項目結構。

+0

它只是簡單的三個到四個輸入字段的jsp頁面,仍然是靜態的,並且可以連接到任何bean或其他頁面 –

+0

您是否爲任何其他項目創建簡單的DynamicWebProject – Varun

0

這樣做是有問題的庫我把相同的庫放在tomcat lib文件夾以及webcontent/lib中。所以當我從一個文件夾中刪除這些是額外的,所以我發現我的項目運行