Hello,
I'm developing a java project with jboss. I made the following code:
connectionFactoryLookupAddress = new String("jms/RemoteConnectionFactory");
destinationLookupAddress = new String("jms/topic/mC");
environment = new Properties();
environment.put(Context.SECURITY_PRINCIPAL, "isuser");
environment.put(Context.SECURITY_CREDENTIALS, "is"); environment.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.remote.client.InitialContextFactory");
environment.put(Context.PROVIDER_URL, "remote://localhost:4447");
InitialContext iCtx = new InitialContext(environment);
And I get the following exception
javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.naming.remote.client.InitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.jboss.naming.remote.client.InitialContextFactory]
(...)
Caused by: java.lang.ClassNotFoundException: org.jboss.naming.remote.client.InitialContextFactory
(...)
I have already added jboss-client.jar, and nothing ... do I have to do some kind of configuration on the jboss server to accept this user? I'm using eclipse. I read a few posts on this topic but it is not clear to me what settings JBoss needs to run this code. Any help?
Thanks for the attention