Re: Proxy settings for Tomcat's JVM

2004-07-29 Thread Sasha Borodin
Let me state the question in a more general way:

If you wanted to pass JVM arguments, where would you do it?  Does the
Tomcat5 NT service use the JAVA_OPTS environment variable?  Has anyone had
success using deployment.properties:

http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/proper
ties.html

Thanks,

-Sasha Borodin


 From: Sasha Borodin [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Date: Thu, 29 Jul 2004 11:05:49 -0500
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Proxy settings for Tomcat's JVM
 
 Can anyone tell me the best place (from a maintenance perspective) to set
 http/ftp/etc proxy settings for the JVM in which tomcat runs?
 
 I'm talking about the settings that impact java.net.Socket operation (not
 the proxy settings found in server.xml).
 
 I know I can make a context listener that does something like this to get
 things set up:
 System.getProperties().put( ftpProxySet, true );
 System.getProperties().put( ftpProxyHost, myProxyMachineName );
 System.getProperties().put( ftpProxyPort, 85 );
 
 But this should be a deployment configuration; as far as I know, there's two
 ways to do it:
 A) either as a parameter to the JVM
 B) or in a jvm config file (deployment.properties)
 
 Has anyone had any luck with option B? I haven't...
 
 If you were to use option a, where would you store the arguments to the jvm?
 
 Thank you,
 
 -Sasha Borodin
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proxy settings for Tomcat's JVM

2004-07-29 Thread Dale, Matt

If you want to use JAVA_OPTS with a windows service you'll need to make registry 
edits. I'm not sure of the exact keys. I believe there is a tool that can configure it 
though.

If you start it on the command line then it will obey your environment variable or can 
be set in catalina.sh or catalina.bat

Ta
Matt

-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: 29 July 2004 17:26
To: Tomcat Users List
Subject: Re: Proxy settings for Tomcat's JVM


Let me state the question in a more general way:

If you wanted to pass JVM arguments, where would you do it?  Does the
Tomcat5 NT service use the JAVA_OPTS environment variable?  Has anyone had
success using deployment.properties:

http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/proper
ties.html

Thanks,

-Sasha Borodin


 From: Sasha Borodin [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 Date: Thu, 29 Jul 2004 11:05:49 -0500
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Proxy settings for Tomcat's JVM
 
 Can anyone tell me the best place (from a maintenance perspective) to set
 http/ftp/etc proxy settings for the JVM in which tomcat runs?
 
 I'm talking about the settings that impact java.net.Socket operation (not
 the proxy settings found in server.xml).
 
 I know I can make a context listener that does something like this to get
 things set up:
 System.getProperties().put( ftpProxySet, true );
 System.getProperties().put( ftpProxyHost, myProxyMachineName );
 System.getProperties().put( ftpProxyPort, 85 );
 
 But this should be a deployment configuration; as far as I know, there's two
 ways to do it:
 A) either as a parameter to the JVM
 B) or in a jvm config file (deployment.properties)
 
 Has anyone had any luck with option B? I haven't...
 
 If you were to use option a, where would you store the arguments to the jvm?
 
 Thank you,
 
 -Sasha Borodin
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Proxy through apache not working correctly

2004-02-27 Thread Asif Chowdhary
Hi,

I put my application context
and it works fine.

ProxyPass /context http://mysite.net:8080
ProxyPassReverse /context http://mysite.net:8080

