title: JSP Compilation Issue
body: <p>I am working on a Java web application that was worked upon by somebody else earlier and this person just provided me the source code of the application. The problem is if I try to make some changes to this application and deploy it on tomcat (7.0.35) the JSPs do not render and I get the following error:</p>
  
  <p><img src="https://i.stack.imgur.com/C4I6e.png" alt="JSP Compilation Error"></p>
  
  <p>Additionally, I notice that the class file for this welcome.jsp is not created. </p>
  
  <p>The only way I can get the app working is re-installing new version of tomcat and then building, deploying and accessing the original source code. When I build and deploy that code, and access the JSPs they compile properly and also .class and .java files get created in the tomcat work directory. </p>
  
  <p>After this I copy paste all my changes to the original source code and redeploy the modified app and it works fine because the class and java files corresponding to the JSP pages were created after deploying and accessing the original application. </p>
  
  <p>Also, if I try to modify the JSPs, the same error starts appearing. </p>
  
  <p>I have no clue what is going wrong here.It would be great if some one can please help me with this. The JDK version that I am using is 1.6.0_38-b05. Tomcat also points to the same JDK version and I do not have any other version of JDK or JRE installed on my computer.</p>
  
  <p>Here is the code: </p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
      &lt;%@page import="com.xyz.toolkit.utils.FormConstant"%&gt;
      &lt;%@page import="org.jasig.cas.client.util.AbstractCasFilter"%&gt;
      &lt;%@page import="org.jasig.cas.client.validation.Assertion"%&gt;
      &lt;%@page import="org.jasig.cas.client.util.AssertionHolder"%&gt;
      &lt;%@page import="java.util.Iterator"%&gt;
      &lt;%@page import="java.util.List"%&gt;
      &lt;%@page import="java.util.Map"%&gt;
      &lt;%@ taglib uri="/WEB-INF/tld/AccessValidateHandlerTag.tld" prefix="toolkit"%&gt;
      &lt;html&gt;
      &lt;head&gt;
      &lt;title&gt;ToolKit&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html CHARSET=UTF-8" /&gt;
      &lt;meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /&gt;
      &lt;meta http-equiv="Pragma" content="no-cache" /&gt;
      &lt;meta http-equiv="Expires" content="0" /&gt;
      &lt;link href="css/jquery-ui-1.10.1.custom.css" type="text/css" rel="stylesheet" /&gt;
      &lt;link href="css/jquery.ui.tabs.css" type="text/css" rel="stylesheet" /&gt;
      &lt;link href="css/migration_toolkit.css" type="text/css" rel="stylesheet" /&gt;
      &lt;script type="text/javascript" src="js/plugins/jquery-1.9.1.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/plugins/jquery.validate.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/plugins/jquery.dateFormat-1.0.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/plugins/jquery-ui-1.10.1.custom.js"&gt;         &lt;/script&gt;
      &lt;script type="text/javascript" src="js/plugins/commons.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/login.js"&gt;&lt;/script&gt;
  
      &lt;link href="css/jquery.jqplot.css" type="text/css" rel="stylesheet" /&gt;
  
  
      &lt;script type="text/javascript" src="js/plugins/jquery.jqplot.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/plugins/jquery.blockUI.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/plugins/jqplot.pieRenderer.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;%
      String roleAdmin = FormConstant.ROLE_ADMIN + "," + FormConstant.ROLE_ALL;
  String roleUser = FormConstant.ROLE_USER + "," + FormConstant.ROLE_ALL;
      %&gt;
      &lt;body&gt;
  &lt;jsp:include page="header.jsp" /&gt;
  &lt;div id="tabs"&gt;
      &lt;div style="padding-bottom: 10px;"&gt;
          &lt;div id="welcome_msg"&gt;
              Welcome
              &lt;%=session.getAttribute(FormConstant.USER_NAME)%&gt;
          &lt;/div&gt;
          &lt;div id="logoutBTN"&gt;
              &lt;button id="logoutButton" onclick="javascript:loadFeedBack();"&gt;Logout&lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="feedbackForm"&gt;
          &lt;form method="POST" action="logout" class="box tableBox"&gt;
              &lt;div class="form_field"&gt;
                  &lt;div class="box_body"&gt;
                      Thank you for using the Migration Toolkit. Please enter
                      any feedback you may have and tell us how you would like us to
                      improve the user experience.
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;p style="clear: both"&gt;&lt;/p&gt;
              &lt;div class="form_field" class="box_body"&gt;
                  &lt;div class="box_body"&gt;
                      &lt;label for="projectName"&gt;User Name :&lt;/label&gt; &lt;input type="text"
                          value="&lt;%=session.getAttribute(FormConstant.USER_NAME)%&gt;"
                          disabled /&gt; &lt;input type="hidden" name="userName" id="userName"
                          value="&lt;%=session.getAttribute(FormConstant.USER_NAME)%&gt;" /&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;p style="clear: both"&gt;&lt;/p&gt;
              &lt;div class="form_field"&gt;
                  &lt;div class="box_body"&gt;
                      &lt;label for="projectName"&gt;User Feedback:&lt;/label&gt;
                      &lt;textarea id="userFeedBack" name="userFeedBack"
                          style="width: 450px; height:250px"&gt;&lt;/textarea&gt;
                      &lt;br&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;p style="clear: both"&gt;&lt;/p&gt;
              &lt;div class="form_field"&gt;
                  &lt;div class="box_body"&gt;
                      &lt;label for="submitFeedback"&gt;&amp;nbsp;&lt;/label&gt;
                      &lt;button id="submitFeedback" type="submit" style="float: right;"&gt;Submit Feedback&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
      &lt;ul&gt;
          &lt;toolkit:AccessValidateHandlerTag group="&lt;%=roleAdmin%&gt;"&gt;
              &lt;li&gt;&lt;a href="pages/generateRule.jsp"&gt;Review &amp; Generate
                      Rulesets&lt;/a&gt;&lt;/li&gt;
          &lt;/toolkit:AccessValidateHandlerTag&gt;
          &lt;toolkit:AccessValidateHandlerTag group="&lt;%=roleUser%&gt;"&gt;
              &lt;li&gt;&lt;a href="pages/codeParser.jsp"&gt;Parse a Codebase&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="pages/reportViewer.jsp"&gt;Generate Consolidated Report&lt;/a&gt;&lt;/li&gt;
          &lt;/toolkit:AccessValidateHandlerTag&gt;
      &lt;/ul&gt;
  
  &lt;/div&gt;
  &lt;jsp:include page="footer.jsp" /&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>Here is the Tomcat Config:Using CATALINA_BASE: </p>
  
  <pre><code>    "C:\Users\kinjal.doshi\Apache Software Foundation\Tomcat 7.0"
      Using CATALINA_HOME:   "C:\Users\kinjal.doshi\Apache Software Foundation\Tomcat 7.0"
      Using CATALINA_TMPDIR: "C:\Users\kinjal.doshi\Apache Software Foundation\Tomcat 7.0\temp"
      Using JRE_HOME:        "C:\Program Files\Java\jdk1.6.0_38"
      Using CLASSPATH:       "C:\Users\kinjal.doshi\Apache Software Foundation\Tomcat 7.0\bin\bootstrap.jar;C:\Users\kinjal.doshi\Apache Software Foundation\Tomcat 7.0\bin\tomcat-juli.jar"
      Using JAVA_OPTS:       " -Djava.util.logging.config.file="C:\Users\kinjal.doshi\Apache Software Foundation\Tomcat 7.0\conf\logging.properties" -XX:PermSize=256m -XX:MaxPermSize=256m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/03DmA.jpg" alt="enter image description here"></p>