Hello JBoss Users.
 
I am having an issue with looking up my EJBs.  I am using JBoss3.2.3 on an Windows2000 box.  My error msg is below.
I have also copied and pasted my JNDI class I used to setup my JNDI context.  Any help would be appreciated.
 
Thanks!
 
JNDI Context:
package com.standardLib.util;
 
import java.util.Properties;
 
import javax.naming.Context;
 
public class VendorJNDI{
  public static Context GET_JBOSS_INITIAL_CONTEXT() throws javax.naming.NamingException {
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
    p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
    p.put(Context.PROVIDER_URL, "localhost:1099");
    return new javax.naming.InitialContext(p);
  }
}
 
Error Msg:
 
12:57:21,716 INFO  [STDOUT] sessionDelegate created.
12:57:22,677 WARN  [NamingContext] Failed to connect to localhost:1099
javax.naming.CommunicationException: Failed to connect to server localhost:1099
[Root exception is javax.naming.ServiceUnavailableException: Failed to connect t
o server localhost:1099 [Root exception is java.net.ConnectException: Connection
 refused: connect]]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:215)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1181)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at com.standardLib.util.ServiceDelegate.getHomeLocal(ServiceDelegate.jav
a:39)

Reply via email to