<?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 there a JAXB-API installation bug in Nuxeo apt package? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/327000#M14001</link>
    <description>&lt;P&gt;Thanks, we shouldn't include things in &lt;CODE&gt;endorsed&lt;/CODE&gt; anymore as the JDK has a more recent version now. This dates from a while back. I opened [NXP-16270](https&lt;/P&gt;</description>
    <pubDate>Mon, 29 Dec 2014 11:32:29 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2014-12-29T11:32:29Z</dc:date>
    <item>
      <title>Is there a JAXB-API installation bug in Nuxeo apt package?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/326997#M13998</link>
      <description>&lt;P&gt;I notice that the 6.0-01 package installs:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/var/lib/nuxeo/server/nxserver/lib/jaxb-impl-2.0.3.jar
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But after &lt;A href="https://jira.nuxeo.com/browse/NXP-12617"&gt;https://jira.nuxeo.com/browse/NXP-12617&lt;/A&gt;, Jersey 1.17.1 is required by Nuxeo, and this requires JAXB API 2.1+. I believe this is causing an issue with a Marketplace package I have written that depends on &lt;CODE&gt;jersey-json&lt;/CODE&gt; with &lt;CODE&gt;${jersey.version}&lt;/CODE&gt; (Nuxeo's variable).  After the base install, I see these results:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;     /var/lib/nuxeo/server/endorsed/jaxb-api-2.0.jar
     /var/lib/nuxeo/server/nxserver/lib/cxf-rt-databinding-jaxb-2.6.8.jar
     /var/lib/nuxeo/server/nxserver/lib/jaxb-impl-2.0.3.jar
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And after my package is installed, I see this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;     /var/lib/nuxeo/server/endorsed/jaxb-api-2.0.jar
     /var/lib/nuxeo/server/nxserver/lib/cxf-rt-databinding-jaxb-2.6.8.jar
     /var/lib/nuxeo/server/nxserver/lib/jaxb-impl-2.2.3-1.jar
     /var/lib/nuxeo/server/nxserver/lib/jaxb-api-2.2.2.jar
     /var/lib/nuxeo/server/nxserver/lib/jaxb-impl-2.0.3.jar
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This leads to startup failures complaining about the old and new versions of JAXB.&lt;/P&gt;
&lt;P&gt;The only dependencies I declare that has anything to do with this are:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;com.sun.jersey&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;jersey-json&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;${jersey.version}&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;

&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;com.sun.jersey.contribs&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;jersey-multipart&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;${jersey.version}&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Dec 2014 22:06:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/326997#M13998</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-12-26T22:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JAXB-API installation bug in Nuxeo apt package?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/326998#M13999</link>
      <description>&lt;P&gt;After a second review it seems like the 2.0 jar might not be part of the problem&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2014 03:32:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/326998#M13999</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-12-29T03:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JAXB-API installation bug in Nuxeo apt package?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/326999#M14000</link>
      <description>&lt;P&gt;I ended up doing the following adaptation of the Marketplace packaging we use (based on &lt;A href="https://github.com/nuxeo/nuxeo-marketplace-sample/tree/master/marketplace/src/main"&gt;Nuxeo Marketplace packaging&lt;/A&gt; examples on GitHub):&lt;/P&gt;
&lt;P&gt;Add an endorsed section to the &lt;CODE&gt;install.xml&lt;/CODE&gt; template in &lt;STRONG&gt;src/main/resources&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; &amp;lt;install&amp;gt;
  @BUNDLES@
  @LIBS@
  @PROPERTIES@
  @TEMPLATES@
  @ENDORSED@
 &amp;lt;/install&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Add code to the &lt;CODE&gt;assembly.xml&lt;/CODE&gt; file to generate an instruction to copy the &lt;CODE&gt;jaxb-api&lt;/CODE&gt; jar to &lt;CODE&gt;endorsed/&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;var name="install.endorsed" value="" /&amp;gt;
&amp;lt;if&amp;gt;
  &amp;lt;available file="${outdir}/marketplace/install/lib/jaxb-api-2.2.2.jar" /&amp;gt;
  &amp;lt;then&amp;gt;
    &amp;lt;var name="install.endorsed"
         value="${line.separator}
                &amp;amp;lt;copy file=&amp;amp;quot;${package.root}/install/lib/jaxb-api-2.2.2.jar&amp;amp;quot;${line.separator}
                todir=&amp;amp;quot;${env.server.home}/endorsed&amp;amp;quot; overwrite=&amp;amp;quot;true&amp;amp;quot; /&amp;amp;gt;${line.separator}
                &amp;amp;lt;delete file=&amp;amp;quot;${env.server.home}/endorsed/jaxb-api-2.0.jar&amp;amp;quot; /&amp;amp;gt;" /&amp;gt;
  &amp;lt;/then&amp;gt;
&amp;lt;/if&amp;gt;
&amp;lt;copy file="src/main/resources/install.xml"
      todir="${outdir}/marketplace"
      overwrite="true"&amp;gt;
    &amp;lt;filter token="BUNDLES" value="${install.bundles}" /&amp;gt;
    &amp;lt;filter token="LIBS" value="${install.libs}" /&amp;gt;
    &amp;lt;filter token="PROPERTIES" value="${install.properties}" /&amp;gt;
    &amp;lt;filter token="TEMPLATES" value="${install.templates}" /&amp;gt;
    &amp;lt;filter token="ENDORSED" value="${install.endorsed}" /&amp;gt;
&amp;lt;/copy&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This produces the effect of removing &lt;CODE&gt;jaxb-api-2.0.jar&lt;/CODE&gt; and adding &lt;CODE&gt;jaxb-api-2.2.2.jar&lt;/CODE&gt; to the &lt;CODE&gt;endorsed/&lt;/CODE&gt; directory when our custom package is installed. I do not see any obvious problems when I restart Nuxeo and use it on my development machine. However, this seems like a brittle way to address this JAXB API JAR versioning issue.&lt;/P&gt;
&lt;P&gt;Is there any better solution?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2014 04:40:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/326999#M14000</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-12-29T04:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JAXB-API installation bug in Nuxeo apt package?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/327000#M14001</link>
      <description>&lt;P&gt;Thanks, we shouldn't include things in &lt;CODE&gt;endorsed&lt;/CODE&gt; anymore as the JDK has a more recent version now. This dates from a while back. I opened [NXP-16270](https&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2014 11:32:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/327000#M14001</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-12-29T11:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a JAXB-API installation bug in Nuxeo apt package?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/327001#M14002</link>
      <description>&lt;P&gt;Thanks... with that news it seems like handling the workaround (removal of the jaxb-api-2.0.jar) is better done in our server configuration management instead of in the Marketplace package like above.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2014 17:25:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-jaxb-api-installation-bug-in-nuxeo-apt-package/m-p/327001#M14002</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2014-12-29T17:25:30Z</dc:date>
    </item>
  </channel>
</rss>

