RE: Failing a JK Worker thread

2005-03-16 Thread Varley, Roger
We have an application running as a webapp which requires legacy systems and network resources which are not fault-tolerant. Luckily these resources are stateless. So we have replicated these resources so that one is available per tomcat instance. When we attempt to use one of

RE: How to get know what version of TC is running behind Apache

2005-03-16 Thread Varley, Roger
Hi all, Is it possible to know what version of Tomcat is running behind an Apache. The connector used is JK. Try asking for a non-existant servlet in your web-app. The 404 page is issued by Tomcat and, I think, tells you the version. Regards Roger

RE: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-28 Thread Varley, Roger
If I can see your encrypted passwords, then I can see the code that decrypts them. And with that I have your passwords. It only adds a step to my effort to crack your security. Is that strictly true? If you use the method that is used to encrypt Unix passwords (google for JCrypt for

Errors after upgrading Tomcat to 5.0.28

2005-02-28 Thread Varley, Roger
Hi I have upgraded from Tomcat 4.3.31 to 5.0.28. While testing, a previously running application now fails with the error org.apache.jasper.JasperException: Cannot find any information on property 'tcCheckBoxErrorMessage' in a bean of type 'uk.co.brakes.CustomerRegistrationFormData' Can

RE: Errors after upgrading Tomcat to 5.0.28

2005-02-28 Thread Varley, Roger
I have upgraded from Tomcat 4.3.31 to 5.0.28. While testing, a previously running application now fails with the error org.apache.jasper.JasperException: Cannot find any information on property 'tcCheckBoxErrorMessage' in a bean of type 'uk.co.brakes.CustomerRegistrationFormData'

Multiple mappings to same servlet query

2005-02-25 Thread Varley, Roger
Hi I know that if I have multiple mappings to the same servlet, then I get two seperate objects instantiated. However, where does the engine instantiate the copy from? For example, I want to run two copies of the same servlet with different URLs, one in test mode, one in live mode. I was

HttpServletInputStream is corrupting data?

2005-02-21 Thread Varley, Roger
Hi I don't think that this is a Tomcat problem per-se, but it involves Tomcat so I'm asking here in the hope that someone else has seen this before. An external program reads XML from a file on disk into a ByteArrayOutputStream to calculate the length of the data. The byte array is extracted

RE: HttpServletInputStream is corrupting data?

2005-02-21 Thread Varley, Roger
iso-8859-1 - I wouldn't have expected a problem in a UK locale with this. Regards Roger -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 11:00 AM To: Tomcat Users List (E-mail) Subject: HttpServletInputStream is corrupting data? Hi

RE: performance/scalability impact of many webapps in one container

2005-01-18 Thread Varley, Roger
For reasons beyond my control, a web application (apache/Tomcat/PostgreSQL) that I support will need to be partitioned into one context per customer (to support one database per customer). I'm wondering: Do you really need one database per customer? In a similair situation, we resolved

RE: Apache, Tomcat, WebDAV, and Web Folders... Oh, my!

2005-01-11 Thread Varley, Roger
About the only thing left to try is to allow the PROPFIND on /webapp/ . So here's the Tomcat question---how can I allow a PROPFIND on /webapp/ and return, for example, a 403 forbidden, rather than a 501 Not Implemented? Do I have to override

RE: Serving files from Tomcat...sorta

2005-01-07 Thread Varley, Roger
a) Authenticate the users against the generic /etc/passwd unix scheme (/etc/shadow in our case). Provided you have read access to the password file, look for JCrypt for a java implementation of the Unix password encryption scheme. Regards Roger

RE: INFO: connection Timeout reached

2004-11-08 Thread Varley, Roger
I've just upgraded to 4.1.31 and I'm getting org.apache.jk.common.ChannelSocket processConnection INFO: connection Timeout received messages at the console every second or so. Everything seems to be working OK so do I need to do anything about these messages? If this is normal

Tomcat fails - Can't read body, waited #0 Seems size related (SOLVED)

2004-11-04 Thread Varley, Roger
Whatever it was, it doesn't do it in 4.1.31. Regards Roger -Original Message- From: Varley, Roger Sent: 29 October 2004 11:32 To: [EMAIL PROTECTED] Subject: Tomcat fails - Can't read body, waited #0 Seems size related I have a servlet that recieves data from a client. All

