Hi,
I guess you did not include a jboss.xml in your jars META-INF, so by using
localhost:8082 -> service=JNDIView -> list
you will find that your Bean is deployed to java:/Hospital.
Use the enterprise-beans section of jboss.xml to map your Beans to the
java:comp/env/ namespace.
There is a chapter on jboss.xml in the manual.
Burkhard
----- Original Message -----
From: "Larry Kim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Larry Kim" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 9:31 PM
Subject: [JBoss-user] InitialContext problem


Hello, i am having problems with a test client.
Has anybody seen anything like this?


Exception: Cannot lookup HospitalHome:
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

i deployed a simple entity bean and JBoss server says it is "deployed
successfully".
my test client just does a simple:

InitialContext initialContext = new InitialContext();
System.out.println("got jndi");  // up to here is fine.

HospitalHome home =
(HospitalHome)PortableRemoteObject.narrow(initialContext.lookup(
"plexus/Hospital"), HospitalHome.class);  // this line causes the
exception


any ideas would be greatly appreciated. i think it is a configuration
issue (?)

-larry

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to