Visual Age3.0/3.5. I wrote a HelloWorld EJB in Visual Age. It's ok when running test client made by VAJ. When running the HelloClient writen by myself, such exceptions will show when I try to new InitialContext(props). Pls help.

howru (How are you?)
main().......
InitialContext ctx = new InitialContext(props);
...................

Debugger Stack Trace Report:

Thread[main,5,main] (Alive)
Uncaught exception (java.lang.NoClassDefFoundError: javax.naming.InitialContext)

HelloClient.main(String [])
args=([Ljava.lang.String;) [Ljava.lang.String;@4ae1
iniCtx=(javax.naming.InitialContext) null
(#28875@0)
2001-2-27 -05:00

回到话题: Visual Age3.0/3.5. I wrote a HelloWorld EJB in Visual Age. It's ok when running test client made by VAJ. When running the HelloClient writen by myself, such exceptions will show when I try to new InitialContext(props). Pls help.

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=28875