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/08/11 15:20:17 UTC

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

Author: sppatel
Date: Fri Aug 11 06:20:17 2006
New Revision: 430787

URL: http://svn.apache.org/viewvc?rev=430787&view=rev
Log:
GERONIMODEVTOOLS-71 fix publish failure with javax.naming.NoInitialContextException

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

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoConnectionFactory.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoConnectionFactory.java?rev=430787&r1=430786&r2=430787&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoConnectionFactory.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoConnectionFactory.java Fri Aug 11 06:20:17 2006
@@ -6,6 +6,7 @@
 import javax.enterprise.deploy.spi.DeploymentManager;
 import javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException;
 import javax.enterprise.deploy.spi.factories.DeploymentFactory;
+import javax.naming.Context;
 
 import org.apache.geronimo.st.core.internal.Trace;
 import org.eclipse.core.runtime.NullProgressMonitor;
@@ -32,6 +33,7 @@
 	public DeploymentManager getDeploymentManager(IServer server)
 			throws DeploymentManagerCreationException {
 
+		System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
 		DeploymentManager dm = (DeploymentManager) connections.get(server.getId());
 
 		if (dm == null) {