The Artima Developer Community
Sponsored Link

Java Answers Forum
JSP call EJB Compoment!

2 replies on 1 page. Most recent reply: Jul 25, 2002 7:11 AM by Don Hill

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Yang Ning

Posts: 1
Nickname: thinhair
Registered: Jul, 2002

JSP call EJB Compoment! Posted: Jul 24, 2002 12:49 AM
Reply to this message Reply
Advertisement
I developed a EJB compoment and deploied it to J2EE Server(Sun J2SDKEE1.2.1). Now I want call it in a JSP program. But JSP reports an error that could not find stub class of this compoment.

How can I let JSP find this compoment? Where will i take place the classes file?

I have successfully run the same code in an application!


Mandar

Posts: 1
Nickname: alwaysman
Registered: Jul, 2002

Re: JSP call EJB Compoment! Posted: Jul 24, 2002 10:34 PM
Reply to this message Reply
hi

i think the deployed jar file should be kept in %catalina_home%/lib

write to me

Don Hill

Posts: 70
Nickname: ssswdon
Registered: Jul, 2002

Re: JSP call EJB Compoment! Posted: Jul 25, 2002 7:11 AM
Reply to this message Reply
> I developed a EJB compoment and deploied it to J2EE
> Server(Sun J2SDKEE1.2.1). Now I want call it in a JSP
> program. But JSP reports an error that could not find
> stub class of this compoment.
>
> How can I let JSP find this compoment? Where will i
> take place the classes file?
>
> I have successfully run the same code in an
> application!

The container needs to have acces to the client jars for the EJB, I would suggest placing them in the WEB-INF/lib folder as this is where the classloader will look to resolve, you also need to some imports in the jsp unless you are doing is from a bean.

HTH

Flat View: This topic has 2 replies on 1 page
Topic: Need some help with BufferedReader Previous Topic   Next Topic Topic: getting the URL's from an HTML page

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use