You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Greg Johnson <gr...@yahoo.com> on 2006/09/11 19:07:46 UTC
jsvc + Tomcat vs Apache + Tomcat
If I put Apache in front of Tomcat, can I run Tomcat on port 8080, yet have Apache serve the content on port 80?
My production web server is currently running standalone Tomcat on Linux. I chose to use jsvc to serve the content on port 80.
For the most part, jsvc works, but it has a few problems. Occasionally Tomcat won't stop when I shut it down. (I have to resort to killing the process by hand.) It doesn't happen often...but often enough to bug me.
Also, using jsvc makes it so that I can't deploy web apps via ant. Can't figure out my way around that.
So, is Apache in front of Tomcat my solution? (I'd like to get rid of jsvc and also be able to deploy via ant.)
If the "right answer for me" is to use both Tomcat and Apache, do I need to reconfigure my SSL certificates with Apache, or can I leave them with Tomcat?
Re: jsvc + Tomcat vs Apache + Tomcat
Posted by David Smith <dn...@cornell.edu>.
Greg Johnson wrote:
>If I put Apache in front of Tomcat, can I run Tomcat on port 8080, yet have Apache serve the content on port 80?
>
>My production web server is currently running standalone Tomcat on Linux. I chose to use jsvc to serve the content on port 80.
>For the most part, jsvc works, but it has a few problems. Occasionally Tomcat won't stop when I shut it down. (I have to resort to killing the process by hand.) It doesn't happen often...but often enough to bug me.
>Also, using jsvc makes it so that I can't deploy web apps via ant. Can't figure out my way around that.
>
>So, is Apache in front of Tomcat my solution? (I'd like to get rid of jsvc and also be able to deploy via ant.)
>
>If the "right answer for me" is to use both Tomcat and Apache, do I need to reconfigure my SSL certificates with Apache, or can I leave them with Tomcat?
>
>
>
I doubt putting up Apache HTTPd in front of Tomcat will solve anything
here. jsvc is not httpd lite. It's the binary code used to launch
tomcat as a service under a user other than root. Think if it as a
binary executeable catalina.sh. Let's take a look at the issues you are
seeing:
Tomcat won't shutdown. This can mean your code or a third party library
has spawned a thread and hasn't taken the proper provisions to shut it
down when tomcat stops. Threads spawned by web applications are the
responsibility of the web app to stop when the app is stopped. If you
wrote the code, a ServletContextListener can help manage these threads.
JSVC = can't deploy using ant. This could be a permissions issue. Does
the user tomcat is running under have permission to write on the webapps
directory?
--David
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jsvc + Tomcat vs Apache + Tomcat
Posted by Hassan Schroeder <ha...@gmail.com>.
On 9/11/06, Greg Johnson <gr...@yahoo.com> wrote:
> My production web server is currently running standalone Tomcat on Linux. I chose to use jsvc to serve the content on port 80.
You could use iptables to "re-route" port 80 traffic to Tomcat running
on a non-privileged port e.g. 8080...
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jsvc + Tomcat vs Apache + Tomcat
Posted by David Smith <dn...@cornell.edu>.
See the Commons-Daemon project:
http://jakarta.apache.org/commons/daemon
--David
Steve R Burrus wrote:
> I am sorry but I need to know what exactly this jsvc technolology is??
> I have frankly never heard of it ever before. I await your anticipated
> response.
>
> Greg Johnson wrote:
>
>> If I put Apache in front of Tomcat, can I run Tomcat on port 8080,
>> yet have Apache serve the content on port 80?
>>
>> My production web server is currently running standalone Tomcat on
>> Linux. I chose to use jsvc to serve the content on port 80.
>> For the most part, jsvc works, but it has a few problems.
>> Occasionally Tomcat won't stop when I shut it down. (I have to resort
>> to killing the process by hand.) It doesn't happen often...but often
>> enough to bug me.
>> Also, using jsvc makes it so that I can't deploy web apps via ant.
>> Can't figure out my way around that.
>>
>> So, is Apache in front of Tomcat my solution? (I'd like to get rid of
>> jsvc and also be able to deploy via ant.)
>>
>> If the "right answer for me" is to use both Tomcat and Apache, do I
>> need to reconfigure my SSL certificates with Apache, or can I leave
>> them with Tomcat?
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: jsvc + Tomcat vs Apache + Tomcat
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Steve R Burrus [mailto:burrus1@swbell.net]
> Subject: Re: jsvc + Tomcat vs Apache + Tomcat
>
> I am sorry but I need to know what exactly this jsvc
> technolology is??
Google is your friend (you should try it sometime). The first reference
returned:
http://jakarta.apache.org/commons/daemon/jsvc.html
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jsvc + Tomcat vs Apache + Tomcat
Posted by Steve R Burrus <bu...@swbell.net>.
I am sorry but I need to know what exactly this jsvc technolology is?? I
have frankly never heard of it ever before. I await your anticipated
response.
Greg Johnson wrote:
>If I put Apache in front of Tomcat, can I run Tomcat on port 8080, yet have Apache serve the content on port 80?
>
>My production web server is currently running standalone Tomcat on Linux. I chose to use jsvc to serve the content on port 80.
>For the most part, jsvc works, but it has a few problems. Occasionally Tomcat won't stop when I shut it down. (I have to resort to killing the process by hand.) It doesn't happen often...but often enough to bug me.
>Also, using jsvc makes it so that I can't deploy web apps via ant. Can't figure out my way around that.
>
>So, is Apache in front of Tomcat my solution? (I'd like to get rid of jsvc and also be able to deploy via ant.)
>
>If the "right answer for me" is to use both Tomcat and Apache, do I need to reconfigure my SSL certificates with Apache, or can I leave them with Tomcat?
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org