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 ?

Update

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”

FILES:   showconf   error.txt
0 votes

1 answers

2401 views

ANSWER

Hi,

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 nuxeoctl showconf?
Are there some informations in the log files?

I could not reproduce the error, do you have reproduction steps?

07/16/2015

Julien Carsique Hi, can you see my update
07/16/2015

Thanks,

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)
07/16/2015

Ok thank you
07/16/2015



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.

0 votes



Thank you, after removing "nuxeo-core-storage-sql-extensions-7.3.jar" the error gone , but still can not run the war generated, i'm getting AVERTISSEMENT: Bootstrap: command "/tmp/nuxeo-war.zip" does not exist. Any idea about this issue ?
07/16/2015

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…
07/16/2015