Message-ID: <4LIVAb$9aV@bbs.tju.edu.cn>
Subject: 请教各位大虾关于JBuilder+Jboss开发EJB的问题(先表感谢)
Date: Wed, 23 Nov 2005 14:13:25 +0000
From: wuwei.bbs@bbs.tju.edu.cn.no.spam (wuwei)
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!nntp.giganews.com!feed2.newsreader.com!newsreader.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.1132755205.A
Lines: 19
Xref: news.cnusenet.org cn.bbs.comp.lang.java:19557


我用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)
java.lang.NullPointerException
	at test.WelcomeBeanTestClient1.create(WelcomeBeanTestClient1.java:59)
	at test.WelcomeBeanTestClient1.main(WelcomeBeanTestClient1.java:150)
-- Calling create()
-- Failed: create()
-- Return value from create(): null.
Error in Welcome(): Remote interface reference is null.  It must be created by calling one of the Home interface methods first.
--
※ 来源:.天大求实BBS http://bbs.tju.edu.cn [FROM: 202.113.9.228]