Discussions

EJB design: WEBLOGIC 5.1 client application error

  1. WEBLOGIC 5.1 client application error (1 messages)

    Hi,

    I am facing problem to run a EJB client. The Beans are deployed on weblogic 5.0 server.

    When i use the following client code :

    Hashtable env = new Hashtable();

    env.put
    (Context.PROVIDER_URL, "t3://localhost:7001");

    env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");

    Context ctx = new InitialContext(env);

    it gives an ERROR :

    javax.naming.CommunicationException. Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed: 'Incompatible version:Incompatible versions - this server:5.1.0 client:6.1.1.0]


    I also tried to set the factory to weblogic.jndi.TengahInitialContextFactory but still the same error.

    Can any1 throw somelight on this issue ?

    Regards,
    Dileep
  2. Are you using some client classes from weblogic V6.1 ??

    Looks like you have EJB Bean from Supported to 5.0 Weblogic and client classes coming form weblogic 6.1.1

    CHeers
    Manoj


    > Hi,
    >
    > I am facing problem to run a EJB client. The Beans are deployed on weblogic 5.0 server.
    >
    > When i use the following client code :
    >
    > Hashtable env = new Hashtable();
    >
    > env.put
    > (Context.PROVIDER_URL, "t3://localhost:7001");
    >
    > env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    >
    > Context ctx = new InitialContext(env);
    >
    > it gives an ERROR :
    >
    > javax.naming.CommunicationException. Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed: 'Incompatible version:Incompatible versions - this server:5.1.0 client:6.1.1.0]
    >
    >
    > I also tried to set the factory to weblogic.jndi.TengahInitialContextFactory but still the same error.
    >
    > Can any1 throw somelight on this issue ?
    >
    > Regards,
    > Dileep