• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

typical problem with J2EE Server

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which J2EE Server you are using?
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic