Hi!
Jim Archer wrote:
> 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.
<snip>
If you add all jars in /client to your clients classpath you should be
fine. Have you tested this?
/Rickard
>
> 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]
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]