Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't use <jsp:include> in my JSF page !!!!  RSS feed

 
Hatem Alimam
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I have a simple jsf page which include a servlet

my jsf code


and my servlet code is :



this work fine in JDeveloper IDE but when I deploy this page to GlassFish container I got this exception !!!

[#|2009-04-18T22:43:30.375+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=bfe17847-99db-4651-8e12-387047374e54;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at java.lang.String.<init>(String.java:211)
at org.apache.jasper.runtime.BodyContentImpl.getString(BodyContentImpl.java:570)
at javax.faces.webapp.UIComponentClassicTagBase.createVerbatimComponentFromBodyContent(UIComponentClassicTagBase.java:905)
at javax.faces.webapp.UIComponentClassicTagBase.doAfterBody(UIComponentClassicTagBase.java:1388)
at org.apache.jsp.index_jspx._jspx_meth_afh_rowLayout_0(index_jspx.java from :233)
at org.apache.jsp.index_jspx._jspx_meth_afh_tableLayout_0(index_jspx.java from :193)
at org.apache.jsp.index_jspx._jspx_meth_h_form_0(index_jspx.java from :152)
at org.apache.jsp.index_jspx._jspx_meth_f_view_0(index_jspx.java from :109)
at org.apache.jsp.index_jspx._jspService(index_jspx.java from :65)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:558)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:490)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:382)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)


please help me

thankx to all


 
Hatem Alimam
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again

I found the solution for my problem ...

I solved it by removing



Method ... and it's working prefectly
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!