Hello,

I have the following error during the home lookup,  I m not sure it is a
problem, because I receive the right home,
but maybe the home or orther stuff are not well initialized !!

I use the following method :
---------------------------------------

private static InitialContext getInitialContext() throws NamingException {

        //---- Set the properties
        Properties tProperties = new Properties();

        //---- For JBoss
        tProperties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
        tProperties.put("java.naming.factory.url.pkgs", "org.jboss.naming");
        //tProperties.put(Context.PROVIDER_URL, "http://bf_ws_tst3:1099");
        tProperties.put(Context.PROVIDER_URL, "localhost");

        //----
        return new InitialContext( tProperties );

}

The error occur at :
----------------------------

                        //---- JNDI look up
                        InitialContext tInitialContext =
getInitialContext();

                        // Get the home
                        Object tObjectRef = tInitialContext.lookup(
pJNDIHomeName );

The stack trace
------------------------

java.lang.NoSuchMethodException
        java.lang.Throwable()
        java.lang.Exception()
        java.lang.NoSuchMethodException()
        java.lang.reflect.Method
java.lang.Class.getMethod0(java.lang.String, java.lang.Class [], int)
        java.lang.reflect.Method java.lang.Class.getMethod(java.lang.String,
java.lang.Class [])
        java.lang.Class
java.io.ObjectInputStream.loadClass0(java.lang.Class, java.lang.String)
        java.lang.Class
java.io.ObjectInputStream.resolveClass(java.io.ObjectStreamClass)
        java.lang.Class
sun.rmi.server.MarshalInputStream.resolveClass(java.io.ObjectStreamClass)
        java.io.ObjectStreamClass
java.io.ObjectInputStream.inputClassDescriptor()
        java.lang.Object java.io.ObjectInputStream.readObject(boolean)
        java.lang.Object java.io.ObjectInputStream.readObject()
        int java.io.ObjectInputStream.inputObject(boolean)
        java.lang.Object java.io.ObjectInputStream.readObject(boolean)
        void java.io.ObjectInputStream.inputClassFields(java.lang.Object,
java.lang.Class, java.io.ObjectStreamField [])
        void java.io.ObjectInputStream.defaultReadObject()
        int java.io.ObjectInputStream.inputObject(boolean)
        java.lang.Object java.io.ObjectInputStream.readObject(boolean)
        java.lang.Object java.io.ObjectInputStream.readObject()
        java.lang.Object java.rmi.MarshalledObject.get()
        java.lang.Object
org.jnp.interfaces.NamingContext.lookup(javax.naming.Name)
        java.lang.Object
org.jnp.interfaces.NamingContext.lookup(java.lang.String)
        java.lang.Object
javax.naming.InitialContext.lookup(java.lang.String)
        javax.ejb.EJBHome
lds.faf.components.FAFHomeFactory.lookupHome(java.lang.Class,
java.lang.String)
        void
test.applayers.odata.services.TC_ODATAServicesRegistry.test_ServicesStart()
        void test.applayers.odata.services.TC_ODATAServicesRegistry.run()
        void lds.faf.tests.TestCase.executeTest()
        void lds.faf.tests.TestSuite.run()
        void lds.faf.tests.TestSuite.executeTest()
        void
test.applayers.odata.services.TS_ODATAServicesRegistry.main(java.lang.String
[])


If somebody can help me and know why I have this exception. After that, it
continue and I receive a home instance !!

Thanks a lot

Christophe

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to