Authentication 401 not passing login box to apache2

2005-07-07 Thread Phil Jones
Hi

First apologies, I am a total newbie to this stuff so please don't eat 
me alive. :)

I'm driving myself up the wall with this one and hope you can help. 
although there doesn't seem to be anything in the archive.

I've got tomcat 5.5 setup and working on localhost directly.

I've complied and installed mod_jk so I can access webapps (specifically
davenport) through apache 2.

It works fine, until I try to go to a page that needs an authentication box.
Apache just returns a page saying:


Unauthorized

This server could not verify that you are authorized to access the document
requested. 
Either you supplied the wrong credentials (e.g., bad password), or
your browser doesn't understand how to supply the credentials required.

Additionally, a 401 Authorization Required error was encountered while 
trying to
use an ErrorDocument to handle the request.


Frustrating as it didn't even give me a login box to try!

Accessing tomcat directly gives the login box and everything works fine. 
So I am thinking it is something to do with my mod_jk.so or apache conf?

Any ideas? I am losing my mind!

Thanks for your help

Phil Jones


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



Re: timeout when reading 401 response [was: persistent HTTP 1.1 connections with Tomcat 5.5.4?]

2005-01-06 Thread Garret Wilson
It looks like the timeout is occurring when the first response is being 
read, so this changes the problem.

I'm receiving a 401 Unauthorized response with the following headers:
Server: Apache-Coyote/1.1
WWW-Authenticate: [...]
Content-Type: text/html;charset=utf-8
Content-Length: 952
Date: Thu, 06 Jan 2005 19:47:43 GMT
I try to read the 952 bytes, and that's when I get the 15-second hang 
before a timeout.

The response is generated on the server with:
response.sendError(401);
Where are those 952 bytes, and why can't I read them, I wonder?
Garret
Garret Wilson wrote:
Does Tomcat 5.5.4 support HTTP 1.1 persistent connections?
I'm connecting to a Tomcat servlet from a custom Java client, and the 
first request/response goes fine:

socketAddress=new InetSocketAddress(host, port);
channel=SocketChannel.open(socketAddress);
inputStream=new BufferedInputStream(newInputStream(channel));
outputStream=new BufferedOutputStream(newOutputStream(channel));
The response headers do *not* have a Connection: close header, which 
means the connection should stay open.

The response is a 401 Unauthorized, so I place credentials in the 
request and send it again to the same output stream. Then I try to read 
another response from the same input stream. My program hangs until the 
connection times out.

What the matter with persistent connections here?
Thanks,
Garret
-
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: timeout when reading 401 response [was: persistent HTTP 1.1 connections with Tomcat 5.5.4?]

2005-01-06 Thread Garret Wilson
So this is getting stranger.
Just to preclude any error on my part, I did a simple loop that output 
every character received from the response. The HTTP response status 
line and headers come down fine, including the CRLF that separates the 
headers from the body. And then---timeout after 15 seconds.

But the strange part is that if I connect using Firefox, I can view the 
entire response---an HTML document including the 401 status code. This 
document length is---you guessed it---952 bytes long, just like the 
Content-Length header says.

Why can't I read the body from Java, yet Firefox can read it? Is there a 
bug with Channels.newInputStream()?

Garret
Garret Wilson wrote:
It looks like the timeout is occurring when the first response is being 
read, so this changes the problem.

I'm receiving a 401 Unauthorized response with the following headers:
Server: Apache-Coyote/1.1
WWW-Authenticate: [...]
Content-Type: text/html;charset=utf-8
Content-Length: 952
Date: Thu, 06 Jan 2005 19:47:43 GMT
I try to read the 952 bytes, and that's when I get the 15-second hang 
before a timeout.

The response is generated on the server with:
response.sendError(401);
Where are those 952 bytes, and why can't I read them, I wonder?
Garret
Garret Wilson wrote:
Does Tomcat 5.5.4 support HTTP 1.1 persistent connections?
I'm connecting to a Tomcat servlet from a custom Java client, and the 
first request/response goes fine:

socketAddress=new InetSocketAddress(host, port);
channel=SocketChannel.open(socketAddress);
inputStream=new BufferedInputStream(newInputStream(channel));
outputStream=new BufferedOutputStream(newOutputStream(channel));
The response headers do *not* have a Connection: close header, which 
means the connection should stay open.

The response is a 401 Unauthorized, so I place credentials in the 
request and send it again to the same output stream. Then I try to 
read another response from the same input stream. My program hangs 
until the connection times out.

What the matter with persistent connections here?
Thanks,
Garret
-
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: timeout when reading 401 response [was: persistent HTTP 1.1 connectionswith Tomcat 5.5.4?]

2005-01-06 Thread Wade Chandler
Garret Wilson wrote:
So this is getting stranger.
Just to preclude any error on my part, I did a simple loop that output 
every character received from the response. The HTTP response status 
line and headers come down fine, including the CRLF that separates the 
headers from the body. And then---timeout after 15 seconds.

But the strange part is that if I connect using Firefox, I can view the 
entire response---an HTML document including the 401 status code. This 
document length is---you guessed it---952 bytes long, just like the 
Content-Length header says.

Why can't I read the body from Java, yet Firefox can read it? Is there a 
bug with Channels.newInputStream()?

Garret
Garret Wilson wrote:
It looks like the timeout is occurring when the first response is 
being read, so this changes the problem.

I'm receiving a 401 Unauthorized response with the following headers:
Server: Apache-Coyote/1.1
WWW-Authenticate: [...]
Content-Type: text/html;charset=utf-8
Content-Length: 952
Date: Thu, 06 Jan 2005 19:47:43 GMT
I try to read the 952 bytes, and that's when I get the 15-second hang 
before a timeout.

The response is generated on the server with:
response.sendError(401);
Where are those 952 bytes, and why can't I read them, I wonder?
Garret
Garret Wilson wrote:
Does Tomcat 5.5.4 support HTTP 1.1 persistent connections?
I'm connecting to a Tomcat servlet from a custom Java client, and the 
first request/response goes fine:

socketAddress=new InetSocketAddress(host, port);
channel=SocketChannel.open(socketAddress);
inputStream=new BufferedInputStream(newInputStream(channel));
outputStream=new BufferedOutputStream(newOutputStream(channel));
The response headers do *not* have a Connection: close header, 
which means the connection should stay open.

The response is a 401 Unauthorized, so I place credentials in the 
request and send it again to the same output stream. Then I try to 
read another response from the same input stream. My program hangs 
until the connection times out.

What the matter with persistent connections here?
Thanks,
Garret

Actually what is happening is this  You are using a buffered stream. 
 It is reading past the amount returnedand then the tcp/ip socket 
is blocking because you have it open as a keep alive.  You have to only 
read the number of bytes available and not keep trying to squeeze the 
blood out of the turnip... ;-) I'll almost bet you money that is what is 
happening.  Try to not use a buffered input stream and see what you get. 
 If I'm wrong I'm wrong let me know.  Hope it works.

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


Re: timeout when reading 401 response [was: persistent HTTP 1.1 connectionswith Tomcat 5.5.4?]

2005-01-06 Thread Wade Chandler
Wade Chandler wrote:
Garret Wilson wrote:
So this is getting stranger.
Just to preclude any error on my part, I did a simple loop that output 
every character received from the response. The HTTP response status 
line and headers come down fine, including the CRLF that separates the 
headers from the body. And then---timeout after 15 seconds.

But the strange part is that if I connect using Firefox, I can view 
the entire response---an HTML document including the 401 status code. 
This document length is---you guessed it---952 bytes long, just like 
the Content-Length header says.

Why can't I read the body from Java, yet Firefox can read it? Is there 
a bug with Channels.newInputStream()?

Garret
Garret Wilson wrote:
It looks like the timeout is occurring when the first response is 
being read, so this changes the problem.

I'm receiving a 401 Unauthorized response with the following headers:
Server: Apache-Coyote/1.1
WWW-Authenticate: [...]
Content-Type: text/html;charset=utf-8
Content-Length: 952
Date: Thu, 06 Jan 2005 19:47:43 GMT
I try to read the 952 bytes, and that's when I get the 15-second hang 
before a timeout.

The response is generated on the server with:
response.sendError(401);
Where are those 952 bytes, and why can't I read them, I wonder?
Garret
Garret Wilson wrote:
Does Tomcat 5.5.4 support HTTP 1.1 persistent connections?
I'm connecting to a Tomcat servlet from a custom Java client, and 
the first request/response goes fine:

socketAddress=new InetSocketAddress(host, port);
channel=SocketChannel.open(socketAddress);
inputStream=new BufferedInputStream(newInputStream(channel));
outputStream=new BufferedOutputStream(newOutputStream(channel));
The response headers do *not* have a Connection: close header, 
which means the connection should stay open.

The response is a 401 Unauthorized, so I place credentials in the 
request and send it again to the same output stream. Then I try to 
read another response from the same input stream. My program hangs 
until the connection times out.

What the matter with persistent connections here?
Thanks,
Garret

Actually what is happening is this  You are using a buffered stream. 
 It is reading past the amount returnedand then the tcp/ip socket is 
blocking because you have it open as a keep alive.  You have to only 
read the number of bytes available and not keep trying to squeeze the 
blood out of the turnip... ;-) I'll almost bet you money that is what is 
happening.  Try to not use a buffered input stream and see what you get. 
 If I'm wrong I'm wrong let me know.  Hope it works.

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


See the read method of the SocketChannel...as I'm sure it will be 
getting called by the InputStream wrapper from the object.  Don't think 
about trying to make the SocketChannel so that isBlocking returns false 
either because if all the data isn't there and it isn't blocking and the 
buffer doesn't have any data (at that exact moment you make a call) it 
will return as if it had read all of the data and then you'd be messed 
up that way to.

I'm writing this all assuming you are using keep alives.
Wade
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: timeout when reading 401 response [was: persistent HTTP 1.1 connectionswith Tomcat 5.5.4?]

2005-01-06 Thread Wade Chandler
Wade Chandler wrote:
Wade Chandler wrote:
Garret Wilson wrote:
So this is getting stranger.
Just to preclude any error on my part, I did a simple loop that 
output every character received from the response. The HTTP response 
status line and headers come down fine, including the CRLF that 
separates the headers from the body. And then---timeout after 15 
seconds.

But the strange part is that if I connect using Firefox, I can view 
the entire response---an HTML document including the 401 status code. 
This document length is---you guessed it---952 bytes long, just like 
the Content-Length header says.

Why can't I read the body from Java, yet Firefox can read it? Is 
there a bug with Channels.newInputStream()?

Garret
Garret Wilson wrote:
It looks like the timeout is occurring when the first response is 
being read, so this changes the problem.

