• Post Reply Bookmark Topic Watch Topic
  • New Topic

Runtime Error

 
Kannan KP
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JRUN to deploy EJB. I have successfully depolyed the JAR file. When I run the client I am getting runtime error. The error is as Follows
javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:66)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:154
)
at javax.naming.InitialContext.lookup(Unknown Source)
at StatelessDemo.HelloClient.<init>(HelloClient.java:35)
at StatelessDemo.HelloClient.main(HelloClient.java:44)

Pl, do help to rectify the error's and run the script
Expecting u'r reply at the earliest
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just a guess.. from the error message, it seems like you might need to set the Context.PROVIDER_URL in the Properties object you're passing in to "Context jndiContext = new InitialContext(props)".
-miftah
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!