INFO: connection Timeout reached

2004-11-04 Thread Varley, Roger
Hi I've just upgraded to 4.1.31 and I'm getting org.apache.jk.common.ChannelSocket processConnection INFO: connection Timeout received messages at the console every second or so. Everything seems to be working OK so do I need to do anything about these messages? If this is normal behaviour, is

Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Varley, Roger
I have a servlet that recieves data from a client. All the servlet is doing is reading from the InputStream of the HttpServletResponse (BufferedReader br = new BufferedReader( new InputStreamReader(request.getInputStream()));) and writing the data to a disk file. Periodically Tomcat refuses to

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Varley, Roger
As a follow-up to my original post - further testing shows that this problem only appears when I access Tomcat via IIS. If I connect to Tomcat directly via port 8080 then everything works as expected. Regards Roger __

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Varley, Roger
Hi, Ahh, it's great that you tried this: I was just going to ask if the connector is to blame ;) The range of data sizes you mentioned immediately starts the buffer size alarm horn in my head ;) 8192 = 8k is the default buffer size for many connector versions, including probably the

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Varley, Roger
As a follow-up to my original post - further testing shows that this problem only appears when I access Tomcat via IIS. If I connect to Tomcat directly via port 8080 then everything works as expected. Now I'm even more confused. If I go back to accessing Tomcat via IIS, it will fail

RE: Detecting The Stop Button

2004-09-13 Thread Varley, Roger
If your application is for internal use *and* you have control over your client configuration you may want to investigate placing an invisible applet on your page that talks to your pinger program. Regards Roger __ This

Is it possible to force Tomcat to drop a servlet?

2004-08-31 Thread Varley, Roger
Hi I'm experiencing odd failures when a servlets init procedure is called for a second time. What I *think* is happening is that Tomcat is deactivating the servlet (as it is allowed to do) but some of the singleton objects created by the servlet initialisation routine are not being culled at

Class Load Order

2004-08-23 Thread Varley, Roger
Hi In what order does Tomcat search ./common/classes, ./shared/classes and ./webapp/classes for .class files? I have a number of web-apps that use class files located in ./shared/classes to connect to a backend ERP system. There has always been an implicit assumption that there would only ever

RE: Class Load Order

2004-08-23 Thread Varley, Roger
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h owto.html Thanks, I'd missed that. Regards Roger __ This e-mail and the documents attached are confidential and intended solely for the addressee; it

RE: Serving up static content through apache using mod_jk

2004-06-03 Thread Varley, Roger
Hi, As always, consider using tomcat standalone for all your traffic, static and dynamic. This is the third time I have heard this piece of advice recently. When I started off with Tomcat back in the 3.x days the recommendation was always to run Tomcat for the dynamic servlet/jsp stuff

URL Mapping Question

