• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoInitialContextException

 
Felipe Arcos Velez
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i just begin with ejb and my first app shows the next error message (compile its ok, deploy too, the j2ee.bat is running):
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:640)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at AdviceClient.go(AdviceClient.java:16)
at AdviceClient.main(AdviceClient.java:10)
 
Constantino Cronemberger
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run your client program you have to use the runclient.bat script.
 
Felipe Arcos Velez
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, now, i am doing this way:
>set APPCPATH=AdviceAppClient.jar
>runclient -client AdviceApp.ear -name AdviceClient -textauth
but the folling message apears:
>No application client descriptors defined for: AdviceClient
I dont know what its wrong, the j2ee app is deployed, the j2ee is runing and i have de j2ee client files from the deploy tool.
 
Felipe Arcos Velez
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, its working now:
java -cp %classpath%;AdviceAppClient.jar;. AdviceClient
thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic