我想從JSF安裝開始。JSF開始+安裝UI錯誤
在JSF文件中,我剛添加了h標籤和f標籤。 一旦我做了<f:view>
它給出了以下錯誤。
May 30, 2012 2:49:20 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1858)
at org.apache.jsp.ClinicInformation_jsp._jspx_meth_f_005fview_005f0(ClinicInformation_jsp.java:98)
at org.apache.jsp.ClinicInformation_jsp._jspService(ClinicInformation_jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
我不明白什麼是缺少的。我加了兩個罐...
- javax.faces-2.1.8.jar
- javax.servlet.jsp.jstl-API-1.2.1.jar
- primefaces-3.2.jar
Ohh ok Balus ...我需要閱讀更多然後......但一旦一切都配置好。我可以開始進一步...但是,謝謝你的幫助。 – Ketan
感謝BalusC。我總是喜歡你的評論...這對我來說總是有幫助的..當我將.jsp轉換爲.xhtml時,一切正常,但我現在在使用CTRL + Space的eclipse工具中獲得的幫助。 http://stackoverflow.com/questions/10807291/eclipase-not-giving-any-help-on-ctrl-space 有什麼辦法可以啓動它嗎? – Ketan