[jboss-cvs] JBossAS SVN: r110585 - branches/JBPAPP_5_1/server/src/main/org/jboss/web/deployers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 10 10:39:47 EST 2011


Author: remy.maucherat at jboss.com
Date: 2011-02-10 10:39:47 -0500 (Thu, 10 Feb 2011)
New Revision: 110585

Modified:
   branches/JBPAPP_5_1/server/src/main/org/jboss/web/deployers/WebModule.java
Log:
JBPAPP-4912: Add an ISE when trying to restart a web module (they need a redeploy).

Modified: branches/JBPAPP_5_1/server/src/main/org/jboss/web/deployers/WebModule.java
===================================================================
--- branches/JBPAPP_5_1/server/src/main/org/jboss/web/deployers/WebModule.java	2011-02-10 14:34:51 UTC (rev 110584)
+++ branches/JBPAPP_5_1/server/src/main/org/jboss/web/deployers/WebModule.java	2011-02-10 15:39:47 UTC (rev 110585)
@@ -113,6 +113,10 @@
     */
    public synchronized void startModule() throws Exception
    {
+      if (this.unit == null || this.container == null || this.deployment == null)
+      {
+         throw new IllegalStateException("WebModules cannot be restarted, and must be redeployed");
+      }
       // Get the war URL
       JBossWebMetaData metaData = unit.getAttachment(JBossWebMetaData.class);
       WebApplication webApp = deployment.start(unit, metaData);



More information about the jboss-cvs-commits mailing list