Title: RE:

This looks like a problem not with the hostname, but with the naming factory...  Could there be some issue there?  If you're running JOnAS with RMI, then these three lines need to be your jndi.properties:

java.naming.provider.url = rmi://localhost:1099
java.naming.factory.initial = com.sun.jndi.rmi.registry.RegistryContextFactory
java.naming.factory.url.pkgs = org.objectweb.jonas.naming

Looking at your error, it looks like making sure that your naming factory is set up like the second line should do the trick.

Hope this helps...

-----Original Message-----
From: Julien Riegert [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 12:51 AM
To: [EMAIL PROTECTED]
Cc: Patrick Redivo; [EMAIL PROTECTED]
Subject:


Hy!!

I tried to add the jndi.properties file in my classpath directly as u said
but it didn't work!!
I also tried to remove $JONAS_ROOT from classpath to see what happens in
this case, and it's very amazing, when I launch the EJBServer, it tells me
that the trace.properties file (which is effectivly in the JONAS_ROOT path
as jndi.properties) cannot be found!!!
This seems to mean that the file jndi.properties should be found by
EJBServer within putting it directly in classpath, as trace.properties is
found,no?!!!

So I think that this file is not called when I launch EJBServer... 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]


I had the same problem few days ago.
And I added jndi.properties file to $CLASSPATH.
Simply add in cofig_env.sh line
CLASSPATH=$CLASSPATH$SPS$JONAS_ROOT/jndi.properties.
It seemed to work.
Good luck !

Piotr Bugala
New Technology Research Team
Teta s.a.
Poland, Wroclaw

----- Original Message -----
From: "Julien Riegert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Patrick Redivo" <[EMAIL PROTECTED]>
Sent: Thursday, March 01, 2001 2:10 PM
Subject: Can't run EJBServer !!!


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

Reply via email to