Discussion:
jsvc + Tomcat vs Apache + Tomcat
Greg Johnson
2006-09-11 17:07:46 UTC
Permalink
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?
David Smith
2006-09-11 17:47:13 UTC
Permalink
Post by Greg Johnson
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: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Hassan Schroeder
2006-09-11 17:47:15 UTC
Permalink
Post by Greg Johnson
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 ------------------------ ***@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Steve R Burrus
2006-09-11 19:39:15 UTC
Permalink
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.
Post by Greg Johnson
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: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Caldarale, Charles R
2006-09-11 19:45:31 UTC
Permalink
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: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
David Smith
2006-09-11 19:51:24 UTC
Permalink
See the Commons-Daemon project:

http://jakarta.apache.org/commons/daemon

--David
Post by Steve R Burrus
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.
Post by Greg Johnson
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: ***@tomcat.apache.org
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org

Loading...