Message-ID: <4LIW37$9mS@bbs.tju.edu.cn>
Subject: Re: 请教各位大虾关于JBuilder+Jboss开发EJB的问题(先表感谢)
Date: Wed, 23 Nov 2005 14:45:44 +0000
From: lastking.bbs@bbs.tju.edu.cn.no.spam (乐天)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.java.20140731.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!nntp-server.pubsub.com!news.neu.edu.cn!news2.happynet.org!TJUBBS
Newsgroups: cn.bbs.comp.lang.java
Organization: 天大求实BBS站
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1132757143.A
Lines: 20
Xref: news.cnusenet.org cn.bbs.comp.lang.java:19558
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:
jboss 的jndi配置没有
【 在 wuwei 的大作中提到: 】
:
: 我用JBuilder9整合Jboss3.x开发EJB,用EJBTestClient制作客户程序测试为什么总报错如下呀:(由于刚开始学习EJB,所以对这些错误实在无奈,不知那位大虾帮小弟看看呢谢谢呀)
: 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 test.WelcomeBeanTestClient1.initialize(WelcomeBeanTestClient1.java:31)-- Failed initializing bean access.
: at test.WelcomeBeanTestClient1.<init>(WelcomeBeanTestClient1.java:16)
: at test.WelcomeBeanTestClient1.main(WelcomeBeanTestClient1.java:148)
: (以下引言省略...)
--
http://bbs.tju.edu.cn/TJUBBSESOIEEWVROKXREGGHCUSLDESKJBWJKYZZ_E/attach/bbsmailcon/leefelicity2000_gmail.bmp?file=M.1113820936.A&num=2&attachpos=176&attachname=/leefelicity2000_gmail.bmp
[1;33m※ 来源:.天大求实BBS http://bbs.tju.edu.cn [FROM: 202.113.13.188][m