Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21659

Fix the static WAR distribution generation (nuxeoctl pack)

    XMLWordPrintable

    Details

      Description

      For now, trying to pack a Nuxeo as a standalone war file is broken, an NPE is thrown:

      Exception in thread "main" java.lang.NullPointerException
      	at org.nuxeo.runtime.deployment.preprocessor.PackWar.zipTree(PackWar.java:296)
      	at org.nuxeo.runtime.deployment.preprocessor.PackWar.executePackaging(PackWar.java:220)
      	at org.nuxeo.runtime.deployment.preprocessor.PackWar.execute(PackWar.java:167)
      	at org.nuxeo.runtime.deployment.preprocessor.PackWar.main(PackWar.java:531)
      

      Here is the steps that have to be done manually to fix the war file:

      • comment JAVA_OPTS=$JAVA_OPTS -Xloggc:"${nuxeo.log.dir}/gc.log" -... as {{ ${nuxeo.log.dir} }} tried to be parsed by bash/zsh
      • create an empty endorsed folder at the root of the Nuxeo server
      • after unzipping the archive to your Tomcat, you need to copy:
        commons-lang3-3.3.2.jar to webapps/nuxeo/WEB-INF/lib/ or /lib
        xml-apis-1.4.01.jar to lib/
      • move endorsed/xercesImpl-2.11.0.jar to lib

      commons-lang3-3.3.2.jar and xml-apis-1.4.01.jar can be found in the lib folder of a defaut Nuxeo

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.