-
30. Re: May I integrate Apache + Tomcat + JBoss ?
tclouser Feb 1, 2002 11:03 AM (in response to dmaster)virtue,
I leave my DocumentRoot pointed at <install location>/Apache/htdocs. If I have static content to serve, that is where its going to be served from.
TC -
31. Re: May I integrate Apache + Tomcat + JBoss ?
porkkodi Feb 2, 2002 7:19 AM (in response to dmaster)I am using JBoss 2.4.4 Tomcat 4.0.1 with webapp connector. I have changed my jboss.jcml and httpd.conf as specified in this forum. But when I try to run my apache after starting jboss, it throws continuous exceptions in jboss window (As specified by one of the member).
Can any one help me how to configure JBoss 244 - Tomcat 401 - Apache ? (Some of the threads mentioned in this group are missing ...)
Thanks in advance,
Ganesh Pandian -
32. Re: May I integrate Apache + Tomcat + JBoss ?
porkkodi Feb 2, 2002 7:30 AM (in response to dmaster)Thanks - I followed the same (I am using in Windows 2000). But when I try to start apache after starting JBoss (run with catalina), the following exception is thrown in JBoss window, continuously.
[ERROR,EmbeddedCatalinaServiceSX] [org.apache.catalina.connector.warp.WarpConfigurationHa
dler] Error deploying web application "jboss" under <http://gpandian:80/jboss/>
[ERROR,EmbeddedCatalinaServiceSX] [org.apache.catalina.connector.warp.WarpConfigurationHa
dler] Cannot find "C:\JBoss-2.4.4_Tomcat-4.0.1\catalina\webapps\jboss" for appl. "jboss"
ost "gpandian"
Can any one help me ???
Ganesh Pandian -
33. Re: May I integrate Apache + Tomcat + JBoss ?
jtwomey Feb 2, 2002 3:23 PM (in response to dmaster)Use mod_jk instead. It works.It works. It works.
See my post in the FAQ forum:
http://main.jboss.org/thread.jsp?forum=67&thread=4964
I have been using mod_jk with no issues. In fact, I use mod_webapp with a solo Tomcat and I think mod_jk may work a little better? It seems faster?
Of course this is an uncontrolled experiment/comparison :). -
34. Re: May I integrate Apache + Tomcat + JBoss ?
virtue Feb 4, 2002 9:06 AM (in response to dmaster)TC and people,
Sorry to bother again...
I haven't managed to set Apache to serve the static files when using WarpConnector. The images still appear broken, no matter where I set Apache's document root to. Also, JBoss seems to ignore the webapps directory in Catalina. This can be noticed in the following error:
<font color=red>
[ERROR,EmbeddedCatalinaServiceSX] [org.apache.catalina.connector.warp.WarpConfig
urationHandler] Cannot find "D:\Java\JBoss-2.4.4_Tomcat-4.0.1\catalina\examples" for appl. "examples" host "localhost"
But if I change the context entry in httpd.conf to this :
WebAppDeploy webapps/examples MyConn /examples
It works, although static contents are not accessible.
Nevertheless, mod_jk works flawlessly.
Is there a sure way to make this WarpConnector works in Jboss+Tomcat+Apache? I really want to use it, since Apache.org has recommended to prioritize Warp over mod_jk.
Sincerely,
VV -
35. Re: May I integrate Apache + Tomcat + JBoss ?
virtue Feb 4, 2002 9:14 AM (in response to dmaster)Sorry for the HTML tags, they're merely intended to emphasize some words in my previous post. Didn't know that they'd be posted as-is... :)
-
36. Re: May I integrate Apache + Tomcat + JBoss ?
tclouser Feb 4, 2002 4:21 PM (in response to dmaster)Virtue,
As jtwomey and I have suggested, and as you point out, mod_jk works as billed, mod_webapp doesn't. Until mod_webapp has achieved tighter integration with the JBoss' catalina wrapper, I have chosen to use mod_jk on projects I am working on.
TC -
37. Re: May I integrate Apache + Tomcat + JBoss ?
gkanel Feb 7, 2002 5:41 AM (in response to dmaster)Dear ampingbulabog,
what do you mean by this:
"One more thing. Deploy in the webapps directory of catalina."
Of course you mean to deploy just the .war files not any of the EJBs
Best Regards
George -
38. Re: May I integrate Apache + Tomcat + JBoss ?
srivastava_manu Feb 7, 2002 7:27 AM (in response to dmaster)As suggested by you in the FAQ section, I am trying to configure Apache+jboss2.4.4-tomcat4.01 stack using mod_jk but without success. Here are the changes I made(I am trying to be as detailed as posssible so it might be a long)
jboss.jcml:
===========
httpd.conf:
===========
include /home/manu/globetrades/JBoss-2.4.4_Tomcat-4.0.1/catalina/conf/mod_jk.conf-auto
Since mod_jk.conf-auto and workers.properties are not automatically generated, I basically copied an existing version from an earlier version and made appropriate changes.
Also since mod_jk.so is not available for tomcat 4.01 I am using libexec/mod_jk-3.3-ap13-noeapi.so.
My mod_jk.conf-auto settings are:
LoadModule jk_module libexec/mod_jk-3.3-ap13-noeapi.so
JkWorkersFile "/home/manu/globetrades/JBoss-2.4.4_Tomcat-4.0.1/catalina/conf/workers.properties"
JkLogFile "/home/manu/globetrades/JBoss-2.4.4_Tomcat-4.0.1/catalina/logs/mod_jk.log"
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /jboss/*.jsp ajp13
I get the following error when I startup apache:
[Thu Feb 7 16:50:21 2002] [error] Connection "warpConnection" cannot connect
[Thu Feb 7 16:50:21 2002] [error] Cannot open connection "warpConnection"
[Thu Feb 7 16:50:21 2002] [error] Connection "warpConnection" cannot connect
[Thu Feb 7 16:50:21 2002] [error] Cannot open connection "warpConnection"
[Thu Feb 7 16:50:21 2002] [error] Connection "warpConnection" cannot connect
[Thu Feb 7 16:50:21 2002] [error] Cannot open connection "warpConnection"
[Thu Feb 7 16:50:21 2002] [notice] Apache/1.3.19 (Unix) mod_jk/1.1.0 configured -- resuming normal operations
[Thu Feb 7 16:50:21 2002] [error] Connection "warpConnection" cannot connect.
Why does it try to establish a warp connection?
Secondly when jboss starts up it gives the following message:
[16:02:36,134,EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP addresses
[16:02:36,136,EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background thread
[16:02:36,353,EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting background thread
[16:02:36,356,EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background thread
[16:02:36,358,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background thread
[16:02:36,361,EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background thread
[16:02:36,363,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background thread
[16:02:36,365,EmbeddedCatalinaServiceSX] Ajp13Connector[8009] Opening server socket on all host IP addresses
[16:02:36,366,EmbeddedCatalinaServiceSX] Ajp13Connector[8009] Starting background thread
[16:02:36,469,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][0] Starting background thread
[16:02:36,471,EmbeddedCatalinaServiceSX] Ajp13Processor[8009][0] Background thread has been started
Since port 8080 is blocked ny HTTPConnector(I don't really know if I want it. And I don't know how to disable it), apache cannot come up on the same port.I am running apache at port 8888.
http://localhost:8888/index.jsp and http://localhost:8888/jboss/ gives the following error:
WebApp: Error 404
(File: wa_request.c Line: 197)
Web-application not yet deployed
The following works(http connector) fine though:
http://localhost:8080/jboss/index.html and I am also able to execute the examples.
Please do let me know where I am going wrong.
Thanks and Regards
Manu -
39. Re: May I integrate Apache + Tomcat + JBoss ?
bytor2002 Feb 8, 2002 10:53 AM (in response to dmaster)Is it possible that you still have the WarpConnector commands in your httpd.conf? The messages in the JBoss log file look fine to me -- I see the same messages in my log file and it is working very well. The apache error talking about a WebApp is a problem -- the mod_jk connector does not use a WebApp - so you'll need to get rid of that error as well. Again, I would remove any unneeded connectors that you have defined in your httpd.conf file.
-
40. Re: May I integrate Apache + Tomcat + JBoss ?
ampingbulabog Feb 11, 2002 9:17 PM (in response to dmaster)> Dear ampingbulabog,
>
> what do you mean by this:
>
> "One more thing. Deploy in the webapps directory of
> catalina."
>
> Of course you mean to deploy just the .war files not
> any of the EJBs
>
> Best Regards
> George
What i mean is when you deploy using the webapp module's deploy directive it must be placed in the webapps directory of catalina.
And of course no ejbs. -
41. Re: May I integrate Apache + Tomcat + JBoss ?
srivastava_manu Feb 12, 2002 8:07 AM (in response to dmaster)Thanks bytor2002. I started from scratch the entire procedure and it is now wroking fine.
regards
Manu -
42. Re: May I integrate Apache Tomcat JBoss ?
srivastava_manu Feb 15, 2002 7:26 AM (in response to dmaster)Thanks everbody. I am attaching a document which has helped me to make the complete stack work.
rgds
manu -
43. Re: May I integrate Apache + Tomcat + JBoss ?
martha_elva Mar 12, 2002 5:08 PM (in response to dmaster)Hi, I have integrated Apache and Tomcat 4.0.3, well more or less, I add in httpd.conf
WebAppConnection conn warp localhost:8008
WebAppDeploy jboss conn /jboss
WebAppInfo /webapp-info
And I tried to check the configuration with apache specific with apachectl configtest, tells me in the lines:
WebAppDeploy jboss conn /jboss
and
WebAppInfo /webapp-info
that "Invalid port number (p<1) No "Port" statement found.
So, I decided to erase both lines, and I can execute examples of jsp and servlets in tomcat and my webserver works together with tomcat, but I havent run jboss.
I really dont know what is my problem, could you help me please
Another question, what order I have to start servers: tomcat, apache and jboss or what order I have to take. -
44. Re: May I integrate Apache + Tomcat + JBoss ?
rbrindl Mar 13, 2002 9:59 AM (in response to dmaster)> code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX
> name="DefaultDomain:service=EmbeddedTomcat">
>
> className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" minProcessors="5" maxProcessors="75"
> acceptCount="10" debug="1" />
>
>
I tried that, but after inserting those lines into jboss.jcml, i got the following exception complaining about a not well-formed configuration file (i dont know which one it means), when starting jboss/catalina (using JBoss-2.4.4_Tomcat-4.0.1) :
[15:39:01,544,EmbeddedCatalinaServiceSX] Starting
[15:39:01,545,EmbeddedCatalinaServiceSX] Starting EmbeddedCatalinaSX....
[15:39:01,545,EmbeddedCatalinaServiceSX] Setting catalina debug level to: 0
[15:39:01,668,EmbeddedCatalinaServiceSX] Setting catalina.home to: /usr/local/JBoss-2.4.4_Tomcat-4.0.1/catalina
[15:39:01,906,EmbeddedCatalinaServiceSX] Building Http engine and connector
[15:39:02,738,Default] PARSE error at line 1 column 1
[15:39:02,739,Default] org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
[15:39:02,778,EmbeddedCatalinaServiceSX] Stopped
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:753)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:326)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:101)
at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
at org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.java:65)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.initCatalina(EmbeddedCatalinaServiceSX.java:327)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(EmbeddedCatalinaServiceSX.java:244)
at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
at $Proxy0.start(Unknown Source)
at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.Main.(Main.java:208)
at org.jboss.Main$1.run(Main.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:106)
[15:39:02,784,ConfigurationService] Unexpected error
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:753)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:326)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:101)
at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
at org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.java:65)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.initCatalina(EmbeddedCatalinaServiceSX.java:327)
at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(EmbeddedCatalinaServiceSX.java:244)
at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
at $Proxy0.start(Unknown Source)
at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at org.jboss.Main.(Main.java:208)
at org.jboss.Main$1.run(Main.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:106)
Every xml-file in the whole configuration IS well-formed. or did i miss something