Hi, i've been experimenting with the "static" deployment of WAR (I need this because I want my WAR to be delpoyed in a well-known directory not a temporary one). People suggested to deploy such WARs as a subdirectory in an unzipped form (with a .WAR extension in their names). Okay, it works like charm. So I can deploy such a WAR-directory without errors, and they function correctly.
Now I have problems with redeploying (which is only needed when a class changes, because with JSPs and other such resources it's enough to overwrite the old file with the new in the WAR-directory). To be easy to follow I separate the redeployment process into UNDEPLOY and (Re)DEPLOY. Undeploy: When I delete the WAR-directory I get the following exception: [INFO,AutoDeployer] Auto undeploy of file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [ERROR,AutoDeployer] Undeployment failed org.jboss.deployment.J2eeDeploymentException: The application " Default" has not been deployed. at org.jboss.deployment.J2eeDeployer.undeploy(J2eeDeployer.java:279) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.deployment.AutoDeployer.undeploy(AutoDeployer.java:415) at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:196) at java.lang.Thread.run(Unknown Source) (re)Deploy: After this, it is but natural that I cannot deploy my WAR-directory: [INFO,AutoDeployer] Auto deploy of file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [INFO,J2eeDeployer] Deploy J2EE application: file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [INFO,J2eeDeployer] inflate and install WEB module istore.war/ [INFO,ContainerFactory] Undeploying:file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [INFO,ContainerFactory] Undeployed application: file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [INFO,ContainerFactory] Deploying:file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [INFO,ContainerFactory] Deployed application: file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [INFO,J2eeDeployer] Starting module istore.war/ [INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/istore, warUrl=file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.w ar/ [ERROR,Default] java.lang.IllegalArgumentException: addChild: Child name '/istore' is not unique [ERROR,Default] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) [...] [ERROR,J2eeDeployer] Starting istore.war/ failed! [ERROR,Default] org.jboss.deployment.DeploymentException: Error during deploy, Cause: java.lang.IllegalArgumentException : addChild: Child name '/istore' is not unique [ERROR,Default] at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:201) [...] [INFO,J2eeDeployer] Stopping module istore.war/ [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: Removing web application at context path /istore [INFO,J2eeDeployer] Stopping module istore.war/ [INFO,ContainerFactory] Undeploying:file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [INFO,ContainerFactory] Undeployed application: file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ [ERROR,AutoDeployer] DeploymentInfo failed:file:/F:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/istore.war/ org.jboss.deployment.J2eeDeploymentException: Error while starting istore.war/: Error during deploy, Cause: org.jboss.de ployment.DeploymentException: Error during deploy, Cause: java.lang.IllegalArgumentException: addChild: Child name '/is tore' is not unique at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:518) at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459) at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395) at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233) at java.lang.Thread.run(Unknown Source) And, just as you might await, the web tier is inaccessible, since it is not deployed. But now comes a little surprise: at this very stage I undeployed again which threw the same exception, but then I was able to deploy without errors and the webtier worked well. This whole thing seems a bit obscure for me now. Hope someone knows the answer :) Thanks, János PS: I even renamed my EAR to istoreejb.ear in fear of a possible naming conflict, but it didn't help. -- Jarecsni, János MORGAN HILL CONSULTING, Internet Applications Unit mailto:[EMAIL PROTECTED] http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user