P2 update of Taxonomic Editor bundled with JRE does not work
Trying to update the JRE bundled fails with no updates found.
Related tickets: #4452, #5061
When finished update wiki description on https://dev.e-taxonomy.eu/redmine/projects/edit/wiki/TaxonomicEditorDevelopersGuide#Custom-JRE-Packaging
#1 Updated by Cherian Mathew over 4 years ago
The initial problem was due to the fact that the jre product was not uploaded to the update site. But after adding the upload to the JRE Intgeration job, we get a new error.
This time the error is due to the fact that the editor update mechanism tries to replace the jvm's rt.jar which fails since the jvm is currently active.
The solution to this problem is to make sure the editor does not try to update the jre and only updates the editor plugins.
#2 Updated by Cherian Mathew over 4 years ago
A possible solution could be a new feature plugin in the editor (let's say eu.etaxonomy.taxeditor.feature.jre) and include the jre in this plugin.
The steps to do this would be to
create a new plugin named eu.etaxonomy.taxeditor.feature.jre and set the version to the jre version which does not change until the next change in jre version. make sure to not append 'qualifier' to the version else tycho will create a timestamp.
move the 'build.properties.with.jre' file in the eu.etaxonomy.taxeditor.feature plugin to the new one
include the new feature in the eu.etaxonomy.taxeditor.feature plugin
update the 'server-scripts/workspace/jenkins-ci/taxeditor/setup-jre-bundle.sh' to change eu.etaxonomy.taxeditor.feature -> eu.etaxonomy.taxeditor.feature.jre
#11 Updated by Patrick Plitzner almost 3 years ago
- Target version changed from Reviewed Next Major Release to Release 4.12
On windows the update fails with the following exception:
!ENTRY org.eclipse.equinox.p2.engine 4 4 2017-09-09 10:46:38.785 !MESSAGE An error occurred while uninstalling !SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2017-09-09 10:46:38.785 !MESSAGE session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]eu.etaxonomy.taxeditor.feature_root.win32.win32.x86_64 184.108.40.206709062251 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). !SUBENTRY 1 org.eclipse.equinox.p2.touchpoint.natives 4 0 2017-09-09 10:46:38.785 !MESSAGE Backup of file C:\Users\a.mueller\opt\editor\nightly\4.10_nightly\EDIT Taxonomic Editor\jre\lib\jsse.jar failed. !STACK 0 java.io.IOException: File that was copied to backup could not be deleted: C:\Users\a.mueller\opt\editor\nightly\4.10_nightly\EDIT Taxonomic Editor\jre\lib\jsse.jar at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.moveToBackup(BackupStore.java:282) at org.eclipse.equinox.internal.p2.touchpoint.natives.BackupStore.backup(BackupStore.java:248) at org.eclipse.equinox.internal.p2.touchpoint.natives.LazyBackupStore.backup(LazyBackupStore.java:36) at org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction.cleanupzip(CleanupzipAction.java:85) at org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction.execute(CleanupzipAction.java:30) at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:38) at org.eclipse.equinox.internal.p2.engine.Phase.mainPerform(Phase.java:183) at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:95) at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47) at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75) at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44) at org.eclipse.equinox.p2.operations.ProvisioningSession.performProvisioningPlan(ProvisioningSession.java:175) at org.eclipse.equinox.p2.operations.ProfileModificationJob.runModal(ProfileModificationJob.java:79) at org.eclipse.equinox.p2.operations.ProvisioningJob.run(ProvisioningJob.java:177) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)