5.5.7 Throws 'Error filterStart' But Still Works?

2005-03-22 Thread Bim Paras
I have Tomcat 5.5.7 installed on two different machines - Win XP and Windows 2000. I use the 'startup.bat' script provided in the '/bin' directory and I have JDK 1.5 installed on both machines. The only environment variables I have are JAVA_HOME as I allow the 'startup.bat' to set the other

Apache Webserver with Tomcat 5.5.7

2005-03-22 Thread Vaneet Sharma
Hello guys, Can someone help me in configuration? Any hints will be helpful as well. vaneet -Original Message- From: Vaneet Sharma Sent: Monday, March 21, 2005 11:28 AM To: tomcat-user@jakarta.apache.org Subject: Centos 3.3 Hello guys, I am not able to configure apache web server

Source code for Servlet.jar

2005-03-22 Thread Rajaneesh
Hi All, Where do I find the source code for the servlet.jar? Disclaimer This message is not an official communication of SLK Software. The sender of this message is neither acting as an agent nor in any other capacity for or on behalf of SLK Software. SLK Software accepts no responsibility or

Re: Source code for Servlet.jar

2005-03-22 Thread Tim Funk
http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/jsr154/ -Tim Rajaneesh wrote: Hi All, Where do I find the source code for the servlet.jar? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Source code for Servlet.jar

2005-03-22 Thread Trond G. Ziarkowski
Hi, the source code for servlet.jar is part of the tomcat source release. - Trond Rajaneesh wrote: Hi All, Where do I find the source code for the servlet.jar? Disclaimer This message is not an official communication of SLK Software. The sender of this message is neither acting as an agent nor in

Re: How to trap errors while authenticating user : Custon Authentication mechanism ?

2005-03-22 Thread William Stranathan
Besides, giving to the USER a different authentication failure message is a bad idea - hackers use that information to know which accounts to try to hack. On the other hand, though, custom handling of the error would be nice - the LDAP servers I use disconnect silently without traffic for some

One request per session

2005-03-22 Thread Brij Naald
Hi, i'm trying to test a locking system for servlets. I've made a chain of servlets which include each other: Servlet1 -- Servlet2 -- Servlet3 When Thread1 is in Servlet2, it puts a lock on Servlet1. That way if there is a new Request, this request (on thread2) wants to start with servlet1.

RE: One request per session

