• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP can not find EJB.

 
Sanjay Deshpande
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a problem integrating tomcat with jBoss. It appears that I have
followed all the directions correctly ( or so I think!). I have deployed the EJb oj JBoss but when I run the
JSP page I get the following error:
can not find com.sanjay.ejb.MyTestSessionBean
Object objref = ctx.lookup("com.sanjay.ejb.MyTestSessionBean");
Any solution
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would it be possible for you to download the pre-integrated JBoss + Tomcat combo?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, that would be the way to get started. It's worth going through the process of doing it manually, but you should be prepared to throw it away if it doesn't work.
Is that what you bound your ejb to? Usually you'd bind it to either "MyTestSessionBean" or "ejb/MyTestSessionBean" or "java:comp/env/MyTestSessionBean" or "java:comp/env/ejb/MyTestSessionBean"
It might be worth searching the JNDI namespace to see if it really is there but you just can't find it.
 
Sanjay Deshpande
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way I can identify if the integration of tomcat-jboss is ok?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sanjay Deshpande:
Is there any way I can identify if the integration of tomcat-jboss is ok?

One way I could think of would be to setup the Sun Petstore on it and see if it works. It should be using most aspects of the J2EE environment.
 
Sanjay Deshpande
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed integrated jboss+tomcat
i do not know how to how to configure it
Could u please explain it
1.How to configure it.
2.IS it like ejb/jsp all we need to deploy first ?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sanjay Deshpande:
I have installed integrated jboss+tomcat
i do not know how to how to configure it
Could u please explain it
1.How to configure it.
2.IS it like ejb/jsp all we need to deploy first ?

Do you mean you installed the "jboss+tomcat" download from jboss.org? If you did, then you shouldn't need any configuration to complete the integration (configuration other than what you would've needed to do anyway to get an application deployed).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!