https://redmine.z2-environment.net/https://redmine.z2-environment.net/favicon.ico?15813551872013-07-23T08:09:59Zz2-Environmentz2-Environment - Bug #1453: Unable to process recursive tag fileshttps://redmine.z2-environment.net/issues/1453?journal_id=12252013-07-23T08:09:59ZUdo Offermannudo.offermann@zfabrik.de
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/1225/diff?detail_id=887">diff</a>)</li></ul> z2-Environment - Bug #1453: Unable to process recursive tag fileshttps://redmine.z2-environment.net/issues/1453?journal_id=12472013-07-25T10:09:54ZUdo Offermannudo.offermann@zfabrik.de
<ul><li><strong>Due date</strong> set to <i>05.08.2013</i></li></ul> z2-Environment - Bug #1453: Unable to process recursive tag fileshttps://redmine.z2-environment.net/issues/1453?journal_id=12572013-07-30T08:09:02ZHenning Blohmhenning.blohm@zfabrik.de
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul> z2-Environment - Bug #1453: Unable to process recursive tag fileshttps://redmine.z2-environment.net/issues/1453?journal_id=12602013-07-30T10:17:18ZHenning Blohmhenning.blohm@zfabrik.de
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Rejected</i></li></ul><p>Tested on two machines with latest z2_base from Git (in that case Jetty 8.1.11) and works fine. Suggest re-test after transport.</p> z2-Environment - Bug #1453: Unable to process recursive tag fileshttps://redmine.z2-environment.net/issues/1453?journal_id=12612013-07-30T10:17:28ZHenning Blohmhenning.blohm@zfabrik.de
<ul><li><strong>Target version</strong> set to <i>2.2</i></li></ul> z2-Environment - Bug #1453: Unable to process recursive tag fileshttps://redmine.z2-environment.net/issues/1453?journal_id=14292013-08-09T13:16:01ZUdo Offermannudo.offermann@zfabrik.de
<ul><li><strong>Status</strong> changed from <i>Rejected</i> to <i>In Progress</i></li></ul><p>still reproducible on Mac OS on a Z2 clean room installation</p> z2-Environment - Bug #1453: Unable to process recursive tag fileshttps://redmine.z2-environment.net/issues/1453?journal_id=14302013-08-09T14:52:22ZUdo Offermannudo.offermann@zfabrik.de
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li></ul><p>The bug occurs only on Udo's system but not on Henning's system.<br />The difference between Henning's and Udo's system is that Henning is using JDK 1.7 while Udo is using 1.6.</p>
<p>In <code>org.apache.jasper.EmbeddedServletOptions</code> the <em>keepgenerated</em> parameter is set as:</p>
<pre><code class="java syntaxhl"> <span class="o">...</span>
<span class="n">keepGenerated</span> <span class="o">=</span> <span class="n">getBoolean</span><span class="o">(</span><span class="n">config</span><span class="o">,</span> <span class="o">!</span> <span class="n">isJDK6</span><span class="o">(),</span> <span class="s">"keepgenerated"</span><span class="o">);</span>
<span class="o">...</span>
<span class="kd">private</span> <span class="kt">boolean</span> <span class="nf">isJDK6</span><span class="o">()</span> <span class="o">{</span>
<span class="k">return</span> <span class="s">"1.6"</span><span class="o">.</span><span class="na">equals</span><span class="o">(</span><span class="nc">System</span><span class="o">.</span><span class="na">getProperty</span><span class="o">(</span><span class="s">"java.specification.version"</span><span class="o">));</span>
<span class="o">}</span>
</code></pre>
<p>Thus the default for <em>keepgenerated</em> is true in JDK 1.7.</p>
<p>Setting <em>keepgenerated</em> to <em>true</em> inside <code>default-web.xml</code> seems to solve the problem.</p>
<p>Nevertheless it is unclear why the bug does not occur on a plain jetty installation with JDK 1.6.</p> z2-Environment - Bug #1453: Unable to process recursive tag fileshttps://redmine.z2-environment.net/issues/1453?journal_id=14312013-08-09T16:35:28ZUdo Offermannudo.offermann@zfabrik.de
<ul></ul><p>Found the reason why plain Jetty does not have the problem!</p>
<p>Jetty 8 uses <code>JSR199JavaCompiler</code> by default. z2 favors the Eclipse Java compiler because <code>JSR199JavaCompiler</code> requires a JDK while z2 only needs a JRE (see also <a href="http://jira.codehaus.org/browse/JETTY-1126?focusedCommentId=239956&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-239956" class="external">Jetty #1126</a>)</p>
<p>z2/jetty can be configured to use <code>JSR199JavaCompiler</code>. Just comment the following section inside <code>environemnt/webServer/jetty.xml</code>:</p>
<pre><code class="xml syntaxhl"> ...
<span class="c"><!-- let jetty use the ECJ rather than looking for a JDK
See also http://wiki.eclipse.org/Jetty/Howto/Configure_JSP
<Call class="java.lang.System" name="setProperty">
<Arg>org.apache.jasper.compiler.disablejsr199</Arg>
<Arg>false</Arg>
</Call>
--></span>
</code></pre>
<p>Make sure that you have a JDK installed.</p>