Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ravi inguva
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rick Salsa
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Both my Servlet and EJB are Running in WEBLOGIC 6.1 only
i have deployed them in mydomain/defautwebapp
Thanks
I.Ravi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic