Pack failed duplicate entry -create WAR
I'm trying to create a Nuxeo Static WAR, i'm following this link, but i'm getting this error : java.util.zip.ZipException: duplicate entry: webapps/nuxeo/WEB-INF/lib/nuxeo-core-storage-sql-extensions-7.3.jar , any suggestion how to get rid of this error ?
Here are the error that i get when launching cmd : “nuxeoctl pack /tmp/nuxeo-war.zip”, and the configuration that i get when executing “nuxeoctl showconf”
So, you're using Nuxeo 7.3, right?
Could you provide a few more details about your environment and some outputs, including the output of
Are there some informations in the log files?
I could not reproduce the error, do you have reproduction steps?
I could reproduce the issue and will create the related JIRA ticket.
java.util.zip.ZipException: duplicate entry: webapps/nuxeo/WEB-INF/lib/nuxeo-core-storage-sql-extensions-7.3.jar at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:233) at org.nuxeo.runtime.deployment.preprocessor.PackWar.zipFile(PackWar.java:272) at org.nuxeo.runtime.deployment.preprocessor.PackWar.zipTree(PackWar.java:311) at org.nuxeo.runtime.deployment.preprocessor.PackWar.executePackaging(PackWar.java:211) at org.nuxeo.runtime.deployment.preprocessor.PackWar.execute(PackWar.java:162) at org.nuxeo.runtime.deployment.preprocessor.PackWar.main(PackWar.java:526)
You can workaround the issue by removing
./nxserver/bundles/nuxeo-core-storage-sql-extensions-7.3.jar. The file is already in
./nxserver/lib and is not a “Nuxeo bundle” but a simple Nuxeo library.
I'm not sure to understand:
- did the
./bin/nuxeoctl pack ...command succeed, generating a WAR?
- do you have an issue with using that WAR? It must then be deployed in a Tomcat as explained in ADMINDOC/How+to+Create+a+Nuxeo+Static+WAR
- it is not clear to me if you're under Linux or Windows…