I'm receiving a 401 Unauthorized response with the following headers:
Server: Apache-Coyote/1.1
WWW-Authenticate: [...]
Content-Type: text/html;charset=utf-8
Content-Length: 952
Date: Thu, 06 Jan 2005 19:47:43 GMT
I try to read the 952 bytes, and that's when I get the 15-second 
hang before a timeout.

The response is generated on the server with:
response.sendError(401);
Where are those 952 bytes, and why can't I read them, I wonder?
Garret
Garret Wilson wrote:
Does Tomcat 5.5.4 support HTTP 1.1 persistent connections?
I'm connecting to a Tomcat servlet from a custom Java client, and 
the first request/response goes fine:

socketAddress=new InetSocketAddress(host, port);
channel=SocketChannel.open(socketAddress);
inputStream=new BufferedInputStream(newInputStream(channel));
outputStream=new BufferedOutputStream(newOutputStream(channel));
The response headers do *not* have a Connection: close header, 
which means the connection should stay open.

The response is a 401 Unauthorized, so I place credentials in the 
request and send it again to the same output stream. Then I try to 
read another response from the same input stream. My program hangs 
until the connection times out.

What the matter with persistent connections here?
Thanks,
Garret

Actually what is happening is this  You are using a buffered 
stream.  It is reading past the amount returnedand then the tcp/ip 
socket is blocking because you have it open as a keep alive.  You have 
to only read the number of bytes available and not keep trying to 
squeeze the blood out of the turnip... ;-) I'll almost bet you money 
that is what is happening.  Try to not use a buffered input stream and 
see what you get.  If I'm wrong I'm wrong let me know.  Hope it works.

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


See the read method of the SocketChannel...as I'm sure it will be 
getting called by the InputStream wrapper from the object.  Don't think 
about trying to make the SocketChannel so that isBlocking returns false 
either because if all the data isn't there and it isn't blocking and the 
buffer doesn't have any data (at that exact moment you make a call) it 
will return as if it had read all of the data and then you'd be messed 
up that way to.

I'm writing this all assuming you are using keep alives.
Wade
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

And one more tad bit
If you really need to use buffering in this case it might make sense to 
do that in your read loop yourself so you can control the max number of 
bytes read...that or make a buffered input stream which you can set the 
max number of bytes to read into the buffer forover all max number 
that is.

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


Re: solved: timeout when reading 401 response [was: persistent HTTP 1.1 connectionswith Tomcat 5.5.4?]

2005-01-06 Thread Garret Wilson
Wade Chandler wrote:
Actually what is happening is this  You are using a buffered stream. 
 It is reading past the amount returnedand then the tcp/ip socket is 
blocking because you have it open as a keep alive.  You have to only 
read the number of bytes available and not keep trying to squeeze the 
blood out of the turnip... ;-) I'll almost bet you money that is what is 
happening.  Try to not use a buffered input stream and see what you get. 
 If I'm wrong I'm wrong let me know.  Hope it works.
Wade, thanks so very much for responding. I was sitting here dumbfounded 
wondering what in the world could be happening.

But you're wrong. ;)
I had already thrown out the BufferedInputStream to eliminate that. I 
switched to straight sockets. I set up a simple loop that simply read 
bytes until receiving a timeout. The timeout occurred after the CRLF 
divider, even though the Content-Length said 952. Accessing the site 
from Firefox showed all the content.

Puzzled? Yeah, so was I. Then I realized that in my Java client I was 
testing my new HTTP routines with the HEAD method!

(You can start the ridicule, now...)
The whole point of the HEAD method is that it doesn't send content---it 
simply sends a Content-Length indicating how long the content would have 
been. In fact, RFC 2616 says that the server MUST NOT return a 
message-body in the response for the HEAD method (9.4).

Now, what threw me off is that the response was an error status, a 401 
Unauthorized. The Content-Length is in line with the spec, returning the 
length of the content which would have been returned if a GET had been 
used. As an error was returned, however, the Content-Length was 
returning the length of the error message---the error message that would 
have been returned had a GET been used.

Now, all this is technically to the letter of RFC 2616, but I wonder 
what would happen if a server were to send back a 405 Method Not Allowed 
for HEAD. There would be no way to get at the error message, because 
HEAD doesn't send back content. Using GET would succeed, so technically 
the Content-Length of HEAD in this case wouldn't be the content length 
of a response from GET.

I'm thinking that RFC 2616 should probably have made an exception to the 
no content rule for HEAD when an error condition is being reported. But 
that's the least of my worries. I just need to tell my client to ignore 
all content in a response to HEAD. Oddly, though, this means that a 
thread can't simply pull HTTP responses down from a persistent 
connection without knowing to which request each response belongs---i.e. 
whether to trust the Content-Length or not!

In any case, thanks for the input. It looks like your responses will be 
useful when I finally switch over to non-blocking I/O support.

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


Re: solved: timeout when reading 401 response [was: persistent HTTP1.1 connectionswith Tomcat 5.5.4?]

2005-01-06 Thread Wade Chandler
Garret Wilson wrote:
Wade Chandler wrote:
Actually what is happening is this  You are using a buffered 
stream.  It is reading past the amount returnedand then the tcp/ip 
socket is blocking because you have it open as a keep alive.  You have 
to only read the number of bytes available and not keep trying to 
squeeze the blood out of the turnip... ;-) I'll almost bet you money 
that is what is happening.  Try to not use a buffered input stream and 
see what you get.  If I'm wrong I'm wrong let me know.  Hope it works.

Wade, thanks so very much for responding. I was sitting here dumbfounded 
wondering what in the world could be happening.

But you're wrong. ;)
I had already thrown out the BufferedInputStream to eliminate that. I 
switched to straight sockets. I set up a simple loop that simply read 
bytes until receiving a timeout. The timeout occurred after the CRLF 
divider, even though the Content-Length said 952. Accessing the site 
from Firefox showed all the content.

Puzzled? Yeah, so was I. Then I realized that in my Java client I was 
testing my new HTTP routines with the HEAD method!

(You can start the ridicule, now...)
The whole point of the HEAD method is that it doesn't send content---it 
simply sends a Content-Length indicating how long the content would have 
been. In fact, RFC 2616 says that the server MUST NOT return a 
message-body in the response for the HEAD method (9.4).

Now, what threw me off is that the response was an error status, a 401 
Unauthorized. The Content-Length is in line with the spec, returning the 
length of the content which would have been returned if a GET had been 
used. As an error was returned, however, the Content-Length was 
returning the length of the error message---the error message that would 
have been returned had a GET been used.

Now, all this is technically to the letter of RFC 2616, but I wonder 
what would happen if a server were to send back a 405 Method Not Allowed 
for HEAD. There would be no way to get at the error message, because 
HEAD doesn't send back content. Using GET would succeed, so technically 
the Content-Length of HEAD in this case wouldn't be the content length 
of a response from GET.

I'm thinking that RFC 2616 should probably have made an exception to the 
no content rule for HEAD when an error condition is being reported. But 
that's the least of my worries. I just need to tell my client to ignore 
all content in a response to HEAD. Oddly, though, this means that a 
thread can't simply pull HTTP responses down from a persistent 
connection without knowing to which request each response belongs---i.e. 
whether to trust the Content-Length or not!

In any case, thanks for the input. It looks like your responses will be 
useful when I finally switch over to non-blocking I/O support.

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

lol.  I won't ridiculewe all make the mistakes that make us go... 
(Homer Simpson)..DOH  Glad you got it resolved.

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


401 error

2004-10-23 Thread j r
hi,
 
  i just installed tomcat 5.0.28 and java 1.5.  when i go to localhost:8080 i get the 
tomcat default page, when i go to my ip like xxx.xxx.xxx.xxx:8080 i can a 401 error.  
my router is forwarding port 8080 to the right ip and i'm baffled as to what could be 
going on.  i'm a total newbie at this so any help would be appreciated.
 
thanks,
 
joe


-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

basic authentication and custom 401 error page

2004-09-24 Thread Angelov, Rossen
Hi,
We are running our applications on Tomcat 4 and 5. On both versions we are
having problems with the basic authentication.

The problem is that I haven't found a way to overwrite the default 401 error
page with a custom page.
If I add an error-page element in web.xml for error 401
error-page
error-code401/error-code
location/err401.html/location
/error-page
then the username/password window is completely ignored and the err401.html
page displayed.

I searched the archives and different forums but there are a lot of people
asking for help with similar problems without any responses.
I found two reported bugs related to that issue: 12194 and 22617 for tomcat
3 and 4

I didn't find any bugs for tomcat 5 but it still not working for me.

Any suggestions will be appreciated.

Thanks,
Ross


This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution.



Re: basic authentication and custom 401 error page

2004-09-24 Thread Gaurav Vaish
Hi Ross,

  Simply adding an error page will not do. You need to have a servlet
that will set the status of the response-page as 403
(HttpServletResponse.SC_UNAUTHORIZED)

   Look at the code-implementation of Security-Filter. It's good.
   http://sf.net/projects/securityfilter


HTH

Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
-



On Fri, 24 Sep 2004 09:33:13 -0500, Angelov, Rossen
[EMAIL PROTECTED] wrote:
 Hi,
 We are running our applications on Tomcat 4 and 5. On both versions we are
 having problems with the basic authentication.
 
 The problem is that I haven't found a way to overwrite the default 401 error
 page with a custom page.
 If I add an error-page element in web.xml for error 401
error-page
error-code401/error-code
location/err401.html/location
/error-page
 then the username/password window is completely ignored and the err401.html
 page displayed.
 
 I searched the archives and different forums but there are a lot of people
 asking for help with similar problems without any responses.
 I found two reported bugs related to that issue: 12194 and 22617 for tomcat
 3 and 4
 
 I didn't find any bugs for tomcat 5 but it still not working for me.
 
 Any suggestions will be appreciated.
 
 Thanks,
 Ross
 
 This communication is intended solely for the addressee and is
 confidential and not for third party unauthorized distribution.
 


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



Disable 401-Message in Tomcat 5.0.25

2004-06-28 Thread Jens . Mueller
Hi all,

it is possible, to disable the message wich appears, if I set
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); in Tomcat 5.0.25 ??

The Message looks like this:

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
htmlheadtitleApache Tomcat/5.0.25 - Error report/titlestyle!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo
nt-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:
12px;}A {color : black;}A.name {color : black;}HR {color :
#525D76;}--/style /headbodyh1HTTP Status 401 - /h1HR size=1
noshade=noshadepbtype/b Status report/ppbmessage/b
u/u/ppbdescription/b uThis request requires HTTP
authentication ()./u/pHR size=1 noshade=noshadeh3Apache
Tomcat/5.0.25/h3/body/html
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

- Jens

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



Re: Disable 401-Message in Tomcat 5.0.25

2004-06-28 Thread QM
On Mon, Jun 28, 2004 at 02:03:42PM +0200, [EMAIL PROTECTED] wrote:
: it is possible, to disable the message wich appears, if I set
: response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); in Tomcat 5.0.25 ??
[snip]