2005-03-22 Thread Peter Crowther
From: Brij Naald [mailto:[EMAIL PROTECTED] [... locking mechanism described...] Now I push on the 'previous'-button of my browser ... thereby cancelling your first request. What effect does that have on your code? What happens if you test with two browsers, rather than one? -

Réf. : Re: How to trap errors while authenticating user : Custon Authentication mechanism ?

2005-03-22 Thread Cyril . ZEKSER
Hi, I don't want to give to the user the error why his login fails, but I want to open a popup calling the good service from my Novell server. Beside of that, I'm developping an Intranet application, so hacking is not our primary concern. What can I do instead of unpacking calalina.jar and

RE: One request per session

2005-03-22 Thread Vaneet Sharma
Try to give thread priority. Are u using? Wait and notify ? Try using wait () and notifyAll Can you send me the code? Why are u doing it ? What is real need to do such thing? Vaneet -Original Message- From: Brij Naald [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 1:39 PM

Re: One request per session

2005-03-22 Thread Tim Funk
Do not use a browser for such testing. You have no way of knowing when the browser releases connections. Use perl's LWP or wget in different processes to similuate multiple requests. -Tim Brij Naald wrote: Hi, i'm trying to test a locking system for servlets. I've made a chain of servlets which

Re: One request per session

2005-03-22 Thread Christoph Kutzinski
Hi, are you tying to prevent one user to only make one request at a time? Then a ServletFilter may serve your needs. Here : http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html is a possible solution to restrict requests from one user. I haven't tried it myself yet, but the article

RE: image upload

2005-03-22 Thread Shannon Scott
Thank you for pointing me to the JCFU. I plan to use it for uploading images. I could not find a method that would allow me to determine or control pixel dimensions for uploaded images ( only file size ). How do others filter images based on actual image size ( pixel dimensions ). Thank you

Re: image upload

2005-03-22 Thread William Stranathan
Use javax.imageio.ImageIO to read the image from an input stream - you get back a BufferedImage from which you can determine the dimensions. w On Tue, 22 Mar 2005 08:57:36 -0500, Shannon Scott [EMAIL PROTECTED] wrote: Thank you for pointing me to the JCFU. I plan to use it for uploading

Re: Rookie needs help resolving HTTP Status 500 error message

2005-03-22 Thread Mark Leone
And be advised that you have to recapitulate your package structure in the directory hierarchy under ..WEB-INF\classes. In other words, if you compile your bean inside package org.company.my.java, then you should place the class file for your bean in ..WEB-INF\classes\org\company\my\java QM

url of caller?

2005-03-22 Thread Pawson, David
Is it possible to determine the url of the webpage from which a particular servlet was called please? I.e. the target of a 'back' action on the browser? public java.lang.String getRequestURI() is the 'current' page, I need the calling page. Regards DaveP. snip here * -- DISCLAIMER:

Re: url of caller?

2005-03-22 Thread PA
On Mar 22, 2005, at 15:13, Pawson, David wrote: public java.lang.String getRequestURI() is the 'current' page, I need the calling page. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.36 Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/

Re: url of caller?

2005-03-22 Thread Mike Fowler
DaveP, You could use the 'referer' header, eg. String referedURL = request.getHeader(referer); Note that the String is null if the header isn't present which usually indicates that the user typed the URL in their browser. Hope this helps! -- Mike Fowler Registered Linux user: 379787 I could be a

RE: url of caller?

2005-03-22 Thread Pawson, David
-Original Message- From: Mike Fowler You could use the 'referer' header, eg. String referedURL = request.getHeader(referer); Note that the String is null if the header isn't present which usually indicates that the user typed the URL in their

RE: url of caller?

2005-03-22 Thread Peter Crowther
From: Pawson, David [mailto:[EMAIL PROTECTED] From: Mike Fowler Note that the String is null if the header isn't present which usually indicates that the user typed the URL in their browser. The caveat is worth noting! If a user does that, they deserve to be

RE: url of caller?

2005-03-22 Thread Mark Benussi
Worth mentioning this as I have been down this path. Symantec Intenet Security products and the like, will remove this header. I actually contemplated writing to Symantec about this only this morning (I think I have too much time on my hands).

Win2003 server, IIS 6 tomcat 5. setup (isapi_redirect) - resolved

2005-03-22 Thread reynir
Hi all, I've just installed a setup with Win2003 server, IIS 6 (the default 2003 server) and tomcat. I tried this before, and failed but now I succeeded. I know there are more people dealing with the same env. setup. So if you are having problems with this kind of setup you can read all about my

Document xmlValidation for Host

2005-03-22 Thread George Sexton
I noticed on the page: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html That xmlValidation is not documented on the host page. Also, it tools like xmlNameSpace is another attribute not documented. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585

getRemoteUser() returns null !!!

2005-03-22 Thread VAN DER MARLIERE FREDERIC
Hi, I installed a Tomcat 5.0 behind a IIS 6.0 web server (which uses NTLM authentication). The application works fine but I can't get the user login with the getRemoteUser() method, I get null !!! Does someone know why? Do I have to configure something in Tomcat ? Thanks in advance. Fred.

Re: getRemoteUser() returns null !!!

2005-03-22 Thread Mladen Turk
VAN DER MARLIERE FREDERIC wrote: The application works fine but I can't get the user login with the getRemoteUser() method, I get null !!! Does someone know why? Do I have to configure something in Tomcat ? Yes. Set tomcatAuthentication=false for AJP connector. Regards, Mladen.

Re: Apache Webserver with Tomcat 5.5.7

2005-03-22 Thread Jon Cline - Enthusiast, Inc.
Hello Vaneet. Can you include the virtualhost portion of httpd.conf, host portion of server.xml, workers[2].properties, and jk.conf files so we can check your config? thx. jc On Tue, 22 Mar 2005 12:23:28 +0100, Vaneet Sharma [EMAIL PROTECTED] wrote: Hello guys, Can someone help me in

RE: Apache Webserver with Tomcat 5.5.7

2005-03-22 Thread Vaneet Sharma
Dear Jc, Thank you very much, Please read below SECTION A) configuration of httpd.conf Well, if you go there: http://www.export4u.co.uk ( Apacher webserver is running but it is not integrated with Tomcat. ) Java and Tomcat are already installed on the my machine 1) I have installed

Compile JSPs with Java 5 features?

2005-03-22 Thread Milo Grains
I've followed the directions in the docs to get 5.5.7 to compile JSPs with -source 1.5 features. It stays in -source 1.4 mode. I know the docs say the IBM compiler will be updated to handle Java 5 feature. When inner classes were introduced in jdk 1.1, it took IBM a year to implement inner

Best way to monitor new version announcements?

2005-03-22 Thread Jason Bainbridge
I'm currently playing the IP compliance game with Tomcat and have jumped through all their hoops so far but just now need to implement a process of monitoring annoucements of new versions so we can assess whether we need to upgrade or not. Currently that involves me reading tomcat-user but that

JK : Connection aborted or network problems

2005-03-22 Thread e
Hi, Any idea what could cause these network problems? [Tue Mar 22 14:41:08 2005] [info] ajp_process_callback::jk_ajp_common.c (1357): Connection aborted or network problems [Tue Mar 22 14:41:08 2005] [error] ajp_service::jk_ajp_common.c (1699): Client connection aborted or network problems

Re: 5.5.7 Build Failed -- Missing RedirectorElement class

2005-03-22 Thread Mark Thomas
Sounds like you need to edit/create the build.properties file for your environment. For what it is worth, mine looks something like this (I have removed a couple of CVS settings) # - Default Base Path for Dependent Packages - # Replace this path with the directory path where dependencies

Re: How to trap errors while authenticating user : Custon Authentication mechanism ?

2005-03-22 Thread Mark Thomas
This is probably by design. This sort of information can be useful to an attacker. If you want to implement this yourself possible starting points would be overriding the relevant methods of org.apache.catalina.realm.JNDIRealm or extending org.apache.catalina.realm.RealmBase HTH Mark [EMAIL

Re: Persistence manager ClassNotFoundException during deserialization

2005-03-22 Thread Mark Thomas
It is only a guess but it looks like you have hit http://issues.apache.org/bugzilla/show_bug.cgi?id=19701 This was fixed in the 4.1.31 release Mark Antony Paul wrote: I need to have a bug registered for this as I could convince my manager. I searched bugzilla but could'nt find one. If anyone know

Tomcat from source: jars

2005-03-22 Thread Lieven De Keyzer
I'm installing Tomcat 5.5.7 from source. Before building, a whole bunch of jar files are downloaded from a cvs repository. The default for these files is /usr/share/java. Is this a good place, or should they go in my $JAVA_HOME, which is in /usr/local ?

Trying to disable Coyote gzip compression only when there is a server response status code of 500...

2005-03-22 Thread Eric Butler
First of all, thanks to all the developers and users that have contributed to Tomcat. It's quite an amazing piece of software. I'll start by telling you why I am trying to do this, what approaches I have taken in my attempts to do it, and then I'll ask for some suggestions on other approaches

Re: Trying to disable Coyote gzip compression only when there is a server response status code of 500...

2005-03-22 Thread Remy Maucherat
On Tue, 22 Mar 2005 13:39:55 -0500, Eric Butler [EMAIL PROTECTED] wrote: First of all, thanks to all the developers and users that have contributed to Tomcat. It's quite an amazing piece of software. I'll start by telling you why I am trying to do this, what approaches I have taken in my

Re: Trying to disable Coyote gzip compression only when there is a server response status code of 500...

2005-03-22 Thread Eric Butler
see inline comments regarding HttpServletResponseWrapper Remy Maucherat wrote: On Tue, 22 Mar 2005 13:39:55 -0500, Eric Butler [EMAIL PROTECTED] wrote: First of all, thanks to all the developers and users that have contributed to Tomcat. It's quite an amazing piece of software. I'll start by

Re: DIGEST authentication; Does it work??

2005-03-22 Thread Mark Thomas
Yes it does. I tested this extensively with both IE and Firefox. Any combination of the following is OK: Auth: BASIC, FORM, DIGEST Realm: Memory, UserDatabase, JDBC, DataSource Passwords: Cleartext, digested There is a complication when using digested passwords with the

Re: Tomcat Build-- Can I delete the \usr files?

2005-03-22 Thread Mark Thomas
Should be fine to delete but if you ever want to build Tomcat again... Mark Mark Leone wrote: I just completed a build of Tomcat 5.5.7 on Windows XP, after using the binary distribution for quite a while. Can I delete the 166 MB of stuff in the \usr directory? I didn't have any of this stuff

Re: Newbie help

2005-03-22 Thread Frank Høvin
I don't know anything about JWSDP, but have you read the setup and configuration pages for the version of Tomcat you're using? e.g., http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html That's the how-to you're looking for, I suspect... Yah, I tried, but I found it much more confusing

Re: 5.5.7 Build Failed -- Missing RedirectorElement class

2005-03-22 Thread Mark Leone
Thanks for the suggestion. I got it to compile successfully by upgrading from Ant 1.6.1 to 1.6.2. I assumed that RedirectorElement was part of the ant distribution, and an upgrade seemed to be a good shotgun approach. -Mark Mark Thomas wrote: Sounds like you need to edit/create the

Re: DIGEST authentication; Does it work??

2005-03-22 Thread Mark Leone
Okay, I was using 5.5.7. So I just downloaded the source and built 5.5.8, and things got worse. Digest authentication is not working for me. I believe I've set everything up correctly. Using an HTTP monitor I see a 401 response coming back from Tomcat with a www-authenticate header whose

RE: url of caller?

2005-03-22 Thread Pawson, David
-Original Message- From: Mark Benussi Worth mentioning this as I have been down this path. Symantec Intenet Security products and the like, will remove this header. for this use, internal to my organisation, Norton isn't installed luckily!

Re: DIGEST authentication; Does it work??

2005-03-22 Thread Mark Leone
I found a silly classpath error that fixed the problem using RealmBase. I didn't realize that my system still had environment variable %catalina_home% pointing to an old tomcat 4.1.24 directory. So when I opened a command window to generate digest values I was executing RealmBase in tomcat