You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Rakesh Midha (JIRA)" <ji...@apache.org> on 2006/11/20 11:17:03 UTC

[jira] Created: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
-------------------------------------------------------------------------------------------------------------

                 Key: GERONIMO-2584
                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Hot Deploy Dir
    Affects Versions: 1.2
         Environment: Windows XP, but should be valid for all platforms
            Reporter: Rakesh Midha
             Fix For: 1.2



This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.

The exception trace is :
00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
java.lang.IllegalArgumentException: Invalid id: sampleHello
        at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
9)
        at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
Time(DirectoryHotDeployer.java:216)
        at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
oryMonitor.java:233)
        at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
tor.java:206)
        at java.lang.Thread.run(Thread.java:534)
00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
ding on whether you have things like resource references that need to be resolve
d.  You can also give the deployer a separate deployment plan file on the comman
d line.
00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
163964291070/war
java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
ner.java:339)
        at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
3.invoke(<generated>)

        ... 31 more
00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
unique
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:749)

Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
n default/sampleHello/1163964291070/war failed to start due to the following rea
sons:
  The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
163964291070/war did not start because the doStart method threw an exception.
java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
unique
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:749)


Steps to recreate:
1. Start server
2. Deploy sample application, by placing sampleApp folder in deploy directory
3. Application will be deployed and runs fine.
4. Restart server, or restart hot-deploy module
5. The above mentioned exception is thrown.


-- 
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

        

[jira] Commented: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Posted by "Rakesh Midha (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2584?page=comments#action_12451564 ] 
            
Rakesh Midha commented on GERONIMO-2584:
----------------------------------------


Every time restart server is called this error occurs because the configId used to create Artifact is wrong (when configId not provided via deployment descriptor).

To resolve this problem changed calculateModuleId() to use newly added method getModuleId() from DirectoryHotDeployer. This newly added method returns configId of deployed application.

This patch adds getModuleId in DirectoryHotDeployer, and change calculateModuleId to use it, also defination of getModuleId is added in listener interface.

> Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2584
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 1.2
>         Environment: Windows XP, but should be valid for all platforms
>            Reporter: Rakesh Midha
>         Assigned To: Rakesh Midha
>             Fix For: 1.2
>
>
> This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
> The exception trace is :
> 00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
> ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
> java.lang.IllegalArgumentException: Invalid id: sampleHello
>         at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
> 9)
>         at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
> Time(DirectoryHotDeployer.java:216)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
> oryMonitor.java:233)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
> tor.java:206)
>         at java.lang.Thread.run(Thread.java:534)
> 00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
> 00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
> B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
> ding on whether you have things like resource references that need to be resolve
> d.  You can also give the deployer a separate deployment plan file on the comman
> d line.
> 00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
> 964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
> ner.java:339)
>         at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
> 3.invoke(<generated>)
>         ... 31 more
> 00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
> ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
> n default/sampleHello/1163964291070/war failed to start due to the following rea
> sons:
>   The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war did not start because the doStart method threw an exception.
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Steps to recreate:
> 1. Start server
> 2. Deploy sample application, by placing sampleApp folder in deploy directory
> 3. Application will be deployed and runs fine.
> 4. Restart server, or restart hot-deploy module
> 5. The above mentioned exception is thrown.

-- 
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

        

[jira] Closed: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2584?page=all ]

Vamsavardhana Reddy closed GERONIMO-2584.
-----------------------------------------

    Fix Version/s: 1.1.2
                   2.0-M1
                       (was: 2.0)
       Resolution: Fixed

Verified the patch on branches\1.1, branches\1.2 and trunk.

Fixed in rev 483678.

> Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2584
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 1.2
>         Environment: Windows XP, but should be valid for all platforms
>            Reporter: Rakesh Midha
>         Assigned To: Vamsavardhana Reddy
>             Fix For: 1.1.2, 1.2, 2.0-M1
>
>         Attachments: hotdepoystartup.patch
>
>
> This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
> The exception trace is :
> 00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
> ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
> java.lang.IllegalArgumentException: Invalid id: sampleHello
>         at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
> 9)
>         at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
> Time(DirectoryHotDeployer.java:216)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
> oryMonitor.java:233)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
> tor.java:206)
>         at java.lang.Thread.run(Thread.java:534)
> 00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
> 00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
> B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
> ding on whether you have things like resource references that need to be resolve
> d.  You can also give the deployer a separate deployment plan file on the comman
> d line.
> 00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
> 964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
> ner.java:339)
>         at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
> 3.invoke(<generated>)
>         ... 31 more
> 00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
> ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
> n default/sampleHello/1163964291070/war failed to start due to the following rea
> sons:
>   The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war did not start because the doStart method threw an exception.
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Steps to recreate:
> 1. Start server
> 2. Deploy sample application, by placing sampleApp folder in deploy directory
> 3. Application will be deployed and runs fine.
> 4. Restart server, or restart hot-deploy module
> 5. The above mentioned exception is thrown.