2004-04-23 Thread Varley, Roger
Hi I have Tomcat 4.4.18 running behind Microsofts IIS web server. In IIS I have two virtual directories defined InboundA and InboundB both of which are mapped to the same physical directory $TOMCAT_HOME/webapps/Inbound. In workers2.properties I have added the lines ... [uri:/InboundA/*]

Tomcat and restricting the size of HttpServletRequest

2004-04-23 Thread Varley, Roger
Hi I have an application where a client transmits data to a servlet by opening a URLConnection to the servlet and writing the data to the outputStream as a POST request which the servlet processes by reading the HttpServletRequest inputStream. What can I do to protect my servlet against a

RE: URL Mapping Question

2004-04-23 Thread Varley, Roger
further. So now it appears that IIS is forwarding requests for InboundA and InboundB to Tomcat but is not mapping either of the requests to Inbound. Regards Roger -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED] Sent: 23 April 2004 13:51 To: [EMAIL PROTECTED] Subject

RE: Tomcat and restricting the size of HttpServletRequest

2004-04-23 Thread Varley, Roger
There is a max POST size limit attribute on the Connectors. Otherwise - you can code for it too: request.getContentLength() == Size of posted content. -1 if the client did not provide a Content length. I wondered about request.getContentLength() but was worried that it was

RE: URL Mapping Question

2004-04-23 Thread Varley, Roger
I have now managed to get it to work. I have defined two contexts (InboundA and InboundB) in server.xml and specified Inbound as the docBase for both contexts. So, what does the context parameter in workers2.properties actually do? Regards Roger -Original Message- From: Varley

RE: Tomcat and restricting the size of HttpServletRequest

2004-04-23 Thread Varley, Roger
I remember a previous discussion on this and one of the solutions was to use an applet that would check the file size prior to transmission. I can do that if the remote end is using my client - my concern is that once the URL is known anyone could write a program that writes huge amounts

Tomcat Class Load Order

2004-04-20 Thread Varley, Roger
Hi I've inherited responsibility for a web application that is, quite frankly, a bit of a mess. I have some classes that are located under $TOMCAT_HOME/webapps/appname/web-inf/classes and are also in jar file under $TOMCAT_HOME/webapps/appname/web-inf/lib. I've even got a couple of class files

Tomcat and IIS Web Server

2004-04-19 Thread Varley, Roger
Hi I have Tomcat running behind Microsofts IIS Web server. All requests go first to IIS and IIS forwards any URL specified in workers.properties to Tomcat. All standard stuff and it works well. I now need to use HTTPS to send a request to IIS which is going to be forwarded to Tomcat. My

RE: Tomcat and IIS Web Server

2004-04-19 Thread Varley, Roger
be an issue should it? Even if they were on different servers behind a firewall given that I'm not worried about internal snooping it's still not an issue - or am I missing something important here? Regards Roger Varley, Roger wrote: Hi I have Tomcat running behind Microsofts IIS Web

Tomcat 4.0 and 5.0

2003-07-16 Thread Varley, Roger
Hi Is there a URL that details what is going to be different between Tomcat 4.0 and 5.0. I'm looking for something more in the style of a tutorial, descriptive how it works type of thing rather than a list of features. Regards Roger

Telegraph Crossword (Saturday 14th)

2003-06-17 Thread Varley, Roger
Anyone finished this weeks? Oook Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Telegraph Crossword (Saturday 14th)

2003-06-17 Thread Varley, Roger
Anyone finished this weeks? Oook Roger Sorry - wrong group. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: What is the maximum session handling capability

2003-05-30 Thread Varley, Roger
It sucks when the answer really is it depends. What hardware are you using? The only want to get a REALLY accurate answer is to use a stress testing tool from http://www.opensourcetesting.org/performance.php and see what happens using your hardware/application set up. Then do some

RE: Stop logging from isapi_redirector2.dll

2003-03-04 Thread Varley, Roger
-Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 14:22 To: Tomcat Users List Subject: Re: Stop logging from isapi_redirector2.dll Hello Jay. Thanks for Your help but it doesn't work still. If You will be know how can I resolve my problem,

RE: Configuring Tomcat with IIS Web Server

2003-03-04 Thread Varley, Roger
I'm working on Configuring Tomcat with IIS Web Server http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.htmlfro m O'Reilly Net. I think that I have followed everything exactly. I get a 404. tomcat is the first and only ISAPI redirector in my list, it has a green arrow. I've

RE: [OT] free Database with Transaction (Sorry for the noise)

2003-02-19 Thread Varley, Roger
I'm surprised that no-one has mentioned SAPDB ( www.sapdb.org ). If this will support a production SAP R3 system then it shoud be able to give Oracle a run for its money. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: compression filter problem

2003-02-11 Thread Varley, Roger
I am Developing Web application using tomcat. I want to Comopress my all jsp pages in web application, for that i have make some java filter classes and make changes in web.xml. but I am facing two problems 1. in jsp i have to put header content encoding is gzip, without that brower display zip

Tomcat 4.1.18, JK2 - no iis_redirect.log

2003-02-06 Thread Varley, Roger
Hi I've just upgraded from Tomcat 3.2 to Tomcat 4.4.18 with IIS using JK2. It's been a struggle to get it to work, but I've now got everything working except I don't seem to have an iis_redirect.log file (or it's equivalent) despite setting logLevel = debug in the registry entries. Have I missed

RE: Tomcat 4.1.18, JK2 - no iis_redirect.log

2003-02-06 Thread Varley, Roger
- From: Varley, Roger [mailto:[EMAIL PROTECTED]] Sent: 6. febrĂșar 2003 12:29 To: Tomcat Users List (E-mail) Subject: Tomcat 4.1.18, JK2 - no iis_redirect.log Hi I've just upgraded from Tomcat 3.2 to Tomcat 4.4.18 with IIS using JK2. It's been a struggle to get it to work, but I've

RE: Tomcat 4.1.18, JK2 - no iis_redirect.log

2003-02-06 Thread Varley, Roger
Thanks Reynir I found it. Is it possible to change this behaviour back to its original 3.2 behaviour. Our development server is physically located at the other end of the building and I would like to be able to view the log without taking a long walk :) Yes it's possible add

RE: Tomcat 4.1.18, JK2 - no iis_redirect.log

2003-02-06 Thread Varley, Roger
has been the major cause of my problems in getting Tomcat to work. For example, I only found out about the need for [shm] through the archives of this list. [shm] is needed section is needed to run i_r2.dll ? i'll test this.. shouldnt be needed at all.. or at least have a

RE: Tomcat 4.1.18, JK2 - no iis_redirect.log

2003-02-06 Thread Varley, Roger
examples webapp to the WebServer uri space [uri:/examples/*] info=Map the whole webapp # Map the Customer Administration stuff [uri:/CustomerAdministration/*.jsp] [uri:/CustomerAdministration/servlet/*] -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED]] Sent: February 6

sendRedirect() fails on first call only within a session

2003-01-28 Thread Varley, Roger
Hi I'm using IIS to serve the top level html pages from a web application that runs under Tomcat 3.2. The first page (default.htm) in the top level directory (http://domain/applicationname is displayed and prompts for userid and password and passes this data to a servlet

RE: sendRedirect() fails on first call only within a session

2003-01-28 Thread Varley, Roger
I've done some more investigation. If I replace 'response.sendRedirect(response.encodeRedirectURL(../default.htm))' with 'response.sendRedirect(../default.htm);' then everything works as expected, so there is something about response.encodeRedirectURL() that I'm not uderstanding. I've looked

URL mapping problem

2003-01-21 Thread Varley, Roger
Hi (Tomcat 3.2, IIS 4.0 Win NT5.0 Sp6) I have a commercial web application (to which I have no access to the source) that exists in two configurations (i.e two sets of web directories below Inetpub/wwwroot). The application ends by calling exit.htm in their respective html directories (ipshtml

RE: URL mapping problem

2003-01-21 Thread Varley, Roger
Howdy, You realize one page can only map to one servlet, right? There can only be one /exit.htm for your webapp. My mistake, I assumed that Tomact would see /ipshtml/exit.htm and /elcomhtml/exit.htm as two. You can, however, code that servlet to see whether the request came from ip

RE: JSP source

2003-01-10 Thread Varley, Roger
Hi I want to do some reporting that is to be called by a cron job. I do not want to use a reporting tool. Can use JSP * to talk to the database * fetch the relevant details * format the details as a report * fetch the HTML source of the generated report *

RE: Java method equal to perl crypt()?

2002-11-28 Thread Varley, Roger
The only problem I have is if I migrate to JSP, how can I compare passwords that are supplied in the JSP page to the password in the DB that was stored via the Perl crypt() function? Assuming that the Perl crypt() function is an implementation of the Unix crypt command then try either

RE: servlet communication

2002-11-20 Thread Varley, Roger
Could you just rely on the manager application to reload the webapp? Then there is no code to maintain. I've been looking for an effective way to emulate the unix 'kill -HUP' command for ages. It's not always practical to kill off the webapp, since you need to ensure that no-one is using

iis_redirect.log

2002-11-07 Thread Varley, Roger
Hi I'm using Tomcat 3.2 as a servlet engine for Microsofts IIS. Is there anyway that I can either force the iis_redirect.log to rotate on a regular basis, or stop/reduce the volume of data that's getting spat into the log file. Regards Roger -- To unsubscribe, e-mail:

RE: Auto Start Tomcat

2002-06-11 Thread Varley, Roger
Can anybody out there please tell me how to AutoStart Tomcat in the background on a RedHat Linux box without having to log in and start the service manually? This came up a couple of days ago. Scan the archives for the thread Automatic start from /etc/rc3.d ??? and you'll find