This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Zero to AI - A non-technical, hype-free guide to prospering in the AI era and have Nicolò Valigi and Gianluca Mauro on-line!
See this thread for details.
Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Tomcat 4.1 and JBoss 3.0.7 integration

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having Tomcat 4.1 and JBoss 3.0.7 (saperate editions)
I have integrated the TomCat/JBoss as per following link.
http://www.purposesolutions.com/Resources/EclipseJ2EE.html#TOMCAT_JBOSS_INTEGRATION
I have my EJb deployed in JBoss and i am calling the EJB from jsp.
Problem :the jsp is not able to find ejb and gives a compile time error.
jsp , with all other imports, is like this :
<%!MyTestSessionHome testSessionBean; %>
<%
try {
InitialContext ctx = new InitialContext();
Object objref = ctx.lookup("com.sanjay.ejb.MyTestSessionBean");
testSessionBean = (MyTestSessionHome)PortableRemoteObject.narrow(objref, MyTestSessionHome.class);
} catch (Exception NamingException) {
NamingException.printStackTrace();
}
%>
I want to know the following:
1. why ejb is not identified by jsp?
2.If jboss+tomcat integration is correct?
Any other solution for above 2
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any particular reason you have tomcat and jboss separate ("separate editions")? Can't you just have the full jboss app server integrated with tomcat? It makes life easier.
 
Sanjay Deshpande
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andrez ,
as u said , i have installed fully integrated
jboss-3.2.1_tomcat-4.1.24.
i started server by run.bat.
when i hit http://localhost:8080 i get error context not defined.
My doubts are :
1.what are exact steps to configure jboss-3.2.1_tomcat-4.1.24
2.There is no webapp dir in jboss-3.2.1_tomcat-4.1.24. So how to test it?
IS it like all the time we need to deploy web/ enterprise app and then test it in browser?
reply
    Bookmark Topic Watch Topic
  • New Topic