Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes How to configure my servlet to access local EJB in weblogic 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "How to configure my servlet to access local EJB in weblogic 6.1" Watch "How to configure my servlet to access local EJB in weblogic 6.1" New topic
Author

How to configure my servlet to access local EJB in weblogic 6.1

ravi inguva
Ranch Hand

Joined: Feb 07, 2002
Posts: 34
Dear Friends,
i have written helloworld Local EJB and tried to access using a servlet.
i am getting class cast exception while typecasting the reference to the home class after looking up the hello EJB
please give the solution for this problem
Thanks and Regards
I.Ravi


Sun Certified Java2 Programmer
Rick Salsa
Ranch Hand

Joined: Jul 17, 2001
Posts: 173
Are your servlets and EJB's running in the same container?
If your servlet's are not contained in your appserver, ie, your using Tomcat and Weblogic, you'll need to use a regular Entity bean, instead of a Local Entity Bean.
HTH,
/rick
[ June 12, 2002: Message edited by: Rick Salsa ]
[ June 12, 2002: Message edited by: Rick Salsa ]
ravi inguva
Ranch Hand

Joined: Feb 07, 2002
Posts: 34
Yes Both my Servlet and EJB are Running in WEBLOGIC 6.1 only
i have deployed them in mydomain/defautwebapp
Thanks
I.Ravi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure my servlet to access local EJB in weblogic 6.1
 
Similar Threads
EAR-to-EAR inter operatability
Problem with JBoss EJB 2.x J2EE
How to lookup an EJB in Servlets?
Local Interfaces in EJB
EJB 3 Local Lookup not working with Weblogic 10.3 and JDK 1.6_05