[ http://issues.apache.org/jira/browse/GERONIMO-2572?page=all ]

Rakesh Midha updated GERONIMO-2572:
-----------------------------------

    Patch Info: [Patch Available]
      Assignee:     (was: Rakesh Midha)


Step 2 described in problem description is main cause of the problem. providing 
the consoledeploy.patch which fix this problem. This is what the patch does :
If the application you are trying deploy with web console already exists, and 
you did not select the redeploy checkbox, it will give you a message "The 
application with same moduleId already exists, redeploying <appname>" and 
redeploy's the application.

Similar issue for deploy command exists 
http://issues.apache.org/jira/browse/GERONIMO-1907, and Iseprate patch for that 
will be provided, to make the feature consistent.


> Redeployment fails if using Web Console, exception: GBean already registered
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMO-2572
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2572
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 1.2
>         Environment: Windows XP, should be valid for all platforms
>            Reporter: Rakesh Midha
>         Attachments: consoledeploy.patch
>
>
> When using web console, redeployment for an applications fails everytime with 
> message:
> Deployment failed:
> restart of default/sampleHello/1163675367263/war failed 
> and exception trace:
> org.apache.geronimo.kernel.config.LifecycleException: restart of 
> default/sampleH
> ello/1163674841717/war failed
> Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException: GBean 
> already
>  registered: geronimo.config:name="default/sampleHello/1163674841717/war"
> This is caused by earlier deployment mistake. Steps to recreate the problem:
> 1. Deploy any web application
> 2. Make changes in web application, and try to deploy it again but don't 
> forget to select redeploy option.
>   It will fail with NullPointerException in Trace, exception trace
> Problem in doFail of default/sampleHello/1163
> 675272276/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163675272276/war 
> java.lang.RuntimeException: java.lang.NullPointerException
> 3. Now try to redeploy this application with redeploy option selected, it 
> will never work.
> Only option left is undeploy and deploy the application.
> Thanks
> Rakesh

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to