Found it!
I didn't have jboss.jar in the classpath...
Jim
--On Tuesday, May 30, 2000 10:43 PM -0400 Jim Archer <[EMAIL PROTECTED]> wrote:
> Hi All!
>
> I have been playing with the latest (as of 10:00PM Eastern) jBoss pulled
> down from CVS. I can now deploy my CMP Entity bean and test it.
>
> My test client has the following code:
>
> UserHome userHome = null;
>
> Properties prop = getEJBossProps();
> try {
> // Get context
> Context ctx = new InitialContext(prop);
> System.out.println("Got context");
>
> // Get home object
> System.out.println("Looking up the UserHome object...");
> userHome = (UserHome) ctx.lookup("User");
>
> if (userHome != null )
> System.out.println("got home interface");
>
> } catch (Exception e) {
> System.out.println("Exception caught");
> System.out.println(e.getMessage());
> System.out.println(e.toString());
> }
>
>
> When I call:
>
> userHome = (UserHome) ctx.lookup("User");
>
> I get a:
>
> javax.naming.CommunicationException
>
> The root exception is:
>
> java.lang.ClassNotFoundException
>
> I guess I am missing something from my classpath, but I tried adding
> several things with no luck. Can anyone let me know whats wrong?
>
> Thanks!!
>
> Jim
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]