-
15. Re: May I integrate Apache + Tomcat + JBoss ?
ampingbulabog Jan 21, 2002 10:47 PM (in response to dmaster)tclouser,
is the jboss in your webappdeploy a directory or an ear file? -
16. Re: May I integrate Apache + Tomcat + JBoss ?
virtue Jan 25, 2002 5:39 AM (in response to dmaster)Dear All,
Based on example provided by TC on connecting JBoss+Tomcat<->Apache using mod_webapp, I've made necessary changes in jboss.jcml, but to no avail.
While with mod_jk (Ajp13Connector), I can only connect to http://localhost:8080/jboss, no Tomcat's contexts accessible.
Following message was printed at the console when I executed run_with_catalina.bat :
==========================================
[INFO,EmbeddedCatalinaServiceSX] Starting EmbeddedCatalinaSX....
[INFO,EmbeddedCatalinaServiceSX] Building Http engine and connector
[INFO,Default] Apache Tomcat/4.0.1
[INFO,EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP addresses
[INFO,EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] Ajp13Connector[8009] Opening server socket on all host IP addresses
[INFO,EmbeddedCatalinaServiceSX] Ajp13Connector[8009] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][0] Starting background thread
[INFO,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][0] Background thread has been started
===================================
Referring to above message, both HTTPConnector and AjpConnector were loaded. I don't know where this HTTPConnector came from, neither do I remember when I enabled it. Is it loaded by default? If so, can it be disabled? I want to have one & only webserver, that is, Apache. I've looked into the JBoss-2.4.4_Tomcat-4.0.1\jboss\conf\catalina\jboss.jcml, but couldn't find any entry related to it.
I also noticed that EmbeddedCatalina never reads the server.xml located in JBoss-2.4.4_Tomcat-4.0.1\catalina\conf directory. Is this by design?
Have I missed something here?
So, does anyone know how to disable the default HTTPConnector and use the WarpConnector instead?
Many thanks in advance,
VV -
17. Re: May I integrate Apache + Tomcat + JBoss ?
tclouser Jan 25, 2002 12:03 PM (in response to dmaster)virtue,
You would need to make an entry for each additional web application (war, or ear) you deploy:
WebAppDeploy arms conn /arms
WebAppDeploy jboss conn /jboss
The above provides connectivity to two web applications. Also remember that under the JBoss+Tomcat you need to deploy your .war/.ear to ..\jboss\deploy
HTH,
TC -
18. Re: May I integrate Apache + Tomcat + JBoss ?
tclouser Jan 25, 2002 12:05 PM (in response to dmaster)ampingbulabog,
jboss is the sample application that comes with the JBoss+Tomcat bundle. It is deployed as an .ear in the ..\jboss\deploy directory.
HTH,
TC -
19. Re: May I integrate Apache + Tomcat + JBoss ?
virtue Jan 25, 2002 10:51 PM (in response to dmaster)TC,
Thanks for your response. However, the real problem is I haven't been able to build the physical link between JBoss+Tomcat and Apache, via WarpConnector<->mod_webapp.
The WarpConnector didn't show up in the console when I executed run_with_catalina.bat. It should be noticable if it'd been loaded properly, am I right?
Thus, the real question is :
"What is needed to load the WarpConnector in order to talk to mod_webapp at Apache's side?"
Again, lots of thanks for your attention.
Sincerely,
VV -
20. Re: May I integrate Apache + Tomcat + JBoss ?
tclouser Jan 25, 2002 11:24 PM (in response to dmaster)Virtue,
Here are the relevant configs that worked for me...
httpd.conf (added the following):
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy arms conn /arms
WebAppDeploy jboss conn /jboss
WebAppInfo /webapp-info
jboss.jcml ():
<!-- Embedded Tomcat 4.x with Warp Connector -->
The only time I see something in the log is when I try to go to an URL that matches a defined pattern, but has not content (i.e. http://localhost/jboss), in which case I see:
[ERROR,EmbeddedCatalinaServiceSX] [org.apache.catalina.connector.warp.WarpConnec
tor] Connection from localhost/127.0.0.1:3002 to localhost/127.0.0.1:8008
[ERROR,EmbeddedCatalinaServiceSX] [org.apache.catalina.connector.warp.WarpConfig
urationHandler] Filter mappings (0)
[ERROR,EmbeddedCatalinaServiceSX] [org.apache.catalina.connector.warp.WarpConfig
urationHandler] Filter mappings (0)
But if I go to a good URL (http://localhost/jboss/index.html) everything works as expected.
HTH,
TC -
21. Re: May I integrate Apache + Tomcat + JBoss ?
syzero Jan 26, 2002 12:49 PM (in response to dmaster)TC,
I have try your config, it doesn't work, when I look at the
error_log of Apache, it says that the Handshake with warp
has problem, but I try the following config, it works.
8008
org.apache.catalina.connector.warp.WarpEngine
warp
if I am wrong, please correct me.
syzero -
22. Re: May I integrate Apache + Tomcat + JBoss ?
tclouser Jan 26, 2002 2:25 PM (in response to dmaster)syzero,
The config I listed works fine on my machine. I am running NT SP6 with JBoss 2.4.4+Tomcat4.0.1 and Apache 1.3.22. I have not error in my Apache Error Log.
But if your config works for you...go with it.
TC -
23. Re: May I integrate Apache + Tomcat + JBoss ?
tclouser Jan 26, 2002 2:29 PM (in response to dmaster)All,
The following two lines in my example:
WebAppDeploy arms conn /arms
WebAppDeploy jboss conn /jboss
The first represents an app I am working on. You should not include this in yours (unless of course you too have a web app with the context of arms.
The second line represents the context of the example shipped with the JBoss 2.4.4 + Tomcat 4.0.1 Bundle.
TC -
24. Re: May I integrate Apache + Tomcat + JBoss ?
ampingbulabog Jan 27, 2002 9:25 PM (in response to dmaster)I still have some filter mapping errors but other than that Tomcat+JBoss+Apache is working. I just applied the changes recommended by tc.
Would somebody know the cause of this filtermapping errors? -
25. Re: May I integrate Apache + Tomcat + JBoss ?
syzero Jan 28, 2002 2:10 AM (in response to dmaster)TC,
I am running on RedHat Linux 7.2, the version of JBoss,
Tomcat and Apache are the same as you, but I still get
error using your config. Finally, thanks for your input,
I learn much from you.
syzero. -
26. Re: May I integrate Apache + Tomcat + JBoss ?
gkanel Jan 28, 2002 5:35 AM (in response to dmaster)Dear TC,
As syzero I have tried the configuration in a linux box. To be more specific it is SuSE linux 7.1 (kernel 2.4.0) with Apache 1.3.14 with latest budle of Jboss 2.4.4 + Catalina. After too many tries I have no results. Do you know if anybody has succeded to configure the all of them (apache+catalina+jboss) in a linux box with the web_app module.
Best regards
George -
27. Re: May I integrate Apache + Tomcat + JBoss ?
tclouser Jan 28, 2002 10:41 AM (in response to dmaster)gkanel,
The answer to your question is found in earlier postings to this thread.
But since I am typing already, I will give you the answer. jtwomey tested mod_webapp without success on Linux. For the time being stick with mod_jk.
TC -
28. Re: May I integrate Apache + Tomcat + JBoss ?
ampingbulabog Jan 28, 2002 9:28 PM (in response to dmaster)gkanel,
I basically followed TC's setup and it worked. One more thing. Deploy in the webapps directory of catalina.
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
Even if you specified the full path it would append it to /usr/local/catalina/webapps. The catalina examples worked flawlessly except for some errors in filter mapping.
I also made the mistake of changing the jboss.jcml on the conf/jboss directory. I later found out that the jboss.jcml in the conf/catalina is the one loaded when you run the scrupt "run_with_catalina.sh".
One more mistake that i made is typing:
http://localhost/examples
instead of:
http://localhost/examples/
it worked.
I dont know why "http://localhost/examples" is not converted to "http://localhost/examples/" when the file examples is not found.
My Linux setup:
Redhat 7.2
apache 1.3
Jboss 2.4.4+Tomcat 4
mod_webapp.so -
29. Re: May I integrate Apache + Tomcat + JBoss ?
virtue Feb 1, 2002 9:17 AM (in response to dmaster)Dear all especially TC,
Thanks for your helps. I've successfully connected Jboss+Tomcat to Apache. And as TC said before about the filter mapping errors, they occured when I started Apache.
Although the WarpConnection has been established, however, static contents (eg: images) which are supposed to be served by Apache were unable to download, and the browser seemed constantly busy. I suspected Apache had failed to do its job for static requests due to some improper configurations.
What settings have I missed or misconfigured? What should I set the Document Root (httpd.conf) to? I currently have it set to D:\www\apps (which has been designated as Jboss deploy directory).
Many thanks for your concern,
VV