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
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