tomcat 5.0.28 redirect issue (error 302)

2005-10-10 Thread Tony Qian

All,

I installed jakarta-tomcat-5.0.28 on my PC and changed port to 8283 and 
added a simple servlet which has doGet and doPost.

I used a java program which uses httpclient to send doGet and doPost 
requests to that servlet. doGet worked well. However, I got following 
error msg for doPost request:

Oct 7, 2005 3:56:52 PM org.apache.commons.httpclient.HttpMethodBase 
processRedirectResponse
INFO: Redirect requested but followRedirects is disabled
The Status code = 302


Same program worked fine for tomcat 4. Any ideas?

Thanks in advance.

Tony


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



Balancer for redirect to other host

2005-10-05 Thread Jury Levykin

Hi,
I want use balancer for redirect all requests from mydomain.org to 
www.mydomain.org.


I try following configuration:
-- server.xml --
 ...
 Host name=www.mydomain.org appBase=webapps
   Context path= docBase=el-dimm reloadable=true/
 /Host

 Host name=mydomain.org appBase=webapps

   Context path= docBase=balancer reloadable=true/
 /Host
 ...
-
Balancer application have default configuration.

I receive error message after typing http://mydomain.org in the address 
line:

The requested resource (/) is not available._

_But if type http://mydomain.org/balancer - balancer working correct.

What I did not correct?
Please correct me.

Thanks,
Jury_
_

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



Redirect to the secure port within a serlvet

2005-09-22 Thread Antony GUILLOTEAU
I wanted to simulate a CLIENt-CERT realm to the browser with serlvet 
(response.setHeader(WWW-Authenticate, BASIC realm=\myName\)) but it seems 
not possible. So I want to basically redirect my request to SSL. 

I wish know how to redirect a request to the secure port within a serlvet but I 
don't want use init-parameter in the web.xml and so one.

Thanks


Unable to redirect from Windows 2003 server 64 bit and IIS 6.0 to Tomcat 4.1.31 using JK2 ajp1.3

2005-09-15 Thread Theby, Steve
Hi everyone,

 

Problem

We believe we have all components installed properly but requests for Tomcat
are not redirected.  There are no errors in the Tomcat stderr or stdout
logs, nor are any errors found in either the Windows application or system
event logs.  Requests to IIS root work and requests directly to Tomcat via
8080 work.  We have the same environment working ok on Windows 2003 server
32 bit.

 

Has anyone got Tomcat, JK2/ajp1.3 OR JK 1.2.14 working with IIS 6.0 under
Microsoft 2003 Windows 64 bit?

 

Thanks for your experience and ideas!

 

Steve

 

Environment Installed

 

Microsoft Windows 2003 server SP1 in 64 bit mode w/ all patches

IIS 6.0 - enabled for 32 bit child processes (instead of the default 64 bit
mode)

IIS 6.0 not in IIS 5.0 isolation mode (can't load isapi_redirector2.dll when
set on)

Tomcat 4.1.31

Tomcat connector - JK2 AJP/1.3 isapi_redirector2.dll (32 bit)

ISAPII filter (Isapi_redirector2.dll) loaded and green under IIS manager for
websites node

ISAPI web service extension set to ALLOWED

Registry entries under both 64 bit and 32 bit nodes are correct

HKLM\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector 2.0

HKLM\SOFTWARE\Wow6432bitnode\Apache Software Foundation\Jakarta Isapi
Redirector 2.0

Virtual directory created and working

Workers2.properties:

file=c:\Apache Group\Tomcat 4.1\logs\jk2.log

[shm]

info=Shared memory file. Required for multiprocess servers

file=c:\Apache Group\Tomcat 4.1\work\jk2.shm

size=100

[channel.socket:localhost:8009]

info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol

tomcatId=localhost:8009

