View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821898#3821898

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821898

Hello there,

I have a gui client that runs just fine when executed from the same JVM. However, as a 
remote client, it gets a :



javax.naming.NoInitialContextException



error. 



The error message is:



Cannot instantiate class: org.jboss.naming.HttpNamingContextFactory [Root exception is 
java.lang.ClassNotFoundException: org.jboss.naming.HttpNamingContextFactory]



I am at a loss since there is very few resources on this topic and I am new, as you 
may have guessed by now, to JBoss and EJBs. I thisn I have all the jar files on the 
client machine, and the getInitialContext function is:



Properties prop = new Properties();

                
prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");

                
//prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");

                
prop.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");

                
//prop.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");

                prop.put(Context.PROVIDER_URL,"lid32.rhythm.com:1091");

                
//prop.put(Context.PROVIDER_URL,"http://lid32.rhythm.com:8080/invoker/JNDIFactory";);

                return new InitialContext(prop);



My appologies to those that will be offened by this email being posted twice. SInce I 
did not get a reply from the beginners forum, I figured I should try my luck w/ this 
forum.



Appreciate all the help in advance.



-r




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to