• 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

CommunicationException from EJBclient

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Im trying out few EJB examples using WSAD. I have a statless session bean which takes 2 int values and returns the sum of the it on method invoke.. I was able to run my EJB on Test Environment after creating the Application Client Module.. But when i tried to lookup the same jndi from a java application its throws exceptions at runtime.. pls have look at the exp i got ...



Exception in thread "main" javax.naming.CommunicationException: Can't find Seria
lContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
)
at javax.naming.InitialContext.lookup(Unknown Source)
at Client.main(Client.java:38)



This is my java code, with which i tried to invoke my EJB..


I tried to execute the java file after starting WSAD Test Environment.
Isnt it possible to invoke EJB like the way i tried ??


Thanks in advance,
Rajeev
 
reply
    Bookmark Topic Watch Topic
  • New Topic