-- 
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

        

[jira] Assigned: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2584?page=all ]

Vamsavardhana Reddy reassigned GERONIMO-2584:
---------------------------------------------

    Assignee: Vamsavardhana Reddy

> Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2584
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 1.2
>         Environment: Windows XP, but should be valid for all platforms
>            Reporter: Rakesh Midha
>         Assigned To: Vamsavardhana Reddy
>             Fix For: 1.2, 2.0
>
>         Attachments: hotdepoystartup.patch
>
>
> This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
> The exception trace is :
> 00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
> ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
> java.lang.IllegalArgumentException: Invalid id: sampleHello
>         at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
> 9)
>         at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
> Time(DirectoryHotDeployer.java:216)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
> oryMonitor.java:233)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
> tor.java:206)
>         at java.lang.Thread.run(Thread.java:534)
> 00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
> 00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
> B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
> ding on whether you have things like resource references that need to be resolve
> d.  You can also give the deployer a separate deployment plan file on the comman
> d line.
> 00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
> 964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
> ner.java:339)
>         at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
> 3.invoke(<generated>)
>         ... 31 more
> 00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
> ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
> n default/sampleHello/1163964291070/war failed to start due to the following rea
> sons:
>   The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war did not start because the doStart method threw an exception.
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Steps to recreate:
> 1. Start server
> 2. Deploy sample application, by placing sampleApp folder in deploy directory
> 3. Application will be deployed and runs fine.
> 4. Restart server, or restart hot-deploy module
> 5. The above mentioned exception is thrown.

-- 
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

        

[jira] Commented: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2584?page=comments#action_12456145 ] 
            
Vamsavardhana Reddy commented on GERONIMO-2584:
-----------------------------------------------

I have tried the patch on branches\1.1 (not 1.2) in combination with the fix for GERONIMO-2402.  Verified that the fix works fine and no exceptions are thrown at startup.

> Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2584
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 1.2
>         Environment: Windows XP, but should be valid for all platforms
>            Reporter: Rakesh Midha
>             Fix For: 1.2
>
>         Attachments: hotdepoystartup.patch
>
>
> This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
> The exception trace is :
> 00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
> ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
> java.lang.IllegalArgumentException: Invalid id: sampleHello
>         at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
> 9)
>         at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
> Time(DirectoryHotDeployer.java:216)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
> oryMonitor.java:233)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
> tor.java:206)
>         at java.lang.Thread.run(Thread.java:534)
> 00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
> 00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
> B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
> ding on whether you have things like resource references that need to be resolve
> d.  You can also give the deployer a separate deployment plan file on the comman
> d line.
> 00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
> 964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
> ner.java:339)
>         at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
> 3.invoke(<generated>)
>         ... 31 more
> 00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
> ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
> n default/sampleHello/1163964291070/war failed to start due to the following rea
> sons:
>   The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war did not start because the doStart method threw an exception.
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Steps to recreate:
> 1. Start server
> 2. Deploy sample application, by placing sampleApp folder in deploy directory
> 3. Application will be deployed and runs fine.
> 4. Restart server, or restart hot-deploy module
> 5. The above mentioned exception is thrown.

-- 
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

        

[jira] Assigned: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Posted by "Rakesh Midha (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2584?page=all ]

Rakesh Midha reassigned GERONIMO-2584:
--------------------------------------

    Assignee: Rakesh Midha

> Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2584
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 1.2
>         Environment: Windows XP, but should be valid for all platforms
>            Reporter: Rakesh Midha
>         Assigned To: Rakesh Midha
>             Fix For: 1.2
>
>
> This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
> The exception trace is :
> 00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
> ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
> java.lang.IllegalArgumentException: Invalid id: sampleHello
>         at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
> 9)
>         at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
> Time(DirectoryHotDeployer.java:216)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
> oryMonitor.java:233)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
> tor.java:206)
>         at java.lang.Thread.run(Thread.java:534)
> 00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
> 00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
> B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
> ding on whether you have things like resource references that need to be resolve
> d.  You can also give the deployer a separate deployment plan file on the comman
> d line.
> 00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
> 964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
> ner.java:339)
>         at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
> 3.invoke(<generated>)
>         ... 31 more
> 00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
> ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
> n default/sampleHello/1163964291070/war failed to start due to the following rea
> sons:
>   The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war did not start because the doStart method threw an exception.
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Steps to recreate:
> 1. Start server
> 2. Deploy sample application, by placing sampleApp folder in deploy directory
> 3. Application will be deployed and runs fine.
> 4. Restart server, or restart hot-deploy module
> 5. The above mentioned exception is thrown.

-- 
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

        

[jira] Updated: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Posted by "Rakesh Midha (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2584?page=all ]

Rakesh Midha updated GERONIMO-2584:
-----------------------------------

     Patch Info: [Patch Available]
    Description: 
This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.

The exception trace is :
00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
java.lang.IllegalArgumentException: Invalid id: sampleHello
        at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
9)
        at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
Time(DirectoryHotDeployer.java:216)
        at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
oryMonitor.java:233)
        at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
tor.java:206)
        at java.lang.Thread.run(Thread.java:534)
00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
ding on whether you have things like resource references that need to be resolve
d.  You can also give the deployer a separate deployment plan file on the comman
d line.
00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
163964291070/war
java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
ner.java:339)
        at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
3.invoke(<generated>)

        ... 31 more
00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
unique
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:749)

Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
n default/sampleHello/1163964291070/war failed to start due to the following rea
sons:
  The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
163964291070/war did not start because the doStart method threw an exception.
java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
unique
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:749)


Steps to recreate:
1. Start server
2. Deploy sample application, by placing sampleApp folder in deploy directory
3. Application will be deployed and runs fine.
4. Restart server, or restart hot-deploy module
5. The above mentioned exception is thrown.


  was:

This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.

The exception trace is :
00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
java.lang.IllegalArgumentException: Invalid id: sampleHello
        at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
9)
        at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
Time(DirectoryHotDeployer.java:216)
        at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
oryMonitor.java:233)
        at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
tor.java:206)
        at java.lang.Thread.run(Thread.java:534)
00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
ding on whether you have things like resource references that need to be resolve
d.  You can also give the deployer a separate deployment plan file on the comman
d line.
00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
163964291070/war
java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
ner.java:339)
        at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
3.invoke(<generated>)

        ... 31 more
00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
unique
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:749)

Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
n default/sampleHello/1163964291070/war failed to start due to the following rea
sons:
  The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
163964291070/war did not start because the doStart method threw an exception.
java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
unique
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:749)


Steps to recreate:
1. Start server
2. Deploy sample application, by placing sampleApp folder in deploy directory
3. Application will be deployed and runs fine.
4. Restart server, or restart hot-deploy module
5. The above mentioned exception is thrown.


       Assignee:     (was: Rakesh Midha)


Attached patch, please review and commit.

> Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2584
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 1.2
>         Environment: Windows XP, but should be valid for all platforms
>            Reporter: Rakesh Midha
>             Fix For: 1.2
>
>         Attachments: hotdepoystartup.patch
>
>
> This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
> The exception trace is :
> 00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
> ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
> java.lang.IllegalArgumentException: Invalid id: sampleHello
>         at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
> 9)
>         at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
> Time(DirectoryHotDeployer.java:216)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
> oryMonitor.java:233)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
> tor.java:206)
>         at java.lang.Thread.run(Thread.java:534)
> 00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
> 00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
> B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
> ding on whether you have things like resource references that need to be resolve
> d.  You can also give the deployer a separate deployment plan file on the comman
> d line.
> 00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
> 964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
> ner.java:339)
>         at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
> 3.invoke(<generated>)
>         ... 31 more
> 00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
> ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
> n default/sampleHello/1163964291070/war failed to start due to the following rea
> sons:
>   The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war did not start because the doStart method threw an exception.
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Steps to recreate:
> 1. Start server
> 2. Deploy sample application, by placing sampleApp folder in deploy directory
> 3. Application will be deployed and runs fine.
> 4. Restart server, or restart hot-deploy module
> 5. The above mentioned exception is thrown.

-- 
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

        

[jira] Updated: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Posted by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2584?page=all ]

