tomcat-users.xml MD5 sum

2008-09-10 Thread Niki Diulgerov
hello There, I implemented aide monitoring on tomcat (and the webapps) yesterday and today faced a very strange problem. tomcat-users.xml seems the same file (it contents) but aide reports MD5 and SHA different checksums. is it possible that on restart apache tomcat to change (or recreate)

Re: Regarding Error 404-please help!

2008-09-10 Thread Ognjen Blagojevic
laura fu wrote: Hi Tomcat, How are you? I am new to using Apache Tomcat and am in the process of learning it. I came across this problem while i was setting it up, please kindly take a look, i just need a little push in the right direction. I saved my work HelloWorld.java in the folder in

Content disposition header not reaching client

2008-09-10 Thread Jan Lendholt
Hey folks, we're using apache httpd serverion (2.2.8) on a Ubuntu Server. We're normally using a LAMP-config for our webapps, but some of them are also written in java / jsp. Therefore we're using mod_jk (1.2.26) to pass-through the corresponding requests. Unfortunately the following code

Re: tomcat-users.xml MD5 sum

2008-09-10 Thread Konstantin Kolinko
2008/9/10 Niki Diulgerov [EMAIL PROTECTED]: I implemented aide monitoring on tomcat (and the webapps) yesterday and today faced a very strange problem. tomcat-users.xml seems the same file (it contents) but aide reports MD5 and SHA different checksums. is it possible that on restart apache

[SECURITY] CVE-2008-2938 - Apache Tomcat information disclosure vulnerability - Updated

2008-09-10 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2008-2938: Apache Tomcat information disclosure vulnerability - Updated Severity: Important (was moderate) Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.0 to 4.1.37 Tomcat 5.5.0 to 5.5.26 Tomcat 6.0.0 to 6.0.16 The

Re: CGIServlet in Tomcat 6

2008-09-10 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of a User In order to add privileged=true property simply edit $CATALINA_HOME/conf/context.xml replace tag Context by Context privileged=true In Response To: Hi all, I'm using CGI servlet in Tomcat 5 without any

Reading Tomcat source code

2008-09-10 Thread Pierre Goupil
Hello all, As an exercise, I would like to start reading Tomcat 6 source code. Lots of things to learn there, I guess ! But I don't know where to start. An idea, anyone ? Yours, Pierre

Re: Reading Tomcat source code

2008-09-10 Thread Yoryos
I would suggest to start from the Default servlet (that would be org.apache.catalina.servlets.DefaultSerlet) On Wed, Sep 10, 2008 at 5:07 PM, Pierre Goupil [EMAIL PROTECTED]wrote: Hello all, As an exercise, I would like to start reading Tomcat 6 source code. Lots of things to learn there, I

Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-10 Thread Willem Moors
I'm transferring my application from a tomcat 5.5.26 server to tomcat 6.0.18, and notice that my formatted currency amounts are not being properly displayed. Instead of a Pound (GBP) sign I get a question mark within a black diamond (the app works fine in 5.5.26). This can easily be emulated. Add

Unable to import certificate into keystore

2008-09-10 Thread ductaa
This is probably more of a Java issue than a Tomcat issue, but it's directly impacting our use of Tomcat, so I'm sending it here first... Configuration: Tomcat version: Tomcat 5.5.20 JDK: 1.5.0_06 OS: Windows Server 2003, Standard Edition Problem: We use Tomcat for B2B communication with

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-10 Thread Steve Ochani
Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 10 Sep 2008 17:27:51 +0200 From: Willem Moors [EMAIL PROTECTED] To: users@tomcat.apache.org Subject:Migrating to tomcat 6 gives formatted currency amounts problem I'm transferring my application from a

JVM per Context

2008-09-10 Thread Michael Dehmlow
I have multiple contexts that are defined for a given host in my server.xml each context I would like to start up in its own jvm, for dll and enviornment variable reasons. Here's an example of my server.xml: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true

RE: JVM per Context

2008-09-10 Thread Peter Crowther
From: Michael Dehmlow [mailto:[EMAIL PROTECTED] I have multiple contexts that are defined for a given host in my server.xml each context I would like to start up in its own jvm, for dll and enviornment variable reasons. As a solution sketch (I've never done it), you'll need to deploy

RE: Regarding Error 404-please help!

2008-09-10 Thread laura fu
Hi Ognjen, Thanks for your reply! Here is my web.xml from jjolt application: ?xml version=1.0 encoding=ISO-8859-1?!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;web-appdisplay-nameJJOLT servlets/display-name

RE: JVM per Context

2008-09-10 Thread Caldarale, Charles R
From: Michael Dehmlow [mailto:[EMAIL PROTECTED] Subject: JVM per Context I have multiple contexts that are defined for a given host in my server.xml Placing Context elements in server.xml is strongly discouraged for any current version of Tomcat; however, you didn't bother to tell us what

Re: Preventing File Access

2008-09-10 Thread Steve Ochani
Send reply to: Tomcat Users List users@tomcat.apache.org From: Stephen Caine [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Subject:Preventing File Access Date sent: Tue, 09 Sep 2008 19:35:31 -0400 All,

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-10 Thread Willem Moors
Works fine for me, fresh install of 6.0.18, changed the HelloWorldExample.java and recompiled. Tried with both IE7 and FF 3. Are you sure you don't have a httpd in front of tomcat? I've seen simillar problem when using apache httpd. I had to turn off the option AddDefaultCharset

Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Lars 'Levia' Wesselius
I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and Java SE 6. I have it set up so I can access the main Tomcat page..but when I go to the manager from there, it shows a (apache) 404 error. Can someone help me with this problem? I have the configuration files ready for those who

Disable java code execution %blabla% in jsp, but permits tags

2008-09-10 Thread kazukin6
Plz Help !! Is it possible to disable all java code execution within jsp page (by security manager or something) but allow custom tags to be executed? The problem is that the users can change jsp files, and due to security reasons we can allow them to use only tags -- View this message in

Re: [newbie] connectionTimeout value for AJP Connector

2008-09-10 Thread Rainer Jung
Bill Barker schrieb: Stacey Jones [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am a new member on tomcat mailing list. For tomcat 5.5 - Is there a recommended value for connectionTimeout attribute? How to decide this value? The documentation says : The number of

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-10 Thread Steve Ochani
Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 10 Sep 2008 18:58:48 +0200 From: Willem Moors [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Subject:Re: Migrating to tomcat 6 gives formatted currency amounts problem Works fine for

Re: relative paths in web.xml [solved]

2008-09-10 Thread Jordan Michaels
Just so folks are aware, this has been solved. Apparently is was the servlet that was resolving the location of the XML file based off the Context Docbase, and there was a trick to getting it to realize that the file path you were passing to it was a full file path and not a relative file path.

Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Steve Ochani
Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 10 Sep 2008 19:17:24 +0200 From: Lars 'Levia' Wesselius [EMAIL PROTECTED] To: users@tomcat.apache.org Subject:Problem with Apache, Tomcat, mod_jk I have a problem using Tomcat 6.0.18, latest Apache,

Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Lars 'Levia' Wesselius
2008/9/10 Steve Ochani [EMAIL PROTECTED] Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 10 Sep 2008 19:17:24 +0200 From: Lars 'Levia' Wesselius [EMAIL PROTECTED] To: users@tomcat.apache.org Subject:Problem with Apache, Tomcat, mod_jk I have a

Single Sign On valve issue

2008-09-10 Thread Ben Newman
I'm having an issue with the single sign on valve under tomcat 6. I have 2 webapps and if a user logs in under app A but then only uses app B, they get logged out after 30 minutes. The session timing out in app A removes the login information across all webapps. Does anyone have any idea why

RE: JVM per Context

2008-09-10 Thread Michael Dehmlow
Thanks, my version of tomcat 5.5.26. My mistake I was looking at tomcat 3.3 documentation: http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html . Yes defining contexts in the Server.xml is discouraged but I'm doing it

Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Rainer Jung
Lars 'Levia' Wesselius schrieb: 2008/9/10 Steve Ochani [EMAIL PROTECTED] Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 10 Sep 2008 19:17:24 +0200 From: Lars 'Levia' Wesselius [EMAIL PROTECTED] To: users@tomcat.apache.org Subject:Problem with

Re: Replaceing RequestFacade

2008-09-10 Thread George Baxter
Argh, I feel so stupid. Thank you for bonking me on the head. Feel free to bonk harder next time. Thanks! George On 9/9/08 5:53 PM, Bill Barker [EMAIL PROTECTED] wrote: Your facade has to extend (Http)ServletRequestWrapper from the standard servlet-api. According to the spec, that is the

Re: Preventing File Access

2008-09-10 Thread Stephen Caine
Steve, Can someone point me to where I can read how to prevent/redirect access to a particular file in the Tomcat/webapp context. Specifically, all of my directories have the OS X DS_Store file. I would like to redirect users to an error page when this file is directly accessed.

Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Lars 'Levia' Wesselius
2008/9/10 Rainer Jung [EMAIL PROTECTED] Lars 'Levia' Wesselius schrieb: 2008/9/10 Steve Ochani [EMAIL PROTECTED] Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 10 Sep 2008 19:17:24 +0200 From: Lars 'Levia' Wesselius [EMAIL PROTECTED] To:

Problems Configuring APR Based Native Libraries for Tomcat

2008-09-10 Thread Nicholas Schuetz
I am trying to compile APR native library for Tomcat. When I run the configure I get messages like this: # ./configure --prefix=/opt/tomcat/apr-connector --with-apr=/usr/bin/apr-1-config --with-ssl=/usr checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu

specifying a custom access log pattern

2008-09-10 Thread Jonathan Mast
Hi, I was wondering what the exact syntax for specifying a custom access log pattern in the server.xml is. Here is a snippet from which contains my custom format: Valve className=org.apache.catalina.valves.AccessLogValue prefix=foo.

Re: Disable java code execution %blabla% in jsp, but permits tags

2008-09-10 Thread Juha Laiho
kazukin6 wrote: Is it possible to disable all java code execution within jsp page (by security manager or something) but allow custom tags to be executed? The problem is that the users can change jsp files, and due to security reasons we can allow them to use only tags Unfortunately I

Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Rainer Jung
Lars 'Levia' Wesselius schrieb: 2008/9/10 Rainer Jung [EMAIL PROTECTED] Lars 'Levia' Wesselius schrieb: 2008/9/10 Steve Ochani [EMAIL PROTECTED] Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 10 Sep 2008 19:17:24 +0200 From: Lars 'Levia' Wesselius [EMAIL

Re: Problems Configuring APR Based Native Libraries for Tomcat

2008-09-10 Thread Rainer Jung
Nicholas Schuetz schrieb: I am trying to compile APR native library for Tomcat. When I run the configure I get messages like this: # ./configure --prefix=/opt/tomcat/apr-connector --with-apr=/usr/bin/apr-1-config --with-ssl=/usr checking build system type... i686-pc-linux-gnu checking host

html entities and urls with spaces

2008-09-10 Thread Brendan Martens
Hello, I am having some issues with tomcat not displaying pages or files with spaces in them, it simply 404s. Something like this: pdf file on filesystem.pdf being accessed at: http://server/pdf%20file%20on%20filesystem.pdf fails to display. I am migrating this site from an older RHEL

Re: Problems Configuring APR Based Native Libraries for Tomcat

2008-09-10 Thread Nicholas Schuetz
Thanks for the info, Rainer. So will it change my life? :) On Wed, Sep 10, 2008 at 4:31 PM, Rainer Jung [EMAIL PROTECTED] wrote: Nicholas Schuetz schrieb: I am trying to compile APR native library for Tomcat. When I run the configure I get messages like this: # ./configure

Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Lars 'Levia' Wesselius
2008/9/10 Rainer Jung [EMAIL PROTECTED] Lars 'Levia' Wesselius schrieb: 2008/9/10 Rainer Jung [EMAIL PROTECTED] Lars 'Levia' Wesselius schrieb: 2008/9/10 Steve Ochani [EMAIL PROTECTED] Send reply to: Tomcat Users List users@tomcat.apache.org Date sent: Wed, 10 Sep 2008

RE: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars 'Levia' Wesselius Subject: Re: Problem with Apache, Tomcat, mod_jk http://mirroredescape.net/manager/ Tomcat 404 error. You appear to have ignored what you were previously told: that's an invalid URL and it should return

Re: specifying a custom access log pattern

2008-09-10 Thread Konstantin Kolinko
my question is: how should a I handle the nested double quotes in the pattern attribute? How should i escape them? quot; or #34; See 4.6 Predefined Entities in XML Spec for details, http://www.w3.org/TR/2006/REC-xml-20060816/#sec-predefined-ent 2008/9/11 Jonathan Mast [EMAIL PROTECTED]:

Re: JVM per Context

2008-09-10 Thread Pid
Michael Dehmlow wrote: Thanks, my version of tomcat 5.5.26. My mistake I was looking at tomcat 3.3 documentation: http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html . Yes defining contexts in the Server.xml is

Tomcat logging properties

2008-09-10 Thread Brian Clark
At the bottom of my Tomcat 6.0.16 logging.properties file, I have the following entries: #org.apache.catalina.startup.ContextConfig.level = FINE #org.apache.catalina.startup.HostConfig.level = FINE #org.apache.catalina.session.ManagerBase.level = FINE

RE: JVM per Context

2008-09-10 Thread Martin Gainty
MikeBR If your goal is to run TC with different JVMs have you looked at using each JBM to run embedded TomcatBR http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html?page=1BR ?BR MartinBR __ BR Disclaimer and confidentiality note Everything in

RE: Preventing File Access

2008-09-10 Thread Martin Gainty
agreed spring folks also suggest placing your jsps under web-inf Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature

Re: Tomcat logging properties

2008-09-10 Thread Yassine
have a look here if you still need more info http://tomcat.apache.org/tomcat-6.0-doc/logging.html On Thu, Sep 11, 2008 at 2:10 AM, Brian Clark [EMAIL PROTECTED] wrote: At the bottom of my Tomcat 6.0.16 logging.properties file, I have the following entries:

Re: html entities and urls with spaces

2008-09-10 Thread Yassine
Hi does fails to display. mean 404 or do you get a file to download and fail to render it on the client side(browser)? for the 404 make sure the files are located there where tomcat/your app looks for them for the second case check the http header sent with the pdf file. Cheers Yassine On Wed,

Re: Tomcat logging properties

2008-09-10 Thread Brian Clark
Yep, read through that, but it didn't tell me what those directives actually mean. Anyone have anything else? - Original Message From: Yassine [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, September 10, 2008 8:17:01 PM Subject: Re: Tomcat logging

RE: JVM per Context

2008-09-10 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: RE: JVM per Context If your goal is to run TC with different JVMs have you looked at using each JBM to run embedded TomcatBR This has nothing to do with running an embedded Tomcat. Please don't add confusion to this issue. - Chuck

Re: Disable java code execution %blabla% in jsp, but permits tags

2008-09-10 Thread Bill Barker
kazukin6 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Plz Help !! Is it possible to disable all java code execution within jsp page (by security manager or something) but allow custom tags to be executed? There isn't anything that can't be worked around. But putting:

Re: html entities and urls with spaces

2008-09-10 Thread Brendan Martens
does fails to display. mean 404 or do you get a file to download and fail to render it on the client side(browser)? Means it 404s. for the 404 make sure the files are located there where tomcat/your app looks for them They are indeed where it's looking for them. When I change the name of

Re: Tomcat logging properties

2008-09-10 Thread Bill Barker
These are examples for changing the logging level on a sample of Tomcat internal components (which generally use the class name as the category). Not really useful unless you're trying to track down a bug in Tomcat itself. Brian Clark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

RE: Tomcat logging properties

2008-09-10 Thread Caldarale, Charles R
From: Brian Clark [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat logging properties Yep, read through that, but it didn't tell me what those directives actually mean. Anyone have anything else? They specify logging levels for those specific classes, overriding any more generic settings. The

Re: html entities and urls with spaces

2008-09-10 Thread Brendan Martens
most file systems cant read spaces in a filename so you should put in _ where you see spaces Hmmm, not sure this is the issue, both filesystems can read and write files with spaces. should be renamed to $CATALINA_HOME/webapps/pdfApp/pdf_file_on_filesystem.pdf I really need to figure

Re: Reading Tomcat source code

2008-09-10 Thread Bill Barker
Pierre Goupil [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, As an exercise, I would like to start reading Tomcat 6 source code. Lots of things to learn there, I guess ! But I don't know where to start. An idea, anyone ? Really depends on what interests you :). If

RE: html entities and urls with spaces

2008-09-10 Thread Caldarale, Charles R
From: Brendan Martens [mailto:[EMAIL PROTECTED] Subject: Re: html entities and urls with spaces Hmmm, not sure this is the issue, both filesystems can read and write files with spaces. It's certainly not the issue - spaces in file names work fine on my Windows box with Tomcat. I really

Re: Reading Tomcat source code

2008-09-10 Thread Johnny Kewl
- Original Message - From: Pierre Goupil [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, September 10, 2008 4:07 PM Subject: Reading Tomcat source code Hello all, As an exercise, I would like to start reading Tomcat 6 source code. Lots of things

Re: Reading Tomcat source code

2008-09-10 Thread Gorav Chhabra
Hello all, I am very new to this TOMCAT... Can anyone please guide from where i can download the Source code and in which IDE i can configure to see the code.. Thanks Gorav On Thu, Sep 11, 2008 at 9:37 AM, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: Pierre Goupil

Re: Reading Tomcat source code

2008-09-10 Thread Yong Ding
Hi Gorav Tomcat's homepage you can find the source download link. for example:http://tomcat.apache.org/download-60.cgi you can read the source code on the any IDE, for example Eclipse, .. good luck. On Thu, Sep 11, 2008 at 1:25 PM, Gorav Chhabra [EMAIL PROTECTED] wrote: Hello all, I am very

RE: Reading Tomcat source code

2008-09-10 Thread Caldarale, Charles R
From: Gorav Chhabra [mailto:[EMAIL PROTECTED] Subject: Re: Reading Tomcat source code Can anyone please guide from where i can download the Source code The link to the downloads for each supported Tomcat version are on the left side of the Tomcat home page: http://tomcat.apache.org This