Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

typical problem with J2EE Server  RSS feed

 
Nizam chary
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have created my EJB files and a client (JSP)
when is tried the Verifier in the Server. it Failed the Test.
it say JSP not complied.
Error it showed is ..It was not able to find the EJB class.
InitialContext ctx = new InitialContext();

Object obj = ctx.lookup("HelloBean");

Class cls = HelloHome.class; // HelloHome class not found

Object ref = PortableRemoteObject.narrow(obj,cls);

HelloHome homeRef = (HelloHome)ref;// HelloHome class not found

Hello r = homeRef.create();// Hello class not found

String result = r.sayHello("Nizam ");

System.out.println(result);

Any advice
HelloHome
 
Mishra Anshu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which J2EE Server you are using?
 
Heonkoo Lee
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you put the classes for home and component interfaces in a proper class directory used by the jsp or servlet, like WEB-INF/classes or WEB-INF/lib? Looks like they are only in your ejb jar. Am I right?
[ April 03, 2005: Message edited by: Heonkoo Lee ]
 
Nizam chary
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for replying
Sun J2ee server version is 1.4
and yes I have place all my classes in web-inf/classes folder
still its not working.

I appreciate your help
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!