Hello Julien, 

this error occurs when the system does not found the correct
jndi.properties file, look if you have one in your CLASSPATH or
XTRA_CLASSPATH (or put in the . path), in the config_env script

the lines for rmi in this file is : 

# if you use rmi only
java.naming.factory.initial
com.sun.jndi.rmi.registry.RegistryContextFactory
java.naming.provider.url        rmi://127.0.0.1:1099
# In both cases
java.naming.factory.url.pkgs    org.objectweb.jonas.naming



Have good fun with JOnAS !



Julien Riegert wrote:
> 
> Hy guys...
> 
> I'm working on a middleware application, and I want to test the Java EJB
> technology for maintening some Persistent Objects stored on a Database...
> I have downloaded Jonas distribution to test this technology on InstantDB
> (which is already installed on my system)...
> 
> I did all the installation well on Pc Solaris, I did the configurations as
> described in the documentation, but when I try to test the examples given in
> the distribution, I don't manage to launch the EJBServer, I have the
> following message:
> 
> --------------------------------------------------------
> JOnAS Server, version 2.1.1, running on rmi. NamingManager:
> Need to specify class name in environment or system property:
> java.naming.factory.initial JOnAS: Cannot start Naming Manager :
> EJBServer halting
> 
> ---------------------------------------------------------
> 
> Of course, everything is well configured,
>  - I specified the $JONAS_ROOT in my CLASSPATH, updated my Path
>  - and customized the jndi.properties file in $JONAS_ROOT with my actual
> server name ...
> 
> I tried a lot of things, tried to find the classes where this exception was
> launched in order to trace the execution (I downloaded your source code for
> that!!), but I didn't see where and when the jndi.properties file was
> loaded, I didn't find the calling of this file in any class file or in any
> configuration file...
> I don't even know if this file is effectively loaded and used when I launch
> the EJBServer, and as the message printed tells the error deals with
> java.naming.factory.initial, which is specified in this jndi.properties
> file, I wanted to know if this error was in relation with an error loading
> this file?!...
> 
> If U have any answer....
> 
> Thanks
> 
> Best regards
> 
> RIEGERT Julien
> --------------------
> *** DESS MBDS - C.E.R.A.M Sophia-Antipolis ***
> Mastère en Multimédia, Bases de Données
> et Intégration de Systèmes
> Phone: 06.12.49.16.44 - #ICQ: 75111998
> Email: [EMAIL PROTECTED]
> 
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to