Dear all,

I am not able to run my J2ee Client application.  I want to test the same
J2EE application on our Linux server as well as my machine running Windows
2000 Professional.  Though I am able to deploy on these platforms, I get the
following exception(s).  Need help such that I can further proceed.  Thanks
in advance.

1) Case 1 ( J2EE Server & Client running on the same machine )
---------
D:\Bal\Java\EJB\Hello>java -classpath d:\j2sdkee1.2\lib\j2ee.jar;.
HelloClient
Exception in thread "main" java.lang.ClassCastException
        at
com.sun.corba.ee.internal.javax.rmi.PortableRemoteObject.narrow(Porta
bleRemoteObject.java:297)
        at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
        at HelloClient.main(HelloClient.java:8)

2) Case 2 ( J2EE Server running under Linux, Client running on Windows
2000 )
---------
D:\Bal\Java\EJB\Hello>java -classpath d:\j2sdkee1.2\lib\j2ee.jar;.
HelloClient
Exception in thread "main" javax.naming.NamingException: Error accessing
reposit
ory: Cannot connect to ORB
        at com.sun.enterprise.naming.EJBCtx.<init>(EJBCtx.java:51)
        at
com.sun.enterprise.naming.EJBInitialContextFactory.getInitialContext(
EJBInitialContextFactory.java:62)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at HelloClient.main(HelloClient.java:6)

Note
----
1) I need to know how to lookup my EJB Home object under J2EE server on
        i) same machine
        ii) different machine

With regards
sbchand

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to