-Original Message-
From: Michael Forster [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: Proxy through apache not working correctly




-Original Message-
I am having problems with Apache and Tomcat,
I am running Apache with many websites, one needs to use Tomcat.
I had the setting as such using Virtual name servers

VirtualHost www.mysite.net:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/httpd/htdocs/sites/mysite/
ServerName www.mysite.net
ProxyPass / http://mysite.net:8080
ProxyPassReverse / http://mysite.net:8080
/VirtualHost

This works to an extent

if you connect to www.mysite.net:8080 you get the tomcat home page in full
all graphics displaying.

if you connect to www.mysite.net you get the tomcat home page but no
graphics

If you try to ask for the graphic directly you get an error 400 Unrecognised
Response from Server...

if you change the ProxyPass to /webapps it works fully and serves the images
has anyone any idea why?

Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proxy through apache not working correctly

2004-02-27 Thread Michael Forster
It works correctly for me but I want the context to be / not /webapps
Like I said it works for the jsp page but the img files inside are not sent
and they produce a

Bad Request
Your browser sent a request that this server could not understand.

error (400 Bad Request)


 -Original Message-
 From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
 Sent: 27 February 2004 16:24
 To: Tomcat Users List
 Subject: RE: Proxy through apache not working correctly


 Hi,

 I put my application context
 and it works fine.

 ProxyPass /context http://mysite.net:8080
 ProxyPassReverse /context http://mysite.net:8080

 -Original Message-
 From: Michael Forster [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 27, 2004 11:14 AM
 To: [EMAIL PROTECTED]
 Subject: Proxy through apache not working correctly




 -Original Message-
 I am having problems with Apache and Tomcat,
 I am running Apache with many websites, one needs to use Tomcat.
 I had the setting as such using Virtual name servers

 VirtualHost www.mysite.net:80
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/httpd/htdocs/sites/mysite/
 ServerName www.mysite.net
 ProxyPass / http://mysite.net:8080
 ProxyPassReverse / http://mysite.net:8080
 /VirtualHost

 This works to an extent

 if you connect to www.mysite.net:8080 you get the tomcat home page in full
 all graphics displaying.

 if you connect to www.mysite.net you get the tomcat home page but no
 graphics

 If you try to ask for the graphic directly you get an error 400
 Unrecognised
 Response from Server...

 if you change the ProxyPass to /webapps it works fully and serves
 the images
 has anyone any idea why?

 Mike.

 -BEGIN GEEK CODE BLOCK-
 Version: 3.12
 GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
 O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
 G e+ h++ r+++ y+++
 --END GEEK CODE BLOCK--
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proxy through apache not working correctly

2004-02-27 Thread Michael Forster
In both cases whether it is /webapps or /  on the server XML the context is
set to
!-- Tomcat Root Context --
  Context path=/ docBase=ROOT debug=0
  /Context

it seems that if the proxypass is set to / it doesnt work (the graphics are
also available from apache as / when in /webapps config.

It seems that because the proxypass is there it cannot understand requests
for non jsp/bean requests.


 -Original Message-
 From: Michael Forster [mailto:[EMAIL PROTECTED]
 Sent: 27 February 2004 16:49
 To: Tomcat Users List
 Subject: RE: Proxy through apache not working correctly


 It works correctly for me but I want the context to be / not /webapps
 Like I said it works for the jsp page but the img files inside
 are not sent
 and they produce a

 Bad Request
 Your browser sent a request that this server could not understand.

 error (400 Bad Request)


  -Original Message-
  From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
  Sent: 27 February 2004 16:24
  To: Tomcat Users List
  Subject: RE: Proxy through apache not working correctly
 
 
  Hi,
 
  I put my application context
  and it works fine.
 
  ProxyPass /context http://mysite.net:8080
  ProxyPassReverse /context http://mysite.net:8080
 
  -Original Message-
  From: Michael Forster [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 27, 2004 11:14 AM
  To: [EMAIL PROTECTED]
  Subject: Proxy through apache not working correctly
 
 
 
 
  -Original Message-
  I am having problems with Apache and Tomcat,
  I am running Apache with many websites, one needs to use Tomcat.
  I had the setting as such using Virtual name servers
 
  VirtualHost www.mysite.net:80
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /usr/local/httpd/htdocs/sites/mysite/
  ServerName www.mysite.net
  ProxyPass / http://mysite.net:8080
  ProxyPassReverse / http://mysite.net:8080
  /VirtualHost
 
  This works to an extent
 
  if you connect to www.mysite.net:8080 you get the tomcat home
 page in full
  all graphics displaying.
 
  if you connect to www.mysite.net you get the tomcat home page but no
  graphics
 
  If you try to ask for the graphic directly you get an error 400
  Unrecognised
  Response from Server...
 
  if you change the ProxyPass to /webapps it works fully and serves
  the images
  has anyone any idea why?
 
  Mike.
 
  -BEGIN GEEK CODE BLOCK-
  Version: 3.12
  GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
  O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
  G e+ h++ r+++ y+++
  --END GEEK CODE BLOCK--
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Proxy Server

2003-04-02 Thread WIPRO Anil Gandhi
Hi,
 In tomcat's server.xml 

 !-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8082 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 connectionTimeout=6
   proxyPort=80/
--

Uncomment this and try giving proxy port. otherwise look for  more info under jakarta 
tomcat's site. Hope this helps.

Thanks
Anil



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 12:23 PM
To: Tomcat Users List
Subject: Proxy Server


**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Hi
My organization have a proxy server, and I have just deploy my application
on tomcat 4.18.
But my application only run if I put the IP address on the Exceptions of
Proxy Settings on IE5.
 
Anyone knows, how can I run my application without adding the IP Address!!!.
 
Thanks
AAM
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: proxy and sessions problem

2003-03-07 Thread Fabio Mengue
I have the same configuration and mine works well (ie, the JSESSIONID 
get/set works fine). I have something like

VirtualHost _default_:443

#  General setup for the virtual host
DocumentRoot /www/apache/htdocs
ServerName www.myserver.unicamp.br
ServerAdmin [EMAIL PROTECTED]
ErrorLog /www/apache/logs/error_log
TransferLog /www/apache/logs/access_log
ProxyRequests Off

ProxyPass / http://tomcat01.sist.unicamp.br:8080/
ProxyPassReverse / http://tomcat01.sist.unicamp.br:8080/
...
/VirtualHost
And my Apache server is one firewall away from the Tomcat servers.

Fabio.

Gaston Escobar wrote:

Sorry, I've made a mistake, I'm not using mod_jk, I'm just using mod_proxy.
So, the only possibilty I have is to change from proxy pass to mod_jk?




-Mensaje original-
De: p niemandt [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 06 de Marzo de 2003 11:36 a.m.
Para: Tomcat Users List
Asunto: Re: proxy and sessions problem
Don't use both proxy pass and mod_jk: use either one or the other.

To keep your sessions, you will need to use mod_jk.

Sadly this is about the extend of my advice: other people on the list
might have better advice. I know I had to change from proxy pass to
mod_jk to keep my session
On Thu, 2003-03-06 at 13:57, Gaston Escobar wrote:
 

(tomcat 4.1.18 + apache 1.3 + mod_jk + Linux + Proxy via Apache ProxyPass)
I have the following scenario.:
A main server that runs Apache with mod_proxy:
ProxyPass /tomcat http://mytomcatserver
ProxyPassReverse /tomcat http://mytomcatserver
When someone request an URL containing /tomcat then apache redirects the
call to Tomcat server.
The problem is that with above approach, I lost session id?s
I also added proxyName=mainserver and Proxyport=80 to the HTTP
   

connector
 

under server.xml, but no luck.

Can someone help me to fix this?

Thanks a lot

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

--
p niemandt [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]

[The First Rule of Program Optimization] Don't do it.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: proxy and sessions problem

2003-03-06 Thread p niemandt
Don't use both proxy pass and mod_jk: use either one or the other.

To keep your sessions, you will need to use mod_jk.

Sadly this is about the extend of my advice: other people on the list
might have better advice. I know I had to change from proxy pass to
mod_jk to keep my session

On Thu, 2003-03-06 at 13:57, Gaston Escobar wrote:
 (tomcat 4.1.18 + apache 1.3 + mod_jk + Linux + Proxy via Apache ProxyPass)
 I have the following scenario.:
 A main server that runs Apache with mod_proxy:
 
 ProxyPass /tomcat http://mytomcatserver
 ProxyPassReverse /tomcat http://mytomcatserver
 
 When someone request an URL containing /tomcat then apache redirects the
 call to Tomcat server.
 
 The problem is that with above approach, I lost session id?s
 I also added proxyName=mainserver and Proxyport=80 to the HTTP connector
 under server.xml, but no luck.
 
 Can someone help me to fix this?
 
 Thanks a lot
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
p niemandt [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: proxy and sessions problem

2003-03-06 Thread p niemandt
Yip: 

As far as I understand it: using proxy pass, even though your request
will be forwarded to tomcat, it is still seen as 2 separate
applications: You will then have an Apache session and a Tomcat session,
and never the twain shall meet ...

You need to configure your web application so that is seen as only one
application, and the easiest to do this is to use something like mod_jk.


On Thu, 2003-03-06 at 14:43, Gaston Escobar wrote:
 Sorry, I've made a mistake, I'm not using mod_jk, I'm just using mod_proxy.
 So, the only possibilty I have is to change from proxy pass to mod_jk?
 
 
 
 
 
 -Mensaje original-
 De: p niemandt [mailto:[EMAIL PROTECTED]
 Enviado el: Jueves, 06 de Marzo de 2003 11:36 a.m.
 Para: Tomcat Users List
 Asunto: Re: proxy and sessions problem
 
 
 Don't use both proxy pass and mod_jk: use either one or the other.
 
 To keep your sessions, you will need to use mod_jk.
 
 Sadly this is about the extend of my advice: other people on the list
 might have better advice. I know I had to change from proxy pass to
 mod_jk to keep my session
 
 On Thu, 2003-03-06 at 13:57, Gaston Escobar wrote:
  (tomcat 4.1.18 + apache 1.3 + mod_jk + Linux + Proxy via Apache ProxyPass)
  I have the following scenario.:
  A main server that runs Apache with mod_proxy:
 
  ProxyPass /tomcat http://mytomcatserver
  ProxyPassReverse /tomcat http://mytomcatserver
 
  When someone request an URL containing /tomcat then apache redirects the
  call to Tomcat server.
 
  The problem is that with above approach, I lost session id?s
  I also added proxyName=mainserver and Proxyport=80 to the HTTP
 connector
  under server.xml, but no luck.
 
  Can someone help me to fix this?
 
  Thanks a lot
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 --
 p niemandt [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
p niemandt [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proxy

2003-02-27 Thread Jon Wingfield
try setting the following system properties:
*http.proxyHost*
*http.proxyPort*
http://java.sun.com/j2se/1.4/docs/guide/net/properties.html

Alberto A C A S Magalhães wrote:

**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]
Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.
www.mimesweeper.com
***
My network as a proxy connection.
When I deploy my application, I have to disconnect from proxy, to work?
How can I run my application without disconnecting from proxy?
Thanks
 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Proxy server options for SSL from Apache to Tomcat

2002-07-15 Thread Eddie Bush

I know absoluely nothing about your proxy stuff, but I hear mod_jk 
should work just fine with TC located on a seperate machine from apache. 
 You may be interested in ubeans.com/tomcat.  While he sets both of his 
up locally, he indicates what would have to be done to put (one) TC on 
another machine.  The same principal would apply, I think.

HTH,

Eddie

Brett G. Palmer wrote:

We have been using an Apache/Tomcat on the same machine configuration in
production for several months now.  We are starting to roll out more J2EE
components that work best with the servlet container and the J2EE container
on the same machine.  This means we would like to leave Apache at the front
of our configuration and move Tomcat/JBoss to an application server inside
the firewall.  We are currently having problems getting the proxy server on
Apache to work with SSL and Tomcat.  Does anyone have suggestions for
setting up this kind of configuration?  Can you still use a mod_jk
configuration for communication across servers or does mod_jk only work when
the servers are running on the same machine?

Thanks for your help,

Brett



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: proxy server time outs

2001-11-13 Thread Tom Drake

Depending on the proxy server, there may be a configurable
time-out.

Your web-application should spit back the HTTP header and
the beginning of your HTML document before you start the query.
Make sure to flush the output stream.

If this is not enough, and you are producing an HTML response,
you could launch a thread in your servlet that 
kicks out a space ' ' to the servlet output stream every so often.
When your query finally completes, do whatever is necessary
to stop the thread, then close the output stream and return.


- Original Message - 
From: Evan Swanson [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 5:30 PM
Subject: proxy server time outs


| I have an application that queries a very large database. 
| It takes a long time but there does not seem to be anyway around that.
| This all works fine until I use it with a proxy server. 
| 
| The proxy server times out because there is such a slow response.
| 
| Is there any way to tell the proxy server Hold on, its comming?
| 
| 
| --
| To unsubscribe:   mailto:[EMAIL PROTECTED]
| For additional commands: mailto:[EMAIL PROTECTED]
| Troubles with the list: mailto:[EMAIL PROTECTED]
| 
| 
| 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: proxy server time outs

2001-11-13 Thread Craig R. McClanahan



On Tue, 13 Nov 2001, Tom Drake wrote:

 Date: Tue, 13 Nov 2001 18:11:04 -0800
 From: Tom Drake [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  Tom Drake [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: proxy server time outs

 Depending on the proxy server, there may be a configurable
 time-out.

 Your web-application should spit back the HTTP header and
 the beginning of your HTML document before you start the query.
 Make sure to flush the output stream.

 If this is not enough, and you are producing an HTML response,
 you could launch a thread in your servlet that
 kicks out a space ' ' to the servlet output stream every so often.
 When your query finally completes, do whatever is necessary
 to stop the thread, then close the output stream and return.


One approach that is common on long-running queries is to run them in an
independent thread on the server, and then create an initial response page
that says Processing ... please wait.  At the top of the page, use a
meta tag to automatically refresh every ten seconds or so.

As each request comes in, the servlet checks if the query is complete yet.
If it's still running, return a Still processing ... page.  If it's
done, send the resulting report.

Of course, there are some much better options (IMHO):

* Redesign your application's queries so that they need to gather
  less information at a time, and are thus less prone to timeout.
  If you're having to retrieve 1000 rows for a big report, design
  things so that you can paginate the response 20 rows at a time.
  Users are *much* less likely to cancel and go elsewhere when the
  system is more responsive in this way.

* Work with your database administrator (DBA) to fine-tune the actual
  queries you are using to retrieve information.  I've seen 100x
  (two orders of magnitude) improvements in query response time from
  simple changes in the selection criteria, and/or additions of
  appropriate indexes to the database.

Craig McClanahan



 - Original Message -
 From: Evan Swanson [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 5:30 PM
 Subject: proxy server time outs


 | I have an application that queries a very large database.
 | It takes a long time but there does not seem to be anyway around that.
 | This all works fine until I use it with a proxy server.
 |
 | The proxy server times out because there is such a slow response.
 |
 | Is there any way to tell the proxy server Hold on, its comming?
 |
 |
 | --
 | To unsubscribe:   mailto:[EMAIL PROTECTED]
 | For additional commands: mailto:[EMAIL PROTECTED]
 | Troubles with the list: mailto:[EMAIL PROTECTED]
 |
 |
 |


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]