• 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

EJB accessing Problem in Welogic 6.1

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am getting problem while accessing entity bean through remote client. I deployed one entity bean in weblogic 6.1. when i try to access that bean through java class(client), It give me error :-
javax.naming.CommunicationException. Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed: 'Incompatible version:Incompatible versions - this server:6.1.0.0 client:5.1.0]
at weblogic.socket.Login.checkLoginSuccess(Login.java:77)
at weblogic.socket.JVMSocketT3.connect(JVMSocketT3.java:85)
at weblogic.socket.JVMAbbrevSocket.connect(JVMAbbrevSocket.java:160)
at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:282)
at weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:918)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:248)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:219)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:195)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:148)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
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 customer.getInitialContext(customer.java:80)
at customer.main(customer.java:21)
I used getInitialContext method as follows :-
//****************************
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:8001");
return new javax.naming.InitialContext(p);
}
//*****************************
Any body have idea about it >>
Plz Help me to solve this proble
Thanks In Advance
Regards,
Sunil
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sunil
do u have both the weblogic5.1 and 6.1 installed on ur system and r u sure the port no is 8001. coz the default port no for weblogic is 7001
regards
Sethu
 
sunil kumar sarayar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sethu,
TX. Yes, I have both web logic version but using different port: For weblogic5.1 � port 7001 and Weblogic6.1- Port 8001.
Whenever I tried to access same Entity Bean or other bean(Session) through jsp/Servlet , it�s working perfectly. This Problem is coming with java client only (simple java standalone class) whenever tried to access.
Regards,
Sunil
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simon:
Please have this moved to Weblogic Forum.
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure your client classpath is using the weblogic.jar for the same version as the server.
So if your client is trying to talk to a 6.x server, have the 6.1 version of weblogic.jar in classpath.
It looks like your client classpath has a 5.1 weblogic.jar in classpath and is trying to communicate with a 6.1 version server.
reply
    Bookmark Topic Watch Topic
  • New Topic