Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread David Smith

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread Caldarale, Charles R
> From: Steve R Burrus [mailto:[EMAIL PROTECTED] 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread 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.


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread Hassan Schroeder

On 9/11/06, Greg Johnson <[EMAIL PROTECTED]> 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  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread David Smith


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]