<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is Tomcat 7 support planned ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324374#M11375</link>
    <description>&lt;P&gt;Nuxeo will be moved to Tomcat 7 when there is customer demand, or if we have some free time...&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt; Tomcat 7 is supported since Nuxeo 5.7.2, see &lt;A href="https://jira.nuxeo.com/browse/NXP-10071"&gt;NXP-10071&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2012 18:09:51 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2012-04-23T18:09:51Z</dc:date>
    <item>
      <title>Is Tomcat 7 support planned ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324373#M11374</link>
      <description>&lt;P&gt;I saw in the forums that there's been some attempts to get Nuxeo running on Tomcat 7 so I was wondering if this is in the roadmap for upcoming versions.
If not, this could be used to gather links and references for what needs to be done to get Nuxeo running on Tomcat.
Websocket support is what i'm looking for, especially with Atmosphere and its JAX-RS integration...&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2012 17:39:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324373#M11374</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2012-04-21T17:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is Tomcat 7 support planned ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324374#M11375</link>
      <description>&lt;P&gt;Nuxeo will be moved to Tomcat 7 when there is customer demand, or if we have some free time...&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt; Tomcat 7 is supported since Nuxeo 5.7.2, see &lt;A href="https://jira.nuxeo.com/browse/NXP-10071"&gt;NXP-10071&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 18:09:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324374#M11375</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-04-23T18:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is Tomcat 7 support planned ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324375#M11376</link>
      <description>&lt;P&gt;Ok, so I finally had some time and managed to get Nuxeo 5.5 running in Tomcat 7 so, for reference, this is what I had to do:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Start with clean Apache Tomcat 7.0.27 and just use meld or some directory diff tool to do the following:&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Add nuxeoctl, nuxeo-lanucher.jar, etc .. to bin&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Add endorsed libs&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Add missing jars to lib&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Add nxserver directory&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Setup the templates (templates/default/conf) diff from nuxeo 5.5:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;server.xml / server.xml.nx&lt;/P&gt;
&lt;P&gt;Remove:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Add :&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /&amp;gt;&lt;/CODE&gt;
&lt;CODE&gt; &amp;lt;Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Changes to nuxeo-launcher.jar (just clone nuxeo-distribution and change):&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;nuxeo-distribution/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoTomcatLauncher.java&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    protected String getClassPath() {
        String cp = ".";
        // This is not needed - cp = addToClassPath(cp, "nxserver" + File.separator + "lib");
        cp = addToClassPath(cp, "bin" + File.separator + "bootstrap.jar");
        cp = addToClassPath(cp, "bin" + File.separator + "tomcat-juli.jar"); // Add tomcat-juli.jar
        return cp;
    }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Changes to nuxeo-runtime-tomcat-adapter.jar (just clone nuxeo-runtime and change):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;nuxeo-runtime/nuxeo-runtime-tomcat-adapter/src/main/java/org/nuxeo/runtime/tomcat/NuxeoLauncher.java&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;protected void handleEvent(NuxeoWebappLoader loader, LifecycleEvent event) {&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        ...
        // Was Lifecycle.START but should probably be Lifecycle.CONFIGURE_START in Tomcat 7 
        // hardcoded just for testing!
        if (type == "configure_start") { 
        ...
        }
}
`
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;After properly changing the Lifecycle event to "configure_start" most of my previous changes are not needed and in fact break the classloading.
I've updated the answer to match the proper changes to make.&lt;/P&gt;
&lt;HR /&gt;</description>
      <pubDate>Mon, 07 May 2012 17:29:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324375#M11376</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2012-05-07T17:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is Tomcat 7 support planned ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324376#M11377</link>
      <description>&lt;P&gt;Sorry if this seems messy.. but I thougth it would be nice to have these notes here.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 17:38:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324376#M11377</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2012-05-07T17:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is Tomcat 7 support planned ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324377#M11378</link>
      <description>&lt;P&gt;Could have been good here as well&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 17:56:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324377#M11378</guid>
      <dc:creator>Roland_Benedett</dc:creator>
      <dc:date>2012-05-07T17:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is Tomcat 7 support planned ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324378#M11379</link>
      <description>&lt;P&gt;Thanks a lot Nelson. We'll take what you did and update the platform for Nuxeo 5.6 to support Tomcat 7 (if time permits). If you want you can open a JIRA issues for the technical discussion yes.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 18:17:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324378#M11379</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-05-07T18:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is Tomcat 7 support planned ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324379#M11380</link>
      <description>&lt;P&gt;Done&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 18:33:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-tomcat-7-support-planned/m-p/324379#M11380</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2012-05-07T18:33:31Z</dc:date>
    </item>
  </channel>
</rss>

