geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r430787 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoConnectionFactory.java
Date Fri, 11 Aug 2006 13:20:17 GMT
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) {



Mime
View raw message