Re: security patch

2008-03-19 Thread Bill Barker
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am a freshman of tomcat, and my company webserver is running Version 3.2.3 and has never applied any security patches. I would like to know which patches are available to apply? and how to apply the patches? Well, there is

Re: %t in access log valve?

2008-03-19 Thread Dan Keeley
Dan Keeley wrote: Hi all, Just a quick one; It's not clear from the docs. is %t in the accessLogValve the request datetime or the response datetime? It makes a difference to us! thanks, Dan End of response (logging time). Caution: for Apache httpd 2.x it's start of request. Thats great,

Re: How to suppress error page for a response with only the status code set

2008-03-19 Thread Martin Grotzke
On Tue, 2008-03-18 at 16:42 -0700, Hassan Schroeder wrote: On Tue, Mar 18, 2008 at 4:28 PM, Martin Grotzke [EMAIL PROTECTED] wrote: Only for the REST api (mapped to a specific path/url-pattern) we do not want to return these error pages but only codes. So write dynamic error pages

Re: How to suppress error page for a response with only the status code set

2008-03-19 Thread Martin Grotzke
Hi, just to check if this would be an option: is it possible to tell tomcat not to render its error pages? Of course one configure an empty file as error page, but this would have to be done for *all* error codes AFAICS. Thanx cheers, Martin On Tue, 2008-03-18 at 17:15 -0400, Christopher

Restarting Tomcat

2008-03-19 Thread Peter Sparkes
Hi, I am running several instances of Tomcat 5.5 under Apache on a Linux machine (Debian). On an application on one of the Tomcat instances I have a memory leak, which I have not been able to fix. To overcome the problem, in the short, I want to daily stop/start (restart) Tomcat using a

RE: Tomcat 6 - Cluster error.

