Re: two tomcat-apache connections?

2001-09-27 Thread michael . brohl


Hi,

you don't need to set up a second connection to deploy more applications.
Just add

WebAppDeploy  jsp   conn2  /jsp

under the first WebAppDeploy ... entry.


Regards

Michael Brohl





   

akeijou@netsca 

pe.net (mTo: [EMAIL PROTECTED]

akeijou) cc:   

 Subject: two tomcat-apache connections?   

26.09.2001 

21:01  

Please respond 

to tomcat-user 

   

   





red hat linux 7.1, apache 1.3.20 with mod_webapp, jakarta-tomcat 4.0

the tomcat-apache connection for /examples works with the following setting
in httpd.conf:
   WebAppConnection  conn  warp  myhostname:8008
   WebAppDeploy  examples  conn  /examples

now, i have another application /jsp that currently works as standalone,
i.e., http://myhostname:8080/jsp.

how do i set it up such that it also goes through apache?  i tried defining
another Apache-Connector service in server.xml with port 8009 then placed
another couple of lines in httpd.conf as follows:

   WebAppConnection  conn2 warp   myhostname:8009
   WebAppDeploy  jsp   conn2  /jsp

and restarted the servers.  was just guessing so i was not surprised that
it did not work.  the errors in the apache log in tomcat say that there are
errors in initializing naming contexts for /examples and /jsp so that the
context startup failed.  the error on the browser when accessing
http://myhostname/examples/ is the requested resource(/examples/) is not
found, which makes sense.  and the standalone tomcat, e.g.,
http://myhostname:8080/examples still worked.

question: how should i set up tomcat and apache to serve more than one app?
thanks,
--meg



__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/







Re: two tomcat-apache connections?

2001-09-27 Thread David Smith

WebAppConnection forms the communications channel between Tomcat and Apache, 
so only use it once in your httpd.conf file unless you have more than one 
Tomcat running.

WebAppDeploy is the line that matches URL's to specific tomcat contexts.  Use 
it for each application and have them all use the same connection.  
It's all described briefly, but effectively in the INSTALL.TXT file that 
comes with mod_webapp (the CVS source at least). 

--David Smith


On Wednesday 26 September 2001 03:01 pm, you wrote:
 red hat linux 7.1, apache 1.3.20 with mod_webapp, jakarta-tomcat 4.0

 the tomcat-apache connection for /examples works with the following setting
 in httpd.conf: WebAppConnection  conn  warp  myhostname:8008
WebAppDeploy  examples  conn  /examples

 now, i have another application /jsp that currently works as standalone,
 i.e., http://myhostname:8080/jsp.

 how do i set it up such that it also goes through apache?  i tried defining
 another Apache-Connector service in server.xml with port 8009 then placed
 another couple of lines in httpd.conf as follows:

WebAppConnection  conn2 warp   myhostname:8009
WebAppDeploy  jsp   conn2  /jsp

 and restarted the servers.  was just guessing so i was not surprised that
 it did not work.  the errors in the apache log in tomcat say that there are
 errors in initializing naming contexts for /examples and /jsp so that the
 context startup failed.  the error on the browser when accessing
 http://myhostname/examples/ is the requested resource(/examples/) is not
 found, which makes sense.  and the standalone tomcat, e.g.,
 http://myhostname:8080/examples still worked.

 question: how should i set up tomcat and apache to serve more than one app?
 thanks,
 --meg



 __
 Your favorite stores, helpful shopping tools and great gift ideas.
 Experience the convenience of buying online with Shop@Netscape!
 http://shopnow.netscape.com/

 Get your own FREE, personal Netscape Mail account today at
 http://webmail.netscape.com/




two tomcat-apache connections?

2001-09-26 Thread m akeijou

red hat linux 7.1, apache 1.3.20 with mod_webapp, jakarta-tomcat 4.0

the tomcat-apache connection for /examples works with the following setting in 
httpd.conf:
   WebAppConnection  conn  warp  myhostname:8008
   WebAppDeploy  examples  conn  /examples

now, i have another application /jsp that currently works as standalone, i.e., 
http://myhostname:8080/jsp.

how do i set it up such that it also goes through apache?  i tried defining another 
Apache-Connector service in server.xml with port 8009 then placed another couple of 
lines in httpd.conf as follows:

   WebAppConnection  conn2 warp   myhostname:8009
   WebAppDeploy  jsp   conn2  /jsp

and restarted the servers.  was just guessing so i was not surprised that it did not 
work.  the errors in the apache log in tomcat say that there are errors in 
initializing naming contexts for /examples and /jsp so that the context startup 
failed.  the error on the browser when accessing http://myhostname/examples/ is the 
requested resource(/examples/) is not found, which makes sense.  and the standalone 
tomcat, e.g., http://myhostname:8080/examples still worked.

question: how should i set up tomcat and apache to serve more than one app?
thanks,
--meg



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/