Petals ESB Container

Unable to uninstall a component using Ant task after a failed installation

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.1.1
  • Fix Version/s: 3.1.2, 4.0.0
  • Component/s: Ant tasks
  • Security Level: Public
  • Description:
    Hide

    After to have used the Ant task 'jbi-install-component' to install a component with a configuration set as nested element, and containing an invalid parameter name, the installation fails because of the bad parameter name. That is OK.

    But I'm not able to reuse a Ant task to fix my error:

    • I'm not able to uninstall the component because I get the error: "The component 'petals-bc-soap' can not be uninstalled as it is not installed!". That is true.
    • I'm not able to install the component because I get the error: "Other installation package already exists loaded in the component framework: petals-bc-soap"
    Show
    After to have used the Ant task 'jbi-install-component' to install a component with a configuration set as nested element, and containing an invalid parameter name, the installation fails because of the bad parameter name. That is OK. But I'm not able to reuse a Ant task to fix my error:
    • I'm not able to uninstall the component because I get the error: "The component 'petals-bc-soap' can not be uninstalled as it is not installed!". That is true.
    • I'm not able to install the component because I get the error: "Other installation package already exists loaded in the component framework: petals-bc-soap"
  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Tue, 31 May 2011 - 08:49:05 +0200

The source of the problem is the installer that was loaded by the installation task that failed. And the uninstallation task only checks if the component is installed. If the component is not installed but the installer loaded, the uninstallation does nothing.

In my mind and because of symmetry in relation to the installation, the uninstallation task should manages the use case where the component is not installed and the installer loaded, to unload the installer.

Show
Christophe DENEUX added a comment - Tue, 31 May 2011 - 08:49:05 +0200 The source of the problem is the installer that was loaded by the installation task that failed. And the uninstallation task only checks if the component is installed. If the component is not installed but the installer loaded, the uninstallation does nothing. In my mind and because of symmetry in relation to the installation, the uninstallation task should manages the use case where the component is not installed and the installer loaded, to unload the installer.
Hide
Christophe DENEUX added a comment - Tue, 31 May 2011 - 09:02:44 +0200

Note: The Ant task 'jbi-uninstall-component' contains source code to configure the component. Please remove this source code that should remain of a copy/paste from the Ant task 'jbi-install-component'

Show
Christophe DENEUX added a comment - Tue, 31 May 2011 - 09:02:44 +0200 Note: The Ant task 'jbi-uninstall-component' contains source code to configure the component. Please remove this source code that should remain of a copy/paste from the Ant task 'jbi-install-component'
Christophe DENEUX made changes - Wed, 1 Jun 2011 - 14:55:41 +0200
Field Original Value New Value
Priority Major [ 3 ]
Status New [ 10000 ] Open [ 10002 ]
Assignee Roland Naudin [ rnaudin ] Christophe DENEUX [ cdeneux ]
Christophe DENEUX made changes - Wed, 1 Jun 2011 - 14:56:00 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 14:58:54 +0200

Fix in branch petals-entreprise-3.1.x.
A check has been added before to install the component. If the component is not install, unloadInstaller is invoked.

Show
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 14:58:54 +0200 Fix in branch petals-entreprise-3.1.x. A check has been added before to install the component. If the component is not install, unloadInstaller is invoked.
Christophe DENEUX made changes - Wed, 1 Jun 2011 - 14:58:54 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 3.1.2 [ 10156 ]
Resolution Fixed [ 1 ]
Hide
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 14:59:07 +0200

To merge in trunk

Show
Christophe DENEUX added a comment - Wed, 1 Jun 2011 - 14:59:07 +0200 To merge in trunk
Christophe DENEUX made changes - Wed, 1 Jun 2011 - 14:59:07 +0200
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Fri, 10 Jun 2011 - 16:22:42 +0200
Component/s Ant tasks [ 10202 ]
Component/s Installation/Deployment [ 10041 ]
Mathieu Carrolle made changes - Mon, 12 Sep 2011 - 15:31:54 +0200
Assignee Christophe DENEUX [ cdeneux ] Mathieu Carrolle [ mcarrolle ]
Mathieu Carrolle made changes - Mon, 12 Sep 2011 - 15:33:49 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Mathieu Carrolle made changes - Mon, 12 Sep 2011 - 17:03:40 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 4.0.0 [ 10108 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
1d 6h 10m
1
Christophe DENEUX
Wed, 1 Jun 2011 - 14:55:41 +0200
Open Open In Progress In Progress
19s
1
Christophe DENEUX
Wed, 1 Jun 2011 - 14:56:00 +0200
In Progress In Progress Resolved Resolved
2m 54s
1
Christophe DENEUX
Wed, 1 Jun 2011 - 14:58:54 +0200
Resolved Resolved Open Open
13s
1
Christophe DENEUX
Wed, 1 Jun 2011 - 14:59:07 +0200
Open Open In Progress In Progress
103d 34m
1
Mathieu Carrolle
Mon, 12 Sep 2011 - 15:33:49 +0200
In Progress In Progress Resolved Resolved
1h 29m
1
Mathieu Carrolle
Mon, 12 Sep 2011 - 17:03:40 +0200

People

Dates

  • Created:
    Tue, 31 May 2011 - 08:45:05 +0200
    Updated:
    Mon, 12 Sep 2011 - 17:03:40 +0200
    Resolved:
    Mon, 12 Sep 2011 - 17:03:40 +0200