2008-03-19 Thread Raúl García
Hi again, After some weeks, Mr. Hanik help us solving the problem. And he found it! The problem was the sticky sessions, and our balancer: pen. Pen, (http://siag.nu/pen/) it's a simple load balancer, and it doesn't care about sessions between nodes. That provokes dead locks at tomcat. The

tomcat5 cannot call manager

2008-03-19 Thread Andre Hübner
Hi List, i try to install tomcat5 under suse 10.1 After installing and configuring i have the problem that i cannot request the /manager , apache 2.2.8 sends error 404. I dont know what to do now. Here are my steps i used for installing: tomcat-connectors-1.2.26-src is configured with:

Re: Tomcat - JMX to get connections per minutes?

2008-03-19 Thread paul womack
Caldarale, Charles R wrote: From: paul womack [mailto:[EMAIL PROTECTED] Subject: Tomcat - JMX to get connections per minutes? How do I get figures on (what I consider) simple stuff like connections per minute/hour/whatever, Kilobytes per second, etc? Probably the easiest thing to do is look

Error Page Question

2008-03-19 Thread Peter Stavrinides
Hi all, How do I display a friendly error page (503 site under maintenance) if my application is taken off-line? I understand how to override error pages with my application running, but can I, and where do I configure a 503 when its down, but Tomcat is still running. Thanks Peter

Re: Error Page Question

2008-03-19 Thread David Delbecq
The easiest way i found out here was to use the 404 of the ROOT web application ^^ to display a 'site under maintenance'. You could also create a ROOT/webappname/index.html to get same result En l'instant précis du 19/03/08 11:55, Peter Stavrinides s'exprimait en ces termes: Hi all, How do

Re: Error Page Question

2008-03-19 Thread Peter Stavrinides
Oh thanks! that sounds quite simple... so I just add my error page descriptor in the ROOT applications web.xml and it will override. David Delbecq wrote: The easiest way i found out here was to use the 404 of the ROOT web application ^^ to display a 'site under maintenance'. You could also

tomcat5 cannot call manager - addition

2008-03-19 Thread Andre Hübner
Hi List, Tomcat is now working. The Only Difference is that i startet with /usr/share/tomcat5/bin/startup.sh Former startups used orig. Suse Startscript /etc/init.d/tomcat5 hmm... Andre - To start a new topic, e-mail:

Re: RemoteAddrValve Blocking all addresses

2008-03-19 Thread Mark Leone
Found the problem. The docBase path was wrong. The server node in the file tree was a hangover from Tomcat 5. Mark Leone wrote: Is RemoteAddrValve broken in 6.0.16? I have the following in manager.xml, located at %catalina_home%\Conf\Catalina\Localhost. Context

RE: Tomcat - JMX to get connections per minutes?

2008-03-19 Thread Caldarale, Charles R
From: paul womack [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat - JMX to get connections per minutes? I was hoping that there already existed some (web?) or Swing tool that would graph/chart obvious performance/load parameters, analagous to sun PerfMeter, or KDE System Guard. Both Lambda

Re: Tomcat tool similar to top

2008-03-19 Thread Mark Deneen
Caldarale, Charles R wrote: From: Enrique Arizón [mailto:[EMAIL PROTECTED] Subject: Tomcat tool similar to top Time to time one of those apps gets out of control, but standard OS tools like top just show the java process running up to 200% of CPU usage. I'd be suspicious of that tool

Re: basic authentication with tomcat 4.1.36

2008-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ram, [EMAIL PROTECTED] wrote: | with authentication turned | on, i receive a HTTP 401 error from the server when i try to undeploy. This is how it's supposed to work. | I am using standard code to access the tomcat manager, and am using basic |

Re: Error Page Question

2008-03-19 Thread Peter Stavrinides
Unfortunately this solution doesn't solve it, I can only override 404 pages?, for 503 pages it simply ignores the override in web.xml, anybody got any other suggestions? Peter Stavrinides wrote: Oh thanks! that sounds quite simple... so I just add my error page descriptor in the ROOT

Re: how: this configuration for linux

2008-03-19 Thread dr_pompeii
Hello Hassan thanks for the reply i start the tomcat with this command ./catalina.sh run or directly with eclipse with tomcatplugin min/max JVM memory values are set in your startup script how? i see the script and not line to change this configuration suggested by you regards Hassan

forwarding a post

2008-03-19 Thread John Pedersen
Hi, Can anyone suggest how I can forward a post using servlets? I have a page with 3 forms on it. The forms are paypal, google checkout, and one other payment methods. eg: form method=POST action= https://sandbox.google.com/checkout/api/checkout/v2/checkout/Merchant/***; name=gc

Re: how: this configuration for linux

2008-03-19 Thread Hassan Schroeder
On Wed, Mar 19, 2008 at 8:14 AM, dr_pompeii [EMAIL PROTECTED] wrote: i start the tomcat with this command ./catalina.sh run Set min/max values using JAVA_OPTS, e.g. export JAVA_OPTS= -Xms512M -Xmx512M This can be in your dev environment, or in a production startup script, usually

RE: forwarding a post

2008-03-19 Thread Peter Crowther
From: John Pedersen [mailto:[EMAIL PROTECTED] Can anyone suggest how I can forward a post using servlets? [Shopping cart use case elided] You have to issue a page back to the client browser, and get the browser to auto-submit it to the payment provider. My approach with carts is to issue

Re: Error Page Question

2008-03-19 Thread Pid
Peter Stavrinides wrote: Unfortunately this solution doesn't solve it, I can only override 404 pages?, for 503 pages it simply ignores the override in web.xml, anybody got any other suggestions? I thought used to be possible to customise the built in error pages with XSL, but I can't seem to

Re: Error Page Question

2008-03-19 Thread Len Popp
You can't override the 503 error page using an error-page declaration. :-( The only way I know of to change it is to replace org.apache.catalina.valves.ErrorReportValve with your own version, which you specify in the errorReportValveClass attribute of the Host element in server.xml. I haven't

Re: basic authentication with tomcat 4.1.36

2008-03-19 Thread ram . sriharsha
Hi Chris, I figured out why the code I wrote did not work(had to look into the Authentication class inside Tomcat source code to figure it out!). The reason was when I was setting Request Property for Authentication, I was missing a space

RE: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Caldarale, Charles R
From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Running out of memory too easily in Tomcat 6.0.16 I have a very small and simple Spring + Hibernate application Once you throw Spring and Hibernate into the mix, nothing is simple. javax.servlet.ServletException:

Re: Tomcat stops after client abort

2008-03-19 Thread David Smith
I'm not sure anyone here can. Tomcat is good at recovering from a client abort -- they happen a lot for all sorts of reasons. Sounds like the ARS Mid-Tier (what ever that is) is at fault and doesn't deal with rejection very well. Have you contacted the company regarding this? ratul

Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Scott Mueller
Thank you for the response Chuck. Like I said, this is a very simple webapp (aside from the Spring/Hibernate libraries). Stores nothing ever in any sessions and I can't imagine memory leaks with the simple code. Thank you for those links, I guess I should run a profiler to see exactly what's

Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread David Fisher
PermGen Space is where classes live. One of the links on the FAQ should get you on track: http://opensource.atlassian.com/confluence/spring/pages/ viewpage.action?pageId=2669 You are likely doing something seemingly innocent, but there is actually a problem. I got similar errors to yours

RE: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Caldarale, Charles R
From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Re: Running out of memory too easily in Tomcat 6.0.16 Stores nothing ever in any sessions and I can't imagine memory leaks with the simple code. You can't ignore the Spring and Hibernate libraries, which could easily be the cause of

Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Scott Mueller
Thanks again guys for these responses, this is helping me understand what's going on. Charles, where's the proper place to put the heap/permgen allocation settings in tomcat's scripts? I very briefly ran through the various scripts tomcat uses to startup, but I didn't see an obvious place to

RE: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Chris Hut
One thing that can help is to increase the PermGen space memory allocation in the JVM startup. To do this, add the following flag to the Tomcat JAVA_OPTS: -XX:MaxPermSize=256m (or another suitable value for you.) Note however, that this is a workaround and does not solve the core issue of a

Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Scott Mueller
Thanks Chris! So JAVA_OPTS is where these kinds of parameters go. On Wed, Mar 19, 2008 at 12:00 PM, Chris Hut [EMAIL PROTECTED] wrote: One thing that can help is to increase the PermGen space memory allocation in the JVM startup. To do this, add the following flag to the Tomcat JAVA_OPTS:

RE: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Caldarale, Charles R
From: Scott Mueller [mailto:[EMAIL PROTECTED] Subject: Re: Running out of memory too easily in Tomcat 6.0.16 Charles, where's the proper place to put the heap/permgen allocation settings in tomcat's scripts? You don't modify the scripts themselves. Set whatever options you need in the

Tomcat 6 Deploy to subdirectory

2008-03-19 Thread Kelly.Graus
Hello, I am having problems trying to deploy a web app to Tomcat 6. I initially developed the app with the name LessonDownloader using Eclipse. I can export the app as a war file (LessonDownloader.war) and deploy it using the Tomcat Manager App. This works fine, and going to

RE: Tomcat 6 Deploy to subdirectory

2008-03-19 Thread Caldarale, Charles R
From: Kelly.Graus [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 Deploy to subdirectory Now I want to deploy the app so that I can run it by going to www.mysite.com/lessons/download. I changed the path in my META-INF/context.xml file to be /lessons/download The path attribute is not allowed

Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-03-19 Thread Rajeev Angal
I misspoke - this is happening on Tomcat 6.0.16 only . 6.0.10 is working fine on all browsers. Any pointers highly appreciated. thanks, -rajeev On Mar 18, 2008, at 8:20 PM, Rajeev Angal wrote: 6.0.10 and 6.0.16. On Mar 18, 2008, at 7:35 PM, Filip Hanik - Dev Lists wrote: tomcat version?

Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-03-19 Thread Mark Thomas
Rajeev Angal wrote: I misspoke - this is happening on Tomcat 6.0.16 only . 6.0.10 is working fine on all browsers. Any pointers highly appreciated. It is a known issue in 6.0.16. A patch is currently under consideration. Mark

Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Martin Gainty
Hi Scott-- tough to say without understanding how you structured your app pls send all configuration files Thanks Martin - Original Message - From: Scott Mueller [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, March 19, 2008 12:53 PM Subject: Running out of memory too

Manager app authentication not working with JDBCRealm

2008-03-19 Thread Mark Leone
I can't get the manager app working with authentication using JDBCRealm, even though I've configured it identically to an app I developed that uses the same JDBCRealm instance successfully. In both cases, the app requires a user with role manager, and the same authentication setup works for my

RE: Manager app authentication not working with JDBCRealm

2008-03-19 Thread Caldarale, Charles R
From: Mark Leone [mailto:[EMAIL PROTECTED] Subject: Manager app authentication not working with JDBCRealm I can't get the manager app working with authentication using JDBCRealm, even though I've configured it identically to an app I developed that uses the same JDBCRealm instance

Tomcat hangs on SATA Linux server

2008-03-19 Thread Rick Fincher
Hi All, We have a web app running on Tomcat that accesses Oracle via JDBC on a Linux server (Centos 4.5) . The web app runs fine on one server but but locks up or hangs for 20-30 second periods on a Dell sever running with SATA storage. I only mention SATA because that is the only

RE: Tomcat hangs on SATA Linux server

2008-03-19 Thread Caldarale, Charles R
From: Rick Fincher [mailto:[EMAIL PROTECTED] Subject: Tomcat hangs on SATA Linux server Anyone have a clue what is causing this? Must be the day for people to leave out most relevant information. 1) What Tomcat level? 2) What JVM version? 3) What Java heap size have you specified? 4)

Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-19 Thread Srinivasan Rangaswamy
On Wed, Mar 12, 2008 at 11:10 AM, David Kramer [EMAIL PROTECTED] wrote: Caldarale, Charles R wrote: From: David Kramer [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon Are you saying we should try removing all the registry keys we added and

Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Scott Mueller
Hi Martin, I did absolutely zero configuration of tomcat. I use the commons dbcp/pool for hibernate, not tomcat's connection pool. And I use acegi for security, not tomcat or j2ee's mechanism (though this memory problem was happening before I added acegi). The only thing I touch with tomcat is

Re: Manager app authentication not working with JDBCRealm

2008-03-19 Thread Mark Leone
I wonder how many times we have to remind people to provide the Tomcat level they're using. Besides that rather critical piece of information, also tell us where you put your driver classes or jar for accessing the authentication database. - Chuck Sorry about that. I'm using Tomcat 6.0.16.

Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread Martin Gainty
yes providing configuration files would assist in debugging this scenario Thanks Martin- - Original Message - From: Scott Mueller [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 19, 2008 6:19 PM Subject: Re: Running out of memory too easily in Tomcat

Re: Unconnected sockets not implemented

2008-03-19 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=8748 Posted on behalf of a User For the sake of anyone else running into this cryptic exception, the FIRST thing to do is verify everything about how SSL is configured in your VM -- make sure the javax.net.ssl.keyStore and

RE: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-19 Thread Caldarale, Charles R
From: Srinivasan Rangaswamy [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon Oh, can someone please explain what does the w mean exactly? I've downloaded both the tomcat6.exe tomcat6w.exe, but never known what their difference. I don't know what

RE: Manager app authentication not working with JDBCRealm

2008-03-19 Thread Caldarale, Charles R
From: Mark Leone [mailto:[EMAIL PROTECTED] Subject: Re: Manager app authentication not working with JDBCRealm I'm using Tomcat 6.0.16. I have my JDBC Connector jar file in %catalina_home%\lib O.k., that looks good. Why do your posted XML fragments have asterisks and odd annotations like

Re: Manager app authentication not working with JDBCRealm

2008-03-19 Thread Mark Leone
Why do your posted XML fragments have asterisks and odd annotations like #? Since what you posted doesn't appear to be just a copy paste, it would be good to see the actual elements, attributes, and values. My mistake. I copied from the rendered XML doc instead of from the source. Here's

RE: Manager app authentication not working with JDBCRealm

2008-03-19 Thread Caldarale, Charles R
From: Mark Leone [mailto:[EMAIL PROTECTED] Subject: Re: Manager app authentication not working with JDBCRealm Mar 19, 2008 10:21:23 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/admin] There is no admin webapp for Tomcat 6; is that your own, or did

Re: Manager app authentication not working with JDBCRealm

2008-03-19 Thread Mark Leone
There is no admin webapp for Tomcat 6; is that your own, or did you copy over stuff from a previous level of Tomcat? If you did, that's likely the cause of your problem, since the configs and built-in webapps are not compatible across levels. I copied the admin app from Tomcat 5 after

RE: Manager app authentication not working with JDBCRealm

2008-03-19 Thread Caldarale, Charles R
From: Mark Leone [mailto:[EMAIL PROTECTED] Subject: Re: Manager app authentication not working with JDBCRealm 2. I added to server.xml the JDBCRealm descriptor that I showed earlier in the thread. I made no other changes. O.k., I think that will break the world. As far as I know, you may

Web WIFI application

2008-03-19 Thread karthikn
Hi We have been Developing a Web WIFI application that acts as a AAA processor for ROUTER [ CISCO ] for provision of Internet Access. The application is HOSTED as ROOT in Tomcat 5523 web server Reason : CISCO ROUTER uses IP /Port Only to identify and route the HTTP requests for AAA