[uri:/examples/*]

info=JSP examples, map requests for all JSP pages to Tomcat.

[uri:/servlets/*]

info=Map the whole webapp.

[uri:/srvConfig/*]

info= map server's config servlet to outside

[uri:/ae/GlmServlet/*]

info=Company.com azAccess

context=/ae/GlmServlet



Re: Why does tomcat redirect to welcome files

2005-09-07 Thread Mark Thomas

Jim Kennedy wrote:

Thanks Mark, found some good info.  Another question:

Is is possible to force a forwards for welcome pages with Tomcat.  Is there
an engine setting for that? Or would I be forced to change the Tomcat
source. I notice with other web servers (i.e. IIS) I can specify a default
page which returns HTTP 200 code instead of redirect codes.

Thanks


You'd need to change the source.

Mark


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



RE: Why does tomcat redirect to welcome files

2005-09-06 Thread Jim Kennedy
Thanks Mark, found some good info.  Another question:

Is is possible to force a forwards for welcome pages with Tomcat.  Is there
an engine setting for that? Or would I be forced to change the Tomcat
source. I notice with other web servers (i.e. IIS) I can specify a default
page which returns HTTP 200 code instead of redirect codes.

Thanks


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 04, 2005 3:19 PM
To: Tomcat Users List
Subject: Re: Why does tomcat redirect to welcome files

Jim Kennedy wrote:
 I have setup Tomcat to use index.html as the only welcome file.  I 
 noticed that the engine redirects to index.html.  I'm wondering why 
 that is the case.  I would prefer Status: HTTP/1.1 200 OK
 Not:  Status: HTTP/1.1 302 Moved Temporarily

spec quote section=SRV.9.10
The container may send the request to the welcome resource with a forward, a
redirect, or a container specific mechanism that is indistinguishable from a
direct request.
/spec-quote

There is also the issue of security constraints. See
http://marc.theaimsgroup.com/?l=tomcat-devm=110980317127394w=2 for a
discussion.



-
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]



Why does tomcat redirect to welcome files

2005-09-04 Thread Jim Kennedy
I have setup Tomcat to use index.html as the only welcome file.  I noticed
that the engine redirects to index.html.  I'm wondering why that is the
case.  I would prefer Status: HTTP/1.1 200 OK 
Not:  Status: HTTP/1.1 302 Moved Temporarily 
 
As the server response.  The are very good reasons for this as search engine
indexers don't like 302's.
 
I confirmed the above using
http://www.searchengineworld.com/cgi-bin/servercheck.cgi
A nice web tool that checks http header.
 
thanks for any help
 
 
Jim Kennedy
IT Consultant
 
 


Re: Why does tomcat redirect to welcome files

2005-09-04 Thread Mark Thomas

Jim Kennedy wrote:

I have setup Tomcat to use index.html as the only welcome file.  I noticed
that the engine redirects to index.html.  I'm wondering why that is the
case.  I would prefer Status: HTTP/1.1 200 OK 
Not:  Status: HTTP/1.1 302 Moved Temporarily 


spec quote section=SRV.9.10
The container may send the request to the welcome resource with a 
forward, a redirect, or a container specific mechanism that is 
indistinguishable from a direct request.

/spec-quote

There is also the issue of security constraints. See 
http://marc.theaimsgroup.com/?l=tomcat-devm=110980317127394w=2 for a 
discussion.




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



Redirect to 443

2005-08-23 Thread HHidvegi
Is posible to force redirect to 443 when a non-ssl request is received 
(without having a security-constraint )?

Thanks

RE: Redirect to 443

2005-08-23 Thread Peter Crowther
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Is posible to force redirect to 443 when a non-ssl request is 
 received (without having a security-constraint )?

You could, for example, write a filter for your webapp that checked
whether the protocol was secure on an icoming request and responded with
a redirect if not.

- Peter

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



redirect after login using form-based-auth

2005-08-09 Thread Paulo Neves
Hi,

Hi have tomcat 4.1.

It is possible to define a fixed url to redirect after login in
form-based-auth ?

Now they redirect to page where I try to access and need login, but if
page needs post values they give-me an error.


Thanks,
Paulo
-- 
--
Paulo Jorge Zagalo das Neves
Linux User # 61096
--

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



illogical redirect on Tomcat 4.1

2005-08-01 Thread Tom
My Tomcat 4.1.24 returns a 302 (redirect) status on all its physical 
files (so not JSPs or servlets), complete with a valid redirect path. 
Anyone seen this behaviour before?


It also happens on other systems, so it is an Tomcat/application issue. 
But since the application has nothing to do with the physical files...


Tom



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



Redirect HTTP to HTTPS

2005-08-01 Thread Faine, Mark
I know I can redirect HTTP to HTTPS by adding:
 
   user-data-constraint
transport-guarantee
 CONFIDENTIAL
   /transport-guarantee
  /user-data-constraint
 
to my web.xml but the problem is that this does not redirect when someone
just goes to a directory path.  I would like
 
http://servername/
 
to redirect to 
 
https://servername/
 
Thanks,
-Mark

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



Re: Redirect HTTP to HTTPS

2005-08-01 Thread Martin Bromley

Just create a filter (mapping it to /* for example so it gets applied to all 
requests), test for a secure connection with request.isSecure(), and if it 
isn't, redirect using response.sendRedirect.

Martin

Faine, Mark wrote:

I know I can redirect HTTP to HTTPS by adding:
 
   user-data-constraint

transport-guarantee
 CONFIDENTIAL
   /transport-guarantee
  /user-data-constraint
 
to my web.xml but the problem is that this does not redirect when someone

just goes to a directory path.  I would like
 
http://servername/
 
to redirect to 
 
https://servername/
 
Thanks,

-Mark

-
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: Issue with redirect..

2005-07-04 Thread Mark Thomas
Create an as simple as possible JSP that demonstrates this problem. It 
should be simple enough to post the JSP to the list.


Mark

Kannan Shastri wrote:

 Hi,
  I am running a JSF application on Tomcat 5.0.25...the problem is, i
 need to redirect using response.sendRedirect(url) , and i am getting
 an exception
 
  java.lang.IllegalStateException : Cannot forward after response has

 been committed.
 
  This same code is running fine on Websphere server, and when i check

 for response.isCommitted() , it returns false on Tomcat also.
  But still I am getting this error.
 
 can somebody advise?
 
 Cheers,
 
 kan
 


Kannan Shastri
Software Engineer
Computer Sciences Corporation

-
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: Issue with redirect..

2005-07-03 Thread Kannan Shastri
 Hi,
  I am running a JSF application on Tomcat 5.0.25...the problem is, i
 need to redirect using response.sendRedirect(url) , and i am getting
 an exception
 
  java.lang.IllegalStateException : Cannot forward after response has
 been committed.
 
  This same code is running fine on Websphere server, and when i check
 for response.isCommitted() , it returns false on Tomcat also.
  But still I am getting this error.
 
 can somebody advise?
 
 Cheers,
 
 kan
 

Kannan Shastri
Software Engineer
Computer Sciences Corporation

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



Fwd: Issue with redirect..

2005-07-01 Thread Kannan Shastri
-- Forwarded message --
From: Kannan Shastri [EMAIL PROTECTED]
Date: Jul 1, 2005 3:18 PM
Subject: Issue with redirect..
To: Tomcat Users List [EMAIL PROTECTED]


Hi,
 I am running a JSF application on Tomcat 5.0.25...the problem is, i
need to redirect using response.sendRedirect(url) , and i am getting
an exception

 java.lang.IllegalStateException : Cannot forward after response has
been committed.

 This same code is running fine on Websphere server, and when i check
for response.isCommitted() , it returns false on Tomcat also.
 But still I am getting this error.

can somebody advise?

Cheers,

kan


-- 
Kannan Shastri
Software Engineer
Computer Sciences Corporation

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



Force HTTP - HTTPS redirect Tomcat 4.1

2005-06-14 Thread Spruell, Darren-Perot
We use a vendor-supplied application that is bundled with Tomcat 4.1.29.
Although we have configured it with an SSL-capable HTTP/1.1 Connector on
port 443, we still have a connector listening on port 80 that allows
cleartext connections to the server as well. 

Is there a configuration possible by which we can redirect connections to
the cleartext port over to the SSL-enabled port? 

We had tried simply disabling the Connector on port 80 so that users would
have to connect on the SSL port, but Tomcat would not start up after that --
an error about the JVM exiting with status = 1.

Microsoft Windows Server 2003 Standard Edition

 java -version
java version 1.4.1_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=false redirectPort=443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /

!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443 minProcessors=5 maxProcessors=75
   enableLookups=false acceptCount=100 debug=0
scheme=https
   secure=true useURIValidationHack=false
disableUploadTimeout=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false keystoreFile=c:\cacerts
   keystorePass=changeit protocol=TLS /
/Connector

TIA,

--
DS


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



Redirect by configuration

2005-05-29 Thread Amihai Fuks
Hi,

Is there a standard way in Tomcat 5.5 (standalone) to configure a
context redirection? Meaning, I had a URL 
http://my-host:my-port/my-OLD-context/my-servlet and it changed
to 
http://my-host:my-port/my-NEW-context/my-servlet. Now, I do not
want an HTTP standard redirection, I only want the Tomcat (standalone)
to be able redirect by configuration! (Writing a Servlet that redirects
from /my-OLD-servlet is not what I need I want to delete the
/my-OLD-context directory.)

Regards, 

Amihai

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



Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread PAlvin
Removing the [R] from the RewriteRule breaks everything and no page
is served:

RewriteRule ^/$ /home.htm  **does not work**

I'm curious: how does everyone else map the domain request to an
actual page???

domain.com --to-- domain.com/home.htm

Everyone must be doing this, right?  What are other solutions for
doing this?

Pete



On Mon, 25 Apr 2005 08:13:19 +0200, Trond G. Ziarkowski wrote:
Hi,

try removing the [R] from your RewriteRule. If you read up on the
mod_rewrite docs, you should see that the [R] flag is causing the
redirect.

Trond

PAlvin wrote:

I'm currently using Tomcat 4.

When someone goes to my site, say, www.site.com, I'd like it run a
servlet for the home page instead of a static page (my entire site
is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I
created a re-write rule in the Apache configuration file like this:

RewriteEngine on
RewriteRule ^/$ /home.htm [R]

This works great, EXCEPT, that the browser is sent a redirect and I
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I DON'T
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:

www.site.com ---run-- www.site.com/home.htm

without a redirect?

How do I get www.site.com requests to go to Tomcat???

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'








-
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]







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



RE: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread Trung Nguyen
Put these lines into web.xml file

welcome-file-list
welcome-filehome.htm/welcome-file
/welcome-file-list

Hope this help!

Trung


-Original Message-
From: PAlvin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 5:31 PM
To: Tomcat Users List
Subject: Re: How get www.site.com homepage requests to forward to Tomcat
without a redirect?


Removing the [R] from the RewriteRule breaks everything and no page 
is served:

RewriteRule ^/$ /home.htm  **does not work**

I'm curious: how does everyone else map the domain request to an 
actual page???

domain.com --to-- domain.com/home.htm

Everyone must be doing this, right?  What are other solutions for 
doing this?

Pete



On Mon, 25 Apr 2005 08:13:19 +0200, Trond G. Ziarkowski wrote:
Hi,

try removing the [R] from your RewriteRule. If you read up on the
mod_rewrite docs, you should see that the [R] flag is causing the
redirect.

Trond

PAlvin wrote:

I'm currently using Tomcat 4.

When someone goes to my site, say, www.site.com, I'd like it run a
servlet for the home page instead of a static page (my entire site
is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I
created a re-write rule in the Apache configuration file like this:

RewriteEngine on
RewriteRule ^/$ /home.htm [R]

This works great, EXCEPT, that the browser is sent a redirect and I
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I DON'T
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:

www.site.com ---run-- www.site.com/home.htm

without a redirect?

How do I get www.site.com requests to go to Tomcat???

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'








-
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]







-
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: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread Jason Bainbridge
On 5/12/05, PAlvin [EMAIL PROTECTED] wrote:
 Removing the [R] from the RewriteRule breaks everything and no page
 is served:
 
 RewriteRule ^/$ /home.htm  **does not work**
 
 I'm curious: how does everyone else map the domain request to an
 actual page???
 
 domain.com --to-- domain.com/home.htm
 
 Everyone must be doing this, right?  What are other solutions for
 doing this?

Am I missing something here or do you just need:

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

in your web.xml or the same thing in Apache?



-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread PAlvin
Thanks, but it still doesn't work!  I removed the RewriteRule from
httpd.conf and added the welcome-file-list section to the web.xml
file.   Now, when I go to my vanilla domain (www.smartmicro.com) I
get this message:

Forbidden
You don't have permission to access / on this server.
Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.7b DAV/2 mod_jk/1.2.4
Server at www.smartmicro.com Port 80

It's as if Apache isn't even trying to forward the request to Tomcat.

What do you guys configure, next, to get www.domain.com requests to
be processed by Tomcat?

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'


On Thu, 12 May 2005 17:41:27 -0400, Trung Nguyen wrote:
Put these lines into web.xml file

welcome-file-list
welcome-filehome.htm/welcome-file
/welcome-file-list

Hope this help!

Trung


-Original Message-
From: PAlvin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 5:31 PM
To: Tomcat Users List
Subject: Re: How get www.site.com homepage requests to forward to
Tomcat
without a redirect?


Removing the [R] from the RewriteRule breaks everything and no page
is served:

RewriteRule ^/$ /home.htm  **does not work**

I'm curious: how does everyone else map the domain request to an
actual page???

domain.com --to-- domain.com/home.htm

Everyone must be doing this, right?  What are other solutions for
doing this?

Pete



On Mon, 25 Apr 2005 08:13:19 +0200, Trond G. Ziarkowski wrote:
Hi,

try removing the [R] from your RewriteRule. If you read up on the
mod_rewrite docs, you should see that the [R] flag is causing the
redirect.

Trond

PAlvin wrote:

I'm currently using Tomcat 4.

When someone goes to my site, say, www.site.com, I'd like it run a
servlet for the home page instead of a static page (my entire site
is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I
created a re-write rule in the Apache configuration file like
this:

RewriteEngine on
RewriteRule ^/$ /home.htm [R]

This works great, EXCEPT, that the browser is sent a redirect and
I
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I
DON'T
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:

www.site.com ---run-- www.site.com/home.htm

without a redirect?

How do I get www.site.com requests to go to Tomcat???

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'







---
-
-
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]







-
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]





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



Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread Lutz Zetzsche
Hi Peter,

Am Freitag, 13. Mai 2005 01:02 schrieb PAlvin:
 Thanks, but it still doesn't work!  I removed the RewriteRule from
 httpd.conf and added the welcome-file-list section to the web.xml
 file.   Now, when I go to my vanilla domain (www.smartmicro.com) I
 get this message:

 Forbidden
 You don't have permission to access / on this server.
 Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.7b DAV/2 mod_jk/1.2.4
 Server at www.smartmicro.com Port 80

 It's as if Apache isn't even trying to forward the request to Tomcat.

 What do you guys configure, next, to get www.domain.com requests to
 be processed by Tomcat?

So dou you use an Apache / Tomcat combination connected with mod_jk? 
Then it might be possible that you just need to add the necessary rules 
to the mod_jk conf.

Are the virtual hosts on Tomcat also configured properly?


Best wishes

Lutz

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



Re: How do I redirect all tomcat ports to use SSL?

2005-05-09 Thread Donny R Rota
Thanks!
I found another option that implicitely does it in the web.xml file:

Adding this in between the security constraints forces all port 80 
requests through 443 automatically.

   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint

...Don...
--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 



Bob Feretich [EMAIL PROTECTED] 
05/05/2005 05:08 PM

To
Donny R Rota/Lexington/[EMAIL PROTECTED], tomcat-user@jakarta.apache.org
cc

Subject
Re: How do I redirect all tomcat ports to use SSL?






The below security-constraint will make Tomcat require the use of SSL.
To have Tomcat automaitcally redirect for SSL, you must code

redirectPort=443

as part of your port=80 connector definition in the server.xml file.

Regards,
Bob Feretich

 Subject:
 Re: How do I redirect all tomcat ports to use SSL?
 From:
 Fabian Pena [EMAIL PROTECTED]
 Date:
 Thu, 05 May 2005 14:20:28 -0300
 To:
 Tomcat Users List tomcat-user@jakarta.apache.org
 
 This is an example
 
 security-constraint
 web-resource-collection
   web-resource-namesecurePages/web-resource-name
   url-pattern/index.jsp/url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
   role-name*/role-name
 /auth-constraint
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
   /security-constraint
 
 Fabian
 http://www.manentiasoftware.com
 
 Donny R Rota wrote:
 Thanks, I use security-constraints now, and I've been looking for this 
answer for weeks.
 I've not found that option available.  Can you send me an URL to this?
 In the mean time, I'm going to see if I can find that option in my other 
sources.
 thanks!
 ...Don...
 
 --
 Don Rota, CTG Operations
 Rational Software, IBM Software Group
 20 Maguire Road, Lexington, MA 02421-3104 Tel: 781 676 2655, Fax: 781 
676 7645 [EMAIL PROTECTED]
 
 
 Fabian Pena [EMAIL PROTECTED] 05/04/2005 04:51 PM
 Please respond to
 Tomcat Users List
 
 
 To
 Tomcat Users List tomcat-user@jakarta.apache.org
 cc
 
 Subject
 Re: How do I redirect all tomcat ports to use SSL?
 
 
 
 
 
 
 In a web application, you can edit your web.xml file and add a 
security-constraint to redirect all application requests to SSL.
 
 I Hope this help
 
 Fabian
 
 Donny R Rota wrote:
 
 This weeks puzzler  8^)
 
 I want all my Tomcat requests to go through SSL.
 I setup tomcat, and got port 80 and port 443 (SSL) working.
 But I cannot redirect port 80 to 443.  I keep getting refused:
 
 Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
 I know you can do it the other way around 8443 - 80.
 I'm just running standalone Tomcat, no Apache.
 
 
 advTHANKSance!
 ...Don...
 
 --
 Don Rota, CTG Operations
 Rational Software, IBM Software Group
 20 Maguire Road, Lexington, MA 02421-3104
 Tel: 781 676 2655, Fax: 781 676 7645
 [EMAIL PROTECTED]
 









Re: How do I redirect all tomcat ports to use SSL?

2005-05-05 Thread Fabian Pena
This is an example
security-constraint
web-resource-collection
  web-resource-namesecurePages/web-resource-name
  url-pattern/index.jsp/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-name*/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint
Fabian
http://www.manentiasoftware.com
Donny R Rota wrote:
Thanks, I use security-constraints now, and I've been looking for this 
answer for weeks.
I've not found that option available.  Can you send me an URL to this?
In the mean time, I'm going to see if I can find that option in my other 
sources.
thanks!
...Don...

--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 


Fabian Pena [EMAIL PROTECTED] 
05/04/2005 04:51 PM
Please respond to
Tomcat Users List

To
Tomcat Users List tomcat-user@jakarta.apache.org
cc
Subject
Re: How do I redirect all tomcat ports to use SSL?


In a web application, you can edit your web.xml file and add a 
security-constraint to redirect all application requests to SSL.

I Hope this help
Fabian
Donny R Rota wrote:
This weeks puzzler  8^)
I want all my Tomcat requests to go through SSL.
I setup tomcat, and got port 80 and port 443 (SSL) working.
But I cannot redirect port 80 to 443.  I keep getting refused:
Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
I know you can do it the other way around 8443 - 80.
I'm just running standalone Tomcat, no Apache.
advTHANKSance!
...Don...
--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104
Tel: 781 676 2655, Fax: 781 676 7645
[EMAIL PROTECTED]

No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005

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



No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How do I redirect all tomcat ports to use SSL?

2005-05-05 Thread Bob Feretich
The below security-constraint will make Tomcat require the use of SSL.
To have Tomcat automaitcally redirect for SSL, you must code
redirectPort=443
as part of your port=80 connector definition in the server.xml file.
Regards,
Bob Feretich
Subject:
Re: How do I redirect all tomcat ports to use SSL?
From:
Fabian Pena [EMAIL PROTECTED]
Date:
Thu, 05 May 2005 14:20:28 -0300
To:
Tomcat Users List tomcat-user@jakarta.apache.org
This is an example
security-constraint
web-resource-collection
  web-resource-namesecurePages/web-resource-name
  url-pattern/index.jsp/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-name*/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint
Fabian
http://www.manentiasoftware.com
Donny R Rota wrote:
Thanks, I use security-constraints now, and I've been looking for this answer 
for weeks.
I've not found that option available.  Can you send me an URL to this?
In the mean time, I'm going to see if I can find that option in my other 
sources.
thanks!
...Don...
--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED]
Fabian Pena [EMAIL PROTECTED] 05/04/2005 04:51 PM
Please respond to
Tomcat Users List
To
Tomcat Users List tomcat-user@jakarta.apache.org
cc
Subject
Re: How do I redirect all tomcat ports to use SSL?


In a web application, you can edit your web.xml file and add a 
security-constraint to redirect all application requests to SSL.
I Hope this help
Fabian
Donny R Rota wrote:
This weeks puzzler  8^)
I want all my Tomcat requests to go through SSL.
I setup tomcat, and got port 80 and port 443 (SSL) working.
But I cannot redirect port 80 to 443.  I keep getting refused:
Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
I know you can do it the other way around 8443 - 80.
I'm just running standalone Tomcat, no Apache.
advTHANKSance!
...Don...
--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104
Tel: 781 676 2655, Fax: 781 676 7645
[EMAIL PROTECTED]



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


How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Donny R Rota

This weeks puzzler 8^)

I want all my Tomcat requests to go through SSL.
I setup tomcat, and got port 80 and port 443 (SSL) working.
But I cannot redirect port 80 to 443. I keep getting refused:

Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
I know you can do it the other way around 8443 -
80.
I'm just running standalone Tomcat, no Apache.


advTHANKSance!
...Don...

--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 

Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Fabian Pena
In a web application, you can edit your web.xml file and add a 
security-constraint to redirect all application requests to SSL.

I Hope this help
Fabian
Donny R Rota wrote:
This weeks puzzler  8^)
I want all my Tomcat requests to go through SSL.
I setup tomcat, and got port 80 and port 443 (SSL) working.
But I cannot redirect port 80 to 443.  I keep getting refused:
Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
I know you can do it the other way around 8443 - 80.
I'm just running standalone Tomcat, no Apache.
advTHANKSance!
...Don...
--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104
Tel: 781 676 2655, Fax: 781 676 7645
[EMAIL PROTECTED]

No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Donny R Rota
Thanks, I use security-constraints now, and I've been looking for this 
answer for weeks.
I've not found that option available.  Can you send me an URL to this?
In the mean time, I'm going to see if I can find that option in my other 
sources.
thanks!
...Don...

--
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104 
Tel: 781 676 2655, Fax: 781 676 7645 
[EMAIL PROTECTED] 



Fabian Pena [EMAIL PROTECTED] 
05/04/2005 04:51 PM
Please respond to
Tomcat Users List


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
Re: How do I redirect all tomcat ports to use SSL?






In a web application, you can edit your web.xml file and add a 
security-constraint to redirect all application requests to SSL.

I Hope this help

Fabian

Donny R Rota wrote:
 
 This weeks puzzler  8^)
 
 I want all my Tomcat requests to go through SSL.
 I setup tomcat, and got port 80 and port 443 (SSL) working.
 But I cannot redirect port 80 to 443.  I keep getting refused:
 
 Is there a way in Tomcat to redirect all port 80 requests to SSL(443)?
 I know you can do it the other way around 8443 - 80.
 I'm just running standalone Tomcat, no Apache.
 
 
 advTHANKSance!
 ...Don...
 
 --
 Don Rota, CTG Operations
 Rational Software, IBM Software Group
 20 Maguire Road, Lexington, MA 02421-3104
 Tel: 781 676 2655, Fax: 781 676 7645
 [EMAIL PROTECTED]
 
 
 
 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005

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




Re: How do I redirect all tomcat ports to use SSL?

2005-05-04 Thread Hassan Schroeder
Donny R Rota wrote:
Thanks, I use security-constraints now, and I've been looking for this 
answer for weeks.
I've not found that option available.  Can you send me an URL to this?
In the mean time, I'm going to see if I can find that option in my other 
sources.
Uh, your other sources would presumably include a copy of the
Servlet spec? :-)   (That'd be SRV12.8 in the 2.4 spec, BTW)
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


redirect stdout on tomcat 5.5

2005-04-27 Thread Kanda Upendra

I am using Tomcat 5.5 and when I don't use the tomcat.exe, I can make it
write to the stdout log. How can I redirect stdout to a specific file.
Suggestions please.



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



Re: redirect stdout on tomcat 5.5

2005-04-27 Thread Patrick Thomas
Use a batch file to start tomcat and use the plain old redirect symbol, like so:

redirect_tomcat.bat:
-
tomcat5.exe  whateverfileyouwant.log
-

The other thing you should probably check out is the Logging tab in
the tomcat5w.exe app, it seems to handle exactly what you're trying to
do.

~PST

On 4/27/05, Kanda Upendra [EMAIL PROTECTED] wrote:
 
 I am using Tomcat 5.5 and when I don't use the tomcat.exe, I can make it
 write to the stdout log. How can I redirect stdout to a specific file.
 Suggestions please.
 
 -
 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: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Trond G. Ziarkowski
Hi,
try removing the [R] from your RewriteRule. If you read up on the 
mod_rewrite docs, you should see that the [R] flag is causing the redirect.

Trond
PAlvin wrote:
I'm currently using Tomcat 4.
When someone goes to my site, say, www.site.com, I'd like it run a 
servlet for the home page instead of a static page (my entire site is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I 
created a re-write rule in the Apache configuration file like this:

  RewriteEngine on
  RewriteRule ^/$ /home.htm [R]
This works great, EXCEPT, that the browser is sent a redirect and I 
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I DON'T 
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:
  www.site.com ---run-- www.site.com/home.htm
without a redirect?
How do I get www.site.com requests to go to Tomcat???
Peter Alvin
mobile 719-210-3858
skype 'smartmicro'



-
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: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Anto Paul
On 4/25/05, Trond G. Ziarkowski [EMAIL PROTECTED] wrote:
 Hi,
 
 try removing the [R] from your RewriteRule. If you read up on the
 mod_rewrite docs, you should see that the [R] flag is causing the redirect.
 
 Trond
 
 PAlvin wrote:
 
 I'm currently using Tomcat 4.
 
 When someone goes to my site, say, www.site.com, I'd like it run a
 servlet for the home page instead of a static page (my entire site is
 dynamic).
 
 I configured the connector to send all *.htm files to Tomcat and I
 created a re-write rule in the Apache configuration file like this:
 
RewriteEngine on
RewriteRule ^/$ /home.htm [R]
 
 This works great, EXCEPT, that the browser is sent a redirect and I
 heard that is bad for search engines.
 
 I could send *all* http requests to tomcat, BUT, obviously, I DON'T
 want Tomcat serving up images.
 
 So, is there any way to configure Apache and/or Tomcat to make:
 
www.site.com ---run-- www.site.com/home.htm
 
 without a redirect?
 
 How do I get www.site.com requests to go to Tomcat???
 
 Peter Alvin
 mobile 719-210-3858
 skype 'smartmicro'
 
 
 
 
 
 
 
 -
 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]
 
 

You may need to add PT as also which tells Apache to pass on the
request to the JK connector.

-- 
rgds
Anto Paul

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



Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Will Hartung
 From: PAlvin [EMAIL PROTECTED]
 Sent: Sunday, April 24, 2005 12:25 PM

 I could send *all* http requests to tomcat, BUT, obviously, I DON'T
 want Tomcat serving up images.

Why not? Tomcat is fine for static content.

How much traffic are you really getting to your site? If you're like a
majority of sites, not enough that the benefit of Apache is going to really
be noticable.

Regards,

Will Hartung
([EMAIL PROTECTED])


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



Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread PAlvin
(We get about 1,000 visitors a day to our site.)

Just curious: Isn't Tomcat responses inefficient because it has to
pass the response back to Apache via a named pipe or TCP or some
other connector mechanism?

Peter Alvin




How much traffic are you really getting to your site? If you're like
a
majority of sites, not enough that the benefit of Apache is going to
really
be noticable.

Regards,

Will Hartung
([EMAIL PROTECTED])



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



Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Will Hartung
 From: PAlvin [EMAIL PROTECTED]
 Sent: Monday, April 25, 2005 12:24 PM


 (We get about 1,000 visitors a day to our site.)

 Just curious: Isn't Tomcat responses inefficient because it has to
 pass the response back to Apache via a named pipe or TCP or some
 other connector mechanism?

Technically, yes. Realistically, no. Does that hand off and transfer affect
the total overall packet time? Of course, but it's all handled within the
kernel of the machine, versus going out over the wire, so it's not really
noticable. Measureable? Sure. But so is shortening your network cables. Want
to easily speed up your network traffic 100%? Cut all of your cables in
half. So, seriously, don't worry about it too much.

If your site is getting 1000 visitors a day, over 10 hours, that's less than
2 per minute. You can look at your logs and measure your peak times if you
like. Trust me, you're not stressing anything here, and Tomcat will have no
problems whatsoever handling that traffic. Would it handle the 1000 users if
they all showed up at once? Probably not, but you'd be fixing other things
before Tomcat then anyway.

Tomcat will happily saturate your internet connection.

Best of luck.

Regards,

Will Hartung
([EMAIL PROTECTED])


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



How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-24 Thread PAlvin
I'm currently using Tomcat 4.

When someone goes to my site, say, www.site.com, I'd like it run a
servlet for the home page instead of a static page (my entire site is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I
created a re-write rule in the Apache configuration file like this:

   RewriteEngine on
   RewriteRule ^/$ /home.htm [R]

This works great, EXCEPT, that the browser is sent a redirect and I
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I DON'T
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:

   www.site.com ---run-- www.site.com/home.htm

without a redirect?

How do I get www.site.com requests to go to Tomcat???

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'







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



Redirect to https://

2005-04-14 Thread Darryl Wilburn
Where would I configure a context to automatically
redirect to https?  So when a user types
http://host/application, it would automatically
redirect them to https://host/application where a
index.jsp may be a login form that I'd like to have
the username and password encrypted.  I assume it goes
in web.xml, but is it in the web.xml of the context
itself?  What is the format of the entry?

Thanks in advance.
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



RE: Redirect to https://

2005-04-14 Thread Phillip Qin
Can you do it in apache httpd.conf?

RewriteRule ^/host/application(.*) https://host/application [R]

-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED] 
Sent: April 14, 2005 4:00 PM
To: tomcat-user@jakarta.apache.org
Subject: Redirect to https://


Where would I configure a context to automatically
redirect to https?  So when a user types http://host/application, it would
automatically redirect them to https://host/application where a index.jsp
may be a login form that I'd like to have the username and password
encrypted.  I assume it goes in web.xml, but is it in the web.xml of the
context itself?  What is the format of the entry?

Thanks in advance.
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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


!DSPAM:425ecbb615383665362806!


RE: Redirect to https://

2005-04-14 Thread Lorenzo Jiménez
I have done that yesterday and it is pretty simple.

Just look this web.xml:

?xml version=1.0 encoding=UTF-8?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
session-config
session-timeout
30
/session-timeout
/session-config

!-- Automatic redirection to SSL 
Remember to have SSL active
 --

security-constraint
web-resource-collection
web-resource-nameAutomatic SLL Forwarding/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

welcome-file-list
welcome-file
index.jsp
/welcome-file
welcome-file
index.html
/welcome-file
welcome-file
index.htm
/welcome-file
/welcome-file-list
/web-app


Lorenzo


-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 14 de Abril de 2005 02:00 p.m.
To: tomcat-user@jakarta.apache.org
Subject: Redirect to https://

Where would I configure a context to automatically
redirect to https?  So when a user types
http://host/application, it would automatically
redirect them to https://host/application where a
index.jsp may be a login form that I'd like to have
the username and password encrypted.  I assume it goes
in web.xml, but is it in the web.xml of the context
itself?  What is the format of the entry?

Thanks in advance.
Darryl




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-



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



RE: Redirect to https://

2005-04-14 Thread Darryl Wilburn
Not using Apache as a front end.  Straight Tomcat
5.5.7 with Coyote HTTP.

Darryl



__ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

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



Re: Redirect from one SSL port to another

2005-03-25 Thread Jason Bainbridge
On Thu, 24 Mar 2005 23:54:21 -0500, Parsons Technical Services
[EMAIL PROTECTED] wrote:
 Jason,
 
 To get the port redirect to work requires a constraint on your transport for
 the requested material.
 
 See:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html

Thanks, but I've already set that up fine for the port 80 to 443
redirect, I was just trying to see if there was a way to do something
similar to redirect from one https port (8443) to the one on 443 but
it doesn't look like there is a way to do that easily in Tomcat.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Redirect from one SSL port to another

2005-03-24 Thread Jason Bainbridge
Currently we are running a pilot of Tomcat (alongside Jrun+IIS) where
Tomcat is on port 8443 using https and IIS is on port 443. We are
getting close to moving Tomcat into Production use disabling IIS +
Jrun and are looking at ways to easily redirect users from 8443 to 443
so the users of the pilot don't have to change URL's within email
notifications they have received from the system.

At first I thought setting an additional Connector port for 8443 with
a redirectPort to 443 was a good idea but if you don't add in all the
addtional SSL stuff it won't respons to https requests and if you do
add in the SSL stuff then the redirectPort doesn't get used and it
just sticks to 8443.

Does anyone know of an easy way to do this within Tomcat? I'm thinking
I might have to setup a separate Tomcat instance listening on port
8443 and setup redirects there but then again I could be missing
something obvious.

Cheers,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Redirect from one SSL port to another

2005-03-24 Thread Parsons Technical Services
This might work:
http://www.boutell.com/rinetd/
Ran across it on Google
Doug
- Original Message - 
From: Jason Bainbridge [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, March 24, 2005 12:11 PM
Subject: Redirect from one SSL port to another


Currently we are running a pilot of Tomcat (alongside Jrun+IIS) where
Tomcat is on port 8443 using https and IIS is on port 443. We are
getting close to moving Tomcat into Production use disabling IIS +
Jrun and are looking at ways to easily redirect users from 8443 to 443
so the users of the pilot don't have to change URL's within email
notifications they have received from the system.
At first I thought setting an additional Connector port for 8443 with
a redirectPort to 443 was a good idea but if you don't add in all the
addtional SSL stuff it won't respons to https requests and if you do
add in the SSL stuff then the redirectPort doesn't get used and it
just sticks to 8443.
Does anyone know of an easy way to do this within Tomcat? I'm thinking
I might have to setup a separate Tomcat instance listening on port
8443 and setup redirects there but then again I could be missing
something obvious.
Cheers,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com
-
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]


Answer: Tomcat5 port redirect issue

2005-03-24 Thread Dan
I figured I would post this in answer to my own question, just in case anyone 
else has the same problem.

The issue was I two boxes set up one had apache, and tomcat on it, the other 
just had tomcat.

The box with apache, and tomcat had tomcat running something unrelated to the 
secondary box.  What I wanted to do was if a particular context was requested 
from the apache/tomcat domain to redirect to the other domain and to the 
appropriate ports (ie 8080/8443) the redirect was simple enough, with a 
rewrite rule in the apache configuration.

RewriteRule ^/({specific context})(.*) http://{domain of tomcat 
box}/$1 [R]

