java - JSP Compilation Issue -


i working on java web application worked upon else earlier , person provided me source code of application. problem if try make changes application , deploy on tomcat (7.0.35) jsps not render , following error:

jsp compilation error

additionally, notice class file welcome.jsp not created.

the way can app working re-installing new version of tomcat , building, deploying , accessing original source code. when build , deploy code, , access jsps compile , .class , .java files created in tomcat work directory.

after copy paste changes original source code , redeploy modified app , works fine because class , java files corresponding jsp pages created after deploying , accessing original application.

also, if try modify jsps, same error starts appearing.

i have no clue going wrong here.it great if 1 can please me this. jdk version using 1.6.0_38-b05. tomcat points same jdk version , not have other version of jdk or jre installed on computer.

here code:

    <!doctype html>     <%@page import="com.xyz.toolkit.utils.formconstant"%>     <%@page import="org.jasig.cas.client.util.abstractcasfilter"%>     <%@page import="org.jasig.cas.client.validation.assertion"%>     <%@page import="org.jasig.cas.client.util.assertionholder"%>     <%@page import="java.util.iterator"%>     <%@page import="java.util.list"%>     <%@page import="java.util.map"%>     <%@ taglib uri="/web-inf/tld/accessvalidatehandlertag.tld" prefix="toolkit"%>     <html>     <head>     <title>toolkit</title>     <meta http-equiv="content-type" content="text/html charset=utf-8" />     <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />     <meta http-equiv="pragma" content="no-cache" />     <meta http-equiv="expires" content="0" />     <link href="css/jquery-ui-1.10.1.custom.css" type="text/css" rel="stylesheet" />     <link href="css/jquery.ui.tabs.css" type="text/css" rel="stylesheet" />     <link href="css/migration_toolkit.css" type="text/css" rel="stylesheet" />     <script type="text/javascript" src="js/plugins/jquery-1.9.1.js"></script>     <script type="text/javascript" src="js/plugins/jquery.validate.js"></script>     <script type="text/javascript" src="js/plugins/jquery.dateformat-1.0.js"></script>     <script type="text/javascript" src="js/plugins/jquery-ui-1.10.1.custom.js">         </script>     <script type="text/javascript" src="js/plugins/commons.js"></script>     <script type="text/javascript" src="js/login.js"></script>      <link href="css/jquery.jqplot.css" type="text/css" rel="stylesheet" />       <script type="text/javascript" src="js/plugins/jquery.jqplot.js"></script>     <script type="text/javascript" src="js/plugins/jquery.blockui.js"></script>     <script type="text/javascript" src="js/plugins/jqplot.pierenderer.js"></script>     </head>     <%     string roleadmin = formconstant.role_admin + "," + formconstant.role_all; string roleuser = formconstant.role_user + "," + formconstant.role_all;     %>     <body> <jsp:include page="header.jsp" /> <div id="tabs">     <div style="padding-bottom: 10px;">         <div id="welcome_msg">             welcome             <%=session.getattribute(formconstant.user_name)%>         </div>         <div id="logoutbtn">             <button id="logoutbutton" onclick="javascript:loadfeedback();">logout</button>         </div>     </div>     <div id="feedbackform">         <form method="post" action="logout" class="box tablebox">             <div class="form_field">                 <div class="box_body">                     thank using migration toolkit. please enter                     feedback may have , tell how                     improve user experience.                 </div>             </div>             <p style="clear: both"></p>             <div class="form_field" class="box_body">                 <div class="box_body">                     <label for="projectname">user name :</label> <input type="text"                         value="<%=session.getattribute(formconstant.user_name)%>"                         disabled /> <input type="hidden" name="username" id="username"                         value="<%=session.getattribute(formconstant.user_name)%>" />                 </div>             </div>             <p style="clear: both"></p>             <div class="form_field">                 <div class="box_body">                     <label for="projectname">user feedback:</label>                     <textarea id="userfeedback" name="userfeedback"                         style="width: 450px; height:250px"></textarea>                     <br>                 </div>             </div>             <p style="clear: both"></p>             <div class="form_field">                 <div class="box_body">                     <label for="submitfeedback">&nbsp;</label>                     <button id="submitfeedback" type="submit" style="float: right;">submit feedback</button>                 </div>             </div>         </form>     </div>     <ul>         <toolkit:accessvalidatehandlertag group="<%=roleadmin%>">             <li><a href="pages/generaterule.jsp">review & generate                     rulesets</a></li>         </toolkit:accessvalidatehandlertag>         <toolkit:accessvalidatehandlertag group="<%=roleuser%>">             <li><a href="pages/codeparser.jsp">parse codebase</a></li>             <li><a href="pages/reportviewer.jsp">generate consolidated report</a></li>         </toolkit:accessvalidatehandlertag>     </ul>  </div> <jsp:include page="footer.jsp" />     </body>     </html> 

here tomcat config:using catalina_base:

    "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" 

enter image description here

you precompiling jsps using jspc old version of tomcat , trying run them on newer version. jspc 1 major version of tomcat work other release same major version isn't guaranteed. sure of correct compilation, need use jspc same version of tomcat intend run on.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -