You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2006/10/03 16:42:09 UTC

svn commit: r452516 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java

Author: sppatel
Date: Tue Oct  3 07:42:08 2006
New Revision: 452516

URL: http://svn.apache.org/viewvc?view=rev&rev=452516
Log:
fix start of app when model cannot load configID from plan

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java?view=diff&rev=452516&r1=452515&r2=452516
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java Tue Oct  3 07:42:08 2006
@@ -410,7 +410,7 @@
 			ModuleArtifactMapper mapper = ModuleArtifactMapper.getInstance();
 			mapper.addEntry(getServer(), module.getProject(), ids[0].getModuleID());
 
-			status = start(module);
+			status = start(ids);
 			if (!status.isOK()) {
 				doFail(status, Messages.START_FAIL);
 			}
@@ -503,6 +503,11 @@
 	protected IStatus start(IModule module) throws Exception {
 		TargetModuleID id = DeploymentUtils.getTargetModuleID(module, DeploymentCommandFactory.getDeploymentManager(getServer()));
 		IDeploymentCommand cmd = DeploymentCommandFactory.createStartCommand(new TargetModuleID[] { id }, module, getServer());
+		return cmd.execute(_monitor);
+	}
+	
+	protected IStatus start(TargetModuleID[] ids) throws Exception {
+		IDeploymentCommand cmd = DeploymentCommandFactory.createStartCommand(ids, null, getServer());
 		return cmd.execute(_monitor);
 	}