Clarify disable -- do you want to use a custom error page?  Check the
spec for that, it involves a couple of elements in web.xml.

If not, what else do you mean?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



AW: Disable 401-Message in Tomcat 5.0.25

2004-06-28 Thread Jens . Mueller
With disable I mean, that the Tomcat sends nothing. An empty
response-body. No Content. Just the HTTP-headers.
Is that possible?

Jens

-Ursprüngliche Nachricht-
Von: QM [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 28. Juni 2004 14:06
An: Tomcat Users List
Betreff: Re: Disable 401-Message in Tomcat 5.0.25


On Mon, Jun 28, 2004 at 02:03:42PM +0200, [EMAIL PROTECTED]
wrote:
: it is possible, to disable the message wich appears, if I set
: response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); in Tomcat 5.0.25
??
[snip]

Clarify disable -- do you want to use a custom error page?  Check the
spec for that, it involves a couple of elements in web.xml.

If not, what else do you mean?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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: Disable 401-Message in Tomcat 5.0.25

2004-06-28 Thread QM
On Mon, Jun 28, 2004 at 02:13:50PM +0200, [EMAIL PROTECTED] wrote:
: 
: With disable I mean, that the Tomcat sends nothing. An empty
: response-body. No Content. Just the HTTP-headers.
: Is that possible?

In my last message, I mentioned you could setup a custom page error page
(that is, one for each HTTP status code).

Why not give that a shot?  (Hint: try an empty file.)

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



ant install gives HTTP 401 error

2004-06-08 Thread Martin Olsson
Hi!
I would like to start developing web services in Java, therefore I've 
installed the web services dev pack from Sun. This pack contains a 
couple of samples and a copy of Tomcat (where the web services can be 
tested/executed).

I've been trying to get the gs (first 'getting started' sample 
application/webService) to work properly today, but with little success. 
When I run ant install the files compile etc but when ant tries to 
deploy the gs into a Tomcat context I get an error saying:

file:C:/jwstutorial13/examples/common/targets.xml:15: 
java.io.IOException: Server returned HTTP response code: 401 for URL: 
http://localhost:8080/manager/install?path=%2Fgswar=file%3A%2Fjwstutorial13%2Fexamples%2Fgs%2Fbuild

I looked in the tutorial and I saw that under Common Problems this 
very problem is discussed. It says I should install a build.properties 
file containing my Tomcat username/password but I've done this already. 
I've also double checked that the login details given in the 
build.properties file match the username/password in the 
conf/tomcat-users.xml file. Futher, I've double checked the spelling of 
the filenames and I've setup the environment variables CATALINA_HOME 
etc (also my path contains java, javac, ant, tomcat etc).

So, apparently I'm getting this 401 Forbidden error even though I've 
setup the account properly. Anyone experienced something similar? Where 
can I get more information about this, except from the error message 
itself and the logs? Any hints or comments would be greatly appreciated! 
Thanks.

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


Re: error-code 401

2003-08-14 Thread Georges Roux
Thanks anyway, but it doesn't work for me,
i get no name/pass challenge, i'm fowarded straight to the 401 error page
Georges

Mike Curwen wrote:

There appears to be a bug report on this, with a workaround.  Let us
know if it works for you Georges...
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18040


 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 9:23 AM
To: Tomcat Users List
Subject: RE: error-code 401



Howdy,
It's working, too slowly apparently ;)
Autographs after the show, please... ;)

Yoav Shapira
Millennium ChemInformatics
   

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:19 AM
To: Tomcat Users List
Subject: Re: error-code 401
Internet Explorer?

man Internet Explorer
No manual entry for Internet
No manual entry for Explorer
georges

Shapira, Yoav wrote:

 

Internet Explorer...

Yoav Shapira
Millennium ChemInformatics


   

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:02 AM
To: Tomcat Users List
Subject: Re: error-code 401
IE?
man ie
No manual entry for ie
georges

Abid Ali Teepo wrote:



 

Are you using IE ?, and have you deselected Show friendly HTTP
   

error
   

   

messages under Tools-Internet Options-Advanced

 

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: 7. august 2003 14:39
To: Tomcat Users List
Subject: error-code 401
Hi,

I'm trying to display custom error pages. My https 
   

context is BASIC 
   

protected, and now the site is automatically redirecting to the 
error page
   

before
   

asking for authentification...

I put this lines in web.xml

error-page
 error-code401/error-code
 locationerror/401.jsp/location
/error-page
I m using tomcat 4.1.27 standalone on linux.

I need your help please.





   

---
 

--
   

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]


   

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



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




RE: error-code 401

2003-08-14 Thread Shapira, Yoav

Internet Explorer...


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:02 AM
To: Tomcat Users List
Subject: Re: error-code 401

IE?
man ie
No manual entry for ie

georges

Abid Ali Teepo wrote:


Are you using IE ?, and have you deselected Show friendly HTTP error
messages under Tools-Internet Options-Advanced

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: 7. august 2003 14:39
To: Tomcat Users List
Subject: error-code 401


Hi,

I'm trying to display custom error pages. My https context is BASIC
protected,
and now the site is automatically redirecting to the error page before
asking for authentification...

I put this lines in web.xml

error-page
error-code401/error-code
locationerror/401.jsp/location
/error-page

I m using tomcat 4.1.27 standalone on linux.

I need your help please.






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



Re: error-code 401

2003-08-14 Thread Georges Roux
IE?
man ie
No manual entry for ie
georges

Abid Ali Teepo wrote:

Are you using IE ?, and have you deselected Show friendly HTTP error messages under Tools-Internet Options-Advanced

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: 7. august 2003 14:39
To: Tomcat Users List
Subject: error-code 401
Hi,

I'm trying to display custom error pages. My https context is BASIC 
protected,
and now the site is automatically redirecting to the error page before 
asking for authentification...

I put this lines in web.xml

error-page
   error-code401/error-code
   locationerror/401.jsp/location
/error-page
I m using tomcat 4.1.27 standalone on linux.

I need your help please.

 



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


Re: Failed Authentication: 401 error-page strange behavior

2003-08-14 Thread Lukas Bradley
In Bugzilla with a really bad hack fix.  I'm trying to reopen the ticket.

http://nagoya.apache.org/bugzilla/buglist.cgi?email1=emailtype1=substringemailassigned_to1=1email2=emailtype2=substringemailreporter2=1bugidtype=includebug_id=changedin=votes=chfieldfrom=chfieldto=Nowchfieldvalue=product=Tomcat+4short_desc=401short_desc_type=allwordssubstrlong_desc=long_desc_type=allwordssubstrbug_file_loc=bug_file_loc_type=allwordssubstrkeywords=keywords_type=allwordsfield0-0-0=nooptype0-0-0=noopvalue0-0-0=cmdtype=doitnewqueryname=order=%27Importance%27

Each of these has bad solutions, or states it is not a bug.  The one fix
does work, but it is very hackish.

Lukas





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



Failed Authentication: 401 error-page strange behavior

2003-08-14 Thread Lukas Bradley
I'm attempting to use a combination of an error-page for 401 codes and BASIC
authentication.  My version is Tomcat 4.1.27 on Windows XP.

Without the error-page, the authentication works fine.  A username/password
dialog is presented when attempting to enter the /sponsor, /webmaster, or
/admin directories.  However, with both the security-contraint and the
custom 401 error-page, only the /Beta.jsp is shown.  That is to say, the
dialog box is never shown-- the user is directed straight to the /Beta.jsp.

I've attempted to shutdown Tomcat, close all browsers, clean their cache,
destroy all cookies, deleted compiled pages, deleted serialized sessions,
and shave my cats, all to no avail.

Does anyone have any insight?  Other error-codes (500,404) work fine.  Only
the 401.  I've searched mail archives, and this problem has been mentioned
with earlier versions, but never quite in this manner.

 The web.xml looks as follows.

   error-page
error-code401/error-code
location/Beta.jsp/location
   /error-page

 security-constraint
   web-resource-collection
 web-resource-name
   Entire Application
 /web-resource-name
 url-pattern/sponsor/*/url-pattern
 url-pattern/webmaster/*/url-pattern
 url-pattern/admin/*/url-pattern
   /web-resource-collection
   auth-constraint
   role-nameMyAdmin/role-name
   /auth-constraint
 /security-constraint

 login-config
   auth-methodBASIC/auth-method
   realm-nameMy Members-only Area/realm-name
/login-config







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



RE: error-code 401

2003-08-11 Thread Mike Curwen
Ok, can we please stop poking the Unix geek?  
 
I'll say it for the record.  Georges is using LINUX in both a server AND
client capacity. Therefore, he is not using IE (Internet Explorer).
 
SHEESH!
 
Besides.. I've already linked the known issue.

 -Original Message-
 From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 07, 2003 7:55 AM
 To: Tomcat Users List
 Subject: RE: error-code 401
 
 
 
 
 Are you using IE ?, and have you deselected Show friendly 
 HTTP error messages under Tools-Internet Options-Advanced
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: 7. august 2003 14:39
 To: Tomcat Users List
 Subject: error-code 401
 
 
 Hi,
 
 I'm trying to display custom error pages. My https context is BASIC 
 protected,
 and now the site is automatically redirecting to the error 
 page before 
 asking for authentification...
 
 I put this lines in web.xml
 
 error-page
 error-code401/error-code
 locationerror/401.jsp/location
 /error-page
 
 I m using tomcat 4.1.27 standalone on linux.
 
 I need your help please.
 
 -- 
 
 Georges Roux
 
 
 
 
 -
 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: error-code 401

2003-08-10 Thread Georges Roux
Internet Explorer?

man Internet Explorer
No manual entry for Internet
No manual entry for Explorer
georges

Shapira, Yoav wrote:

Internet Explorer...

Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:02 AM
To: Tomcat Users List
Subject: Re: error-code 401
IE?
man ie
No manual entry for ie
georges

Abid Ali Teepo wrote:

   

Are you using IE ?, and have you deselected Show friendly HTTP error
 

messages under Tools-Internet Options-Advanced
   

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: 7. august 2003 14:39
To: Tomcat Users List
Subject: error-code 401
Hi,

I'm trying to display custom error pages. My https context is BASIC
protected,
and now the site is automatically redirecting to the error page before
asking for authentification...
I put this lines in web.xml

error-page
  error-code401/error-code
  locationerror/401.jsp/location
/error-page
I m using tomcat 4.1.27 standalone on linux.

I need your help please.



 

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



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


error-code 401

2003-08-10 Thread Georges Roux
Hi,

I'm trying to display custom error pages. My https context is BASIC 
protected,
and now the site is automatically redirecting to the error page before 
asking for authentification...

I put this lines in web.xml

error-page
   error-code401/error-code
   locationerror/401.jsp/location
/error-page
I m using tomcat 4.1.27 standalone on linux.

I need your help please.

--

   Georges Roux



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


RE: error-code 401

2003-08-09 Thread Mike Curwen
There appears to be a bug report on this, with a workaround.  Let us
know if it works for you Georges...
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18040



 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 07, 2003 9:23 AM
 To: Tomcat Users List
 Subject: RE: error-code 401
 
 
 
 Howdy,
 It's working, too slowly apparently ;)
 
 Autographs after the show, please... ;)
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 10:19 AM
 To: Tomcat Users List
 Subject: Re: error-code 401
 
 Internet Explorer?
 
 man Internet Explorer
 No manual entry for Internet
 No manual entry for Explorer
 
 
 georges
 
 
 Shapira, Yoav wrote:
 
 Internet Explorer...
 
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 10:02 AM
 To: Tomcat Users List
 Subject: Re: error-code 401
 
 IE?
 man ie
 No manual entry for ie
 
 georges
 
 Abid Ali Teepo wrote:
 
 
 
 Are you using IE ?, and have you deselected Show friendly HTTP
 error
 
 
 messages under Tools-Internet Options-Advanced
 
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: 7. august 2003 14:39
 To: Tomcat Users List
 Subject: error-code 401
 
 
 Hi,
 
 I'm trying to display custom error pages. My https 
 context is BASIC 
 protected, and now the site is automatically redirecting to the 
 error page
 before
 asking for authentification...
 
 I put this lines in web.xml
 
 error-page
error-code401/error-code
locationerror/401.jsp/location
 /error-page
 
 I m using tomcat 4.1.27 standalone on linux.
 
 I need your help please.
 
 
 
 
 
 
 ---
 --
 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]
 
 
 
 
 
 -
 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]
 


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



RE: error-code 401

2003-08-07 Thread Koes, Derrick

This is a known bug/feature.  I don't think it is planned to be changed.

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 8:39 AM
To: Tomcat Users List
Subject: error-code 401

Hi,

I'm trying to display custom error pages. My https context is BASIC 
protected,
and now the site is automatically redirecting to the error page before 
asking for authentification...

I put this lines in web.xml

error-page
error-code401/error-code
locationerror/401.jsp/location
/error-page

I m using tomcat 4.1.27 standalone on linux.

I need your help please.

-- 

Georges Roux




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: error-code 401

2003-08-07 Thread Abid Ali Teepo


Are you using IE ?, and have you deselected Show friendly HTTP error messages under 
Tools-Internet Options-Advanced

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: 7. august 2003 14:39
To: Tomcat Users List
Subject: error-code 401


Hi,

I'm trying to display custom error pages. My https context is BASIC 
protected,
and now the site is automatically redirecting to the error page before 
asking for authentification...

I put this lines in web.xml

error-page
error-code401/error-code
locationerror/401.jsp/location
/error-page

I m using tomcat 4.1.27 standalone on linux.

I need your help please.

-- 

Georges Roux




-
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: error-code 401

2003-08-07 Thread Abid Ali Teepo



Are you using IE ?, and have you deselected Show friendly HTTP error messages under 
Tools-Internet Options-Advanced

-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: 7. august 2003 14:39
To: Tomcat Users List
Subject: error-code 401


Hi,

I'm trying to display custom error pages. My https context is BASIC 
protected,
and now the site is automatically redirecting to the error page before 
asking for authentification...

I put this lines in web.xml

error-page
error-code401/error-code
locationerror/401.jsp/location
/error-page

I m using tomcat 4.1.27 standalone on linux.

I need your help please.

-- 

Georges Roux




-
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: error-code 401

2003-08-07 Thread Mike Curwen
sarcasm detector not working today Yoav ?  ;)


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 07, 2003 9:12 AM
 To: Tomcat Users List
 Subject: RE: error-code 401
 
 
 
 Internet Explorer...
 
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 07, 2003 10:02 AM
 To: Tomcat Users List
 Subject: Re: error-code 401
 
 IE?
 man ie
 No manual entry for ie
 
 georges
 
 Abid Ali Teepo wrote:
 
 
 Are you using IE ?, and have you deselected Show friendly 
 HTTP error
 messages under Tools-Internet Options-Advanced
 
 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: 7. august 2003 14:39
 To: Tomcat Users List
 Subject: error-code 401
 
 
 Hi,
 
 I'm trying to display custom error pages. My https context is BASIC 
 protected, and now the site is automatically redirecting to 
 the error 
 page before asking for authentification...
 
 I put this lines in web.xml
 
 error-page
 error-code401/error-code
 locationerror/401.jsp/location
 /error-page
 
 I m using tomcat 4.1.27 standalone on linux.
 
 I need your help please.
 
 
 
 
 
 
 -
 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]
 


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



RE: error-code 401

2003-08-07 Thread Shapira, Yoav

Howdy,
It's working, too slowly apparently ;)

Autographs after the show, please... ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:19 AM
To: Tomcat Users List
Subject: Re: error-code 401

Internet Explorer?

man Internet Explorer
No manual entry for Internet
No manual entry for Explorer


georges


Shapira, Yoav wrote:

Internet Explorer...


Yoav Shapira
Millennium ChemInformatics




-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:02 AM
To: Tomcat Users List
Subject: Re: error-code 401

IE?
man ie
No manual entry for ie

georges

Abid Ali Teepo wrote:



Are you using IE ?, and have you deselected Show friendly HTTP
error


messages under Tools-Internet Options-Advanced


-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: 7. august 2003 14:39
To: Tomcat Users List
Subject: error-code 401


Hi,

I'm trying to display custom error pages. My https context is BASIC
protected,
and now the site is automatically redirecting to the error page
before
asking for authentification...

I put this lines in web.xml

error-page
   error-code401/error-code
   locationerror/401.jsp/location
/error-page

I m using tomcat 4.1.27 standalone on linux.

I need your help please.






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





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



(401) unauthorised error

2003-07-03 Thread Agarwal, Naresh
Hi
 
I'm using Tomcat for deploying a Web App AXIS (SOAP implementation).
Now when I try to run the AXIS client from the local machine (where Tomcat is 
running), it is working fine.
However, when I try to run the AXIS client from a different machine, I get (401) 
unauthorised error code.  I'm not using any kind of authentication in Tomcat.
 
Could any one tell me what is the problem?
 
thanks  regards,
Naresh Agarwal


Re: (401) unauthorised error

2003-07-03 Thread Ben Souther
From the Axis User's Guide:

Remote Administration
Note that by default, the Axis server is configured to only accept 
administration requests from the machine on which it resides - if you wish to 
enable remote administration, you must set the enableRemoteAdmin property 
of the AdminService to true. To do this, find the server-config.wsdd file 
in your webapp's WEB-INF directory. In it, you'll see a deployment for the 
AdminService. Add an option as follows:


The Axis list would be a more appropriate place for this question.

Hope it helps
-Ben














On Thursday 03 July 2003 07:09 am, Agarwal, Naresh wrote:
 Hi

 I'm using Tomcat for deploying a Web App AXIS (SOAP implementation).
 Now when I try to run the AXIS client from the local machine (where Tomcat
 is running), it is working fine. However, when I try to run the AXIS client
 from a different machine, I get (401) unauthorised error code.  I'm not
 using any kind of authentication in Tomcat.

 Could any one tell me what is the problem?

 thanks  regards,
 Naresh Agarwal

-- 
Ben Souther
F.W. Davison  Company, Inc.



REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
September 18-19, 2003 in Boston/Brookline, MA
Additional Training Sessions held September 17, 2003
More info  http://www.fwdco.com/services/Uconf03/default.shtm


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



Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
I have spent roughly a day going through the Tomcat archives looking for a
solution to customizing an error page instead of displaying the default 401
or for that matter 403, or 404, or 500 error pages. I have modified my
web.xml file to contain the following: 

  error-page 
error-code401/error-code 
location/jcafe-error.jsp/location 
  /error-page 

I'm not getting any errors that would prevent Tomcat from starting. 

I've placed the jcafe-error.jsp (JSP containing the custom error 401 error
message) in the same directory that my index.jsp file resides in, which
kicks off the basic authentication; however, when I access my application
(e.g., index.jsp), I get the error page described in the jcafe-error.jsp
instead of the basic authentication login dialog. I've read some archive
traffic regarding this phenomena, but evidently it was a problem in Tomcat
4.0.1 and 4.0.2. I'm using Tomcat 4.0.3. So my question is this still a
problem (not supported due to bugs in 4.0.3) or am I doing something wrong.
Something that seems to be so easy turns out to be so hard so I'm assuming
I'm missing this up. Please help. 

Thank you in advance on the behalf of my manager who requested this silly
feature believing web users are all hopelessly lost and in need of
grammatically correct and informational error messages. 

With kind regards, 
Kevin Ritter

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



RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Shapira, Yoav

Howdy,

I'm not getting any errors that would prevent Tomcat from starting.

Are you getting any errors at all?  Specifically, is there really a 401
when people are trying to access index.jsp?  That would cause your
behavior.  Consult tomcat's access log (enable it if it's disabled, as
is the default).  Look for the response code when accessing index.jsp.

If you still can't see what's happening, enable debug=99 for your
host, context, engine, and post the logs.

Yoav Shapira



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: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
Good point--I've checked the log and I'm not seeing any errors--should I be
seeing errors?

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp HTTP/1.1 200
428

If I remove the error-page element from the web.xml file everything works
fine. I was hoping to use my own custom error page for 401 errors when a
user of my application forgets his userId/password or clicks Cancel form the
Authentication login dialog. Also, I have debug set at 99.

Again thank you in advance
Kevin 


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 9:18 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

I'm not getting any errors that would prevent Tomcat from starting.

Are you getting any errors at all?  Specifically, is there really a 401
when people are trying to access index.jsp?  That would cause your
behavior.  Consult tomcat's access log (enable it if it's disabled, as
is the default).  Look for the response code when accessing index.jsp.

If you still can't see what's happening, enable debug=99 for your
host, context, engine, and post the logs.

Yoav Shapira



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]

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



RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Shapira, Yoav

Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



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: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
Thanks for staying with me; however, after I deleted all temporary internet
files and repeated the test the only entry in the log is what I reported
last time, which is:

127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp HTTP/1.1 200
428

Any other suggestions? Am I implementing this correctly?

Once again thank you in advance
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 9:40 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



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]

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



RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Shapira, Yoav

Howdy,
I personally can't help much more without seeing index.jsp.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Thanks for staying with me; however, after I deleted all temporary
internet
files and repeated the test the only entry in the log is what I
reported
last time, which is:

127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Any other suggestions? Am I implementing this correctly?

Once again thank you in advance
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:40 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



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]

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



RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
Okay here you go. I've also included the custom error page JSP.

Good luck.
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 9:51 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,
I personally can't help much more without seeing index.jsp.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Thanks for staying with me; however, after I deleted all temporary
internet
files and repeated the test the only entry in the log is what I
reported
last time, which is:

127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Any other suggestions? Am I implementing this correctly?

Once again thank you in advance
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:40 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



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]

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


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

RE: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Shapira, Yoav

Howdy,
Attachments don't often come through -- I don't know if it's the
listserver or my company mail server.  You have to post them inline
(preferably trimming out anything nonessential to the problem).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:59 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Okay here you go. I've also included the custom error page JSP.

Good luck.
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:51 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,
I personally can't help much more without seeing index.jsp.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Thanks for staying with me; however, after I deleted all temporary
internet
files and repeated the test the only entry in the log is what I
reported
last time, which is:

127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Any other suggestions? Am I implementing this correctly?

Once again thank you in advance
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:40 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors
when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



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]

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





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: Customizing 401 Error Page (this should be easy)

2003-06-13 Thread Kevin Ritter
Sorry :)

*** INDEX.JSP START ***
%@ page language=java
 import=java.io.*, com.jcafeinc.xml.*
%
%@ include file=global-header.jsp %
%
application.setAttribute(imgLocation, /LMS/images/);
%
  html
head
  titleJCafe Learning Center/title
/head
frameset rows=172,* frameborder=no border=0 !-- 1st chg
rows=130, * 2nd chg rows=138,* for root-org.gif image--
  frame src=signature-header.jsp name=jcSignatureHeaderFrame
marginheight=0 
  marginwidth=0 scrolling=no
  !-- Got to get the current role and check to see if it is isAnyAdmin
--
% if (currentUser.isCurrentRoleRoot() || 
   currentUser.isCurrentRoleAdmin() ||
   currentUser.isCurrentRoleManager() )
   { 
  String adminBaseOU = currentUser.getManagerOrganization();
   %
  frame
src=plugin/control-panel/adminCatalog.jsp?currentOu=%=adminBaseOU%curren
tTab=ou name=jcHomePageFrame marginheight=0 
  marginwidth=0 scrollbars=yes scrolling=auto
% } else { %
  frame src=plugin/profile-manager/student-self-homepage.jsp
name=jcHomePageFrame marginheight=0 
  marginwidth=0 scrollbars=yes scrolling=auto
% } %
/frameset
  /html
*** INDEX.JSP END ***

*** JCAFE-ERROR.JSP START ***
%@ page language=java  
 info=JCafe Error Page isErrorPage=true %
%@ page import=java.io.* %
%--
session=false isThreadSafe=false
--%

html
  head
titleJCafe Error Page/title
meta content=
script language=javascript
/script
style
/style
  /head
  body
pbr/
  Your user ID or password are incorrect. br/
  Please try again or contact your system br/
  administrator or manager. 
  !--a href=admin/setup.jsp--!--/a--
/p
  /body
/html
*** JCAFE-ERROR.JSP START ***

Thanks!
Kevin


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 10:00 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,
Attachments don't often come through -- I don't know if it's the
listserver or my company mail server.  You have to post them inline
(preferably trimming out anything nonessential to the problem).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:59 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Okay here you go. I've also included the custom error page JSP.

Good luck.
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:51 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,
I personally can't help much more without seeing index.jsp.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Kevin Ritter [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: RE: Customizing 401 Error Page (this should be easy)

Thanks for staying with me; however, after I deleted all temporary
internet
files and repeated the test the only entry in the log is what I
reported
last time, which is:

127.0.0.1 - - [13/Jun/2003:09:42:55 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Any other suggestions? Am I implementing this correctly?

Once again thank you in advance
Kevin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 9:40 AM
To: Tomcat Users List
Subject: RE: Customizing 401 Error Page (this should be easy)


Howdy,

Here's the only entry in the log:
127.0.0.1 - - [13/Jun/2003:09:26:58 -0600] GET /LMS/index.jsp
HTTP/1.1
200
428

Clean your browser's cache and repeat the test.  The above shows the
index.jsp was requested and returned without a problem.

If I remove the error-page element from the web.xml file everything
works
fine. I was hoping to use my own custom error page for 401 errors
when
a
user of my application forgets his userId/password or clicks Cancel
form
the Authentication login dialog. Also, I have debug set at 99.

How are you handling the cancel in the login dialog or the wrong
password?  Redirect?  Forward?  Set response code to 401?

If you can post your index.jsp code, we could probably help more...

Yoav Shapira



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

Re: Configuring Tomcat 4.1.18 to handle 401 http errors

2003-02-26 Thread Oliver Schoenwald
Hi Yoav,

if I add this to the deployment description the my401ProcessingServlet 
would be called after
an error-code 401 occured. But as this servlet is part of the container, 
too, it won't be able to
send the same error 401 to the client - the container would catch this 
error and call
my401ProcessingServlet again and again. And this error is necessary 
because only then the
browser knows that he has to repeat the authentication.

(What we *want* to do is to send the 401 error back to the client so 
that the browser is forced
to repeat the authentication (popping up the login window) to allow the 
user to change his
actual login. The joke is, that this actually worked under Tomcat 3.2 
and with the former
Servlet API 2.2, but not under Tomcat 4.1.18 and the Servlet API 2.3.).

In other words: it seems that I can *not* do whatever I want under the 
new Servlet API 2.3,
because the new tomcat engine masks all errors = 400 to a 
self-constructed html-page.
Only during the authentication-phase of the realm the errors like 401 
are send to the client
normally. I still hope that there is a standard-conform way for servlets 
to force the container to
send http errors to the client - or at least to inform the 
authentication realm that the current
authentication should be invalidated and repeated (without automatically 
accepting the already
used authentication data).

Oliver Schönwald
FernUniversität Hagen - LVU Entwicklungsgruppe
University Hagen  - Education and Knowledge Space: Virtual University, 
Development Task Force

Shapira, Yoav wrote:

Howdy,
How about adding this to your web.xml:
error-page
 error-code401/error-code
 location/my401ProcessingServlet/location
/error-page
Then do whatever you want in the servlet you map to the /my401ProcessingServlet url-pattern.

Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Oliver Schoenwald [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:18 AM
To: Tomcat Users List
Subject: Configuring Tomcat 4.1.18 to handle 401 http errors
Good morning!

some days ago I already asked a question regarding this context, but I
had some time to
dive a bit into the Servlet API 2.3 Specification. So far, it seems that
the specification states
that the container, not the servlet, is the layer attached to the
client. And the container,
not the servlet, controls, which and how any http errors created by a
servlet within the container
are handled, mapped and sent back to the client.
Some digging in the catalina source code retrieved that
in HttpResponseBase.java there is a method finishResponse where the
handling of
every HTTP error = 400 is hard-coded to be transformed into a simple,
valid html-page with
a plainly written error summary.
However, we need the http error 401 to be send 'as is' to the client. It
doesn't have to be directly,
but the container should not catch this error and create an html page
out of it.
Does someone know how I can achieve this? Or has the Servlet API changed
the communication
protocol so far that this is just no longer possible without violating
the standard?
In that case, how SHOULD a servlet invalidate the current authentication
so that the currently
buffered authentication data (buffered by the client/browser) are no
longer accepted and the browser
is forced to ask the user again for authentication?


Thank you in advance,

Oliver Schönwald



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

--
Oliver Schönwald, Diplom-Informatiker
Entwicklungsgruppe Lernraum Virtuelle Universität - FernUniversität Hagen
Universitätsstr.21/AVZ - 58084 Hagen
Fon: +49 2331 987 1721 - Fax: +49 2331 987 



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


401 from appdev/sample when doing ant install

2003-02-26 Thread Ray Tayek
hi, trying to make the sample at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/sample/ using the 
directions at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/processes.html. (but 
i am not using cvs).

i get a build failed (see below for complete script with debug on).

BUILD FAILED
file:/home/ray/ohtmer/build.xml:74: java.io.IOException: Server returned 
HTTP response code: 401 for URL: 
http://localhost:8080/manager/install?path=%2Fmyappwar=file%3A%2F%2F%2Fhome%2Fray%2Fohtmer%2Fbuild
at 
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:278) 
...

the username and password are correct as i can login to the manager from 
netscape.

btw, the doc seems to be off a bit as the users are in file 
conf/tomcat-users.xml (not server.xml) unless i am real confused.

i found the appdev sample and ran it changing only the path to catalina and 
copied my properties file over. got the same result:

file:/home/src/src2/java/jakarta-tomcat-4.1.18-LE-jdk14/webapps/tomcat-docs/appdev/sample/build.xml:364: 
java.io.IOException: Server returned HTTP response code: 401 for URL: 
http://localhost:8080/manager/install?path=%2Fmyappwar=file%3A%2F%2F%2Fhome%2Fsrc%2Fsrc2%2Fjava%2Fjakarta-tomcat-4.1.18-LE-jdk14%2Fwebapps%2Ftomcat-docs%2Fappdev%2Fsample%2Fbuild
at 
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:278)

tomcat is running as root.

anybody got a clue?

thanks

Script started on Wed Feb 26 02:26:44 2003
[EMAIL PROTECTED]:~/ohtmer$ ant -debug install
Apache Ant version 1.5.1 compiled on October 2 2002
Buildfile: build.xml
Detected Java version: 1.4 in: /home/src/src2/java/j2sdk1.4.1_01/jre
Detected OS: Linux
 +User task: 
propertyfile org.apache.tools.ant.taskdefs.optional.PropertyFile
 +User task: 
vsscheckin org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN
 +User task: sql org.apache.tools.ant.taskdefs.SQLExec
 +User task: cvspass org.apache.tools.ant.taskdefs.CVSPass
 +User task: 
p4reopen org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen
 +User task: csc org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
 +User task: dirname org.apache.tools.ant.taskdefs.Dirname
 +User task: wlrun org.apache.tools.ant.taskdefs.optional.ejb.WLRun
 +User task: 
p4label org.apache.tools.ant.taskdefs.optional.perforce.P4Label
 +User task: 
p4revert org.apache.tools.ant.taskdefs.optional.perforce.P4Revert
 +User task: 
replaceregexp org.apache.tools.ant.taskdefs.optional.ReplaceRegExp
 +User task: get org.apache.tools.ant.taskdefs.Get
 +User task: jjtree org.apache.tools.ant.taskdefs.optional.javacc.JJTree
 +User task: sleep org.apache.tools.ant.taskdefs.Sleep
 +User task: 
jarlib-display 
org.apache.tools.ant.taskdefs.optional.extension.JarLibDisplayTask
 +User task: dependset org.apache.tools.ant.taskdefs.DependSet
 +User task: zip org.apache.tools.ant.taskdefs.Zip
 +User task: patch org.apache.tools.ant.taskdefs.Patch
 +User task: jspc org.apache.tools.ant.taskdefs.optional.jsp.JspC
 +User task: style org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: test org.apache.tools.ant.taskdefs.optional.Test
 +User task: tstamp org.apache.tools.ant.taskdefs.Tstamp
 +User task: unwar org.apache.tools.ant.taskdefs.Expand
 +User task: 
vsshistory org.apache.tools.ant.taskdefs.optional.vss.MSVSSHISTORY
 +User task: icontract org.apache.tools.ant.taskdefs.optional.IContract
 +User task: 
cvschangelog org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask
 +User task: 
p4submit org.apache.tools.ant.taskdefs.optional.perforce.P4Submit
 +User task: 
ccmcheckin org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckin
 +User task: 
p4change org.apache.tools.ant.taskdefs.optional.perforce.P4Change
 +User task: bzip2 org.apache.tools.ant.taskdefs.BZip2
 +User task: 
p4delete org.apache.tools.ant.taskdefs.optional.perforce.P4Delete
 +User task: vssadd org.apache.tools.ant.taskdefs.optional.vss.MSVSSADD
 +User task: javadoc org.apache.tools.ant.taskdefs.Javadoc
 +User task: 
translate org.apache.tools.ant.taskdefs.optional.i18n.Translate
 +User task: signjar org.apache.tools.ant.taskdefs.SignJar
 +User task: 
vajload org.apache.tools.ant.taskdefs.optional.ide.VAJLoadProjects
 +User task: 
jarlib-available 
org.apache.tools.ant.taskdefs.optional.extension.JarLibAvailableTask
 +User task: 
WsdlToDotnet org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
 +User task: buildnumber org.apache.tools.ant.taskdefs.BuildNumber
 +User task: 
jpcovmerge org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge
 +User task: ejbjar org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
 +User task: war org.apache.tools.ant.taskdefs.War
Could not load a dependent class (com/starbase/starteam/Item) for task stlist
 +User task: rename org.apache.tools.ant.taskdefs.Rename
 +User task: sequential

Configuring Tomcat 4.1.18 to handle 401 http errors

2003-02-25 Thread Oliver Schoenwald
 Good morning!

some days ago I already asked a question regarding this context, but I 
had some time to
dive a bit into the Servlet API 2.3 Specification. So far, it seems that 
the specification states
that the container, not the servlet, is the layer attached to the 
client. And the container,
not the servlet, controls, which and how any http errors created by a 
servlet within the container
are handled, mapped and sent back to the client.

Some digging in the catalina source code retrieved that
in HttpResponseBase.java there is a method finishResponse where the 
handling of
every HTTP error = 400 is hard-coded to be transformed into a simple, 
valid html-page with
a plainly written error summary.

However, we need the http error 401 to be send 'as is' to the client. It 
doesn't have to be directly,
but the container should not catch this error and create an html page 
out of it.

Does someone know how I can achieve this? Or has the Servlet API changed 
the communication
protocol so far that this is just no longer possible without violating 
the standard?
In that case, how SHOULD a servlet invalidate the current authentication 
so that the currently
buffered authentication data (buffered by the client/browser) are no 
longer accepted and the browser
is forced to ask the user again for authentication?



Thank you in advance,

Oliver Schönwald



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


RE: Configuring Tomcat 4.1.18 to handle 401 http errors

2003-02-25 Thread Shapira, Yoav

Howdy,
How about adding this to your web.xml:

error-page
  error-code401/error-code
  location/my401ProcessingServlet/location
/error-page

Then do whatever you want in the servlet you map to the /my401ProcessingServlet 
url-pattern.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Oliver Schoenwald [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:18 AM
To: Tomcat Users List
Subject: Configuring Tomcat 4.1.18 to handle 401 http errors

  Good morning!

some days ago I already asked a question regarding this context, but I
had some time to
dive a bit into the Servlet API 2.3 Specification. So far, it seems that
the specification states
that the container, not the servlet, is the layer attached to the
client. And the container,
not the servlet, controls, which and how any http errors created by a
servlet within the container
are handled, mapped and sent back to the client.

Some digging in the catalina source code retrieved that
in HttpResponseBase.java there is a method finishResponse where the
handling of
every HTTP error = 400 is hard-coded to be transformed into a simple,
valid html-page with
a plainly written error summary.

However, we need the http error 401 to be send 'as is' to the client. It
doesn't have to be directly,
but the container should not catch this error and create an html page
out of it.

Does someone know how I can achieve this? Or has the Servlet API changed
the communication
protocol so far that this is just no longer possible without violating
the standard?
In that case, how SHOULD a servlet invalidate the current authentication
so that the currently
buffered authentication data (buffered by the client/browser) are no
longer accepted and the browser
is forced to ask the user again for authentication?




Thank you in advance,


Oliver Schönwald



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



Catching 401 Error

2003-01-28 Thread Rajesh Kanade
Hi All

I have written a web application which has main
servlet class.

We have a form which has basic authentication. When
the user cancels the authentication form shown to him
in the browser, We want to capture the 401 error and
dispaly it in a our own custom error page. but we are
unable to do this

What I have figured out is that control is not coming
back to our servlet at all  is infact going to
default servlet of Tomcat.

Does any one have any clues why this may be happening.
If yes can you please share it with me.

Thanks in advance

Rajesh Kanade


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Send code 401 instead of 403

2002-10-25 Thread Johann Uhrmann
Hi,

when using basic authentication with tomcat, tomcat sends a 401 response
code if the user is accessing the page for the first time.

This makes the browser show a login window and retry the request with
the username/password provided by the user.

However, if there is already a username and password in the request,
then tomcat answers with a 403 code which does not result in a login
window.

Unfortunately, if the user makes a typo when he/she tries to log in
there is no chance to make another try except restarting the web
browser.

Does tomcat provide any mechanism to make it return 401 instead of 403?
(except the hack of specifying a user based 403 jsp and make it return
401)

Thanks,

Hans




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org





Re: Tomcat and 401 custom page how?

2002-10-25 Thread Johann Uhrmann
On Thu, 2002-10-24 at 16:24, Kristján Bjarni Guðmundsson wrote:
 I use custom error pages for various error codes (404. etc),  all of them 
 work except 401 error.
 
 If I go to a protected page the browser just displays the 401 page without 
 prompting me
 to log in. What am I doing wrong?

Short answer: nothing

Tomcat sends that pages with response code 200. I consider this a bug.

If You want tomcat to send You 401-page with a 401 code You have to
use a JSP which sets the response code manually:

...
% response.setStatus(response.SC_UNAUTHORIZED);
   response.setHeader(WWW-Authenticate, BASIC realm=\restricted\);
%
...

It is a hack but at least it is working.

hth,

Hans


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat and 401 custom page how?

2002-10-24 Thread Kristján Bjarni Guðmundsson
I use custom error pages for various error codes (404. etc),  all of them 
work except 401 error.

If I go to a protected page the browser just displays the 401 page without 
prompting me
to log in. What am I doing wrong?



Re: Solved! Re: Basic authentication and custom 401 Not Authorizederror page

2002-09-06 Thread Ben Walding

It can be made to work...

Put the error-page directive in as per web.xml spec

On the jsp / servlet it points at,

response.addHeader(WWW-Authenticate, BASIC realm=\ + realm
+ \);
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);

and then write custom page

And it will challenge (well it did for me...)

No need for filters or any of that jazz.


Joe Tomcat wrote:

Here is how you can create a custom 401 (Not Authorized) error response
in Tomcat.  Putting a directive like this:

error-page
  error-code401/error-code
  location/errors/401.html/location
/error-page

in web.xml will not work.  If you put that in web.xml, it will deny all
authorization.

The thing to do is to create a filter for the resources you want to
protect.  Do the conventional basic authentication in the filter. 
However, here is the part which is different:

   String errorFile = /errors/401.html;
response.addHeader(WWW-Authenticate, BASIC realm=\ + realm
+ \);
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
RequestDispatcher rd = request.getRequestDispatcher(errorFile);
try { rd.forward(request,response); }

So instead of letting the container generate the html for the 401
response, you always generate it using the RequestDispatcher.  The
RequestDispatcher can of course be an html or jsp file.

So that is the solution to custom 401 errors in Tomcat.


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


  





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




Basic authentication and custom 401 Not Authorized error page

2002-09-05 Thread Joe Tomcat

I have written an filter that uses Basic Http authorization to control
access to pages.  I want to be able to define a custom 401 error page to
show users if they are unable to log in.  I should be able to do this by
putting a section like this in my web.xml:

error-page
  error-code401/error-code
  location/errors/401.html/location
/error-page

However, when I put that entry into the web.xml, when the user clicks to
log in, it goes immediately to the error page, without even hitting my
filter.

I know what is happening: The filter sends a 401 back to the browser to
prompt the user for the password.  The container intercepts this 401,
sees that it's an error, and then displays the error page resource.

Is there a way to change or work around this behavior?  Surely there is
a way to display a custom 401 error page and still have basic
authentication work?

Thanks for any tips.


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




More info Re: Basic authentication and custom 401 Not Authorizederror page

2002-09-05 Thread Eric Hollander

I did some more research on this.  It looks like it was a Known Bug in
Tomcat 4.0.2, and it doesn't look like it has been fixed since then (I'm
using 4.0.4).  Tomcat developers, is there any patch or workaround known
for this?

I did some digging in the Tomcat source, and it looks like the html
error pages are generated by this valve:

org.apache.catalina.valves.ErrorReportValve

I could definitely edit that valve, putting in my own custom html, and
then recompile and redploy Catalina.  If there is no other way to fix
that, then that is what I'll do, but I would rather do this in some more
portable (and easier) way.

Any tips will be appreciated.  Thanks!

On Thu, 2002-09-05 at 13:01, Joe Tomcat wrote:
 I have written an filter that uses Basic Http authorization to control
 access to pages.  I want to be able to define a custom 401 error page to
 show users if they are unable to log in.  I should be able to do this by
 putting a section like this in my web.xml:
 
 error-page
   error-code401/error-code
   location/errors/401.html/location
 /error-page
 
 However, when I put that entry into the web.xml, when the user clicks to
 log in, it goes immediately to the error page, without even hitting my
 filter.
 
 I know what is happening: The filter sends a 401 back to the browser to
 prompt the user for the password.  The container intercepts this 401,
 sees that it's an error, and then displays the error page resource.
 
 Is there a way to change or work around this behavior?  Surely there is
 a way to display a custom 401 error page and still have basic
 authentication work?


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




Re: More info Re: Basic authentication and custom 401 NotAuthorized error page

2002-09-05 Thread Joe Tomcat

On Thu, 2002-09-05 at 13:55, Eric Hollander wrote:
 I did some more research on this.  It looks like it was a Known Bug in
 Tomcat 4.0.2, and it doesn't look like it has been fixed since then (I'm
 using 4.0.4).  Tomcat developers, is there any patch or workaround known
 for this?
 
 I did some digging in the Tomcat source, and it looks like the html
 error pages are generated by this valve:
 
 org.apache.catalina.valves.ErrorReportValve

More information:

There's a method in org.apache.catalina.core.StandardHost that does
this:

   private String errorReportValveClass =
org.apache.catalina.valves.ErrorReportValve;

So if there were some way to set the value of errorReportValveClass
through a config file, at least I wouldn't have to recompile catalina to
make it show a custom 401 response.  I couldn't find out if this value
is read in from a properties file somewhere, but I sure would love to be
able to not have to recompile catalina to get this to work.

Thanks for any tips.


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




Solved! Re: Basic authentication and custom 401 Not Authorizederror page

2002-09-05 Thread Joe Tomcat

Here is how you can create a custom 401 (Not Authorized) error response
in Tomcat.  Putting a directive like this:

error-page
  error-code401/error-code
  location/errors/401.html/location
/error-page

in web.xml will not work.  If you put that in web.xml, it will deny all
authorization.

The thing to do is to create a filter for the resources you want to
protect.  Do the conventional basic authentication in the filter. 
However, here is the part which is different:

String errorFile = /errors/401.html;
response.addHeader(WWW-Authenticate, BASIC realm=\ + realm
+ \);
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
RequestDispatcher rd = request.getRequestDispatcher(errorFile);
try { rd.forward(request,response); }

So instead of letting the container generate the html for the 401
response, you always generate it using the RequestDispatcher.  The
RequestDispatcher can of course be an html or jsp file.

So that is the solution to custom 401 errors in Tomcat.


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




Replacement 401 pages

2002-09-04 Thread Ben Walding

Greetings all,
Maybe someone can answer the following conundrum for me!

I've replaced my 401 page with a servlet reference using the error-page 
section of the web.xml. I'd like the servlet to display different 
content based on what was accessed. At present I have to use javascript 
(document.location.href) to do this at the client end.   Surely there is 
a better way!?!

The servlet works and forces authentication (once I'd added a Realm 
header and 401 status code), however I can't detect the cause of the 
authentication in the authentication page servlet (I know what 
resource caused the authentication page to be called, but the servlet 
doesn't seem to have any simple way to determine this). All I need is a 
header being passed in on the request object, but if there is a spec 
defined way to do this... I'm all ears...

Since it isn't using a redirect (just some internal shenanigan), there 
doesn't seem to be any headers to help me out.

Cheers,

Ben


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




Re: Replacement 401 pages

2002-09-04 Thread Tim Funk

See section 9.8 of the spec:
A web application may specify that when errors occur, other resources in 
the application are used. These resources are specified in the 
deployment descriptor. If the location of the error handler is a servlet 
or a JSP, the following request attributes can be set:
- javax.servlet.error.status_code
- javax.servlet.error.exception_type
- javax.servlet.error.message
- javax.servlet.error.exception
- javax.servlet.error.request_uri

In your JSP or servlet, use request.getAttribute(...) for any of the 
above to get more details about the error. Then you can forward() or 
whatever based on your business logic.


Ben Walding wrote:
 Greetings all,
 Maybe someone can answer the following conundrum for me!
 
 I've replaced my 401 page with a servlet reference using the error-page 
 section of the web.xml. I'd like the servlet to display different 
 content based on what was accessed. At present I have to use javascript 
 (document.location.href) to do this at the client end.   Surely there is 
 a better way!?!
 
 The servlet works and forces authentication (once I'd added a Realm 
 header and 401 status code), however I can't detect the cause of the 
 authentication in the authentication page servlet (I know what 
 resource caused the authentication page to be called, but the servlet 
 doesn't seem to have any simple way to determine this). All I need is a 
 header being passed in on the request object, but if there is a spec 
 defined way to do this... I'm all ears...
 
 Since it isn't using a redirect (just some internal shenanigan), there 
 doesn't seem to be any headers to help me out.
 
 Cheers,
 
 Ben
 
  


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




tomcat 401 not responding!!!

2002-07-31 Thread Hoang C. Truong

Hello everyone,

All of a sudden, I can't startup tomcat.  It was
working fine.  After I shutdown, nothing seems to work
any more.  I see this message in logs/catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1

Normally, I would see much more than this.  

CAN ANY ONE HELP?  THIS IS VERY URGENT.


Thanks,

-Hoang

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Re: tomcat 401 not responding!!!

2002-07-31 Thread Nishant_Awasthi


Can you send me more details what exactly you see...in error message?



Nishant Awasthi
Corporate Systems Development
Progressive Insurance





   

Hoang C. Truong  

hoangcongtruong@To: [EMAIL PROTECTED]

yahoo.com   cc: (bcc: Nishant Awasthi)

 Subject: tomcat 401 not responding!!! 

07/31/2002 09:01   

AM 

Please respond to  

Tomcat Users  

List  

   

   






Hello everyone,

All of a sudden, I can't startup tomcat.  It was
working fine.  After I shutdown, nothing seems to work
any more.  I see this message in logs/catalina.out

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1

Normally, I would see much more than this.

CAN ANY ONE HELP?  THIS IS VERY URGENT.


Thanks,

-Hoang

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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





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




Re: tomcat 401 not responding!!!

2002-07-31 Thread Nikolas A. Rathert

mm, too few information.
What OS are you running on that machine?
If it is windoze try to reboot it.



Hoang C. Truong wrote:
 Hello everyone,
 
 All of a sudden, I can't startup tomcat.  It was
 working fine.  After I shutdown, nothing seems to work
 any more.  I see this message in logs/catalina.out
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.1
 
 Normally, I would see much more than this.  
 
 CAN ANY ONE HELP?  THIS IS VERY URGENT.
 
 
 Thanks,
 
 -Hoang
 
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: tomcat 401 not responding!!!

2002-07-31 Thread Hoang C. Truong

Hello,
I am running it On Solaris 8.  I just noticed that
tomcat finally response after 15 minutes later.  

I really don't get it.  Can you help?

Thanks,

-Hoang


--- Nikolas A. Rathert [EMAIL PROTECTED]
wrote:
 mm, too few information.
 What OS are you running on that machine?
 If it is windoze try to reboot it.
 
 
 
 Hoang C. Truong wrote:
  Hello everyone,
  
  All of a sudden, I can't startup tomcat.  It was
  working fine.  After I shutdown, nothing seems to
 work
  any more.  I see this message in logs/catalina.out
  
  Starting service Tomcat-Standalone
  Apache Tomcat/4.0.1
  
  Normally, I would see much more than this.  
  
  CAN ANY ONE HELP?  THIS IS VERY URGENT.
  
  
  Thanks,
  
  -Hoang
  
  __
  Do You Yahoo!?
  Yahoo! Health - Feel better, live better
  http://health.yahoo.com
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




RE: tomcat 401 not responding!!!

2002-07-31 Thread Turner, John


You will get a MUCH FASTER response if you can provide more information such
as relevant portions of log files, etc.

Posting that tomcat doesn't work and that it's urgent doesn't help anyone
help you.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Hoang C. Truong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 9:19 AM
To: Tomcat Users List
Subject: Re: tomcat 401 not responding!!!


Hello,
I am running it On Solaris 8.  I just noticed that
tomcat finally response after 15 minutes later.  

I really don't get it.  Can you help?

Thanks,

-Hoang


--- Nikolas A. Rathert [EMAIL PROTECTED]
wrote:
 mm, too few information.
 What OS are you running on that machine?
 If it is windoze try to reboot it.
 
 
 
 Hoang C. Truong wrote:
  Hello everyone,
  
  All of a sudden, I can't startup tomcat.  It was
  working fine.  After I shutdown, nothing seems to
 work
  any more.  I see this message in logs/catalina.out
  
  Starting service Tomcat-Standalone
  Apache Tomcat/4.0.1
  
  Normally, I would see much more than this.  
  
  CAN ANY ONE HELP?  THIS IS VERY URGENT.
  
  
  Thanks,
  
  -Hoang
  
  __
  Do You Yahoo!?
  Yahoo! Health - Feel better, live better
  http://health.yahoo.com
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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

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




RE: tomcat 401 not responding!!!

2002-07-31 Thread Shapira, Yoav

Hi,
Edit your server.xml, so that everywhere you see debug=n is changed to
debug=99.  Reboot machine.  Try to restart tomcat again.  This time
you should have more information in the various tomcat log files.  If
you still run into problems, let us know again and please attach output
from those logs ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Hoang C. Truong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 9:19 AM
To: Tomcat Users List
Subject: Re: tomcat 401 not responding!!!

Hello,
I am running it On Solaris 8.  I just noticed that
tomcat finally response after 15 minutes later.

I really don't get it.  Can you help?

Thanks,

-Hoang


--- Nikolas A. Rathert [EMAIL PROTECTED]
wrote:
 mm, too few information.
 What OS are you running on that machine?
 If it is windoze try to reboot it.



 Hoang C. Truong wrote:
  Hello everyone,
 
  All of a sudden, I can't startup tomcat.  It was
  working fine.  After I shutdown, nothing seems to
 work
  any more.  I see this message in logs/catalina.out
 
  Starting service Tomcat-Standalone
  Apache Tomcat/4.0.1
 
  Normally, I would see much more than this.
 
  CAN ANY ONE HELP?  THIS IS VERY URGENT.
 
 
  Thanks,
 
  -Hoang
 
  __
  Do You Yahoo!?
  Yahoo! Health - Feel better, live better
  http://health.yahoo.com
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 



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



__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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


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




RE: tomcat 401 not responding!!!

2002-07-31 Thread Collins, Jim

I have had similar problems running Tomcat 4.1.3 on Solaris 8. Every so
often an application that I have deployed using the manager servlet stops
responding for about 8 minutes.

 -Original Message-
 From: Hoang C. Truong [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 31, 2002 9:19 AM
 To: Tomcat Users List
 Subject: Re: tomcat 401 not responding!!!
 
 Hello,
 I am running it On Solaris 8.  I just noticed that
 tomcat finally response after 15 minutes later.
 
 I really don't get it.  Can you help?
 
 Thanks,
 
 -Hoang
 
 
 --- Nikolas A. Rathert [EMAIL PROTECTED]
 wrote:
  mm, too few information.
  What OS are you running on that machine?
  If it is windoze try to reboot it.
 
 
 
  Hoang C. Truong wrote:
   Hello everyone,
  
   All of a sudden, I can't startup tomcat.  It was
   working fine.  After I shutdown, nothing seems to
  work
   any more.  I see this message in logs/catalina.out
  
   Starting service Tomcat-Standalone
   Apache Tomcat/4.0.1
  
   Normally, I would see much more than this.
  
   CAN ANY ONE HELP?  THIS IS VERY URGENT.
  
  
   Thanks,
  
   -Hoang
  
   __
   Do You Yahoo!?
   Yahoo! Health - Feel better, live better
   http://health.yahoo.com
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




customized page on a HTTP 401 error

2002-07-01 Thread andre . powroznik

Hello,

How can I set a customized page on a HTTP 401 error (authentication) - after 
unsuccessful authentication?

If I try to set it using error-page users never receive the authentication form... 
They only get this customized error page.

Thank you very much and have a very good day!

Andre POWROZNIK

 DISCLAIMER  
This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation.


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




Re: customized page on a HTTP 401 error

2002-07-01 Thread rsequeira


You will need to intercept the 401 response by the server. You could do
this using Valves, I suppose. I haven't done this (it has been on my to-do
list for some time now). Download the source code. Have a look at
org.apache.catalina.Valve.

RS






[EMAIL PROTECTED] on 07/01/2002 04:12:20 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:customized page on a HTTP 401 error

Hello,

How can I set a customized page on a HTTP 401 error (authentication) -
after unsuccessful authentication?

If I try to set it using error-page users never receive the
authentication form... They only get this customized error page.

Thank you very much and have a very good day!

Andre POWROZNIK

 DISCLAIMER 
This e-mail and any attachments thereto may contain information
which is confidential and/or protected by intellectual property
rights and are intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,

total or partial reproduction, communication or distribution in any form)
by persons other than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender either
by telephone or by e-mail and delete the material from any computer.
Thank you for your cooperation.


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










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




Custom error 401 page?

2002-02-28 Thread Robert Wille

If I define a custom error 401 page, I get an error 500 when I attempt to access a 
protected resource (protected with BASIC authentication). There is a 
NullPointerException thrown somewhere deep in the bowels of Tomcat. I would really 
like to display my own page when the user fails to authenticate, rather than 
displaying the default page. Is it possible to do this? I am using Tomcat 4.0.2.



401 - Cannot authenticate with the provided credentials

2001-10-21 Thread Kar YEOW

Hi, I am trying to use CLIENT-CERT auth-method and got the above error.
I have got SSL and client authentication working by pointing the browser to
https://blah.  I want to use CLIENT-CERT auth method so that I can use the
user and role specified in the web.xml.  Exactly how CLIENT-CERT auth-method
has to be setup?  Do I need to match the user name and the subject name in
the certificate?  Any help is appreciated.
Kar




401

2001-07-25 Thread okusiy

Hello
I have Tomcat 3.2 installed like service and redirect
module /jakarta/isapi_redirect.dll in IIS Filters.
After Invoking the URL
http://localhost/examples/jsp/index.html; in my
browser I faced with following line in IIS log file:
GET /jakarta/isapi_redirect.dll 401.
I didnt find anything like that In your
troubleshootter.
Please, tell me, what I did wrong or what shall i
do???
Thanks
Oleg Kusij.



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



IIS 401 problem

2001-01-22 Thread Chen, Minggui

Hi:
I tried tomcat with IIS. I did exactly as described, I could read the log from 
isapi_redirect.dll. Yet when I tried "http://localhost/examples/jsp/index.html",
the page could not be displayed and the error code from IIS is 401.
I tried with in/out process, and both of them failed. The platform I tested is windows 
2000 server.

Could you tell me what causes the problem?

The following is the log.

Thanks.

Minggui Chen
Information Builders Inc.
(917)3395176 


[jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size 
is 2
[jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule 
/servlet/=jni was added
[jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule 
/examples/=jni was added
[jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 
2 rules
[jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker jni
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance jni of jni
[jk_jni_worker.c (610)]: Into jni_worker_factory
[jk_jni_worker.c (678)]: Done jni_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init jni
[jk_jni_worker.c (347)]: Into validate
[jk_jni_worker.c (845)]: Into detect_jvm_version
[jk_jni_worker.c (856)]: In detect_jvm_version, found: 10002, done
[jk_jni_worker.c (914)]: Into open_jvm2
[jk_jni_worker.c (921)]: In open_jvm2, setting classpath to 
d:\tomcat\classes;d:\tomcat\lib\jaxp.jar;d:\tomcat\lib\parser.jar;d:\tomcat\lib\jasper.jar;d:\tomcat\lib\servlet.jar;d:\tomcat\lib\webserver.jar;d:\jdk122\lib\tools.jar
[jk_jni_worker.c (944)]: In open_jvm2, setting tomcat.home=d:\tomcat
[jk_jni_worker.c (965)]: In open_jvm2, the JVM will ignore unknown options
[jk_jni_worker.c (972)]: In open_jvm2, about to create JVM...
[jk_jni_worker.c (978)]: In open_jvm2, JVM created, done
[jk_jni_worker.c (992)]: Into get_bridge_object
[jk_jni_worker.c (1000)]: In get_bridge_object, loaded 
org/apache/tomcat/service/JNIEndpoint bridge class
[jk_jni_worker.c (1032)]: In get_bridge_object, bridge built, done
[jk_jni_worker.c (446)]: Done validate
[jk_jni_worker.c (459)]: Into init
[jk_jni_worker.c (502)]: In init, calling Tomcat to intialize itself...
[jk_jni_worker.c (1128)]: In detach_from_jvm, detached ok
[jk_jni_worker.c (514)]: In init, Tomcat initialized OK, done
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old jni worker 
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
[jk_uri_worker_map.c (175)]: Into jk_uri_worker_map_t::uri_worker_map_free
[jk_uri_worker_map.c (326)]: Into jk_uri_worker_map_t::uri_worker_map_close
[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
[jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL 
parameters
[jk_worker.c (109)]: Into wc_close
[jk_worker.c (111)]: wc_close, done
[jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size 
is 2
[jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule 
/servlet/=jni was added
[jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule 
/examples/=jni was added
[jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 
2 rules
[jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker jni
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance jni of jni
[jk_jni_worker.c (610)]: Into jni_worker_factory
[jk_jni_worker.c (678)]: Done jni_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init jni
[jk_jni_worker.c (347)]: Into validate
[jk_jni_worker.c (845)]: Into detect_jvm_version
[jk_jni_worker.c (856)]: In detect_jvm_version, found: 10002, done
[jk_jni_worker.c (914)]: Into open_jvm2
[jk_jni_worker.c (921)]: In open_jvm2, setting classpath to 
d:\tomcat\classes;d:\tomcat\lib\jaxp.jar;d:\tomcat\lib\parser.jar;d:\tomcat\lib\jasper.jar;d:\tomcat\lib\servlet.jar;d:\tomcat\lib\webserver.jar;d:\jdk122\lib\tools.jar
[jk_jni_worker.c (944)]: In open_jvm2, setting tomcat.home=d:\tomcat
[jk_jni_worker.c (965)]: In open_jvm2, the JVM will ignore unknown options
[jk_jni_worker.c (972)]: In

Re: error 401 : IIS redirector

2000-12-14 Thread Rajeev Jha

hi
got the problem. error 401 was coming because of the "access violation". the
/jakarta virtual directory, when mapped to c:\jakarta  was not accessible.
when i mapped it to c:\inetpub\jakarta and put the iis_redirect.dll there,
it started working. i know my fault now , but see new to IIS :o|  plus the
log_file should be iis_redirect.log and not isapi.log. (as in 3.2
conf/iis_redirect.reg-auto file)

best regards

Rajeev Jha wrote:

 HI
 trying to set up tomcat to work with IIS4.0. but i am unable to redirect

 requests from IIS to tomcat . the IIS logs show the following :

 07:03:19 127.0.0.1 GET /samples/images/powered.gif 304
 07:03:19 127.0.0.1 GET /jakarta/isapi_redirect.dll 401

 and the isapi.log file has the following messages:

 [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL parameter
 [jk_uri_worker_map.c (184)]: In
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters

 i am trying to access http://localhost/examples/jsp/index.html

 to be sure, i have checked the registry entries, conf files and the
 status of "jakarta" filter on my server machine is a green arrow
 pointing up. in short have tried to follow everything given in the
 trouble shooting section. if any body has any clue, pls let me know . i
 would appreciate your help very much.



--
Smith  Wesson: The original point-and-click interface.
---
Rajeev Jha

  Indegene Lifesystems (P) Ltd.
  130, 1st cross , 5th Block ,
  Kormangla   bang !ore 560095

---
voice -- +91(80) 5524314 5524324  Email: [EMAIL PROTECTED]
---





error 401 : IIS redirector

2000-12-13 Thread Rajeev Jha

HI
trying to set up tomcat to work with IIS4.0. but i am unable to redirect

requests from IIS to tomcat . the IIS logs show the following :

07:03:19 127.0.0.1 GET /samples/images/powered.gif 304
07:03:19 127.0.0.1 GET /jakarta/isapi_redirect.dll 401

and the isapi.log file has the following messages:

[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter
[jk_uri_worker_map.c (184)]: In
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters

i am trying to access http://localhost/examples/jsp/index.html

to be sure, i have checked the registry entries, conf files and the
status of "jakarta" filter on my server machine is a green arrow
pointing up. in short have tried to follow everything given in the
trouble shooting section. if any body has any clue, pls let me know . i
would appreciate your help very much.

--
There are two major products that come out of Berkeley: LSD and UNIX. We
don't believe this to be a coincidence.


Rajeev Jha   Email: [EMAIL PROTECTED]
Indegene Lifesystems (P) Ltd.
130, 1st cross , 5th Block ,Kormangla   bang !ore 560095

voice - +91(80) 5524314 5524324






error 401 : isapi_redirect.dll

2000-12-12 Thread Rajeev Jha

HI
trying to set up tomcat to work with IIS4.0. but i am unable to redirect
requests from IIS to tomcat . the IIS logs show the following :

07:03:19 127.0.0.1 GET /samples/images/powered.gif 304
07:03:19 127.0.0.1 GET /jakarta/isapi_redirect.dll 401

and the isapi.log file has the following messages:

[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter
[jk_uri_worker_map.c (184)]: In
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters

to be sure, i have checked the registry entries, conf files and the
status of "jakarta" filter on my server machine is a green arrow
pointing up. in short have tried to follow everything given in the
trouble shooting section. if any body has any clue, pls let me know . i
would appreciate your help very much. pls cc to [EMAIL PROTECTED]
also as i am not on the list


regards


--
 NT is an OS, at least it used to be.
 -- from one /. article

Rajeev Jha
---
Indegene Lifesystems (P) Ltd.
130, 1st cross , 5th Block
Kormangla , bang !ore 560095
---
voice - +91(80) 55243 14/24
---