• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need to specify class name in environment or system property in EjbClient  RSS feed

 
Rahman ziaur
Greenhorn
Posts: 23
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am getting following error while trying to run my client program.
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.test.ziaur.Client.main(Client.java:38)



my client code are given below,



any help must be appreciated.Thanks a lot
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!