CINXE.COM

65387 – JSP compile error after upgrade 10.0.6 -> 10.0.7

<!DOCTYPE html> <html lang="en"> <head> <title>65387 &ndash; JSP compile error after upgrade 10.0.6 -&gt; 10.0.7</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="data/assets/d2dc72eaec8a65ba2f1cc98ad8a98a4d.css?1725743963" rel="stylesheet" type="text/css"> <link href="data/assets/117e56f7b51d43b9b3950693e5dec8a6.css?1725743940" rel="stylesheet" type="text/css"> <script type="text/javascript" src="data/assets/a7c2f3a028f17a9aa60f56dc9d6e732d.js?1725743962"></script> <script type="text/javascript"> <!-- YAHOO.namespace('bugzilla'); YAHOO.util.Event.addListener = function (el, sType, fn, obj, overrideContext) { if ( ("onpagehide" in window || YAHOO.env.ua.gecko) && sType === "unload") { sType = "pagehide"; }; var capture = ((sType == "focusin" || sType == "focusout") && !YAHOO.env.ua.ie) ? true : false; return this._addListener(el, this._getType(sType), fn, obj, overrideContext, capture); }; if ( "onpagehide" in window || YAHOO.env.ua.gecko) { YAHOO.util.Event._simpleRemove(window, "unload", YAHOO.util.Event._unload); } function unhide_language_selector() { YAHOO.util.Dom.removeClass( 'lang_links_container', 'bz_default_hidden' ); } YAHOO.util.Event.onDOMReady(unhide_language_selector); var BUGZILLA = { param: { cookiepath: '\/bugzilla\/', maxusermatches: 1000 }, constant: { COMMENT_COLS: 80 }, string: { attach_desc_required: "You must enter a Description for this attachment.", component_required: "You must select a Component for this bug.", description_required: "You must enter a Description for this bug.", short_desc_required: "You must enter a Summary for this bug.", version_required: "You must select a Version for this bug." } , api_token: '' }; if (history && history.replaceState) { if(!document.location.href.match(/show_bug\.cgi/)) { history.replaceState( null, "65387 – JSP compile error after upgrade 10.0.6 -\x3e 10.0.7", "show_bug.cgi?id=65387" ); document.title = "65387 – JSP compile error after upgrade 10.0.6 -\x3e 10.0.7"; } if (document.location.href.match(/show_bug\.cgi\?.*list_id=/)) { var href = document.location.href; href = href.replace(/[\?&]+list_id=(\d+|cookie)/, ''); history.replaceState(null, "65387 – JSP compile error after upgrade 10.0.6 -\x3e 10.0.7", href); } } YAHOO.util.Event.onDOMReady(function() { initDirtyFieldTracking(); }); // --> </script> <script type="text/javascript" src="data/assets/daf5e0fb6826e6a35280e622913f0c4a.js?1725743963"></script> <link rel="search" type="application/opensearchdescription+xml" title="ASF Bugzilla" href="./search_plugin.cgi"> <link rel="shortcut icon" href="images/favicon.ico"> </head> <body class="bz-apache-org-bugzilla bz_bug bz_status_RESOLVED bz_product_Tomcat_10 bz_component_Jasper bz_bug_65387 yui-skin-sam"> <div id="header"><div id="banner"> </div> <div id="titles"> <span id="title">ASF Bugzilla &ndash; Bug&nbsp;65387</span> <span id="subtitle" class="subheader">JSP compile error after upgrade 10.0.6 -&gt; 10.0.7</span> <span id="information" class="header_addl_info">Last modified: 2021-06-28 07:21:42 UTC</span> </div> <div id="common_links"><ul id="useful-links"> <li id="links-actions"><ul class="links"> <li><a href="./">Home</a></li> <li><span class="separator">| </span><a href="enter_bug.cgi">New</a></li> <li><span class="separator">| </span><a href="describecomponents.cgi">Browse</a></li> <li><span class="separator">| </span><a href="query.cgi">Search</a></li> <li class="form"> <span class="separator">| </span> <form action="buglist.cgi" method="get" onsubmit="if (this.quicksearch.value == '') { alert('Please enter one or more search terms first.'); return false; } return true;"> <input type="hidden" id="no_redirect_top" name="no_redirect" value="0"> <script type="text/javascript"> if (history && history.replaceState) { var no_redirect = document.getElementById("no_redirect_top"); no_redirect.value = 1; } </script> <input class="txt" type="text" id="quicksearch_top" name="quicksearch" aria-labelledby="find_top" title="Quick Search" value=""> <input class="btn" type="submit" value="Search" id="find_top"></form> <a href="page.cgi?id=quicksearch.html" title="Quicksearch Help">[?]</a></li> <li><span class="separator">| </span><a href="report.cgi">Reports</a></li> <li></li> <li> <span class="separator">| </span> <a href="docs/en/html/using/understanding.html" target="_blank">Help</a> </li> <li id="new_account_container_top"> <span class="separator">| </span> <a href="createaccount.cgi">New&nbsp;Account</a> </li> <li id="mini_login_container_top"> <span class="separator">| </span> <a id="login_link_top" href="show_bug.cgi?id=65387&amp;GoAheadAndLogIn=1" onclick="return show_mini_login_form('_top')">Log In</a> <form action="show_bug.cgi?id=65387" method="POST" class="mini_login bz_default_hidden" id="mini_login_top"> <input id="Bugzilla_login_top" required name="Bugzilla_login" class="bz_login" type="email" placeholder="Email Address"> <input class="bz_password" name="Bugzilla_password" type="password" id="Bugzilla_password_top" required placeholder="Password"> <input type="checkbox" id="Bugzilla_remember_top" name="Bugzilla_remember" value="on" class="bz_remember" checked> <label for="Bugzilla_remember_top">Remember</label> <input type="hidden" name="Bugzilla_login_token" value=""> <input type="submit" name="GoAheadAndLogIn" value="Log in" id="log_in_top"> <a href="#" onclick="return hide_mini_login_form('_top')">[x]</a> </form> </li> <li id="forgot_container_top"> <span class="separator">| </span> <a id="forgot_link_top" href="show_bug.cgi?id=65387&amp;GoAheadAndLogIn=1#forgot" onclick="return show_forgot_form('_top')">Forgot Password</a> <form action="token.cgi" method="post" id="forgot_form_top" class="mini_forgot bz_default_hidden"> <label for="login_top">Login:</label> <input name="loginname" size="20" id="login_top" required type="email" placeholder="Your Email Address"> <input id="forgot_button_top" value="Reset Password" type="submit"> <input type="hidden" name="a" value="reqpw"> <input type="hidden" id="token_top" name="token" value="1739814058-A9fBK2y_SEUZlB67723BOGhR-YGNQLEDDSsjVD0qMTE"> <a href="#" onclick="return hide_forgot_form('_top')">[x]</a> </form> </li> </ul> </li> </ul> </div> </div> <div id="bugzilla-body"> <script type="text/javascript"> <!-- //--> </script> <form name="changeform" id="changeform" method="post" action="process_bug.cgi"> <input type="hidden" name="delta_ts" value="2021-06-28 07:21:42"> <input type="hidden" name="id" value="65387"> <input type="hidden" name="token" value="1739814058-t6H-6jQxJ6cFw1z0gEh6O9PmdUSdUA_d608pdh4yhvA"> <div class="bz_short_desc_container edit_form"> <a href="show_bug.cgi?id=65387"><b>Bug&nbsp;65387</b></a> <span id="summary_container" class="bz_default_hidden"> - <span id="short_desc_nonedit_display">JSP compile error after upgrade 10.0.6 -&gt; 10.0.7</span> </span> <div id="summary_input"><span class="field_label " id="field_label_short_desc"> <a title="The bug summary is a short sentence which succinctly describes what the bug is about." class="field_help_link" href="page.cgi?id=fields.html#short_desc" >Summary:</a> </span>JSP compile error after upgrade 10.0.6 -&gt; 10.0.7 </div> </div> <script type="text/javascript"> hideEditableField('summary_container', 'summary_input', 'summary_edit_action', 'short_desc', 'JSP compile error after upgrade 10.0.6 -\x3e 10.0.7' ); </script> <table class="edit_form"> <tr> <td id="bz_show_bug_column_1" class="bz_show_bug_column"> <table> <tr> <th class="field_label"> <a href="page.cgi?id=fields.html#bug_status">Status</a>: </th> <td id="bz_field_status"> <span id="static_bug_status">RESOLVED FIXED </span> </td> </tr> <tr> <td colspan="2" class="bz_section_spacer"></td> </tr> <tr><th class="field_label " id="field_label_alias"> <a title="A short, unique name assigned to a bug in order to assist with looking it up and referring to it in other places in Bugzilla." class="field_help_link" href="page.cgi?id=fields.html#alias" >Alias:</a> </th> <td> None </td> </tr> <tr> <td colspan="2" class="bz_section_spacer"></td> </tr> <tr><th class="field_label " id="field_label_product"> <a title="Bugs are categorised into Products and Components." class="field_help_link" href="describecomponents.cgi" >Product:</a> </th> <td class="field_value " id="field_container_product" >Tomcat 10 </td> </tr> <tr class="bz_default_hidden"><th class="field_label " id="field_label_classification"> <a title="Bugs are categorised into Classifications, Products and Components. classifications is the top-level categorisation." class="field_help_link" href="page.cgi?id=fields.html#classification" >Classification:</a> </th> <td class="field_value " id="field_container_classification" >Unclassified </td> </tr> <tr><th class="field_label " id="field_label_component"> <a title="Components are second-level categories; each belongs to a particular Product. Select a Product to narrow down this list." class="field_help_link" href="describecomponents.cgi?product=Tomcat 10" >Component:</a> </th> <td class="field_value " id="field_container_component" >Jasper (<a href="buglist.cgi?component=Jasper&amp;product=Tomcat%2010&amp;bug_status=__open__" target="_blank">show other bugs</a>) </td> </tr> <tr><th class="field_label " id="field_label_version"> <a title="The version field defines the version of the software the bug was found in." class="field_help_link" href="page.cgi?id=fields.html#version" >Version:</a> </th> <td>unspecified </td> </tr> <tr><th class="field_label " id="field_label_rep_platform"> <a title="The hardware platform the bug was observed on. Note: When searching, selecting the option &quot;All&quot; only finds bugs whose value for this field is literally the word &quot;All&quot;." class="field_help_link" href="page.cgi?id=fields.html#rep_platform" >Hardware:</a> </th> <td class="field_value">PC Linux </td> </tr> <tr> <td colspan="2" class="bz_section_spacer"></td> </tr> <tr> <th class="field_label"> <label accesskey="i"> <a href="page.cgi?id=fields.html#importance"><u>I</u>mportance</a></label>: </th> <td>P2 normal<span id="votes_container"> (<a href="page.cgi?id=voting/user.html&amp;bug_id=65387#vote_65387">vote</a>) </span> </td> </tr> <tr><th class="field_label " id="field_label_target_milestone"> <a title="The Target Milestone field is used to define when the engineer the bug is assigned to expects to fix it." class="field_help_link" href="page.cgi?id=fields.html#target_milestone" >Target Milestone:</a> </th><td>------ </td> </tr> <tr><th class="field_label " id="field_label_assigned_to"> <a title="The person in charge of resolving the bug." class="field_help_link" href="page.cgi?id=fields.html#assigned_to" >Assignee:</a> </th> <td><span class="vcard"><span class="fn">Tomcat Developers Mailing List</span> </span> </td> </tr> <script type="text/javascript"> assignToDefaultOnChange(['product', 'component'], 'dev\x40tomcat.apache.org', ''); </script> <tr> <td colspan="2" class="bz_section_spacer"></td> </tr> <tr><th class="field_label " id="field_label_bug_file_loc"> <a title="Bugs can have a URL associated with them - for example, a pointer to a web site where the problem is seen." class="field_help_link" href="page.cgi?id=fields.html#bug_file_loc" >URL:</a> </th> <td> <span id="bz_url_input_area"> </span> </td> </tr> <tr><th class="field_label " id="field_label_keywords"> <a title="You can add keywords from a defined list to bugs, in order to easily identify and group them." class="field_help_link" href="describekeywords.cgi" >Keywords:</a> </th> <td class="field_value " id="field_container_keywords" > </td> </tr> <tr> <td colspan="2" class="bz_section_spacer"></td> </tr> <tr><th class="field_label " id="field_label_dependson"> <a title="The bugs listed here must be resolved before this bug can be resolved." class="field_help_link" href="page.cgi?id=fields.html#dependson" >Depends on:</a> </th> <td> <span id="dependson_input_area"> </span> </td> </tr> <tr><th class="field_label " id="field_label_blocked"> <a title="This bug must be resolved before the bugs listed in this field can be resolved." class="field_help_link" href="page.cgi?id=fields.html#blocked" >Blocks:</a> </th> <td> <span id="blocked_input_area"> </span> </td> </tr> </table> </td> <td> <div class="bz_column_spacer">&nbsp;</div> </td> <td id="bz_show_bug_column_2" class="bz_show_bug_column"> <table> <tr> <th class="field_label"> Reported: </th> <td>2021-06-17 08:08 UTC by <span class="vcard"><span class="fn">qeepcologne</span> </span> </td> </tr> <tr> <th class="field_label"> Modified: </th> <td>2021-06-28 07:21 UTC (<a href="show_activity.cgi?id=65387">History</a>) </td> </tr> <tr> <th class="field_label"> <label accesskey="a"> CC List: </label> </th> <td>1 user <span id="cc_edit_area_showhide_container" class="bz_default_hidden"> (<a href="#" id="cc_edit_area_showhide">show</a>) </span> <div id="cc_edit_area"> <br> <select id="cc" multiple="multiple" size="5" > <option value="tkuun">tkuun</option> </select> </div> <script type="text/javascript"> hideEditableField( 'cc_edit_area_showhide_container', 'cc_edit_area', 'cc_edit_area_showhide', '', ''); </script> </td> </tr> <tr> <td colspan="2" class="bz_section_spacer"></td> </tr> <tr> <td colspan="2" class="bz_section_spacer"></td> </tr> </table> </td> </tr> <tr> <td colspan="3"> <hr id="bz_top_half_spacer"> </td> </tr> </table> <table id="bz_big_form_parts"> <tr> <td> <script type="text/javascript"> <!-- function toggle_display(link) { var table = document.getElementById("attachment_table"); var view_all = document.getElementById("view_all"); var hide_obsolete_url_parameter = "&hide_obsolete=1"; // Store current height for scrolling later var originalHeight = table.offsetHeight; var rows = YAHOO.util.Dom.getElementsByClassName( 'bz_tr_obsolete', 'tr', table); for (var i = 0; i < rows.length; i++) { bz_toggleClass(rows[i], 'bz_default_hidden'); } if (YAHOO.util.Dom.hasClass(rows[0], 'bz_default_hidden')) { link.innerHTML = "Show Obsolete"; view_all.href = view_all.href + hide_obsolete_url_parameter } else { link.innerHTML = "Hide Obsolete"; view_all.href = view_all.href.replace(hide_obsolete_url_parameter,""); } var newHeight = table.offsetHeight; // This scrolling makes the window appear to not move at all. window.scrollBy(0, newHeight - originalHeight); return false; } //--> </script> <br> <table id="attachment_table"> <tr id="a0"> <th colspan="2" class="left"> Attachments </th> </tr> <tr id="a1" class="bz_contenttype_text_plain bz_tr_obsolete bz_default_hidden"> <td> <a href="attachment.cgi?id=37902" title="View the content of the attachment"> <b><span class="bz_obsolete">login form</span></b></a> <span class="bz_attach_extra_info"> (9.67 KB, text/plain) <br> <a href="#attach_37902" title="Go to the comment associated with the attachment">2021-06-17 08:13 UTC</a>, <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> </td> <td> <a href="attachment.cgi?id=37902&amp;action=edit">Details</a> </td> </tr> <tr id="a2" class="bz_contenttype_text_plain bz_tr_obsolete bz_default_hidden"> <td> <a href="attachment.cgi?id=37903" title="View the content of the attachment"> <b><span class="bz_obsolete">include header.jsp</span></b></a> <span class="bz_attach_extra_info"> (3.21 KB, text/plain) <br> <a href="#attach_37903" title="Go to the comment associated with the attachment">2021-06-17 14:37 UTC</a>, <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> </td> <td> <a href="attachment.cgi?id=37903&amp;action=edit">Details</a> </td> </tr> <tr id="a3" class="bz_contenttype_text_plain bz_tr_obsolete bz_default_hidden"> <td> <a href="attachment.cgi?id=37904" title="View the content of the attachment"> <b><span class="bz_obsolete">include Main_Start.jsp</span></b></a> <span class="bz_attach_extra_info"> (368 bytes, text/plain) <br> <a href="#attach_37904" title="Go to the comment associated with the attachment">2021-06-17 14:38 UTC</a>, <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> </td> <td> <a href="attachment.cgi?id=37904&amp;action=edit">Details</a> </td> </tr> <tr id="a4" class="bz_contenttype_text_html bz_tr_obsolete bz_default_hidden"> <td> <a href="attachment.cgi?id=37905" title="View the content of the attachment"> <b><span class="bz_obsolete">nested include HTML_Header.jsp</span></b></a> <span class="bz_attach_extra_info"> (3.01 KB, text/html) <br> <a href="#attach_37905" title="Go to the comment associated with the attachment">2021-06-17 14:39 UTC</a>, <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> </td> <td> <a href="attachment.cgi?id=37905&amp;action=edit">Details</a> </td> </tr> <tr id="a5" class="bz_contenttype_text_x-java"> <td> <a href="attachment.cgi?id=37906" title="View the content of the attachment"> <b>LoginForm_jsp.java</b></a> <span class="bz_attach_extra_info"> (57.45 KB, text/x-java) <br> <a href="#attach_37906" title="Go to the comment associated with the attachment">2021-06-18 09:48 UTC</a>, <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> </td> <td> <a href="attachment.cgi?id=37906&amp;action=edit">Details</a> </td> </tr> <tr id="a6" class="bz_contenttype_application_octet-stream"> <td> <a href="attachment.cgi?id=37907" title="View the content of the attachment"> <b>test_no-libs.zip</b></a> <span class="bz_attach_extra_info"> (371.49 KB, application/octet-stream) <br> <a href="#attach_37907" title="Go to the comment associated with the attachment">2021-06-18 11:46 UTC</a>, <span class="vcard"><span class="fn">Konstantin Kolinko</span> </span> </span> </td> <td> <a href="attachment.cgi?id=37907&amp;action=edit">Details</a> </td> </tr> <tr class="bz_attach_footer"> <td colspan="2"> <span class="bz_attach_view_hide"> <a href="#a0" onclick="return toggle_display(this);">Show Obsolete</a> (4) <a id="view_all" href="attachment.cgi?bugid=65387&amp;action=viewall&amp;hide_obsolete=1">View All</a> </span> <a href="attachment.cgi?bugid=65387&amp;action=enter">Add an attachment</a> (proposed patch, testcase, etc.) </td> </tr> </table> <br> <div id="add_comment" class="bz_section_additional_comments"> <table> <tr> <td> <fieldset> <legend>Note</legend> You need to <a href="show_bug.cgi?id=65387&amp;GoAheadAndLogIn=1">log in</a> before you can comment on or make changes to this bug. </fieldset> </td> </tr> </table> </div> </td> <td> </td> </tr></table> <div id="comments"><script src="js/comments.js?1474742097" type="text/javascript"> </script> <script type="text/javascript"> <!-- /* Adds the reply text to the 'comment' textarea */ function replyToComment(id, real_id, name) { var prefix = "(In reply to " + name + " from comment #" + id + ")\n"; var replytext = ""; /* pre id="comment_name_N" */ var text_elem = document.getElementById('comment_text_'+id); var text = getText(text_elem); replytext = prefix + wrapReplyText(text); /* <textarea id="comment"> */ var textarea = document.getElementById('comment'); if (textarea.value != replytext) { textarea.value += replytext; } textarea.focus(); } //--> </script> <!-- This auto-sizes the comments and positions the collapse/expand links to the right. --> <table class="bz_comment_table"> <tr> <td> <div id="c0" class="bz_comment bz_first_comment"> <div class="bz_first_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c0">Description</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 08:08:48 UTC </span> </div> <pre class="bz_comment_text">After upgrade tomcat (via docker image: tomcat:10.0.6-jdk16-openjdk-slim-buster / tomcat:10.0.7-jdk16-openjdk-slim-buster) the following error occurs: (note: this is javax webapp in webapps-javaee folder). org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [509] in the generated java file: [/usr/local/tomcat/work/Catalina/localhost/qeepmaster-new/org/apache/jsp/WEB_002dINF/jsp/LoginForm_jsp.java] out cannot be resolved to a variable An error occurred at line: [543] in the generated java file: [/usr/local/tomcat/work/Catalina/localhost/qeepmaster-new/org/apache/jsp/WEB_002dINF/jsp/LoginForm_jsp.java] out cannot be resolved to a variable Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:482) org.apache.jasper.compiler.Compiler.compile(Compiler.java:397) org.apache.jasper.compiler.Compiler.compile(Compiler.java:367) org.apache.jasper.compiler.Compiler.compile(Compiler.java:351) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328) jakarta.servlet.http.HttpServlet.service(HttpServlet.java:774) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:171) org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:316) org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1396) org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1141) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1080) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) jakarta.servlet.http.HttpServlet.service(HttpServlet.java:665) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) jakarta.servlet.http.HttpServlet.service(HttpServlet.java:774) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:204) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)</pre> </div> <div id="c1" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c1">Comment 1</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 08:13:10 UTC </span> </div> <pre class="bz_comment_text">Created <span class="bz_obsolete"><a href="attachment.cgi?id=37902" name="attach_37902" title="login form">attachment 37902</a> <a href="attachment.cgi?id=37902&amp;action=edit" title="login form">[details]</a></span> login form</pre> </div> <div id="c2" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c2">Comment 2</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Mark Thomas</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 08:35:16 UTC </span> </div> <pre class="bz_comment_text">Looks like my clean-up of unused code may have been too aggressive despite all the unit tests that were added. Thanks for the example JSP that triggers this. We'll take a look.</pre> </div> <div id="c3" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c3">Comment 3</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Mark Thomas</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 13:20:19 UTC </span> </div> <pre class="bz_comment_text">The JSP provided to reproduce the issue has a number of included that have not been provided. We can try and work-around this but we can't know if the content that triggers this issue is in the included files or not. Please provide a self-contained JSP (it can depend on JSTL if necessary) that demonstrates the issue.</pre> </div> <div id="c4" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c4">Comment 4</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Remy Maucherat</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 13:36:20 UTC </span> </div> <pre class="bz_comment_text">(In reply to Mark Thomas from <a href="show_bug.cgi?id=65387#c3">comment #3</a>) <span class="quote">&gt; The JSP provided to reproduce the issue has a number of included that have &gt; not been provided. We can try and work-around this but we can't know if the &gt; content that triggers this issue is in the included files or not. &gt; &gt; Please provide a self-contained JSP (it can depend on JSTL if necessary) &gt; that demonstrates the issue.</span > I have tried the if.jsp from the examples, and the empty if tag doesn't have the out (this is ok I believe) while the two that are not empty do have it. In the provided example, the if tags are not empty so they should have the out as well.</pre> </div> <div id="c5" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c5">Comment 5</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 14:37:58 UTC </span> </div> <pre class="bz_comment_text">Created <span class="bz_obsolete"><a href="attachment.cgi?id=37903" name="attach_37903" title="include header.jsp">attachment 37903</a> <a href="attachment.cgi?id=37903&amp;action=edit" title="include header.jsp">[details]</a></span> include header.jsp</pre> </div> <div id="c6" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c6">Comment 6</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 14:38:33 UTC </span> </div> <pre class="bz_comment_text">Created <span class="bz_obsolete"><a href="attachment.cgi?id=37904" name="attach_37904" title="include Main_Start.jsp">attachment 37904</a> <a href="attachment.cgi?id=37904&amp;action=edit" title="include Main_Start.jsp">[details]</a></span> include Main_Start.jsp</pre> </div> <div id="c7" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c7">Comment 7</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 14:39:03 UTC </span> </div> <pre class="bz_comment_text">Created <span class="bz_obsolete"><a href="attachment.cgi?id=37905" name="attach_37905" title="nested include HTML_Header.jsp">attachment 37905</a> <a href="attachment.cgi?id=37905&amp;action=edit" title="nested include HTML_Header.jsp">[details]</a></span> nested include HTML_Header.jsp</pre> </div> <div id="c8" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c8">Comment 8</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 14:40:53 UTC </span> </div> <pre class="bz_comment_text">i don't create that include hell and web developer is on holiday at the moment. I try to add all the missing includes. Hope that helps.</pre> </div> <div id="c9" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c9">Comment 9</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Konstantin Kolinko</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-17 16:04:55 UTC </span> </div> <pre class="bz_comment_text">Can you provide the generated java file (LoginForm_jsp.java) ? /usr/local/tomcat/work/Catalina/localhost/qeepmaster-new/org/apache/jsp/WEB_002dINF/jsp/LoginForm_jsp.java</pre> </div> <div id="c10" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c10">Comment 10</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Mark Thomas</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-18 09:07:06 UTC </span> </div> <pre class="bz_comment_text">Those includes have at least one further include. Konstantin's suggestion is a better one. With the broken .java file we can try and reverse engineer a test case.</pre> </div> <div id="c11" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c11">Comment 11</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-18 09:48:08 UTC </span> </div> <pre class="bz_comment_text">Created <span class=""><a href="attachment.cgi?id=37906" name="attach_37906" title="LoginForm_jsp.java">attachment 37906</a> <a href="attachment.cgi?id=37906&amp;action=edit" title="LoginForm_jsp.java">[details]</a></span> LoginForm_jsp.java</pre> </div> <div id="c12" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c12">Comment 12</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Konstantin Kolinko</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-18 11:33:36 UTC </span> </div> <pre class="bz_comment_text">(In reply to qeepcologne from <a href="show_bug.cgi?id=65387#c11">comment #11</a>) <span class="quote">&gt; Created <span class=""><a href="attachment.cgi?id=37906" name="attach_37906" title="LoginForm_jsp.java">attachment 37906</a> <a href="attachment.cgi?id=37906&amp;action=edit" title="LoginForm_jsp.java">[details]</a></span> &gt; LoginForm_jsp.java</span > _jspx_dependants.put(&quot;/WEB-INF/lib/spring-security-taglibs-5.5.0.jar&quot; _jspx_dependants.put(&quot;/WEB-INF/lib/spring-webmvc-5.3.8.jar&quot; OK, I see what versions of the libs were used. _jspx_dependants.put(&quot;/WEB-INF/tld/fn-1.1.1.tld&quot;, _jspx_dependants.put(&quot;/WEB-INF/tld/c-1.1.2.tld&quot;, I wonder why the app is using JSTL 1.1.x instead of the current version (1.2.х). <a rel="nofollow" href="https://tomcat.apache.org/download-taglibs.cgi">https://tomcat.apache.org/download-taglibs.cgi</a> <a rel="nofollow" href="https://tomcat.apache.org/taglibs.html">https://tomcat.apache.org/taglibs.html</a> I found those TLD files at <a rel="nofollow" href="https://repo.maven.apache.org/maven2/taglibs/c/1.1.2/c-1.1.2.tld">https://repo.maven.apache.org/maven2/taglibs/c/1.1.2/c-1.1.2.tld</a> <a rel="nofollow" href="https://repo.maven.apache.org/maven2/taglibs/fn/1.1.1/fn-1.1.1.tld">https://repo.maven.apache.org/maven2/taglibs/fn/1.1.1/fn-1.1.1.tld</a> They are the same as c.tld and fn.tld in standard.jar of jakarta-taglibs-standard-1.1.2.zip from <a rel="nofollow" href="http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/">http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/</a> With those libs and files I am able to reproduce the error. The libraries used: jstl.jar spring-beans-5.3.8.jar spring-expression-5.3.8.jar spring-security-taglibs-5.5.0.jar spring-security-web-5.5.0.jar spring-webmvc-5.3.8.jar standard.jar</pre> </div> <div id="c13" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c13">Comment 13</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Konstantin Kolinko</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-18 11:46:24 UTC </span> </div> <pre class="bz_comment_text">Created <span class=""><a href="attachment.cgi?id=37907" name="attach_37907" title="test_no-libs.zip">attachment 37907</a> <a href="attachment.cgi?id=37907&amp;action=edit" title="test_no-libs.zip">[details]</a></span> test_no-libs.zip To reproduce: 1) Unzip test_no-libs.zip into an empty directory 2) Download the following libraries and put them into WEB-INF/lib durectory: <a rel="nofollow" href="https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-taglibs/5.5.0/spring-security-taglibs-5.5.0.jar">https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-taglibs/5.5.0/spring-security-taglibs-5.5.0.jar</a> <a rel="nofollow" href="https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-web/5.5.0/spring-security-web-5.5.0.jar">https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-web/5.5.0/spring-security-web-5.5.0.jar</a> <a rel="nofollow" href="https://repo.maven.apache.org/maven2/org/springframework/spring-beans/5.3.8/spring-beans-5.3.8.jar">https://repo.maven.apache.org/maven2/org/springframework/spring-beans/5.3.8/spring-beans-5.3.8.jar</a> <a rel="nofollow" href="https://repo.maven.apache.org/maven2/org/springframework/spring-expression/5.3.8/spring-expression-5.3.8.jar">https://repo.maven.apache.org/maven2/org/springframework/spring-expression/5.3.8/spring-expression-5.3.8.jar</a> <a rel="nofollow" href="https://repo.maven.apache.org/maven2/org/springframework/spring-webmvc/5.3.8/spring-webmvc-5.3.8.jar">https://repo.maven.apache.org/maven2/org/springframework/spring-webmvc/5.3.8/spring-webmvc-5.3.8.jar</a> 3) zip or jar it and rename to test.war 4) Put the war file into ${catalina.base}/webapps-javaee 5) Start Tomcat 10 6) Open <a rel="nofollow" href="http://localhost:8080/test/LoginForm.jsp">http://localhost:8080/test/LoginForm.jsp</a> The errors: [[[ An error occurred at line: [509] in the generated java file: [...\LoginForm_jsp.java] out cannot be resolved to a variable An error occurred at line: [543] in the generated java file: [...\LoginForm_jsp.java] out cannot be resolved to a variable ]]] Those lines (509, 543) both are: <span class="quote">&gt; out = _jspx_page_context.popBody();</span ></pre> </div> <div id="c14" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c14">Comment 14</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Mark Thomas</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-18 12:11:45 UTC </span> </div> <pre class="bz_comment_text">Thanks for that. I can recreate the issue now.</pre> </div> <div id="c15" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c15">Comment 15</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Mark Thomas</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-18 12:27:25 UTC </span> </div> <pre class="bz_comment_text">I have a fix. I just want to pull together a simpler test case for this then I'll commit the test and the fix.</pre> </div> <div id="c16" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c16">Comment 16</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Remy Maucherat</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-18 12:50:35 UTC </span> </div> <pre class="bz_comment_text">*** <a class="bz_bug_link bz_status_RESOLVED bz_closed" title="RESOLVED FIXED - Problem in the code generated by jasper" href="show_bug.cgi?id=65390">Bug 65390</a> has been marked as a duplicate of this bug. ***</pre> </div> <div id="c17" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c17">Comment 17</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Mark Thomas</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-18 13:55:07 UTC </span> </div> <pre class="bz_comment_text">Fixed in: - 10.1.x for 10.1.0-M2 onwards - 10.0.x for 10.0.8 onwards</pre> </div> <div id="c18" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c18">Comment 18</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">Mark Thomas</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-21 10:07:21 UTC </span> </div> <pre class="bz_comment_text">Just following up in this as we'd really like to catch regressions like this in the ~3 working day window between the release candidate being available and the release vote concluding. It is great that you are using the latest Tomcat release as soon as it as available but what would we, the Tomcat team, need to do for you to be able to test the release candidate as soon as it as available rather than you waiting for the release?</pre> </div> <div id="c19" class="bz_comment"> <div class="bz_comment_head"> <span class="bz_comment_number"> <a href="show_bug.cgi?id=65387#c19">Comment 19</a> </span> <span class="bz_comment_user"> <span class="vcard"><span class="fn">qeepcologne</span> </span> </span> <span class="bz_comment_user_images"> </span> <span class="bz_comment_time"> 2021-06-28 07:21:42 UTC </span> </div> <pre class="bz_comment_text">It would be much easier if there is a docker image available for the release candidate (or latest milestone), then we could use it as soon it is available on staging.</pre> </div> </td> <td> </td> </tr></table> </div> </form> <hr> <ul class="related_actions"> <li><a href="show_bug.cgi?format=multiple&amp;id=65387">Format For Printing</a></li> <li>&nbsp;-&nbsp;<a href="show_bug.cgi?ctype=xml&amp;id=65387">XML</a></li> <li>&nbsp;-&nbsp;<a href="enter_bug.cgi?cloned_bug_id=65387">Clone This Bug</a></li> <li>&nbsp;-&nbsp;<a href="#">Top of page </a></li> </ul> <br> </div> <div id="footer"> <div class="intro"></div> This is <b>ASF Bugzilla</b>: the Apache Software Foundation bug system. In case of problems with the functioning of ASF Bugzilla, please contact <a href="mailto:bugzilla-admin@apache.org">bugzilla-admin@apache.org</a>. <b>Please Note:</b> this e-mail address is <b>only</b> for reporting problems with ASF Bugzilla. Mail about any other subject will be silently ignored. <ul id="useful-links"> <li id="links-actions"><ul class="links"> <li><a href="./">Home</a></li> <li><span class="separator">| </span><a href="enter_bug.cgi">New</a></li> <li><span class="separator">| </span><a href="describecomponents.cgi">Browse</a></li> <li><span class="separator">| </span><a href="query.cgi">Search</a></li> <li class="form"> <span class="separator">| </span> <form action="buglist.cgi" method="get" onsubmit="if (this.quicksearch.value == '') { alert('Please enter one or more search terms first.'); return false; } return true;"> <input type="hidden" id="no_redirect_bottom" name="no_redirect" value="0"> <script type="text/javascript"> if (history && history.replaceState) { var no_redirect = document.getElementById("no_redirect_bottom"); no_redirect.value = 1; } </script> <input class="txt" type="text" id="quicksearch_bottom" name="quicksearch" aria-labelledby="find_bottom" title="Quick Search" value=""> <input class="btn" type="submit" value="Search" id="find_bottom"></form> <a href="page.cgi?id=quicksearch.html" title="Quicksearch Help">[?]</a></li> <li><span class="separator">| </span><a href="report.cgi">Reports</a></li> <li></li> <li> <span class="separator">| </span> <a href="docs/en/html/using/understanding.html" target="_blank">Help</a> </li> <li id="new_account_container_bottom"> <span class="separator">| </span> <a href="createaccount.cgi">New&nbsp;Account</a> </li> <li id="mini_login_container_bottom"> <span class="separator">| </span> <a id="login_link_bottom" href="show_bug.cgi?id=65387&amp;GoAheadAndLogIn=1" onclick="return show_mini_login_form('_bottom')">Log In</a> <form action="show_bug.cgi?id=65387" method="POST" class="mini_login bz_default_hidden" id="mini_login_bottom"> <input id="Bugzilla_login_bottom" required name="Bugzilla_login" class="bz_login" type="email" placeholder="Email Address"> <input class="bz_password" name="Bugzilla_password" type="password" id="Bugzilla_password_bottom" required placeholder="Password"> <input type="checkbox" id="Bugzilla_remember_bottom" name="Bugzilla_remember" value="on" class="bz_remember" checked> <label for="Bugzilla_remember_bottom">Remember</label> <input type="hidden" name="Bugzilla_login_token" value=""> <input type="submit" name="GoAheadAndLogIn" value="Log in" id="log_in_bottom"> <a href="#" onclick="return hide_mini_login_form('_bottom')">[x]</a> </form> </li> <li id="forgot_container_bottom"> <span class="separator">| </span> <a id="forgot_link_bottom" href="show_bug.cgi?id=65387&amp;GoAheadAndLogIn=1#forgot" onclick="return show_forgot_form('_bottom')">Forgot Password</a> <form action="token.cgi" method="post" id="forgot_form_bottom" class="mini_forgot bz_default_hidden"> <label for="login_bottom">Login:</label> <input name="loginname" size="20" id="login_bottom" required type="email" placeholder="Your Email Address"> <input id="forgot_button_bottom" value="Reset Password" type="submit"> <input type="hidden" name="a" value="reqpw"> <input type="hidden" id="token_bottom" name="token" value="1739814059-i8IzHnO2Oos3JXuMwGmJxfR0gR8jBEqjr7-Lr3GNZ00"> <a href="#" onclick="return hide_forgot_form('_bottom')">[x]</a> </form> </li> </ul> </li> </ul> <div class="outro"></div> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10