You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Rodger Zhang (JIRA)" <ji...@apache.org> on 2009/06/18 12:03:07 UTC

[jira] Created: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Directory should be removed when a module's deployment fails.
-------------------------------------------------------------

                 Key: GERONIMO-4696
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: deployment
    Affects Versions: 2.2
            Reporter: Rodger Zhang


I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
there is an error:
org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:

There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
If I remove the directory in repository manually, then I can depoly the war successfully.
So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "Rodger Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rodger Zhang updated GERONIMO-4696:
-----------------------------------

    Attachment: geronimo-web.xml
                general_store.war

Deploy a datasource pool named StoreDataSource with the database named generalstore firstly.

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>         Attachments: general_store.war, geronimo-web.xml
>
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "Rodger Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721627#action_12721627 ] 

Rodger Zhang commented on GERONIMO-4696:
----------------------------------------

see the log,
It tried to delete the directory,but it failed to delete the files contained in the directory, because the war contained third-party  jars in /lib.

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>         Attachments: general_store.war, geronimo-web.xml
>
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721161#action_12721161 ] 

viola.lu commented on GERONIMO-4696:
------------------------------------

This is duplicate with https://issues.apache.org/jira/browse/GERONIMO-4420, and fixed , if this problem  still exist, i will reopen 4420.thanks.

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu updated GERONIMO-4696:
-------------------------------

    Assignee: viola.lu

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>            Assignee: viola.lu
>         Attachments: general_store.war, geronimo-web.xml
>
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu closed GERONIMO-4696.
------------------------------

    Resolution: Fixed
      Assignee: viola.lu  (was: Ivan)

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>            Assignee: viola.lu
>         Attachments: general_store.war, geronimo-web.xml
>
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724365#action_12724365 ] 

viola.lu commented on GERONIMO-4696:
------------------------------------

Rodger: in build 2009.06.20-21:08:29.060-0400, this problem doesn't exit, pls verify it.

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>         Attachments: general_store.war, geronimo-web.xml
>
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu reassigned GERONIMO-4696:
----------------------------------

    Assignee: Ivan  (was: viola.lu)

pls help review, thanks.

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>            Assignee: Ivan
>         Attachments: general_store.war, geronimo-web.xml
>
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "Rodger Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721601#action_12721601 ] 

Rodger Zhang commented on GERONIMO-4696:
----------------------------------------

En. I think the problem still exists . I'm attaching the war package and the deployment plan.
The deployment plan's dependency is commented first, so will be deployed with a problem.
Then uncomment the dependency, when deploying it, the problem will emerge.

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723028#action_12723028 ] 

viola.lu commented on GERONIMO-4696:
------------------------------------

this problem exits after verification, i will take a look into it.

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>         Attachments: general_store.war, geronimo-web.xml
>
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4696) Directory should be removed when a module's deployment fails.

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725046#action_12725046 ] 

viola.lu commented on GERONIMO-4696:
------------------------------------

This problem is cozed by an xbean resource finder defect (not close openned jar file), open one jira and submit a patch for xbean: https://issues.apache.org/jira/browse/XBEAN-133 , pls help review, thanks.

Reproduce steps:Deploy a StoreDataSource data source, and then comment  datasource dependency in deployment plan, then deploy war file with wrong plan. Correct deployment plan(comment out datasource dependency in deployment plan), then deploy war file with correct plan, then it will report configuration already exits in console, from geronimo server standard output, EARConfigBuilder send out a warning can't recursive delete jar files under lib.

> Directory should be removed when a module's deployment fails.
> -------------------------------------------------------------
>
>                 Key: GERONIMO-4696
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4696
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 2.2
>            Reporter: Rodger Zhang
>         Attachments: general_store.war, geronimo-web.xml
>
>
> I write a war using datasource. Deploy it with a geronimo-web.xml that does not contain the dependence on the datasource. 
> As anticipated , it fails to be deployed. But when I deploy the war again with the right geronimo-web.xml (dependence has been added), 
> there is an error:
> org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException: Configuration already exists:
> There is no module with the very name in config.xml , but a directory with the very name exists in <geronimo_home>/repository/ .
> If I remove the directory in repository manually, then I can depoly the war successfully.
> So, if a module's deployment fails, the directory created in repository should be removed automatically.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.