-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 8.10
-
Component/s: nuxeoctl start/stop/admin
-
Sprint:nxProduct-W6, nxProduct-W8, nxProduct-W10, nxProduct-W12
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