You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by m akeijou <ak...@netscape.net> on 2001/09/26 21:01:22 UTC

two tomcat-apache connections?

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?

Posted by David Smith <dn...@cornell.edu>.
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/


Tomcat 3.2.2 crashes with JDBC

Posted by Vara Prashanth <pr...@yahoo.com>.
Hello all:

I am facing a problem when I use JDBC to query a microsoft access database
on a win2K advanced server! I was testing the system for stability using
JMeter which essentially passes requests to a servlet. The servlet in turn
queries an access database and responds. When the number of threads
increases I get an error while closing the DB connection and Tomcat crashes
producing a log file. I will be happy to send out the log file if required.
Can you please help me solve the problem? Is this a problem with the access
driver or with access or with my servlet or tomcat(although very unlikely!)

Thanks in advance

Prashanth


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com