for {specific context} you would substitute the context you wish to map to the 
URL on the other domain.
for {domain of tomcat box} substitute the domain of the box you wish to 
redirect to, from the apache box.

this was straight forward enough the trick was to redirect traffic on the 
other box from port 80 to 8080 and port 443 to 8443.

I found these easiest way to do this is by adding iptable rules on the tomcat 
box.

iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443
iptables -t nat -I OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -I OUTPUT -p tcp --dport 443 -j REDIRECT --to-ports 8443

the first 2 rules redirect external incoming requests, and the next 2 redirect 
localhost requests.  (the second isn't always necessary, but in this case it 
was appropriate.)

I hope this helps someone else out of the mess of sorting this sort of thing 
out.

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



Re: Redirect from one SSL port to another

2005-03-24 Thread Parsons Technical Services
Jason,
To get the port redirect to work requires a constraint on your transport for 
the requested material.

See:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html
Doug
- Original Message - 
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org; Jason Bainbridge 
[EMAIL PROTECTED]
Sent: Thursday, March 24, 2005 11:40 PM
Subject: Re: Redirect from one SSL port to another


This might work:
http://www.boutell.com/rinetd/
Ran across it on Google
Doug
- Original Message - 
From: Jason Bainbridge [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, March 24, 2005 12:11 PM
Subject: Redirect from one SSL port to another


Currently we are running a pilot of Tomcat (alongside Jrun+IIS) where
Tomcat is on port 8443 using https and IIS is on port 443. We are
getting close to moving Tomcat into Production use disabling IIS +
Jrun and are looking at ways to easily redirect users from 8443 to 443
so the users of the pilot don't have to change URL's within email
notifications they have received from the system.
At first I thought setting an additional Connector port for 8443 with
a redirectPort to 443 was a good idea but if you don't add in all the
addtional SSL stuff it won't respons to https requests and if you do
add in the SSL stuff then the redirectPort doesn't get used and it
just sticks to 8443.
Does anyone know of an easy way to do this within Tomcat? I'm thinking
I might have to setup a separate Tomcat instance listening on port
8443 and setup redirects there but then again I could be missing
something obvious.
Cheers,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com
-
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]


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


How to redirect to a different host

2005-03-17 Thread Dan
Is there anyway to configure Tomcat (without using apache) to redirect 
requests for a particular context to a new url (and host)

Here's the scenario on the main page there is a link to a shopping cart 
context.  This webapp does not run on this machine, it's running on a totally 
separate system, so what I want to do is:

when the context webhost:8080/shopping is requested the request is redirected 
to shoppingcarthost:8080/shopping.  Is it possible to do this in the 
server.xml file, or does it have to be done somewhere else.

I know how to do this with apache, but using apache is not an option in this 
case.  I need to know how to to do this independent of apache.  Just using 
Tomcat configuration files.

Thanks
Daniel McMillan

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



RE: How to redirect to a different host

2005-03-17 Thread Ramu, Vinod
You may have to use JSTL in your page. 

JSTL provides a tag called import that has the capability to import
contents from other site to your page. So you may built a page that
looks like

%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %

c:import url=http://shoppingcarthost:8080/shopping/

When the user requests webhost:8080/shopping use the
response.sendRedirect() to direct to his request to this new page. This
page will in turn post a request to a new container on a different
machine.

Don't forget to include JSTL jar files into your container. 

Vinod


-Original Message-
From: Dan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 17, 2005 2:58 PM
To: Tomcat Users List
Subject: How to redirect to a different host


Is there anyway to configure Tomcat (without using apache) to redirect 
requests for a particular context to a new url (and host)

Here's the scenario on the main page there is a link to a shopping cart 
context.  This webapp does not run on this machine, it's running on a
totally 
separate system, so what I want to do is:

when the context webhost:8080/shopping is requested the request is
redirected 
to shoppingcarthost:8080/shopping.  Is it possible to do this in the 
server.xml file, or does it have to be done somewhere else.

I know how to do this with apache, but using apache is not an option in
this 
case.  I need to know how to to do this independent of apache.  Just
using 
Tomcat configuration files.

Thanks
Daniel McMillan

-
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: RE: How to redirect to a different host Balancer Rules

2005-03-17 Thread Dan
Thanks for the Idea Vinod, unfortunately I don't have control of the jsp 
content, so that rather elegant solution won't work.  However I'm definitely 
tucking that away in my mental rolodex.  Thanks for the tip!!!

Does anyone else know if there's a way to redirect to a different host I was 
looking at the balancer rules, and it looks like I might be able to use them, 
but I don't quite understand how to do this.

The rule I need to develop is basically
the requested URL of http://{webhost}:8080/shopping needs to be redirected to 
http://{shoppinghost}:8080/shopping.

Anyone know how to do this?


Original Message -
 From: Ramu, Vinod [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Date: Today 03:16:35 pm
 Subject: RE: How to redirect to a different host

 You may have to use JSTL in your page. 

 JSTL provides a tag called import that has the capability to import
contents from other site to your page. So you may built a page that
looks like

%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %

c:import url=http://shoppingcarthost:8080/shopping/

When the user requests webhost:8080/shopping use the
response.sendRedirect() to direct to his request to this new page. This
page will in turn post a request to a new container on a different
machine.

Don't forget to include JSTL jar files into your container. 

Vinod

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



RE: How to redirect to a different host

2005-03-17 Thread Gilbert, Luke T

There is no way for Tomcat to do this 'out of the box'. But don't despair! 
Check out:

http://www.zlatkovic.com/httpredirectfilter.en.html

The author has released it under a very free license. I have been using the 
filter and can personally recommend it. The site seems to be down right now, so 
you'll have to check back later.

Luke

P.S. In the interest of full, squeaky clean disclosure, I've submitted a patch 
to the project.

-Original Message-
From: Dan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 17, 2005 14:58
To: Tomcat Users List
Subject: How to redirect to a different host


Is there anyway to configure Tomcat (without using apache) to redirect
requests for a particular context to a new url (and host)

Here's the scenario on the main page there is a link to a shopping cart
context.  This webapp does not run on this machine, it's running on a totally
separate system, so what I want to do is:

when the context webhost:8080/shopping is requested the request is redirected
to shoppingcarthost:8080/shopping.  Is it possible to do this in the
server.xml file, or does it have to be done somewhere else.

I know how to do this with apache, but using apache is not an option in this
case.  I need to know how to to do this independent of apache.  Just using
Tomcat configuration files.

Thanks
Daniel McMillan

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



CONFIDENTIALITY NOTICE

This e-mail and any attachments, as well as any documents from a file server of 
International Truck
and Engine Corporation or its affiliates, are intended for the addressee and 
may contain information
that is privileged, confidential, proprietary, or otherwise protected by law.  
Any dissemination,
distribution, or copying is prohibited.  If a confidentiality or nondisclosure 
agreement exists
between International and the recipient or the recipient's employer, this 
e-mail and any attachments
hereto, as well as any documents from a file server of International Truck and 
Engine Corporation or
its affiliates, this notice serves as marking as CONFIDENTIAL information of 
International Truck and
Engine Corporation or its affiliates.  If you have received this communication 
in error, please
contact the original sender.

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



Re: Redirect from http:// to https://

2005-03-09 Thread Peter Johnson
Or write a valve/filter to do the same thing
PJ
Antony Paul wrote:
You use Tomcat standalone or along with Apache. 
In Tomcat stand alone you can 
1, In index.jsp or whatever be the welcome page check
response.isSecure() then redirect.
2. There is an option in web.xml in security element
transport-guarantee which can be specified for certain resources. On
accessing these resources it will automatically redirect to the https.
You need to properly configure redirectport in Connector element in
server.xml for this to work.

   In Apache use mod_rewrite.
On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev Srivastava
[EMAIL PROTECTED] wrote:
 

Hi All!,
Can anone tell me how can I redirect http://
to https:// . I want as soon as the user type
http://abc.com it will go to https://abc.com
(SSL Config).
Please help..
Regards,
Sanjeev
Send instant messages to your online friends http://uk.messenger.yahoo.com
-
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: Redirect from http:// to https://

2005-03-09 Thread Sanjeev Srivastava
Thanks a lot PJ !, It worked..

Regards,
Sanjeev
--- Peter Johnson [EMAIL PROTECTED] wrote:
 Or write a valve/filter to do the same thing
 
 PJ
 
 Antony Paul wrote:
 
 You use Tomcat standalone or along with Apache. 
 In Tomcat stand alone you can 
 1, In index.jsp or whatever be the welcome page
 check
 response.isSecure() then redirect.
 2. There is an option in web.xml in security
 element
 transport-guarantee which can be specified for
 certain resources. On
 accessing these resources it will automatically
 redirect to the https.
 You need to properly configure redirectport in
 Connector element in
 server.xml for this to work.
 
 In Apache use mod_rewrite.
 
 
 On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev
 Srivastava
 [EMAIL PROTECTED] wrote:
   
 
 Hi All!,
  Can anone tell me how can I redirect
 http://
 to https:// . I want as soon as the user type
 http://abc.com it will go to https://abc.com
 
 (SSL Config).
 
 Please help..
 
 Regards,
 Sanjeev
 
 Send instant messages to your online friends
 http://uk.messenger.yahoo.com
 

-
 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]
 
 

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Re: Redirect from http:// to https://

2005-03-09 Thread Sanjeev Srivastava
Thanks a lot Paul !!, It worked

Regards,
Sanjeev
--- Antony Paul [EMAIL PROTECTED] wrote:
 You use Tomcat standalone or along with Apache. 
 In Tomcat stand alone you can 
 1, In index.jsp or whatever be the welcome page
 check
 response.isSecure() then redirect.
 2. There is an option in web.xml in security element
 transport-guarantee which can be specified for
 certain resources. On
 accessing these resources it will automatically
 redirect to the https.
 You need to properly configure redirectport in
 Connector element in
 server.xml for this to work.
 
 In Apache use mod_rewrite.
 
 
 On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev
 Srivastava
 [EMAIL PROTECTED] wrote:
  Hi All!,
   Can anone tell me how can I redirect
 http://
  to https:// . I want as soon as the user type
  http://abc.com it will go to https://abc.com
  
  (SSL Config).
  
  Please help..
  
  Regards,
  Sanjeev
  
  Send instant messages to your online friends
 http://uk.messenger.yahoo.com
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 -- 
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/
 

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

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Redirect from http:// to https://

