We are using the orion EJB server engine and orion servlet engine. When  trying
ot connect to the EJB server from the serlvets, lookups are fine. Wnen coming
from outside orion in another JVM, the lookups FAIL with the error:

   koala.dynamicjava.interpreter.InterpreterException:
   javax.naming.NamingException: Lookup error: java.net.SocketException: errno:
   101, error: Network is unreachable for fd: 36; nested exception is:
      java.net.SocketException: errno: 101, error: Network is unreachable for
   fd: 36
      at
   koala.dynamicjava.interpreter.TreeInterpreter.interpret(TreeInterpreter.java:110)

      at
   koala.dynamicjava.interpreter.TreeInterpreter.interpret(TreeInterpreter.java:123)

      at koala.dynamicjava.interpreter.Main.main(Main.java:176)
   javax.naming.NamingException: Lookup error: java.net.SocketException: errno:
   101, error: Network is unreachable for fd: 36; nested exception is:
      java.net.SocketException: errno: 101, error: Network is unreachable for
   fd: 36

Are lookups broken  using other JVMs?? Details of our configuration:

The deployment descriptors are as follows (extracted from a larger xml config
file)
     <enterprise-beans>

       <entity>
        <display-name>Folder Object</display-name>
        <ejb-name>brica:Folder</ejb-name>
        <home>com.tsis.brica.document.FolderHome</home>
        <remote>com.tsis.brica.document.Folder</remote>
        <ejb-class>com.tsis.brica.document.FolderImpl</ejb-class>
        <persistence-type>Bean</persistence-type>
        <prim-key-class>java.lang.Long</prim-key-class>
        <reentrant>True</reentrant>
        <resource-ref>
          <res-ref-name>jdbc/bricaData</res-ref-name>
           <res-type>javax.sql.DataSource</res-type>
           <res-auth>Application</res-auth>
        </resource-ref>
       </entity>

The client code using Dynamic Java is:

   Properties props = new Properties();
   props.setProperty(Context.INITIAL_CONTEXT_FACTORY,
   "com.evermind.server.rmi.RMIInitialContextFactory");
   props.setProperty(Context.PROVIDER_URL, "ormi://127.0.0.0/brica");

   Context context = new InitialContext(props);
   FolderHome folderhome = (FolderHome)context.lookup("brica:Folder");
                                        ^^^^^^^^^Here is where the exception
   occurs.






Reply via email to