• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Invoking an EJB that's on Weblogic 6 from an MDB in weblogic 8.1 - urgent need answer

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have an MDB that is running on weblogic 8.1. Within this MDB I want to lookup an EJB that is running on weblogic 6 server. An execption occurs during the initialcontext creation.
The following code creates the InitialContext:
Hashtable h = new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL,providerURL); // the weblogic 6 server
Context initialContext=new InitialContext(h);
The exception trace is:
javax.naming.CommunicationException. Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed: 'Incompatible version:Incompatible versions - this server:6.0.0b2 client:8.1.1.0]
at weblogic.socket.Login.checkLoginSuccess(Login.java:120)
at weblogic.rjvm.t3.T3JVMConnection.connect(T3JVMConnection.java:287)
at weblogic.rjvm.t3.T3JVMConnection.createConnection(T3JVMConnection.java:311)
at weblogic.rjvm.ConnectionManager.createConnection(ConnectionManager.java:1766)
at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1293)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:430)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:312)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:223)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:181)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:222)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDe
legate.java:291)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDe
legate.java:234)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
What I wanted to know is whether such a lookup is not suppported and if it is what has to be done differently to create the context.
Thanks & Regards
Pratibha
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AFAIK you cannot directly connect an 8.1 client to a 6.0 server. You need at least version 6.1 for it to work. If upgrading a newer version isn't possible then you'll need to either write a bridge, or convert/wrap the 6.0 bean with a neutral protocol (perhaps as a web service.)
HTH,
-Ade Barkah
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic