Hi Reid,
You actually had to add a jndi.properties file? I would think the startup file would use
java -Djava.naming.factory.initial="class name".

Where do you put the file?

eric :-)

Reid Hartenbower wrote:

 Thanks again, Eric.  It turns out that JOnAS simply wasn't reading my jndi.policies file and so could not find the InitialContext factory class.  I added some extra debug output to the default NamingManager constructor, which handles a null return from NamingException.getRootCause() and prints a stack trace.  The stack trace output revealed that the 'java.naming.factory.initial' property was null.  Here's the mod:     public NamingManager() throws NamingException {  // Create the initial context
 // Don't use jonas.properties anymore for jndi properties
 // jndi.properties will be used instead.
 try {
     ictx = new InitialContext();
     myEnv = ictx.getEnvironment();
 } catch (NamingException n) {
     Throwable t = n.getRootCause();
     if (t != null &&
         t.getMessage().startsWith("Connection refused to host:")) {
  Trace.errln("NamingManager: rmi registry not started ?");
  throw n;
     } else if (t!=null && t.getMessage().startsWith("error during remote invocation")) {
  Trace.errln("NamingManager: jrmi registry not started ?");
  throw n;
     } else {
         n.printStackTrace();
        /*Trace.errln("NamingManager: "+t.getMessage());*/
  throw n;
     }
 }
----- Original Message -----
Sent: Tuesday, May 16, 2000 3:04 PM
Subject: Re: Problems starting EJBServer on Win NT
 Hi,
The other standard suggestion is to look in the jdk distribution and remove jars from
the ext directory. This would be like iiop.jar, jndi.jar or the like.

Eric :-)

Reid Hartenbower wrote:

 Woops.  Here's the exception:JOnAS: Cannot start Naming Manager
java.lang.NullPointerException
        at org.objectweb.jonas.naming.NamingManager.<init>(NamingManager.java:75)
        at org.objectweb.jonas.server.Server.main(Server.java:78) My classpath:D:\>SET CLASSPATH=D:\jonas_jdk1.2\lib\JEREMIE_jonas.jar;D:\jonas_jdk1.2\lib\jdbc2_0-stdext.jar;D:\jonas_jdk1.2\lib\jta-spec1_0_1.jar;D:\jonas_jdk1.2\lib\ejb.jar;D:\jonas_jdk1.2\lib\jndi.jar;D:\jonas_jdk1.2\lib\providerutil.jar;D:\jonas_jdk1
.2\lib\rmiregistry.jar;D:\jonas_jdk1.2\lib\idb.jar;D:\jonas_jdk1.2\lib\idbexmpl.jar
----- Original Message -----
Sent: Tuesday, May 16, 2000 12:23 PM
Subject: Re: Problems starting EJBServer on Win NT
 Hi Reid,
It looks like you have the j2ee.jar from the J2EE reference edition in your class path.
This is a guess but the stack trace suggests this.
Eric :-)

Reid Hartenbower wrote:

Hi.  I get this exception when I try to start jonas 2.0, regardless of using rmiregistry or jeremie.  I've tried Jdk1.2.2 and 1.3, and j2ee1.2 and 1.2.  Can anyone tell me what's going on? Exception in thread "main" java.lang.InstantiationError: org/omg/CosTransactions/PropagationContext
        at com.sun.jts.CosTransactions.CurrentTransaction.<clinit>(CurrentTransaction.java:78)
        at com.sun.jts.CosTransactions.CurrentImpl.<init>(CurrentImpl.java:77)
        at com.sun.jts.CosTransactions.DefaultTransactionService.identify_ORB(DefaultTransactionService.java:183)
        at com.sun.corba.ee.internal.POA.POAORB.initPostProcessing(POAORB.java:349)
        at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:200)
        at org.omg.CORBA.ORB.init(ORB.java:353)
        at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
        at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
        at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextFactory.java:36)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:241)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:660)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
        at javax.naming.InitialContext.init(InitialContext.java:226)
        at javax.naming.InitialContext.<init>(InitialContext.java:182)
        at org.objectweb.jonas.naming.NamingManager.<init>(NamingManager.java:71)
        at org.objectweb.jonas.server.Server.main(Server.java:78)

Reply via email to