Posted By:
roger_bligh
Posted On:
Tuesday, July 30, 2002 02:44 AM
I hope to use jsp as EJB client applications,and I want to test the jsp in the Visual Age for Java. I have opened the websphere test environment ,and have started persistent name server,EJB server,servlet server. my jsp code: Context ctx=new InitialContext(); java.lang.Object ref=ctx.lookup("test/HelloWorld"); HelloWorldHome hello=(HelloWorldHome) PortableRemoteObject.narrow(ref,HelloWorldHome.class); HelloWorld helloWorld=hello.create(); helloWorld.sayHello(); when I test the jsp,system throws ClassCastException(), and says jsp is null. who can tell me how test the jsp and ejb's communication
More>>
I hope to use jsp as EJB client applications,and I want to
test the jsp in the Visual Age for Java.
I have opened the websphere test environment ,and have started
persistent name server,EJB server,servlet server.
my jsp code:
Context ctx=new InitialContext();
java.lang.Object ref=ctx.lookup("test/HelloWorld");
HelloWorldHome hello=(HelloWorldHome)
PortableRemoteObject.narrow(ref,HelloWorldHome.class);
HelloWorld helloWorld=hello.create();
helloWorld.sayHello();
when I test the jsp,system throws ClassCastException(),
and says jsp is null.
who can tell me how test the jsp and ejb's communication
in the websphere test environment?
or so tell me how deploy websphere test environment for ejb and jsp's communication .
<<Less