Title: Jython 2.7-b3 installer duplicate entry: META-INF/BCKEY.DSA
Type: crash Severity: critical
Components: Installer Versions: Jython 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: zyasoft Nosy List: otmarhumbel, spider, zyasoft
Priority: urgent Keywords:

Created on 2014-08-27.08:18:51 by spider, last changed 2014-10-15.15:08:06 by zyasoft.

msg8939 (view) Author: Matthew Webber (spider) Date: 2014-08-27.08:18:50
I downloaded jython-installer-2.7-b3.jar and attempted to install. I specified the "standalone" option.

Unfortunately, the install fails as follows:
$ Exception in thread "Thread-6" org.python.util.install.InstallerException: Error accessing jar file
	at org.python.util.install.JarInstaller.inflate(
	at org.python.util.install.ProgressPage.activate(
	at org.python.util.install.AbstractWizardPage.doActivate(
	at org.python.util.install.AbstractWizard.showActivePage(
	at org.python.util.install.AbstractWizard.gotoNextPage(
	at org.python.util.install.AbstractWizardValidator.fireValidationSucceeded(
	at org.python.util.install.AbstractWizardValidator.access$100(
	at org.python.util.install.AbstractWizardValidator$
Caused by: duplicate entry: META-INF/BCKEY.DSA
	at java.util.jar.JarOutputStream.putNextEntry(
	at org.python.util.install.StandalonePackager.addJarFile(
	at org.python.util.install.JarInstaller.inflate(
	... 8 more

If I did the same thing using 2.7-b2, no problems were encountered.
msg8940 (view) Author: Jim Baker (zyasoft) Date: 2014-08-27.15:38:47
duplicate entry: META-INF/BCKEY.DSA means we are trying to write this file twice. Hopefully an easy fix in the installation wizard.
msg9030 (view) Author: Jim Baker (zyasoft) Date: 2014-09-24.18:32:34
Necessary fix for beta 4
msg9057 (view) Author: Jim Baker (zyasoft) Date: 2014-09-30.16:25:37
Easiest approach for now might be to repackage the jars in extlibs/ with these duplicate entries, then revisit later.
msg9155 (view) Author: Jim Baker (zyasoft) Date: 2014-10-15.14:59:40
Let's see if we can remove the duplicates as part of build.xml. Maybe jar jar links has support?
msg9156 (view) Author: Jim Baker (zyasoft) Date: 2014-10-15.15:08:06
Some quick googling suggests we can do this with Jar Jar Links:

Shrinking jars as described here with Jar Jar Links' dependency analysis could be very useful - we only use a tiny part of bouncycastle and icu4j for example.
Date User Action Args
2014-10-15 15:08:06zyasoftsetmessages: + msg9156
2014-10-15 14:59:41zyasoftsetmessages: + msg9155
2014-10-15 14:46:10zyasoftsetpriority: high -> urgent
assignee: otmarhumbel -> zyasoft
2014-09-30 16:25:37zyasoftsetmessages: + msg9057
2014-09-24 18:32:34zyasoftsetpriority: high
messages: + msg9030
2014-08-28 04:46:09otmarhumbelsetassignee: otmarhumbel
nosy: + otmarhumbel
2014-08-27 15:38:47zyasoftsetnosy: + zyasoft
messages: + msg8940
2014-08-27 08:18:51spidercreate