Vamsavardhana Reddy updated GERONIMO-2584:
------------------------------------------

    Fix Version/s: 2.0

> Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2584
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 1.2
>         Environment: Windows XP, but should be valid for all platforms
>            Reporter: Rakesh Midha
>             Fix For: 1.2, 2.0
>
>         Attachments: hotdepoystartup.patch
>
>
> This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
> The exception trace is :
> 00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
> ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
> java.lang.IllegalArgumentException: Invalid id: sampleHello
>         at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
> 9)
>         at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
> Time(DirectoryHotDeployer.java:216)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
> oryMonitor.java:233)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
> tor.java:206)
>         at java.lang.Thread.run(Thread.java:534)
> 00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
> 00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
> B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
> ding on whether you have things like resource references that need to be resolve
> d.  You can also give the deployer a separate deployment plan file on the comman
> d line.
> 00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
> 964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
> ner.java:339)
>         at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
> 3.invoke(<generated>)
>         ... 31 more
> 00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
> ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
> n default/sampleHello/1163964291070/war failed to start due to the following rea
> sons:
>   The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war did not start because the doStart method threw an exception.
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Steps to recreate:
> 1. Start server
> 2. Deploy sample application, by placing sampleApp folder in deploy directory
> 3. Application will be deployed and runs fine.
> 4. Restart server, or restart hot-deploy module
> 5. The above mentioned exception is thrown.

-- 
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

        

[jira] Updated: (GERONIMO-2584) Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment

Posted by "Rakesh Midha (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2584?page=all ]

Rakesh Midha updated GERONIMO-2584:
-----------------------------------

    Attachment: hotdepoystartup.patch

Solves startup problem in hotdeployer

> Hot deploy module/server restart, throws IllegalArgumentException if application deployed using hotdeployment
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2584
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2584
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Hot Deploy Dir
>    Affects Versions: 1.2
>         Environment: Windows XP, but should be valid for all platforms
>            Reporter: Rakesh Midha
>         Assigned To: Rakesh Midha
>             Fix For: 1.2
>
>         Attachments: hotdepoystartup.patch
>
>
> This is a problem similar to one reported in https://issues.apache.org/jira/browse/GERONIMO-2402, the server restart or hot-deploy module restart fails with followng error if in a previous run you deployed an application using hot deployment.
> The exception trace is :
> 00:54:43,008 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo\geronimobu
> ild\geronimo-tomcat-j2ee-1.2-SNAPSHOT\deploy\sampleHello during initialization
> java.lang.IllegalArgumentException: Invalid id: sampleHello
>         at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:4
> 9)
>         at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeployment
> Time(DirectoryHotDeployer.java:216)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(Direct
> oryMonitor.java:233)
>         at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMoni
> tor.java:206)
>         at java.lang.Thread.run(Thread.java:534)
> 00:54:47,014 INFO  [DirectoryHotDeployer] Deploying sampleHello
> 00:54:51,350 WARN  [TomcatModuleBuilder] Web application . does not contain a WE
> B-INF/geronimo-web.xml deployment plan.  This may or may not be a problem, depen
> ding on whether you have things like resource references that need to be resolve
> d.  You can also give the deployer a separate deployment plan file on the comman
> d line.
> 00:54:51,841 ERROR [GBeanInstance] Problem in doFail of default/sampleHello/1163
> 964291070/war?J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.geronimo.tomcat.TomcatContainer.removeContext(TomcatContai
> ner.java:339)
>         at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b07
> 3.invoke(<generated>)
>         ... 31 more
> 00:54:51,841 ERROR [GBeanInstanceState] Error while starting; GBean is now in th
> e FAILED state: abstractName="default/sampleHello/1163964291070/war?J2EEApplicat
> ion=null,j2eeType=WebModule,name=default/sampleHello/1163964291070/war"
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuratio
> n default/sampleHello/1163964291070/war failed to start due to the following rea
> sons:
>   The service J2EEApplication=null,j2eeType=WebModule,name=default/sampleHello/1
> 163964291070/war did not start because the doStart method threw an exception.
> java.lang.IllegalArgumentException: addChild:  Child name '/sampleHello' is not
> unique
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:749)
> Steps to recreate:
> 1. Start server
> 2. Deploy sample application, by placing sampleApp folder in deploy directory
> 3. Application will be deployed and runs fine.
> 4. Restart server, or restart hot-deploy module
> 5. The above mentioned exception is thrown.

-- 
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