Apache Tomcat integration-please help
I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? thanks, ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache Tomcat integration-please help
On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? This is my understanding of WebAppConnection and WebAppDeploy (corrections welcome :-): The second argument to the WebAppDeploy directive (here conn) must be a defined connection per a WebAppConnection directive (the first argument of WebAppConnection specifies the connection). That is, WebAppConnection connection protocol host:port defines a connection -- named connection, using protocol (warp is the only possibility currently, I believe), available at host:port -- and WebAppDeploy context connection url-prefix indicates that URLs that begin with url-prefix belong to context and should be passed to connection. Anyway, although you should understand at least the basics of the above, the gist of it is you should change conn to warpConnection. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat integration-please help
it should be: WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples warpConnection /examples since you declare your WebAppConnection as warpConnection. Also, are you sure 8080 is the correct port? The default for mod_webapp is 8008, unless you changed it in the server.xml file. Finally, i believe that the 'Invalid virtual host name' error is caused because you put the WebAppDeploy statement before the 'ServerName' directive in the httpd.conf file. I had that error once and that was the cause. I put my WebAppDeploy statements after the base directory config, and it works fine. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 12:42 PM To: Tomcat Users List Subject: Re: Apache Tomcat integration-please help On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? This is my understanding of WebAppConnection and WebAppDeploy (corrections welcome :-): The second argument to the WebAppDeploy directive (here conn) must be a defined connection per a WebAppConnection directive (the first argument of WebAppConnection specifies the connection). That is, WebAppConnection connection protocol host:port defines a connection -- named connection, using protocol (warp is the only possibility currently, I believe), available at host:port -- and WebAppDeploy context connection url-prefix indicates that URLs that begin with url-prefix belong to context and should be passed to connection. Anyway, although you should understand at least the basics of the above, the gist of it is you should change conn to warpConnection. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache Tomcat integration-please help
UNfortunately I have tried that at it did not help. Anymore suggestions would be wonderful, cause I am stumped. Maybe does it have something to do with my apache install? thanks ryan On Thu, 18 Jul 2002, Milt Epstein wrote: On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? This is my understanding of WebAppConnection and WebAppDeploy (corrections welcome :-): The second argument to the WebAppDeploy directive (here conn) must be a defined connection per a WebAppConnection directive (the first argument of WebAppConnection specifies the connection). That is, WebAppConnection connection protocol host:port defines a connection -- named connection, using protocol (warp is the only possibility currently, I believe), available at host:port -- and WebAppDeploy context connection url-prefix indicates that URLs that begin with url-prefix belong to context and should be passed to connection. Anyway, although you should understand at least the basics of the above, the gist of it is you should change conn to warpConnection. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache Tomcat integration-please help
On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: UNfortunately I have tried that at it did not help. Anymore suggestions would be wonderful, cause I am stumped. Maybe does it have something to do with my apache install? Well, that *was* a problem, but maybe it wasn't the only one. Try commenting out those lines, and see what effect that has. Are those the last lines in your conf file? Maybe you've got a different problem somewhere else in your conf file, and it's just reporting it there because it's the last line. The error message (are you still getting the same one?) indicates it's something related to virtual hosts, so that would be a place to focus. Of course, then you're talking about an apache problem, not a tomcat problem. On Thu, 18 Jul 2002, Milt Epstein wrote: On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? This is my understanding of WebAppConnection and WebAppDeploy (corrections welcome :-): The second argument to the WebAppDeploy directive (here conn) must be a defined connection per a WebAppConnection directive (the first argument of WebAppConnection specifies the connection). That is, WebAppConnection connection protocol host:port defines a connection -- named connection, using protocol (warp is the only possibility currently, I believe), available at host:port -- and WebAppDeploy context connection url-prefix indicates that URLs that begin with url-prefix belong to context and should be passed to connection. Anyway, although you should understand at least the basics of the above, the gist of it is you should change conn to warpConnection. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache Tomcat integration-please help
The lack of a ServerName tag and the warpConnection instead of conn seemed to be my problem i am up and running thanks for your help! ryan On Thu, 18 Jul 2002, Milt Epstein wrote: On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: UNfortunately I have tried that at it did not help. Anymore suggestions would be wonderful, cause I am stumped. Maybe does it have something to do with my apache install? Well, that *was* a problem, but maybe it wasn't the only one. Try commenting out those lines, and see what effect that has. Are those the last lines in your conf file? Maybe you've got a different problem somewhere else in your conf file, and it's just reporting it there because it's the last line. The error message (are you still getting the same one?) indicates it's something related to virtual hosts, so that would be a place to focus. Of course, then you're talking about an apache problem, not a tomcat problem. On Thu, 18 Jul 2002, Milt Epstein wrote: On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? This is my understanding of WebAppConnection and WebAppDeploy (corrections welcome :-): The second argument to the WebAppDeploy directive (here conn) must be a defined connection per a WebAppConnection directive (the first argument of WebAppConnection specifies the connection). That is, WebAppConnection connection protocol host:port defines a connection -- named connection, using protocol (warp is the only possibility currently, I believe), available at host:port -- and WebAppDeploy context connection url-prefix indicates that URLs that begin with url-prefix belong to context and should be passed to connection. Anyway, although you should understand at least the basics of the above, the gist of it is you should change conn to warpConnection. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]