Hi!
Christophe Demez wrote:
> Hi, I have the following code and have an error
>
> Code
> ____
>
> /**
> * Returns the default initial context.
> */
> private static InitialContext getInitialContext() throws NamingException {
>
> //---- Set the properties
> Properties tProperties = new Properties();
>
> //---- FOR IBM WEBSPHERE
?? I thought you said you use JBoss...
> tProperties.put("java.namig.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> tProperties.put("java.namig.factory.url.pkgs", "org.jboss.naming");
> tProperties.put("java.naming.provider.url",
> "iiop://bf_ws_tst3:1099");
The property names are misspelt... I recommend that you use the
constants on java.naming.Context to make sure you get them right.
> //----
> return new InitialContext( tProperties );
>
> }
>
> Object tObjectRef = tInitialContext.lookup( pClass.getName() );
>
> Error
> ____
>
> javax.naming.NoInitialContextException: Need to specifiy class name in
> environment or system property, or as an applet parameter, or in an
> application resource file :
> java.naming.factory.initial
>
> I use the JBoss Web Server
JBoss is not a web server, it is an application server.
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".