2005-03-08 Thread Sanjeev Srivastava
Hi All!,
 Can anone tell me how can I redirect http://
to https:// . I want as soon as the user type
http://abc.com it will go to https://abc.com

(SSL Config).

Please help..

Regards,
Sanjeev

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Re: Redirect from http:// to https://

2005-03-08 Thread Antony Paul
You use Tomcat standalone or along with Apache. 
In Tomcat stand alone you can 
1, In index.jsp or whatever be the welcome page check
response.isSecure() then redirect.
2. There is an option in web.xml in security element
transport-guarantee which can be specified for certain resources. On
accessing these resources it will automatically redirect to the https.
You need to properly configure redirectport in Connector element in
server.xml for this to work.

In Apache use mod_rewrite.


On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev Srivastava
[EMAIL PROTECTED] wrote:
 Hi All!,
  Can anone tell me how can I redirect http://
 to https:// . I want as soon as the user type
 http://abc.com it will go to https://abc.com
 
 (SSL Config).
 
 Please help..
 
 Regards,
 Sanjeev
 
 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Tomcat 4.1 and auto-redirect/URL rewrite

2005-03-07 Thread David Wall
I have a page in a tomcat 4.1 webapp that has a rather lengthy path name, 
but I'd like to be able to email a much shorter link to avoid long links 
being broken across lines by some older email clients.

With Apache HTTPD's rewrite module, this could be accomplished.  Is there 
something similar in TC?  I'd like to map something like:

https://www.myhost.com/app/pickup?c=12345678901234567890
to
https://www.myhost.com/app/custom/customerName/applicationName/welcome.jsp?c=12345678901234567890
I know I could create a servlet that does an auto-redirect, but I'm looking 
to see if TC has anything that more directly will rewrite the URLs.

Thanks,
David 

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


RE: Tomcat 4.1 and auto-redirect/URL rewrite

2005-03-07 Thread Subir Sengupta
You could write a filter to do this.  So if the filter see's the shorter
url it can redirect/forward to the longer url.

Subir

-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 11:26 AM
To: Tomcat Users List
Subject: Tomcat 4.1 and auto-redirect/URL rewrite


I have a page in a tomcat 4.1 webapp that has a rather lengthy path
name, 
but I'd like to be able to email a much shorter link to avoid long links

being broken across lines by some older email clients.

With Apache HTTPD's rewrite module, this could be accomplished.  Is
there 
something similar in TC?  I'd like to map something like:

https://www.myhost.com/app/pickup?c=12345678901234567890

to

https://www.myhost.com/app/custom/customerName/applicationName/welcome.j
sp?c=12345678901234567890

I know I could create a servlet that does an auto-redirect, but I'm
looking 
to see if TC has anything that more directly will rewrite the URLs.

Thanks,
David 


-
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: Redirect with slash appended

2005-02-16 Thread Mark Thomas
This is by design. See 
http://issues.apache.org/bugzilla/show_bug.cgi?id=32424 for an explanation.

Mark
Felix Röthenbacher wrote:
Hi
I have the problem that every time I access a servlet with a
URL that is equal to a servlet's directory, Tomcat
redirects me to an URL with a slash appended. E.g. I want
to access /resources, and Tomcat redirects me to /resources/,
which my servlet does not match. It expects to match to /resources.
Is it possible to disable such redirects? I'm using Tomcat 5.5.7.
Maybe it has something to do with the default servlet?
Thanks
Felix
-
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: Redirect with slash appended

