Eclipse NoInitialContextException: jboss client programs

T

timasmith

Hi,

I can compile my J2EE programs fine using eclipse and then with help
from ants run them with JBoss.

However I cant run my client apps directly in Eclipse - I get

javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file: java.naming.factory.initial

These are my lines of code leading up to - swapping out environment
with a null constructor does not help.

javax.naming.InitialContext initialContext = new
javax.naming.InitialContext(environment);
Object objRef = initialContext.lookup(jndiName);

I did try to look at my ant build.xml for some arguments and did try to
set those in Eclipse - no luck though, seems all very difficult.

<jvmarg value="-Djava.security.auth.login.config=dd/client/auth.conf"
/>

Any ideas?

thanks

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top