• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

URGENT WLS5 and WLS6 !!!!

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have written a EJBClient Program. My Weblogic Server is running on WL Version 5 and I compiled this client program using the jar files of weblogic 6. The program compiled but when I try to run then while getting InitialContext it throws Exception...
My client program look likes this...
public static void main(String args[])
{
try
{
final Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
environment = new InitialContext (env);

}
catch(Exception e)
{ }
}
Exception is ......
java.lang.NullPointerException
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:191)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246

at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at EJBClient.main(EJBClient.java:29)
Can any body help me out.
Can I do it this way ???
Regards
Raj
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unfortunately you've run into a weblogic cross-version problem. Using the WLS version 6 classes you can't connect to a WLS version 5 server. WLS has not been made backwards-compatible (yet).
Apparently, WLS will be backwards compatible from version 7 - I think that means that version 7 will be able to connect to version 6.1, and subsequent versions will also be backwards-compatible, but none of the other versions will be able to connect to previous versions.
So you can't do it (yet)... so for now use version 5 client classes for a version 5 server.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It�s supposedly backward compatible from version 6.2 (somewhere in october ??).
Versions 5 and 6 have completely different code bases.
 
mr raj
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot guys.
I was not sure whether this is possible or not.You cleared this thing otherwise I could have make effort trying to achieve it, resulting in wastage of time.
Thanks and Regards
MR Raj
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sven,
do you know whether the news about backwards compatibility is available on any of BEA's websites? I need to find out more.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic