• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 4.1 and JBoss 3.0.7 integration

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic