org.apache.jasper.JasperException: Exception in JSP: /index.jsp:

Discussions

Web tier: servlets, JSP, Web frameworks: org.apache.jasper.JasperException: Exception in JSP: /index.jsp:

  1. <-- index.jsp--> 1: 2: 3: 4: 5: <--inputname.jsp---> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> enter your name page

    Iam getting following error. org.apache.jasper.JasperException: Exception in JSP: /index.jsp: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause org.apache.jasper.JasperException: Exception in JSP: /pages/inputname.jsp:3 1: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> 2: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> 3: 4: 5: 6: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658) org.apache.jsp.index_jsp._jspService(index_jsp.java:46) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) root cause java.util.MissingResourceException: Can't find bundle for base name jsfks.bundle.messages, locale en_US java.util.ResourceBundle.throwMissingResourceException(Unknown Source) I could not find solution for this, Could you help me out from this problem.....Thanks in advance..
  2. Hi.. Could you pls verify that index.jsp is able to find inputname.jsp ?...i guess that path may be the reason..try putting some system.out on first line of inputname.jsp... or for timebeing , place inputname.jsp in same folder of index.jsp and give direct path inside 'jsp:forward'
  3. change to or create a folder called bundle under WebContent\WEB-INF\classes\jsfks and copy the messages.properties This will solve the problem.