Request dispatcher

2002-05-16 Thread Dave Finch

Hi,
 
I am trying to use the request dispatcher to send the user to another page.
Everything is working fine but the URL on the new page is the originally
requested url which causes issues if the user refreshes or bookmarks the
page.
Is there any way of changing the URL in the request object? (I don't want to
use a client side sendRedirect)
I am using Tomcat 4.0.1
 
TIA,
 
Dave Finch



redirection from a custom tag

2002-05-16 Thread Dave Finch

Hi, 

Am using a custom tag on a JSP page in tomcat 4.0.1 to authenticate a
user. 
If the authentication fails I use the request dispatcher to forward the
user to a logon page and return SKIP_PAGE from the tag.

My problem is that tomcat throws an exception when the JSP page tries to
release the page context in the finally block if the service method (in
the java file generated from the jsp)

The exception is an illegalStateException 
The exception does not stop everything from working fine but it is a bit
annoying 

Is there something I can do to prevent the jsp from trying to release
the pageContext? 

TIA, 

Dave Finch 





RE: Request dispatcher

2002-05-16 Thread Dave Finch

I understand that. But I don't like the idea of sending the redirect
instruction to the client. Is it not correct that the user may sometimes see
'the resource has moved' or similar?
I would much rather keep everything serverside.

Dave Finch

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 5:31 PM
To: Tomcat Users List
Subject: RE: Request dispatcher

