geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francisco Borges (JIRA)" <>
Subject [jira] Created: (GERONIMO-3313) Getting InitialContext without explicitly passing the System Properties fails.
Date Thu, 12 Jul 2007 12:14:05 GMT
Getting InitialContext without explicitly passing the System Properties fails.

                 Key: GERONIMO-3313
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
    Affects Versions: 1.2
         Environment: Kubuntu Linux 2.6.20-16-generic #2 SMP Wed May 23 01:46:23 UTC 2007
i686 GNU/Linux
Java java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)
            Reporter: Francisco Borges

Geronimo1.2 will *fail* if:

1. From a sample application (outside Geronimo) trying to connect to a EJB in 
the server;
2. I try to get the InitialContext without explicitly passing the System 

jndiCntx = new InitialContext();

 [java] javax.naming.AuthenticationException: Cannot read the response from the server (OEJP/2.0)
: null; nested exception is:
     [java]     at org.apache.openejb.client.JNDIContext.authenticate(
     [java]     at org.apache.openejb.client.JNDIContext.getInitialContext(
     [java]     at javax.naming.spi.NamingManager.getInitialContext(
     [java]     at javax.naming.InitialContext.getDefaultInitCtx(
     [java]     at javax.naming.InitialContext.init(
     [java]     at javax.naming.InitialContext.<init>(
     [java]     at com.xhive.j2eesamples.XhiveSampleSessionTest.<init>(
     [java]     at com.xhive.j2eesamples.XhiveSampleSessionTest.main(

If I use:

 InitialContext jndiCntx = new InitialContext(System.getProperties()); 

The code behaves as expected. I don't know for sure if this is Geronimo's 
fault or OpenEjb but it certainly happens, and is perfectly reproducible.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message