2005-02-16 Thread Stephen Kestle
Hmm. Read that.  It the bug does not actually answer Oliver's questions - 
specifically, if it's for the default servlet, why does it always get applied - 
and why is it not easily changed (with a /* filter)?

It also doesn't help that Remy is needlessly rude and assumptive.

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 17 February 2005 7:38 a.m.
 To: Tomcat Users List
 Subject: Re: Redirect with slash appended
 
 This is by design. See
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32424 for an
 explanation.
 
 Mark
 
 Felix Röthenbacher wrote:
  Hi
 
  I have the problem that every time I access a servlet with a
  URL that is equal to a servlet's directory, Tomcat
  redirects me to an URL with a slash appended. E.g. I want
  to access /resources, and Tomcat redirects me to /resources/,
  which my servlet does not match. It expects to match to /resources.
  Is it possible to disable such redirects? I'm using Tomcat 5.5.7.
  Maybe it has something to do with the default servlet?
 
  Thanks
 
  Felix
 
  -
  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]


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



Redirect with slash appended

2005-02-15 Thread Felix Röthenbacher
Hi

I have the problem that every time I access a servlet with a
URL that is equal to a servlet's directory, Tomcat
redirects me to an URL with a slash appended. E.g. I want
to access /resources, and Tomcat redirects me to /resources/,
which my servlet does not match. It expects to match to /resources.
Is it possible to disable such redirects? I'm using Tomcat 5.5.7.
Maybe it has something to do with the default servlet?

Thanks

Felix

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



Disable directory redirect?

2005-02-07 Thread Oliver Hutchison
In Tomcat 5.5.7 is there a way to disable the automatic redirect that
happens when a request matches a directory except for the trailing
slash? e.g. On my server the request /boards get redirected to
/boards/ as there is a boards directory on the server.
 
The strange thing is the redirect seem to happen before any filters or
servlet are allowed to process the request. This is really annoying as I
have a filter that is expecting to see the /boards request not the
redirected /boards/ request. This feels like a bug to me. Shouldn't
the redirect be initiated by the default servlet after any user
servlet/filters have processed the request?
 
There is a bug report for this but the comments are not helpful and it
seems to be related to the 5.0 code base.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32424
 
Oliver
 
 
 
 
 


Re: Disable directory redirect?

2005-02-07 Thread Garthfield Carter
In Apache you fix this problem by altering the: UseCanonicalName in
httpd.conf, I forget whether it should be on or off. If you're using
an Apache front-end to Tomcat then you can stop it there.

On Tue, 2005-02-08 at 13:54 +1100, Oliver Hutchison wrote:
 In Tomcat 5.5.7 is there a way to disable the automatic redirect that
 happens when a request matches a directory except for the trailing
 slash? e.g. On my server the request /boards get redirected to
 /boards/ as there is a boards directory on the server.
  
 The strange thing is the redirect seem to happen before any filters or
 servlet are allowed to process the request. This is really annoying as I
 have a filter that is expecting to see the /boards request not the
 redirected /boards/ request. This feels like a bug to me. Shouldn't
 the redirect be initiated by the default servlet after any user
 servlet/filters have processed the request?
  
 There is a bug report for this but the comments are not helpful and it
 seems to be related to the 5.0 code base.
 http://issues.apache.org/bugzilla/show_bug.cgi?id=32424
  
 Oliver
  
 
 
 
 


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



RE: Disable directory redirect?

2005-02-07 Thread Oliver Hutchison
Thanks but I'm not using Apache as a front-end and the problem is with
some custom processing that Tomcat is doing before any of the standard
processing so I'm not sure using Apache would help in any case.

Ollie

 -Original Message-
 From: Garthfield Carter [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, 8 February 2005 1:59 PM
 To: Tomcat Users List
 Subject: Re: Disable directory redirect?
 
 In Apache you fix this problem by altering the: 
 UseCanonicalName in httpd.conf, I forget whether it should be 
 on or off. If you're using an Apache front-end to Tomcat 
 then you can stop it there.
 
 On Tue, 2005-02-08 at 13:54 +1100, Oliver Hutchison wrote:
  In Tomcat 5.5.7 is there a way to disable the automatic 
 redirect that 
  happens when a request matches a directory except for the trailing 
  slash? e.g. On my server the request /boards get redirected to 
  /boards/ as there is a boards directory on the server.
   
  The strange thing is the redirect seem to happen before any 
 filters or 
  servlet are allowed to process the request. This is really 
 annoying as 
  I have a filter that is expecting to see the /boards 
 request not the 
  redirected /boards/ request. This feels like a bug to me. 
 Shouldn't 
  the redirect be initiated by the default servlet after any user 
  servlet/filters have processed the request?
   
  There is a bug report for this but the comments are not 
 helpful and it 
  seems to be related to the 5.0 code base.
  http://issues.apache.org/bugzilla/show_bug.cgi?id=32424
   
  Oliver
   
  
  
  
  
 
 
 -
 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]



Page Redirect

2005-02-02 Thread Christopher Brizzell
I am running Tomcat 4.1 on a Windows 2003 server box, along with Apache
and JRE 1.4.1_06.

I have very little programming knowledge.

What I would like to do, is redirect any requests to
http://thisserver:9091/thiswebpage to go to
http://thisserver:8080/someotherwebpage.

Is this possible, and if so how do I go about this?

Thank you.

First New York FCU
Chris Brizzell
IT Analyst
518-393-1326 x1505
518-218-7908 (fax)
[EMAIL PROTECTED] 
www.firstnewyork.org



-
This email and any files transmitted with it are confidential
 and intended solely for the use of the individual or entity 
to whom they are addressed.  Any review or distribution by
others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies
 in their entirety, whether electronic or hard copy.
-
GWAVAsig

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



catalina log - redirect

2005-01-06 Thread Benoit - Althosting.fr
Hi,
I'm trying to redirect catalina logs to another file
(montest_access_log.txt) but catalina out is not redirect in my file (steal
in catalina.out)
That's my configuration in server.xml for the host :
Host name=mywebsite.com debug=0
appBase=/usr/local/jakarta-tomcat4.1/webapps/montest unpackWARs=true
autoDeploy=true
  Context path= docBase= debug=1 reloadable=true
swallowOutput=true /
  Logger className=org.apache.catalina.logger.SystemOutLogger
directory=/usr/local/jakarta-tomcat4.1/webapps/montest/logs
prefix=montest suffix=.txt  timestamp=true verbosity=4 /
  Logger className=org.apache.catalina.logger.SystemErrLogger
directory=logs prefix=montest_systerr suffix=.txt  timestamp=true
verbosity=4 /
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=webapps/montest/logs  prefix=montest_access_log. suffix=.txt
pattern=common resolveHosts=false/
/Host
Does anybody know anything about this ?
I tried to make the change but unfortynately it does not work.
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: SSL Redirect problem

2004-11-22 Thread Richard HALLIER
Thomas,
I did your quick test, and I can confirm what you thought.
If I configure Tomcat with the default port for http (80) and https (443),
it works !
So it's an IE bug. Anyway, it will be a known bug !
Thank you.
Richard.

-Message d'origine-
De : Mark Thomas [mailto:[EMAIL PROTECTED]
Envoye : dimanche 21 novembre 2004 17:28
A : 'Tomcat Users List'
Objet : RE: SSL Redirect problem


Sounds like an IE bug. I suspect IE is sending the wrong port information at
some point in the redirect from http to https. To confirm this you'll need
to
look at the http headers going back and forth.

One quick test would be to configure tomcat for the default ports (80 for
http
and 443 for https). If you use the default ports IE doesn't send any port
info
and hence doesn't send the wrong port info.

Mark

 -Original Message-
 From: Richard HALLIER [mailto:[EMAIL PROTECTED]
 Sent: Sunday, November 21, 2004 3:30 PM
 To: Tomcat Users List
 Subject: SSL Redirect problem

 Hi,
 I'd like to submit a weird problem that occurs with the following
 configuration :
 - Server Tomcat 5.0.28 - https connector activated with client
 authentification
 - Browser IE v6 sp2 with client certificate installed
 - Browser FireFox 1.0final  with client certificate installed

 Sequence under Firefox :
 - Connection to http://localhost:8080/mywebapp
 - SSL server part OK
 - SSL client authentification OK
 - Displayed url in the browser : https://localhost:8443/mywebapp
 - Webapp displayed

 Sequence under IE :
 - Connection to http://localhost:8080/mywebapp
 - SSL server part OK
 - SSL client authentification  : timeout

 Sequence under IE :
 - Connection to https://localhost:8443/mywebapp
 - SSL server part OK
 - SSL client authentification OK
 - Webapp displayed

 I cant resolve my problem ! I'm lost, have you any pointers ?
 Any help appreciated !
 Thank you.
 Richard


 -
 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]



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



SSL Redirect problem

2004-11-21 Thread Richard HALLIER
Hi,
I'd like to submit a weird problem that occurs with the following
configuration :
- Server Tomcat 5.0.28 - https connector activated with client
authentification
- Browser IE v6 sp2 with client certificate installed
- Browser FireFox 1.0final  with client certificate installed

Sequence under Firefox :
- Connection to http://localhost:8080/mywebapp
- SSL server part OK
- SSL client authentification OK
- Displayed url in the browser : https://localhost:8443/mywebapp
- Webapp displayed

Sequence under IE :
- Connection to http://localhost:8080/mywebapp
- SSL server part OK
- SSL client authentification  : timeout

Sequence under IE :
- Connection to https://localhost:8443/mywebapp
- SSL server part OK
- SSL client authentification OK
- Webapp displayed

I cant resolve my problem ! I'm lost, have you any pointers ?
Any help appreciated !
Thank you.
Richard


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



RE: SSL Redirect problem

2004-11-21 Thread Mark Thomas
Sounds like an IE bug. I suspect IE is sending the wrong port information at
some point in the redirect from http to https. To confirm this you'll need to
look at the http headers going back and forth.

One quick test would be to configure tomcat for the default ports (80 for http
and 443 for https). If you use the default ports IE doesn't send any port info
and hence doesn't send the wrong port info.

Mark

 -Original Message-
 From: Richard HALLIER [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, November 21, 2004 3:30 PM
 To: Tomcat Users List
 Subject: SSL Redirect problem
 
 Hi,
 I'd like to submit a weird problem that occurs with the following
 configuration :
 - Server Tomcat 5.0.28 - https connector activated with client
 authentification
 - Browser IE v6 sp2 with client certificate installed
 - Browser FireFox 1.0final  with client certificate installed
 
 Sequence under Firefox :
 - Connection to http://localhost:8080/mywebapp
 - SSL server part OK
 - SSL client authentification OK
 - Displayed url in the browser : https://localhost:8443/mywebapp
 - Webapp displayed
 
 Sequence under IE :
 - Connection to http://localhost:8080/mywebapp
 - SSL server part OK
 - SSL client authentification  : timeout
 
 Sequence under IE :
 - Connection to https://localhost:8443/mywebapp
 - SSL server part OK
 - SSL client authentification OK
 - Webapp displayed
 
 I cant resolve my problem ! I'm lost, have you any pointers ?
 Any help appreciated !
 Thank you.
 Richard
 
 
 -
 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]



redirect catalina.out

2004-11-18 Thread Scott Pippin
I am trying to redirect catalina.out to an application specific log
file.  I thought I had it set up but it is still writing to
catalina.out.
 
server.xml
 
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer
value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
   
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
 
  /GlobalNamingResources
  Service name=Catalina
Connector port=8080
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
Engine name=Catalina defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true swallowOutput=true /
 Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=ims connectionPassword=ims
  connectionURL=jdbc:mysql://x.x.x.x:3306/ims
driverName=com.mysql.jdbc.Driver userTable=imsuser
  userNameCol=userid userCredCol=passwordid userRoleTable=imsrole
roleNameCol=userrole /
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log.
suffix=.txt
timestamp=true swallowOutput=true /
  /Host
/Engine
  /Service
/Server
 
 
context.xml
 
?xml version=1.0 encoding=utf-8 ?
Context path=/IMS reloadable=true debug=4 swallowOutput=true
 Logger className=org.apache.catalina.logger.FileLogger
prefix=ims_log. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemErrLogger
prefix=ims_err. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=ims_out. suffix=.txt timestamp=true verbosity=4 /
/Context
 
Thanks in advance,
 
Scott Pippin
[EMAIL PROTECTED]


RE: redirect catalina.out

2004-11-18 Thread Shapira, Yoav

Hi,
swallowOutput is not a Context attribute, it's a Logger attribute:
change your context.xml to fix that.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Scott Pippin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 12:45 PM
To: [EMAIL PROTECTED]
Subject: redirect catalina.out

I am trying to redirect catalina.out to an application specific log
file.  I thought I had it set up but it is still writing to
catalina.out.

server.xml

Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer
value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources
  Service name=Catalina
Connector port=8080
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
Engine name=Catalina defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true swallowOutput=true /
 Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=ims connectionPassword=ims
  connectionURL=jdbc:mysql://x.x.x.x:3306/ims
driverName=com.mysql.jdbc.Driver userTable=imsuser
  userNameCol=userid userCredCol=passwordid userRoleTable=imsrole
roleNameCol=userrole /
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log.
suffix=.txt
timestamp=true swallowOutput=true /
  /Host
/Engine
  /Service
/Server


context.xml

?xml version=1.0 encoding=utf-8 ?
Context path=/IMS reloadable=true debug=4 swallowOutput=true
 Logger className=org.apache.catalina.logger.FileLogger
prefix=ims_log. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemErrLogger
prefix=ims_err. suffix=.txt timestamp=true verbosity=4 /
 Logger className=org.apache.catalina.logger.SystemOutLogger
prefix=ims_out. suffix=.txt timestamp=true verbosity=4 /
/Context

Thanks in advance,

Scott Pippin
[EMAIL PROTECTED]



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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



Re: redirect catalina.out

2004-11-18 Thread Shankar Unni
Shapira, Yoav wrote:
swallowOutput is not a Context attribute, it's a Logger attribute:
change your context.xml to fix that.
Really? That's not what the doc says (or the source either). Just tested 
on 5.0.2x. (At least, I defined a

  DefaultContext swallowOutput=true/
in my Host, and standard output went to the log file configured for 
the webapps).

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


RE: redirect catalina.out

2004-11-18 Thread Shapira, Yoav


Hi,
Yup, my mistake, thank you for pointing that out.  (Although please
don't use DefaultContext as an example of anything, it's an
abomination).

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni
Sent: Thursday, November 18, 2004 3:23 PM
To: [EMAIL PROTECTED]
Subject: Re: redirect catalina.out

Shapira, Yoav wrote:

 swallowOutput is not a Context attribute, it's a Logger attribute:
 change your context.xml to fix that.

Really? That's not what the doc says (or the source either). Just
tested
on 5.0.2x. (At least, I defined a

   DefaultContext swallowOutput=true/

in my Host, and standard output went to the log file configured for
the webapps).


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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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



301 Redirect Question

2004-11-17 Thread Lyndon Smith
Hi Allistair

I have a question for the Tomcat User Group.

I hope you don't mind me asking you because the answer should be a simple
yes or no but I can't get an answer anywhere.

I am new to the mailing list and I don't know how to submit a question to
it.

The Question:

Is it possible with Tomcat 4.1.30 running within Apache Web Server to use
301 redirects?

(If so how?)

Regards

Lyndon


- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:08 AM
Subject: [OFF TOPIC] RE: enormous loggin when starting tomcat


 Your root logger might be set at debug level, or you have set debug
logging on struts. Have you got a log4j config going?

  -Original Message-
  From: koen boutsen [mailto:[EMAIL PROTECTED]
  Sent: 17 November 2004 11:03
  To: [EMAIL PROTECTED]
  Subject: enormous loggin when starting tomcat
 
 
  Hello
 
  I'm using Tomcat 5.0.28 and I'm trying to deploy a struts application.
  This application is rather large and so is my struts-config.xml file.
  When tomcat starts or I restart the application, I have to
  wait more than a minute (sometimes 4') before all the log
  messages are done.
 
  Does anyone have an idea what's the cause of this and how I
  can resolve it ?
 
  Thanks in advance
 
  Koen
  -- 
  ___
  Find what you are looking for with the Lycos Yellow Pages
  http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
  om/default.asp?SRC=lycos10
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT


 -
 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: 301 Redirect Question

2004-11-17 Thread Tim Funk
You need to code them yourself in your servlet/jsp.
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.addHeader(Location, /more/cowbell.jsp);
-Tim
Lyndon Smith wrote:
Hi Allistair
I have a question for the Tomcat User Group.
I hope you don't mind me asking you because the answer should be a simple
yes or no but I can't get an answer anywhere.
I am new to the mailing list and I don't know how to submit a question to
it.
The Question:
Is it possible with Tomcat 4.1.30 running within Apache Web Server to use
301 redirects?
(If so how?)
Regards
Lyndon
- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 17, 2004 11:08 AM
Subject: [OFF TOPIC] RE: enormous loggin when starting tomcat


Your root logger might be set at debug level, or you have set debug
logging on struts. Have you got a log4j config going?
-Original Message-
From: koen boutsen [mailto:[EMAIL PROTECTED]
Sent: 17 November 2004 11:03
To: [EMAIL PROTECTED]
Subject: enormous loggin when starting tomcat
Hello
I'm using Tomcat 5.0.28 and I'm trying to deploy a struts application.
This application is rather large and so is my struts-config.xml file.
When tomcat starts or I restart the application, I have to
wait more than a minute (sometimes 4') before all the log
messages are done.
Does anyone have an idea what's the cause of this and how I
can resolve it ?
Thanks in advance
Koen
--
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
om/default.asp?SRC=lycos10
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT
-
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]

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


RE: Tomcat - 4.1 - SSL redirect only works on ports 80 and 443

2004-11-11 Thread khanaz
Dave-
Please post the non-ssl and ssl connector fields from your server.xml file

Azam Khan

-Original Message-
From: David Austin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 10, 2004 9:53 AM
To: [EMAIL PROTECTED]
Subject: Tomcat - 4.1 - SSL redirect only works on ports 80 and 443

Good Morning,
   This is my first post to this site, so please go easy on me...

I am running a tomcat 4.1 standalone server and I am trying to implement an
SSL connector.  I followed the instructions and was able to successfully get
it to work with one problem:  For some reason the redirect only works when i
set the non-SSL port to 80 and the SSL port to 443. When I try any other
ports (including the default ports 8080, and 8443), it fails to redirect. 

When I type https://localhost:8080 i get a page not found or other browser
error.  

When I change the ports to 80 and 443 respectively, and type in
https://localhost/  it works fine.

I am running Fedora linux

Any ideas?

Thanks,
Dave


-
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: Tomcat - 4.1 - SSL redirect only works on ports 8

2004-11-11 Thread David Austin
 Ok, here are my connector tags:

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=1 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
   
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=1 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS /
/Connector





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



Tomcat - 4.1 - SSL redirect only works on ports 80 and 443

2004-11-10 Thread David Austin
Good Morning,
   This is my first post to this site, so please go easy on me...

I am running a tomcat 4.1 standalone server and I am trying to implement an SSL 
connector.  I followed the instructions and was able to successfully get it to 
work with one problem:  For some reason the redirect only works when i set the 
non-SSL port to 80 and the SSL port to 443. When I try any other ports 
(including the default ports 8080, and 8443), it fails to redirect. 

When I type https://localhost:8080 i get a page not found or other browser 
error.  

When I change the ports to 80 and 443 respectively, and type in 
https://localhost/  it works fine.

I am running Fedora linux

Any ideas?

Thanks,
Dave


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



Re: webapp exceptions redirect them to webapps log

2004-11-01 Thread Shahin Hadjikuliev
Hi,
To write a information to the log file , you have to add a line in your code, 
I didn't know how to configure it over server.xml


On Fri, 29 Oct 2004 17:14:46 -0700, Mufaddal Khumri
[EMAIL PROTECTED] wrote:
 Hi,
 
 I am using Tomcat 5.0.27. I am using a FileLogger as the appender
 (log4j) to write my logs to under WEB-INF/log.
 
 How do I configure tomcat to send output resulting from exceptions in
 my webapp to this log file? Do I have to configure server.xml to do so?
 
 Mufaddal Khumri
 
 -
 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: webapp exceptions redirect them to webapps log

2004-11-01 Thread Shahin Hadjikuliev
Sorry
 I didn't know how to configure it over server.xml
I don't knwo :)

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



RE: webapp exceptions redirect them to webapps log

2004-11-01 Thread Shapira, Yoav

Hi,

How do I configure tomcat to send output resulting from exceptions in
my webapp to this log file? Do I have to configure server.xml to do so?

It's not a Tomcat configuration matter.  In your application,
try {
  ...
} catch (Exception e) {
  logger.error(Oops, e);
}

In fact, one of the *major* benefits of having switched to log4j is that
you don't mix logging and Tomcat configurations.  You're portable.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



webapp exceptions redirect them to webapps log

2004-10-29 Thread Mufaddal Khumri
Hi,
I am using Tomcat 5.0.27. I am using a FileLogger as the appender 
(log4j) to write my logs to under WEB-INF/log.

How do I configure tomcat to send output resulting from exceptions in 
my webapp to this log file? Do I have to configure server.xml to do so?

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


Re: AW: How to redirect http to https automatically?

2004-10-18 Thread raiden
Hello,

I believe all but your third example is correct.  I am pretty sure that a
cookie set for www.domaina.com will be sent to that same domain if it's in
http or https.

However, if the cookie is marked as secure, it will only be sent under
https.

This is what has caused the problem.  I still don't know why the Tomcat
team decided to take out the configurable option of forcing session
cookies that were created under https to be secure or not.  (I understand
that it makes a good default, from a security point of view.  But for
those that are aware of the security implications, we no longer have the
option to turn it off.)

This has caused a problem for many people, and has come up in numerous
threads since this change was made in the Tomcat 4.x line.  (Or perhaps,
the configurable option was added to the 3.x line, and never added to the
4.x and 5.x lines?)

http://www.junlu.com/msg/49789.html
http://www.mail-archive.com/[EMAIL PROTECTED]/msg83724.html
http://archives.real-time.com/pipermail/tomcat-devel/2001-October/024544.html

Thanks,
-Raiden Johnson


On Sat, 16 Oct 2004, Steffen Heil wrote:

 Hi

  Actually, I'm a big advocate against staying in HTTPS, because of the
 overhead.  However, this is a problem with Tomcat, because in the 4.x and
 5.x lines it was decided by someone that if a session started in HTTPS it is
 only valid in HTTPS (basically, the session cookie is turned into a secure
 cookie only).

 I do not understand this.
 I always thought cookies where only valid for ONE domain and ONE Protocol,
 so the following would be pairwise different and thus cannot share a cookie:

 http://www.domaina.com  http://www.domainb.com
 http://www.domaina.com  http://domainb.com
 http://www.domaina.com  https://www.domaina.com

 Is my view wrong? Is there a way to reattach a session to a request, if
 the old sessionID is kown?

 Regards,
   Steffen


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



AW: How to redirect http to https automatically?

2004-10-16 Thread Steffen Heil
Hi

 Actually, I'm a big advocate against staying in HTTPS, because of the
overhead.  However, this is a problem with Tomcat, because in the 4.x and
5.x lines it was decided by someone that if a session started in HTTPS it is
only valid in HTTPS (basically, the session cookie is turned into a secure
cookie only).

I do not understand this.
I always thought cookies where only valid for ONE domain and ONE Protocol,
so the following would be pairwise different and thus cannot share a cookie:

http://www.domaina.com  http://www.domainb.com
http://www.domaina.com  http://domainb.com
http://www.domaina.com  https://www.domaina.com

Is my view wrong? Is there a way to reattach a session to a request, if
the old sessionID is kown?

Regards,
  Steffen


smime.p7s
Description: S/MIME cryptographic signature


Re: How to redirect http to https automatically?

2004-10-15 Thread David Wall
I don't know the answer to that.  It's unlikely, though.  You could put
something like Apache in the front and use URL rewriting, which can
basically force any URL with a given pattern to be redirected, either
forcing HTTP or HTTPS and doing the redirect only when the scheme is not
what you want.

In general, though, when you know you are shifting between secure and
insecure, you should perhaps create URLs that make this explicit.  In
general, you enter a secure mode when starting a secure set of transactions,
and then switch back when you are done.  Of course, you could just stay with
HTTPS once they enter secure mode since securing the communications may have
overhead, but it adds privacy.

David


- Original Message - 
From: Antony Paul [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; David Wall
[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 9:42 PM
Subject: Re: How to redirect http to https automatically?


 Is it possible to switch from https to http using this kind of
configuration ?
 I tried with NONE for user constraint but it still remains in https.

 rgds
 Antony Paul


 On Thu, 14 Oct 2004 08:40:31 -0700, David Wall [EMAIL PROTECTED]
wrote:
  This is part of the servlet specs.  In  your WEB-INF/web.xml file, you
need
  a security constraint that says the site should be secure, something
like:
 
  security-constraint
   web-resource-collection
 web-resource-nameEntire site/web-resource-name
 url-pattern/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
   /web-resource-collection
   user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
  /security-constraint
 
  The confidential keyword ensures that the webapp will require https,
so if
  you try to get it via http, then the redirect stuff specifed in your
  server.xml will be applied.
 
  David
 
 
 
  - Original Message -
  From: Won Sim [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, October 13, 2004 8:13 AM
  Subject: How to redirect http to https automatically?
 
   I set redirectPort attribute to 443, which is my SSL connector port
  number,
   from port 80 connector in the server.xml. This doesn't redirect http
to
   https automatically. In other words, I still can access the
application
  via
   http://server/myapp. I want to know how to redirect http to https
   automatically so when I enter http://server/myapp, Tomcat redirects to
   htts://server/myapp. I am using Tomcat 4.1.30.
  
   Thanks in advance.
   Won.
  
   _
   Don't just search. Find. Check out the new MSN Search!
   http://search.msn.click-url.com/go/onm00200636ave/direct/01/
  
  
   -
   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]
 
 


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



Re: How to redirect http to https automatically?

2004-10-15 Thread raiden
Actually, I'm a big advocate against staying in HTTPS, because of the
overhead.  However, this is a problem with Tomcat, because in the 4.x and
5.x lines it was decided by someone that if a session started in HTTPS it
is only valid in HTTPS (basically, the session cookie is turned into a
secure cookie only).

There have been threads on this in the past, where myself and others asked
why this behavior was changed in Tomcat 4.x and Tomcat 5.x (there used to
be an option as to whether or not the sessions would be secure only if
they were started in HTTPS), and the general consensus seemed to be that
it was best to do it this way so developers don't make mistakes.

In general, with other application servers, if you're switching between
HTTP and HTTPS, you just have to make sure that:
1. Any page that requires privacy is in HTTPS
2. That you drop a secure cookie under HTTPS the first time someone logs
in, so that that cookie is only returned when they view HTTPS pages.

That will protect them from being session hijacked.  (They can still be
session hijacked using their jsessionid on HTTP pages, but that is always
the case.  But, noone will be able to view their HTTPS pages using the
jsessionid unless they also have that secure cookie.)

As it stands, each time a new version of Tomcat comes out, I have to hack
away at the connector code to turn off the forced HTTPS session behavior.
I haven't felt competent enough to submit a patch to the Tomcat code to
try and restore the 3.x option for this, but hopefully I will soon. =P

Thanks,
-Raiden Johnson


On Fri, 15 Oct 2004, David Wall wrote:

 I don't know the answer to that.  It's unlikely, though.  You could put
 something like Apache in the front and use URL rewriting, which can
 basically force any URL with a given pattern to be redirected, either
 forcing HTTP or HTTPS and doing the redirect only when the scheme is not
 what you want.

 In general, though, when you know you are shifting between secure and
 insecure, you should perhaps create URLs that make this explicit.  In
 general, you enter a secure mode when starting a secure set of transactions,
 and then switch back when you are done.  Of course, you could just stay with
 HTTPS once they enter secure mode since securing the communications may have
 overhead, but it adds privacy.

 David


 - Original Message -
 From: Antony Paul [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]; David Wall
 [EMAIL PROTECTED]
 Sent: Thursday, October 14, 2004 9:42 PM
 Subject: Re: How to redirect http to https automatically?


  Is it possible to switch from https to http using this kind of
 configuration ?
  I tried with NONE for user constraint but it still remains in https.
 
  rgds
  Antony Paul
 
 
  On Thu, 14 Oct 2004 08:40:31 -0700, David Wall [EMAIL PROTECTED]
 wrote:
   This is part of the servlet specs.  In  your WEB-INF/web.xml file, you
 need
   a security constraint that says the site should be secure, something
 like:
  
   security-constraint
web-resource-collection
  web-resource-nameEntire site/web-resource-name
  url-pattern/*/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
   /security-constraint
  
   The confidential keyword ensures that the webapp will require https,
 so if
   you try to get it via http, then the redirect stuff specifed in your
   server.xml will be applied.
  
   David
  
  
  
   - Original Message -
   From: Won Sim [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, October 13, 2004 8:13 AM
   Subject: How to redirect http to https automatically?
  
I set redirectPort attribute to 443, which is my SSL connector port
   number,
from port 80 connector in the server.xml. This doesn't redirect http
 to
https automatically. In other words, I still can access the
 application
   via
http://server/myapp. I want to know how to redirect http to https
automatically so when I enter http://server/myapp, Tomcat redirects to
htts://server/myapp. I am using Tomcat 4.1.30.
   
Thanks in advance.
Won.
   
_
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
   
   
-
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]
  
  


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

Re: How to redirect http to https automatically?

2004-10-14 Thread David Wall
This is part of the servlet specs.  In  your WEB-INF/web.xml file, you need
a security constraint that says the site should be secure, something like:

security-constraint
  web-resource-collection
web-resource-nameEntire site/web-resource-name
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
  /web-resource-collection
  user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint

The confidential keyword ensures that the webapp will require https, so if
you try to get it via http, then the redirect stuff specifed in your
server.xml will be applied.

David

- Original Message - 
From: Won Sim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 8:13 AM
Subject: How to redirect http to https automatically?


 I set redirectPort attribute to 443, which is my SSL connector port
number,
 from port 80 connector in the server.xml. This doesn't redirect http to
 https automatically. In other words, I still can access the application
via
 http://server/myapp. I want to know how to redirect http to https
 automatically so when I enter http://server/myapp, Tomcat redirects to
 htts://server/myapp. I am using Tomcat 4.1.30.

 Thanks in advance.
 Won.

 _
 Don't just search. Find. Check out the new MSN Search!
 http://search.msn.click-url.com/go/onm00200636ave/direct/01/


 -
 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: How to redirect http to https automatically?

2004-10-14 Thread Antony Paul
Is it possible to switch from https to http using this kind of configuration ?
I tried with NONE for user constraint but it still remains in https.  

rgds
Antony Paul


On Thu, 14 Oct 2004 08:40:31 -0700, David Wall [EMAIL PROTECTED] wrote:
 This is part of the servlet specs.  In  your WEB-INF/web.xml file, you need
 a security constraint that says the site should be secure, something like:
 
 security-constraint
  web-resource-collection
web-resource-nameEntire site/web-resource-name
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
  /web-resource-collection
  user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint
 
 The confidential keyword ensures that the webapp will require https, so if
 you try to get it via http, then the redirect stuff specifed in your
 server.xml will be applied.
 
 David
 
 
 
 - Original Message -
 From: Won Sim [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 13, 2004 8:13 AM
 Subject: How to redirect http to https automatically?
 
  I set redirectPort attribute to 443, which is my SSL connector port
 number,
  from port 80 connector in the server.xml. This doesn't redirect http to
  https automatically. In other words, I still can access the application
 via
  http://server/myapp. I want to know how to redirect http to https
  automatically so when I enter http://server/myapp, Tomcat redirects to
  htts://server/myapp. I am using Tomcat 4.1.30.
 
  Thanks in advance.
  Won.
 
  _
  Don't just search. Find. Check out the new MSN Search!
  http://search.msn.click-url.com/go/onm00200636ave/direct/01/
 
 
  -
  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]
 


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



Server side redirect

2004-09-08 Thread Sreejith
Hi all,
It is possible to do a server side redirect to another Tomcat Server
(any other web server)? I dont want to use status codes 3xx, as this
involves the user agent in redirection.

Sreejith


Re: Server side redirect

2004-09-08 Thread Tim Funk
Tomcat 5 has a balancer webapp.
-Tim
Sreejith wrote:
Hi all,
It is possible to do a server side redirect to another Tomcat Server
(any other web server)? I dont want to use status codes 3xx, as this
involves the user agent in redirection.
Sreejith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Server side redirect

2004-09-08 Thread Sjoerd van Leent
Sreejith wrote:
Hi all,
   It is possible to do a server side redirect to another Tomcat Server
(any other web server)? I dont want to use status codes 3xx, as this
involves the user agent in redirection.
Sreejith

What you are asking is to locate a resource on another server. If you 
want to do this you need to route the request to another server (setting 
tomcat as a proxy). You are more or less making the server the 
browser-client is talking to another client of a deeper server. More or 
less like the following illustration:

   browser -- tomcat -- another tomcat
In most cases it would be more wise to setup another webserver (such as 
apache) that routes your requests to different tomcat servers (using the 
mod_jk extension or something like that), which looks more like the 
following:

   -- first tomcat
   browser -- proxy (apache for instance) -- second tomcat
   -- third tomcat
May I ask what you are actually trying to do?
Regards,
Sjoerd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Server side redirect

2004-09-08 Thread Sreejith
Thanks for the reply Sjoerd..

I am trying to write a framework over Tomcat, which can be used to manage
the web apps.
The framework maintains certain access levels based on the request data
(from client). Following certains buisness rules, framework does forwarding
(server side, using req Despatcher) to the appropriate web apps. In certain
scenarios, it may be required to redirect to a third party (remotely hosted)
web application. Can you tellme, what is the best approach to implement this
with out using 3xx response codes?

Thanks
Sreejith

-Original Message-
From: Sjoerd van Leent [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 4:41 PM
To: Tomcat Users List
Subject: Re: Server side redirect


Sreejith wrote:

Hi all,
It is possible to do a server side redirect to another Tomcat Server
(any other web server)? I dont want to use status codes 3xx, as this
involves the user agent in redirection.

Sreejith


What you are asking is to locate a resource on another server. If you
want to do this you need to route the request to another server (setting
tomcat as a proxy). You are more or less making the server the
browser-client is talking to another client of a deeper server. More or
less like the following illustration:

browser -- tomcat -- another tomcat

In most cases it would be more wise to setup another webserver (such as
apache) that routes your requests to different tomcat servers (using the
mod_jk extension or something like that), which looks more like the
following:

-- first tomcat
browser -- proxy (apache for instance) -- second tomcat
-- third tomcat

May I ask what you are actually trying to do?

Regards,
Sjoerd


-
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: Server side redirect

2004-09-08 Thread Sjoerd van Leent
Okay, you are trying to perform a forward from one server to another. 
Well the most easy option is to use a 306 but as you stated, you don't 
want to use any header redirects (though all conformant browsers accept 
these). Your next option is to reroute the messages from your server to 
another server and let that server decide what to do (this is what's 
called a proxy). The only thing the first server is doing is being sheepish.
Using this technique as I explained below, you can redirect 
cross-server, or if you want, cross-application without the need for the 
browser to know what's going on. Making a proxy can be done in all kinds 
of manners, one of them should probably fit your needs.
A third option, which is usable with large scaled applications, is to 
use node systems, but this is only necessary for huge systems.

If there is a question regarding to proxying do not hesitate to ask.
Regards,
Sjoerd
Sreejith wrote:
Thanks for the reply Sjoerd..
I am trying to write a framework over Tomcat, which can be used to manage
the web apps.
The framework maintains certain access levels based on the request data
(from client). Following certains buisness rules, framework does forwarding
(server side, using req Despatcher) to the appropriate web apps. In certain
scenarios, it may be required to redirect to a third party (remotely hosted)
web application. Can you tellme, what is the best approach to implement this
with out using 3xx response codes?
Thanks
Sreejith
-Original Message-
From: Sjoerd van Leent [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 4:41 PM
To: Tomcat Users List
Subject: Re: Server side redirect
Sreejith wrote:
 

Hi all,
  It is possible to do a server side redirect to another Tomcat Server
(any other web server)? I dont want to use status codes 3xx, as this
involves the user agent in redirection.
Sreejith
   

What you are asking is to locate a resource on another server. If you
want to do this you need to route the request to another server (setting
tomcat as a proxy). You are more or less making the server the
browser-client is talking to another client of a deeper server. More or
less like the following illustration:
   browser -- tomcat -- another tomcat
In most cases it would be more wise to setup another webserver (such as
apache) that routes your requests to different tomcat servers (using the
mod_jk extension or something like that), which looks more like the
following:
   -- first tomcat
   browser -- proxy (apache for instance) -- second tomcat
   -- third tomcat
May I ask what you are actually trying to do?
Regards,
Sjoerd
-
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]
 


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


redirect to insecure

2004-08-27 Thread Michael Eastwood
Hi,
One part of a site I've done has automatic SSL redirection using the
transport-guarantee element in web.xml to ensure SSL communication
with the sensitive parts of site.
The other parts of the site I'd like not to be encrypted.  If I go to
the secure part, however, then back to a non-secure part,
the https:// remains (as I'm using relative URLs).  Is it possible to 
configure
these non secure sections to redirect to no encryption (so that a
request to https://.../nonsecureservlet/ is redirected to
http://.../nonsecureservlet/) without doing a protocol check all of my
servlets or making all of my links absolute?  I've tried

security-constraint
web-resource-collection
web-resource-nameAutomatic SLL
Unforwarding/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint
to no effect.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: redirect to insecure

2004-08-27 Thread Tim Funk
No. There is no way to say the transport must be http (and not https).
You'll need a filter or code it into each resource that has that issue.
-Tim
Michael Eastwood wrote:
Hi,
One part of a site I've done has automatic SSL redirection using the
transport-guarantee element in web.xml to ensure SSL communication
with the sensitive parts of site.
The other parts of the site I'd like not to be encrypted.  If I go to
the secure part, however, then back to a non-secure part,
the https:// remains (as I'm using relative URLs).  Is it possible to 
configure
these non secure sections to redirect to no encryption (so that a
request to https://.../nonsecureservlet/ is redirected to
http://.../nonsecureservlet/) without doing a protocol check all of my
servlets or making all of my links absolute?  I've tried

security-constraint
web-resource-collection
web-resource-nameAutomatic SLL
Unforwarding/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint
to no effect.
-
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]


How to redirect URL in Tomcat 4 server,xml?

2004-08-19 Thread Jürgen Schwarz
Hi,
I want to redirect requests to another URL (different server) using the 
server.xml configuration file.
Something like the Redirect directive in Apache Server except that I have 
only Apache Tomcat and not Apache Server.

Is this possible to do in the server.xml file?
Bye,
   Juergen

GEFASOFT AG
Dessauerstraße 15, 80992 München
Phone +49(89)125565-155, Fax +49(89)125565-180
mailto:[EMAIL PROTECTED]
http://www.gefasoft.de
20 Jahre GEFASOFT
Kontinuität  Innovation
...mitfeiern ­ mitgewinnen
bei der Tour de GEFASOFT!
www.gefasoft.de

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


Re: How to redirect URL in Tomcat 4 server,xml?

2004-08-19 Thread Tim Funk
Nope. Not in server.xml
-Tim
Jürgen Schwarz wrote:
Hi,
I want to redirect requests to another URL (different server) using the 
server.xml configuration file.
Something like the Redirect directive in Apache Server except that I 
have only Apache Tomcat and not Apache Server.

Is this possible to do in the server.xml file?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: redirect output in win 2000 from comandline

2004-07-27 Thread Alberto Marino
yes, but comand line open other cmd with Tomcat and I don´t know how redirect this cmd 
because startup initialize automaticaly.

Jérôme_Duval [EMAIL PROTECTED] wrote:To redirect to a file put filename.extension 
System.err will still be in
your prompt window though. The only way you can redirect System.err is
programatically (look at the Java API in the System class (java.lang I
believe...))

-Original Message-
From: Alberto Marino [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 26, 2004 4:51 PM
To: Tomcat Users List
Subject: redirect output in win 2000 from comandline

I start Tomcat since comandline but how can I redirect this output from a
file in a comandline in win 2000?

Ruth, Brice 
wrote:How are you starting Tomcat? If
you're starting tomcat from the cmdline, then it will send STDOUT  STDERR
to the console. If you're starting it as a service, then it should create
stdout.log and stderr.log in the TOMCAT_HOME/logs directory. If you're
running Tomcat from Eclipse, or other IDEs, then STDOUT  STDERR typically
get redirected to the IDE's console.

Caveat - if the Host in server.xml and/or your Context definition contain a
logging element, then most logging will get redirected to that log file, I
believe.

Alberto Marino wrote:

Yes, I have files like localhost_log.2004-07-24.txt but this files don´t
show java output. For example, when you have in your code
System.out.println(.) I don´t know where must see for the output. In
linux I know that there are a file like catalina.out that show this output
but in Windows 2000 I dont´t know.

John Najarian wrote:I know mine is on XP but my friend runs on 2000.
You should have an stdout.log  localhost_log...
files in the Jakarta.../logs directory.

Try doing a search under Jakarta... for files modified today. Perhaps 
you inadvertently put it in some other directory a maybe under another 
name.

-Original Message-
From: Alberto Marino [mailto:[EMAIL PROTECTED]
Sent: Monday, July 26, 2004 12:52 PM
To: Tomcat Users List
Subject: Re: how I can to see the output in tomcat from windows 2000

Sorry, in mi /logs directory only there are
localhost_log.2004-XX-XX.txt
files but not anyone

Ruth, Brice 
wrote:There should be a logs directory in your TOMCAT_HOME directory 
... so, if you installed Tomcat to C:\Program Files\Apache Tomcat\ - 
then look for a logs directory there. You'll find the same 
catalina.out file and catalina.err file there.

Alberto Marino wrote:

 

Note: forwarded message attached.

--
--

Nuevo Yahoo! Búsquedas




--
--

Subject:
how I can to see the output in tomcat from windows 2000
From:
Alberto Marino
Date:
Mon, 26 Jul 2004 16:57:17 +0200 (CEST)
To:
[EMAIL PROTECTED]

To:
[EMAIL PROTECTED]


Hi, I would like to know how I can to see the output in tomcat for 
depure mi aplication. In linux I can see the catalina.out in /logs 
directory but in Windows 2000 I don´t know.

Please help me! Thanks.

--
--

Nuevo Yahoo! Búsquedas



--
--

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

 


 


--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


-
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]




-



redirect output in win 2000 from comandline

2004-07-26 Thread Alberto Marino
I start Tomcat since comandline but how can I redirect this output from a file in a 
comandline in win 2000?

Ruth, Brice [EMAIL PROTECTED] wrote:How are you starting Tomcat? If you're 
starting tomcat from the cmdline, 
then it will send STDOUT  STDERR to the console. If you're starting it 
as a service, then it should create stdout.log and stderr.log in the 
TOMCAT_HOME/logs directory. If you're running Tomcat from Eclipse, or 
other IDEs, then STDOUT  STDERR typically get redirected to the IDE's 
console.

Caveat - if the Host in server.xml and/or your Context definition 
contain a logging element, then most logging will get redirected to that 
log file, I believe.

Alberto Marino wrote:

Yes, I have files like localhost_log.2004-07-24.txt but this files don´t show java 
output. For example, when you have in your code System.out.println(.) I don´t 
know where must see for the output. In linux I know that there are a file like 
catalina.out that show this output but in Windows 2000 I dont´t know.

John Najarian wrote:I know mine is on XP but my friend runs on 2000.
You should have an stdout.log  localhost_log...
files in the Jakarta.../logs directory.

Try doing a search under Jakarta... for files
modified today. Perhaps you inadvertently
put it in some other directory a maybe under
another name.

-Original Message-
From: Alberto Marino [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 26, 2004 12:52 PM
To: Tomcat Users List
Subject: Re: how I can to see the output in tomcat from windows 2000

Sorry, in mi /logs directory only there are localhost_log.2004-XX-XX.txt
files but not anyone

Ruth, Brice 
wrote:There should be a logs directory in
your TOMCAT_HOME directory ... so, 
if you installed Tomcat to C:\Program Files\Apache Tomcat\ - then look 
for a logs directory there. You'll find the same catalina.out file and 
catalina.err file there.

Alberto Marino wrote:

 

Note: forwarded message attached.



Nuevo Yahoo! Búsquedas 






Subject:
how I can to see the output in tomcat from windows 2000
From:
Alberto Marino 
Date:
Mon, 26 Jul 2004 16:57:17 +0200 (CEST)
To:
[EMAIL PROTECTED]

To:
[EMAIL PROTECTED]


Hi, I would like to know how I can to see the output in tomcat for 
depure mi aplication. In linux I can see the catalina.out in /logs 
directory but in Windows 2000 I don´t know.

Please help me! Thanks.



Nuevo Yahoo! Búsquedas 





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

 


 


-- 
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


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




-



  1   2   3   4   5   6   >