title: ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp
body: <p>After integrating ESAPI into a login form I am getting a rendering issue and an error after a successful login.</p>
  
  <p>The error generated in the browser states:</p>
  
  <pre><code>   javax.servlet.ServletException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp
  </code></pre>
  
  <p>And the server's debug log states the following:</p>
  
  <pre><code>SEVERE: Servlet.service() for servlet [ActionServlet] in context with path [/FIXED] 
  threw exception [javax.servlet.ServletException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/left.do': java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp] with root cause
  java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.tiles.leftlogged_jsp
  </code></pre>
  
  <p>The weird thing is, I haven't even touched any jsp pages when integrating esapi, and it worked before hand.  I've only modified a couple java pages yet I get this now after a successful login.</p>
  
  <p>There is more to both error messages I can include if it will be helpful.  Since I haven't modified the leftlogged.jsp, yet it is the one giving the problems I thought I'd include it as well as it may be helpful.</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %&gt;
  &lt;%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %&gt;
  &lt;%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %&gt;
  &lt;%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %&gt;
  Welcome ${USERNAME}!&lt;br /&gt;
  &lt;logic:messagesPresent message="false"&gt;
    &lt;html:messages id="msg"&gt;
      &lt;span class="error"&gt;&lt;bean:write name="msg" /&gt;&lt;/span&gt;&lt;br /&gt;
    &lt;/html:messages&gt;
  &lt;/logic:messagesPresent&gt;
  &lt;logic:messagesPresent message="true"&gt;
    &lt;html:messages id="msg" message="true"&gt;
      &lt;strong&gt;&lt;bean:write name="msg" /&gt;&lt;/strong&gt;&lt;br /&gt;
    &lt;/html:messages&gt;
  &lt;/logic:messagesPresent&gt;
  Your account balance is &lt;fmt:formatNumber pattern="\$#,##0.00" value="${BALANCE}" /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  Add Balance:&lt;br /&gt;
  &lt;html:form method="POST" action="/addbalance"&gt;
  &lt;table border="0" width="100%"&gt;
  &lt;tr&gt;
  &lt;td class="prompt"&gt;Type:&lt;/td&gt;
  &lt;td class="ui"&gt;&lt;html:select property="vendor"&gt;
  &lt;html:option value=""&gt;-- SELECT&lt;/html:option&gt;
  &lt;html:option value="VISA"&gt;VISA&lt;/html:option&gt;
  &lt;html:option value="MASTERCARD"&gt;MASTERCARD&lt;/html:option&gt;
  &lt;/html:select&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class="prompt"&gt;Number:&lt;/td&gt;
    &lt;td class="ui"&gt;&lt;html:password property="cc" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td class="prompt"&gt;Amount:&lt;/td&gt;
    &lt;td class="ui"&gt;&lt;html:text property="amount" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td colspan="2" class="ui" style="text-align: center"&gt;&lt;input type="submit" value="Add" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/html:form&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  &lt;a href="&lt;c:url value="/friends.do" /&gt;"&gt;Friends&lt;/a&gt;&lt;br /&gt;
  &lt;a href="&lt;c:url value="/profile.do" /&gt;"&gt;Profile&lt;/a&gt;&lt;br /&gt;
  &lt;a href="&lt;c:url value="/index.jsp" /&gt;"&gt;CD's&lt;/a&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  &lt;a href="&lt;c:url value="/logout.do" /&gt;"&gt;Log Out&lt;/a&gt;
  </code></pre>
  
  <p>Could someone explain to me what exactly Eclipse is not liking because of right now I'm not sure what I should check out?</p>
  
  <p><strong>UPDATE:</strong> I removed everything except the Welcome and taglibs from the code so that the leftlogged.jsp looks as follows:</p>
  
  <pre><code>Welcome ${USERNAME}!&lt;br /&gt;
  </code></pre>
  
  <p>The error message continues and didn't change any.</p>
  
  <p>Any further thoughts on what that could possibly mean is wrong?</p>