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

Entity Bean and Servlet !  RSS feed

 
Dharmin Desai
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi buddies,
I hv one entity bean named CasePaperBean (with CasePaper - remote interface and CasePaperHome - Home interface) which is running cool as i hv tested it from jsp.
( <%@ page import="CasePaper,CasePaperHome,javax.ejb.* like wise)
But when i am trying to access it from servlet (import CasePaper;import CasePaperHome
ant is giving an error like import CasePaper; - dot (.) expected.
Should i need to code Entity Bean in Package, please help !
- Dharmin
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some containers have had problems with deployed classes in the default package ... This could be a symptom of such a defect. Anyway, I'd suggest you put your components in packages and try again.
 
Dharmin Desai
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My servlets are working Okay since i put them along with EJB Classes i need not required them to import.
Thanks for reply.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!