Request dispatchers aren't the same a redirects (what I think you're looking
for).  As I understand things a request dispatcher is done on the server,
ie the page accessed accesses another page and the page you access still
looks
like the one you originally hit.  A redirect will send them to another page
and the url still change.  Fortunately it's easy to do redirects, there's a
sendRedirect method on the response object.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Dave Finch [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 12:58 PM
 To: 'Tomcat Users List'
 Subject: Request dispatcher


 Hi,

 I am trying to use the request dispatcher to send the user to
 another page.
 Everything is working fine but the URL on the new page is the originally
 requested url which causes issues if the user refreshes or bookmarks the
 page.
 Is there any way of changing the URL in the request object? (I
 don't want to
 use a client side sendRedirect)
 I am using Tomcat 4.0.1

 TIA,

 Dave Finch



--
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: Request dispatcher

2002-05-16 Thread Dave Finch

Thanks Mike,

I figured out how to modify the tomcat source to expose a method to allow me
to change the URL but I really don't wont to do that.

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 7:28 PM
To: Tomcat Users List
Subject: RE: Request dispatcher

I'm not an expert, but I think unless you involve the client I don't think
there's a way to change the URI.

And you're right, sometimes the sendRedirect doesn't work, some clients
ignore it (in my experience at least).

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Dave Finch [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 4:02 PM
 To: 'Tomcat Users List'
 Subject: RE: Request dispatcher


 I understand that. But I don't like the idea of sending the redirect
 instruction to the client. Is it not correct that the user may
 sometimes see
 'the resource has moved' or similar?
 I would much rather keep everything serverside.

 Dave Finch

 -Original Message-
 From: Mike Jackson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 16, 2002 5:31 PM
 To: Tomcat Users List
 Subject: RE: Request dispatcher

 Request dispatchers aren't the same a redirects (what I think
 you're looking
 for).  As I understand things a request dispatcher is done on the server,
 ie the page accessed accesses another page and the page you access still
 looks
 like the one you originally hit.  A redirect will send them to
 another page
 and the url still change.  Fortunately it's easy to do redirects,
 there's a
 sendRedirect method on the response object.

 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]

  -Original Message-
  From: Dave Finch [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 16, 2002 12:58 PM
  To: 'Tomcat Users List'
  Subject: Request dispatcher
 
 
  Hi,
 
  I am trying to use the request dispatcher to send the user to
  another page.
  Everything is working fine but the URL on the new page is the originally
  requested url which causes issues if the user refreshes or bookmarks the
  page.
  Is there any way of changing the URL in the request object? (I
  don't want to
  use a client side sendRedirect)
  I am using Tomcat 4.0.1
 
  TIA,
 
  Dave Finch
 


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


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




IIS -- Tomcat -- Jboss

2002-05-16 Thread Dave Finch

Has anyone got an ISAPI filter to work with Tomcat and jBoss to work
together?
 
TIA
 
Dave Finch



ISAPI Filter

2001-08-15 Thread Dave Finch

Does anyone know where I can get the source code for the ISAPI filter?
 
TIA,
 
Dave Finch



RE: Security questions

2001-07-30 Thread Dave Finch

Thanks very much.


-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 30, 2001 5:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Security questions

 What is the default password for the admin context? 

It's in tomcat/conf/tomcat-users.xml .

 where can I find documentation on implementing security with tomcat? 

Start with the servlet specification at
http://java.sun.com/products/servlet/ .  You could also look at JDBCRealm
(sources and docs available at http://jakarta.apache.org/) as a sample
implementation.

-- Bill K. 



RE: Tomcat takes 100% of CPU (SourceSafe)

2001-07-24 Thread Dave Finch

Yes I have read this and I am quite familiar with the server.xml file.
Correct me if I am wrong but from my experience I have found that if the
server.xml is wrong i.e. syntactically correct but is missing a host, then a
endless loop occurs sending the processor to 100% when a request is made to
that a jsp or servlet on that host.

In my case no requests are received, the network cable is even unplugged.

Could it be anything to do with Microsoft Visual Source Safe which also uses
an isapi filter?

Dave

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 24, 2001 7:00 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat takes 100% of CPU


You would do well to read your TOMCAT_HOME\doc\readme file, item
6.11.

Randy


-Original Message-
From: Dave Finch [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 7:11 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat takes 100% of CPU


I have an NT 4 server running IIS and Tomcat 3.2.1 using the ISAPI filter
and the NT Service.
After about 10 minutes of running and not a single request the tomcat
(java.exe) process takes 100% of the CPU usage.
I initially thought it was a problem with the code but it happens whether
any requests are received by the web server or not and I have the same
configuration and code running on another server. I am also sure it is not a
hardware issue.
 
Any ideas would be appreciated.
 
TIA,
Dave Finch



RE: Tomcat takes 100% of CPU (SourceSafe)

2001-07-24 Thread Dave Finch
Title: RE: Tomcat takes 100% of CPU (SourceSafe)









I have the follow in my uriworkermap.properties

/*.jsp = ajp12

/servlet/* = ajp12



but maybe it is because JSPs are in sourcesafe, but this does not
really make sense since there are no requests not even to sourcesafe



Dave



-Original Message-
From: Cox, Charlie
[mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 24, 2001 1:37 PM
To:
'[EMAIL PROTECTED]'
Subject: RE: Tomcat takes 100% of
CPU (SourceSafe)



if your uriworkermap.properties has a mapping of 
/* ajp12 
then any request to the webserver
is sent to tomcat. It doesn't matter if it was intended for SourceSafe or not. 
likewise if you have a mapping of
/*.html and you try to store html files in SourceSafe. 

In these cases see the aforementioned section 6.11


I haven't tried multiple isapi filters, so I don't
know which one would be called first. I think you can order them in the iis
setup.

Charlie 

 -Original Message- 
 From: Dave Finch [mailto:[EMAIL PROTECTED]]

 Sent: Tuesday, July 24, 2001
8:52 AM 
 To:
[EMAIL PROTECTED] 
 Subject: RE: Tomcat takes 100%
of CPU (SourceSafe) 
 
 
 Yes I have read this and I am
quite familiar with the server.xml file. 
 Correct me if I am wrong but
from my experience I have found 
 that if the 
 server.xml is wrong i.e.
syntactically correct but is missing 
 a host, then a 
 endless loop occurs sending
the processor to 100% when a 
 request is made to

 that a jsp or servlet on that
host. 
 
 In my case no requests are
received, the network cable is 
 even unplugged. 
 
 Could it be anything to do
with Microsoft Visual Source Safe 
 which also uses 
 an isapi filter?

 
 Dave 
 
 -Original Message-

 From: Randy Layman [mailto:[EMAIL PROTECTED]]

 Sent: Tuesday, July 24, 2001
7:00 AM 
 To: [EMAIL PROTECTED]

 Subject: RE: Tomcat takes 100%
of CPU 
 
 
 
You would do well to read your TOMCAT_HOME\doc\readme file, item 
 6.11. 
 
 
Randy 
 
 
 -Original Message-

 From: Dave Finch [mailto:[EMAIL PROTECTED]]

 Sent: Monday, July 23, 2001
7:11 PM 
 To:
'[EMAIL PROTECTED]' 
 Subject: Tomcat takes 100% of
CPU 
 
 
 I have an NT 4 server running
IIS and Tomcat 3.2.1 using the 
 ISAPI filter 
 and the NT Service.

 After about 10 minutes of
running and not a single request the tomcat 
 (java.exe) process takes 100%
of the CPU usage. 
 I initially thought it was a
problem with the code but it 
 happens whether 
 any requests are received by
the web server or not and I have the same 
 configuration and code running
on another server. I am also 
 sure it is not a

 hardware issue. 
 
 Any ideas would be
appreciated. 
 
 TIA, 
 Dave Finch 
 








Tomcat takes 100% of CPU

2001-07-23 Thread Dave Finch








I have an NT 4 server running IIS and Tomcat 3.2.1 using the
ISAPI filter and the NT Service.

After about 10 minutes of running and not a single request
the tomcat (java.exe) process takes 100% of the CPU usage.

I initially thought it was a problem with the code but it
happens whether any requests are received by the web server or not and I have
the same configuration and code running on another server. I am also sure it is
not a hardware issue.



Any ideas would be appreciated.



TIA,

Dave Finch








Tomcat Apache config

2001-05-21 Thread Dave Finch

Hi,
I have got Tomcat and Apache running on Redhat Linux 6.2 and all is working
fine.
Could someone please give me some pointers on how to configure Tomcat to
start automatically on boot. like an NT service.

TIA
Dave Finch



Tomcat Threads

2001-03-15 Thread Dave Finch

I have tomcat 3.2 running on NT 4 (SP6a) through IIS.
I have multiple websites each with it's IP address and domain names running
in their own context in separate directories
everything is working fine but I have a static connection pool which is
being initialized several times.

my question is, does tomcat run each context in a separate thread?
this would explain why the connections are not being shared across contexts

TIA,

Dave Finch



Isapi redirector

2000-12-11 Thread Dave Finch

Hi,

I am using the isapi redirector with IIS4. it is all configured and works
fine.

the problem is I get a 404 error from IIS on the isapi_redirect.dll when I
have more than 3 or 4 concurrent users. if the user hits refresh the
jsp/servlet is usually shown fine.

is anyone else having this problem? or maybe you are and didn't know it.

I have looked through the other postings but not found a solution.

TIA

Dave Finch