[jboss-cvs] JBossAS SVN: r107684 - trunk/server/src/main/java/org/jboss/web/deployers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Aug 19 11:08:46 EDT 2010
Author: remy.maucherat at jboss.com
Date: 2010-08-19 11:08:45 -0400 (Thu, 19 Aug 2010)
New Revision: 107684
Modified:
trunk/server/src/main/java/org/jboss/web/deployers/WebModule.java
Log:
- JBAS-3314: Restarting a WebModule is still not supported, but avoid the NPE and put out a message explaining that it must be redeployed.
Modified: trunk/server/src/main/java/org/jboss/web/deployers/WebModule.java
===================================================================
--- trunk/server/src/main/java/org/jboss/web/deployers/WebModule.java 2010-08-19 14:22:35 UTC (rev 107683)
+++ trunk/server/src/main/java/org/jboss/web/deployers/WebModule.java 2010-08-19 15:08:45 UTC (rev 107684)
@@ -111,6 +111,8 @@
*/
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