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

Problem Accessing EJB from Remote Client in WL6.0(SP2)

 
Greenhorn
Posts: 19
  • 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 session bean through remote client. I deployed one stateless session bean in weblogic 6.0 (Service pack 2). I am accessing that bean through JSP. If i run that JSP in the weblogic it wroks fine. But if i run that JSP in the Tomcat. It give me error :-
javax.naming.CommunicationException [Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed: 'Incompatible version:Incompatible versions - this server:6.0.0b2 client:5.1.0]]
I used getInitialContext method as follows :-
//****************************
static Context getInitialContext(String url, String user, String password) throws NamingException{
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL, url);
//h.put(Context.SECURITY_PRINCIPAL, user);
return new InitialContext(h);
}
//*****************************
Any body have idea about it >>
Plz Help me to solve this proble
Thanks In Advance
Regards,
Sandeep
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I�m not sure about it but as long as I know youre not allowed to change the signature of the getInitialContext(),
public static Context getInitialContext().
but like I said I�m not sure.
 
sandeep kokane
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marcos Maia,
Thanks for the reply . But signature doesn't matter in this case ( I already tried it with public, private ) It works fine when i run the JSP in Weblogic . But When i tried it with the Tomcat as my webserver it gave the same error as mention above.
Any way thanks.
Still Looking for the Solution .
Regards,
Sandeep
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi sandeep, this is not proper tech. for details contact me.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic