-
1. Re: jboss3.0/tomcat4.0 and apache 2.0
torreblanca Jul 26, 2002 12:37 PM (in response to hansgill)Hi,
I'm using JBoss-3.0.1rc1_Tomcat-4.0.4 with Apache 2.0.39 (mod_jk) and it is working.
Harjeet Singh helps me and the installation steps are :
1. Modify the httpd.conf file, add the following lines after LoadModule block:
LoadModule jk_module modules/mod_jk.dll
<IfModule mod_jk.c>
JKWorkersFile "%JBOSSHOME%/catalina/conf/workers.properties"
JKLogFile "%JBOSSHOME%/catalina/logs/jk.log"
JKLogLevel warn
JKMount /*.jsp ajp13
JKMount /servlet/* ajp13
JkMount /firstEJB/* ajp13
JkMount /appletEJB/* ajp13
JkMount /strutsSample/* ajp13
JkMount /account/* ajp13
2. Modify tomcat4-service.xml file at %JBOSSHOME%\server\default\deploy , add the following lines after <Connector className = "org.apache.catalina.connector.http.HttpConnector" ... tag :
3. Get the mod_jk.dll at http://www.acg-gmbh.de/mod_jk/ or if you are using a diferent operating system go to http://www.galatea.com/flashguides/index.
4. Copy the mod_jk.dll in modules directory of your Apache installation.
5. Copy the workers.properties file in %JBOSSHOME%\catalina\conf
6. Modify workers.properties file, set the right values :
workers.tomcat_home=%JBOSSHOME%\catalina
workers.java_home=%JAVAHOME%
worker.ajp12.host=your IP Address server
worker.ajp13.host=your IP Address server
Regards
Javier -
2. Re: jboss3.0/tomcat4.0 and apache 2.0
torreblanca Jul 26, 2002 12:51 PM (in response to hansgill)I send you in attachment the following files:
httpd.conf, tomcat4-service.xml, mod_jk.dll and workers.properties -
3. Re: jboss3.0/tomcat4.0 and apache 2.0
dudoes Jul 30, 2002 12:30 PM (in response to hansgill)Thank you for your details very much!
My system is new as yours.
I have configed my Apache2.0.39(as a windows2K service) and Jboss3.0.1RC1/Tomcat4.0.4, I can explore apache2's manual(my default port 80), but I can't reach my .JSP/EJB application in JBOSS3/TOMCAT4 through Apache2.
Could you tell me my answers?
OK,I have a lot of beers. -
4. Re: jboss3.0/tomcat4.0 and apache 2.0
torreblanca Jul 30, 2002 2:07 PM (in response to hansgill)Dudoes,
When you set the <context-root> value in application.xml, this same value you must set in httpd.conf Apache file with JKMount sentence. For example
APPLICATION.XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<display-name>First EJB</display-name>
<web-uri>firstEJB.war</web-uri>
<context-root>/firstEJB</context-root>
firstEJB.jar
HTTPD.CONF
.
.
LoadModule jk_module modules/mod_jk.dll
<IfModule mod_jk.c>
JKWorkersFile "d:/jboss-3.0.1RC1_tomcat-4.0.4/catalina/conf/workers.properties"
JKLogFile "d:/jboss-3.0.1RC1_tomcat-4.0.4/catalina/logs/jk.log"
JKLogLevel warn
JKMount /examples/* ajp13
JKMount /examples/servlet/* ajp13
JKMount /examples/*.jsp ajp13
JkMount /firstEJB/* ajp13
JkMount /appletEJB/* ajp13
JkMount /strutsSample/* ajp13
JkMount /account/* ajp13
JkMount /test2/* ajp13
JkMount /contador/* ajp13
.
.
.
Regards
Javier -
5. Re: jboss3.0/tomcat4.0 and apache 2.0
dudoes Jul 31, 2002 1:32 PM (in response to hansgill)Thank you, Mexico City and Mexico cowboy! Cheers!
But System seems running a little slowly.
I feel puzzled about what is the benefit of Intergration of Apache2.0 and Jboss3/Tomcat4.
and you? -
6. Re: jboss3.0/tomcat4.0 and apache 2.0
cbosner Aug 1, 2002 12:41 PM (in response to hansgill)I am fairly new to jboss. Should this work for modjk_so on linux also? I tried it using jboss-3.0.1RC1_tomcat-4.0.4. When I start jboss the console shows Ajp13Connectors being added and at certain intervals the console shows STDOUT message Thread[Ajp13Processor[8009][1], 5, AjpConnector[8009]. But when I try localhost/myservlet/servlet/myservlet, I get Object not Found (mozilla)
-
7. Re: jboss3.0/tomcat4.0 and apache 2.0
decob Aug 2, 2002 6:19 AM (in response to hansgill)Will this setup work with Apache 1.3?
I'm currently trying to get Jboss/tomcat working with my apache server using mod_webapp but it's doesn't seem to be working -
8. Re: jboss3.0/tomcat4.0 and apache 2.0
torreblanca Aug 5, 2002 11:33 AM (in response to hansgill)Hi Declan,
The Apache 1.3 configuration is different only in httpd.conf file and the mod_jk.dll.
HTTPD.CONF file you need to add the following line between LoadModule jk_module modules/mod_jk.dll and <IfModule mod_jk.c> :
AddModule mod_jk.c
I send you in attachment the mod_jk.dll (Version 1.3.X)
Regards
Javier -
9. Re: jboss3.0/tomcat4.0 and apache 2.0
decob Aug 6, 2002 2:55 PM (in response to hansgill)Cheers thanks Javier, managed to get it working.
Oh and for anyone else using apache and jboss on a *nix platform, just some useful mod_jk stuff.
Download the jakarta-tomcat-connectors from jakarta.apache.org, and using this doc, http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html#s6 ,
it should be easy enough to get a mod_jk.so -
10. Re: jboss3.0/tomcat4.0 and apache 2.0
maximilian Aug 8, 2002 7:59 PM (in response to hansgill)Hi, I've tried Javier's setup for Apache, but I can't get Apache to process the regular JSP files now (404 error). With just Tomcat/Apache everything worked fine for me, and the "examples" JSPs execute, but with Jboss the lines:
JkMount /*.jsp ajp13
JKMount /examples/servlet/* ajp13
in the httpd.conf doesn't seem to have the same effect, and Tomcat doesn't process the JSP anymore.
Must everything now be defined with application.xml?
Isn't the general idea with this trio that Apache takes care of regular HTML and such, Tomcat catches JSP and servlets that aren't part of EJBs (which Jboss takes care of)? Am I missing something? -
11. Re: jboss3.0/tomcat4.0 and apache 2.0
kehua Aug 9, 2002 12:24 AM (in response to hansgill)where can I get JBoss-3.0.1rc1_Tomcat-4.0.4?
-
12. Re: jboss3.0/tomcat4.0 and apache 2.0
tsangcn Aug 9, 2002 6:59 AM (in response to hansgill)Torreblanca's file (mod_jk.dll) works for Apache 2.0.39 in Win2000.
Anybody get a mod_jk.so workable for Apache 2.0.39 in Linux (Red Hat 7.3)
I have try to build one from jakarta-tomcat-connectors but failed. -
13. Re: jboss3.0/tomcat4.0 and apache 2.0
torreblanca Aug 12, 2002 12:14 PM (in response to hansgill)Maximilian,
You need to follow the structure of JAR file, WAR file and EAR file.
EJB classes : JAR file.
JSP and/or Servlet and EJB classes : WAR file.
JAR file, WAR file and application.xml : EAR file.
In application.xml file you need configurate web-uri, ejb and context-root.
Regards
Javier -
14. Re: jboss3.0/tomcat4.0 and apache 2.0
torreblanca Aug 12, 2002 12:18 PM (in response to hansgill)Kevin,
You can get JBoss-3.0.1rc1_tomcat-4.0.4 at :
http://sourceforge.net/project/showfiles.php?group_id=22866
Regards
Javier