Re: Update to 6.0.20: deferred EL expressions

2009-06-08 Thread Marco Guazzone
On Mon, Jun 8, 2009 at 1:07 AM, Mark Thomasma...@apache.org wrote: ... Just followed through the source code and found a handy comment (yes they really do exist) pointing me towards section JSP.2.2 of the JSP spec. This makes it clear that #{...} is not allowed in template text so unless I

Header names lower case

2009-06-08 Thread Alexander Müller
Hi, I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() returns all header names in lower case. Is there any possibility to get them with their original case? Thanks, Alexander - To unsubscribe,

Tyson Beffa is in Training

2009-06-08 Thread Tyson Beffa
I will be out of the office starting 06/08/2009 and will not return until 06/15/2009. I will be out of the office in Training until Monday, June 15th. For WebSphere issues please email WebSphere-Admin. Thanks- Tyson Beffa This message and any files transmitted with it are the property of

Re: Update to 6.0.20: deferred EL expressions

2009-06-08 Thread Marco Guazzone
On Mon, Jun 8, 2009 at 9:30 AM, Marco Guazzonemarco.guazz...@gmail.com wrote: On Mon, Jun 8, 2009 at 1:07 AM, Mark Thomasma...@apache.org wrote: ... Just followed through the source code and found a handy comment (yes they really do exist) pointing me towards section JSP.2.2 of the JSP spec.

Problem setting Host

2009-06-08 Thread hellian
Hello I've been facing problem setting my Host property with Tomcat 5.5. Please have a look on the code below and let me know what's wrong with my code. Now if I use the url nexusroi.com, it doesn't work whereas the url nexusroi.com/nexus does work well. Can anyone help me

RE: Problem setting Host

2009-06-08 Thread Peter Crowther
From: hellian [mailto:rashedulhasan2...@yahoo.com] I've been facing problem setting my Host property with Tomcat 5.5. Please have a look on the code below and let me know what's wrong with my code. Now if I use the url nexusroi.com, it doesn't work whereas the url nexusroi.com/nexus

Application Clustering

2009-06-08 Thread Darren Kukulka
Hi Everyone, I've got a general query around application clustering in Tomcat. We've got several clusters of Tomcat 6.0.18, each consisting of 2-3 nodes per cluster. The setup is fairly straightforward and we're using the 'based on load' balance method at the web server layer for the ajp

Servlet Error

2009-06-08 Thread listan...@gmail.com
Hi all, I am new to Tomcat/Apache, and have just about started to learn JSP/Servlets as well. I just wrote my first Hello world servlet (code below) and tried to run it, but got several errors. Here's exactly what I did: 1. I wrote Hello.java (code below) and put it in /webapps/ROOT directory 2.

RE: Problem setting Host

2009-06-08 Thread Martin Gainty
nexus is a commercial software vendor and is responsible for their errors so i would contact them first in the meanwhile you can help yourself find the root of this problem by enabling logging so you can see the exception displayed in the logs (my logs are located at

RE: Servlet Error

2009-06-08 Thread Martin Gainty
is servlet-api.jar on classpath usually located at $CATALINA_HOME\lib\servlet-api.jar what does your web-inf/web.xml look like? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist

RE: Problem setting Host

2009-06-08 Thread hellian
Sorry...I added the code, I don't know why it disappeared. Anyway the code ia as follows: Host name=nexusroi.com appBase=C:\superior\nexus\war deployOnStartup=true autoDeploy=false unpackWARs=true deployXML=false xmlValidation=false xmlNamespaceAware=false Context path=/nexus

Re: Servlet Error

2009-06-08 Thread listan...@gmail.com
Hi Martin, Thanks for your reply. My Apache Tomcat version is 5.5.27. The servlet-api.jar is in $CATALINA_HOME/common/lib. I included it in the classpath and now the code compiles without any errors. I am including my web.xml file below. Please let me know what else I need to do to get the

how can i extract row http data from request

2009-06-08 Thread Meir Yanovich
Hello all i need to deal with legacy web app code , that needs to add basic authentication to it with sessions now i need to be able to extract the session id from the header ( can't add sessions into the code ) the scenario is that only once and only once per page i pass the session into the

Re: Application Clustering

2009-06-08 Thread Rainer Jung
On 08.06.2009 13:22, Darren Kukulka wrote: Hi Everyone, I've got a general query around application clustering in Tomcat. We've got several clusters of Tomcat 6.0.18, each consisting of 2-3 nodes per cluster. The setup is fairly straightforward and we're using the 'based on

RE: how can i extract row http data from request

2009-06-08 Thread Peter Crowther
From: Meir Yanovich [mailto:meiry...@gmail.com] i need to deal with legacy web app code , that needs to add basic authentication to it with sessions now i need to be able to extract the session id from the header ( can't add sessions into the code ) the scenario is that only once and only

Error building Tomcat 6.0.18

2009-06-08 Thread jhoare
I get the following errors trying to build Tomcat v6.0.18 from source on linux? It appears to be a javac error in the dbcp module, can anyone help please? I also modidifed the build.properties for to compile against = 1.6 Evironment: Linux Ant 1.7.0 jdk

RE: Error building Tomcat 6.0.18

2009-06-08 Thread Peter Crowther
From: jhoare [mailto:james.ho...@net-a-porter.com] I get the following errors trying to build Tomcat v6.0.18 from source on linux? ... why? Tomcat's pure Java, so runs the same on any platform. Download Sun JDK, download zip of Tomcat, unzip, go. - Peter P.S. Say hi to

RE: Servlet Error

2009-06-08 Thread Caldarale, Charles R
From: listan...@gmail.com [mailto:listan...@gmail.com] Subject: Re: Servlet Error My Apache Tomcat version is 5.5.27. The servlet-api.jar is in $CATALINA_HOME/common/lib. Good; that's where it should be. However, since you're just starting with Tomcat, why not use the newer 6.0.x version,

Re: Application monitoring

2009-06-08 Thread Chetan Chheda
I forgot to add we are using JDK1.4 From: Leon Rosenberg rosenberg.l...@googlemail.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, June 6, 2009 7:52:16 AM Subject: Re: Application monitoring On Sat, Jun 6, 2009 at 4:19 AM, Chetan

RE: Problem setting Host

2009-06-08 Thread Caldarale, Charles R
From: hellian [mailto:rashedulhasan2...@yahoo.com] Subject: RE: Problem setting Host Host name=nexusroi.com appBase=C:\superior\nexus\war deployOnStartup=true autoDeploy=false unpackWARs=true deployXML=false xmlValidation=false xmlNamespaceAware=false Context path=/nexus

RE: Error building Tomcat 6.0.18

2009-06-08 Thread Caldarale, Charles R
From: jhoare [mailto:james.ho...@net-a-porter.com] Subject: Error building Tomcat 6.0.18 I get the following errors trying to build Tomcat v6.0.18 from source on linux? jdk 1.6.0_12 Due to an incompatibility introduced by Sun in the 1.6 JDBC interface, you just use a

mod_jk and stiky_sessions that are not stiky

2009-06-08 Thread Marco Sarti
mod_jk/1.2.23 Hello, I'm trying to configure a cluster using stiky_session. This is the relevant part of configuration: ### worker.node1_partition1.port=8009 worker.node1_partition1.host=172.16.130.110 worker.node1_partition1.type=ajp13 worker.node1_partition1.lbfactor=1

Re: mod_jk and stiky_sessions that are not stiky

2009-06-08 Thread Rainer Jung
On 08.06.2009 15:54, Marco Sarti wrote: mod_jk/1.2.23 Hello, I'm trying to configure a cluster using stiky_session. This is the relevant part of configuration: ### worker.node1_partition1.port=8009 worker.node1_partition1.host=172.16.130.110 worker.node1_partition1.type=ajp13

RE: Windows x64 Installer

2009-06-08 Thread Jeffrey Janner
Chuck - Thanks for the info and lead to check something else. I am all IPv4 here, though the IPv6 services may still be enabled on that system. I will need to check. I got the box in and setup with minimal customizations and was trying to get this rolled out quickly (I do this because a lot of

implementing a Manager - how do I get a reference to it?

2009-06-08 Thread Nolan Johnson
I'm implementing a Manager (session management) that stores sessions on shared servers (that is, a distributed manager, but not the default one that comes with tomcat). A key difference between the implementation that I'm working on and the ClusteredManager is that the entire session is

RE: Windows x64 Installer

2009-06-08 Thread Jeffrey Janner
Did the double-check. IPv6 protocol is disabled on the active network connection. So it shouldn't be an IPv6 issue. Jeff -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Monday, June 08, 2009 9:02 AM To: Tomcat Users List Subject: RE: Windows x64

RE: Windows x64 Installer

2009-06-08 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: Windows x64 Installer IPv6 protocol is disabled on the active network connection. So it shouldn't be an IPv6 issue. But it clearly is, since your netstat output shows IPv6 addresses, not IPv4. - Chuck THIS

Re: Windows x64 Installer

2009-06-08 Thread Mladen Turk
Jeffrey Janner wrote: Did the double-check. IPv6 protocol is disabled on the active network connection. So it shouldn't be an IPv6 issue. It should be disabled on all connections including localhost. NULL address means 'all interfaces'. Regards -- ^(TM)

Re: Header names lower case

2009-06-08 Thread Alexander Müller
Hi, I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() returns all header names in lower case. Is there any possibility to get them with their original case? Nobody having any idea about this behaviour? Thanks again, Alexander

Re: enterprise tomcat hosting, architecture. How will u do it?

2009-06-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 5/25/2009 3:44 AM, List Member wrote: Pls do send some of your scripts/configurations, it will be of great help for us! See attached (hopefully!). Here's what's going on: 1. ant.properties goes in ~/.ant.properties and

RE: Header names lower case

2009-06-08 Thread Caldarale, Charles R
From: Alexander Müller [mailto:alexander.muel...@brz.gv.at] Subject: Re: Header names lower case I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() returns all header names in lower case. Is there any possibility to get them with their original case? Nobody

Re: concurrent connections with mod_jk/apache/tomcat

2009-06-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, On 6/5/2009 5:34 PM, Jason Joseph wrote: I think I have figured it out though, I just realized I have mod_deflate enabled for Apache. That was my suspicion, but I wanted to see how the other issues played-out. Would that apply to data

RE: Header names lower case

2009-06-08 Thread Alexander Müller
I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() returns all header names in lower case. Is there any possibility to get them with their original case? Want to give us a hint about the Tomcat version you're looking at? - Chuck I noticed it on Tomcat 5.0.30 and

Re: concurrent connections with mod_jk/apache/tomcat

2009-06-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/7/2009 3:41 AM, André Warnier wrote: Jason Joseph wrote: ... Yes all static files are being served by Apache. No they aren't being loaded from the document root they are actually being loaded from within our application war. That

Re: concurrent connections with mod_jk/apache/tomcat

2009-06-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, On 6/7/2009 7:17 PM, Jason Joseph wrote: Rainer Jung wrote: Be careful to secure access to WEB-INF and META-INF. Yup, Ive got this in there, one for META-INF too... Location /WebApp_ID/WEB-INF/ deny from all

Re: Header names lower case

2009-06-08 Thread Markus Schönhaber
Alexander Müller: I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() returns all header names in lower case. Is there any possibility to get them with their original case? I can't answer your question but I'm curious: why is a HTTP header name's case of any importance

Re: Header names lower case

2009-06-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexander, On 6/8/2009 4:39 AM, Alexander Müller wrote: I noticed the Tomcat implementation of HttpServletRequest.getHeaderNames() returns all header names in lower case. Is there any possibility to get them with their original case? The HTTP

Re: Header names lower case

2009-06-08 Thread Alexander Müller
I can't answer your question but I'm curious: why is a HTTP header name's case of any importance to you? RFC 2616 defines field names as case-insensitive. Relying on a header field's case therefore seems at least non-portable to me. Maybe you should elaborate what problem you are really

RE: Windows x64 Installer

2009-06-08 Thread Jeffrey Janner
OK, after boning up on IPv6 addresses, I see what's happening. With no address specified in the connector, and with both the IPv4 and IPv6 protocols installed, APR is setting up a listener only on the IPv6 protocol any address port. Windows displays this as [::] in accordance with IPv6

RE: Windows x64 Installer

2009-06-08 Thread Jeffrey Janner
Will try that and see. The machine has 4 network ports, 3 of which are disabled completely (oops, actually unplugged). The main port is configured with the IPv6 protocol installed, but it is unchecked. Actually, all ports have it installed, and I haven't found a way to uninstall it. But all 4

Re: how to force tomcat to make a single istance of a servlet

2009-06-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Syed, On 6/7/2009 12:53 PM, syed shah wrote: I want to enforce single instance creation for the servlet because I have some code that serves the user requests and i want to implement caching and handle synchronization myself, thanks and best

Re: Header names lower case

2009-06-08 Thread Alexander Müller
The HTTP spec (HTTP/1.1, section 4.2: http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html) states that HTTP header field names are case-insensitive. You should not be relying on a particular caseification (?) of header fields. Are you just interested in what the client sent? I

Re: Header names lower case

2009-06-08 Thread Markus Schönhaber
Alexander Müller: RFC 2616 defines field names as case-insensitive. Relying on a header field's case therefore seems at least non-portable to me. Maybe you should elaborate what problem you are really trying to solve. For me the case wouldnt be important, but I am forwarding (basically a

Re: Header names lower case

2009-06-08 Thread Alexander Müller
apparently? Hm, in this case I'd double-check whether whatever problem you're having is indeed caused by the case of the header names. Just to make sure you're not barking at the wrong tree. If the receiving party is really relying on the case of header names, I'd ask them to fix their

Re: tomcat-connectors mod_jk.dsp file will not load in Visual Studio 2005

2009-06-08 Thread Andy Wang
Mladen Turk wrote: All higher MSVCRT versions has dependency on MSVCRT.dll so if you build against that you have assurance that CRT functions will come from the same CRT library regardless of the version used. I know that stdio functions have problems, so if like mod_jk the module uses them for

Re: Problem setting Host

2009-06-08 Thread André Warnier
Peter Crowther wrote: From: hellian [mailto:rashedulhasan2...@yahoo.com] I've been facing problem setting my Host property with Tomcat 5.5. Please have a look on the code below and let me know what's wrong with my code. Now if I use the url nexusroi.com, it doesn't work whereas the url

RE: how to force tomcat to make a single istance of a servlet

2009-06-08 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: how to force tomcat to make a single istance of a servlet Usually, only one instance of your servlet will be created. Unless using the SingleThreadModel (a really bad idea), the spec allows only one instance of a

Re: Header names lower case

2009-06-08 Thread André Warnier
Alexander Müller wrote: apparently? Hm, in this case I'd double-check whether whatever problem you're having is indeed caused by the case of the header names. Just to make sure you're not barking at the wrong tree. If the receiving party is really relying on the case of header names, I'd ask

Re: how to force tomcat to make a single istance of a servlet

2009-06-08 Thread syed shah
Hi Christopher, I want to do this cause i am handling the synchronization myself and infact i am using innodb so i dont want multiple instance of the servlet, although i can handle multiple threads in there. I just wrote some code thats pretty similar to yours except that i use a int and check if

RE: Header names lower case

2009-06-08 Thread Martin Gainty
javax.servlet.http.HttpServlet //to receive service() method { Enumeration reqHeaderEnum = req.getHeaderNames(); while( reqHeaderEnum.hasMoreElements() ) { String headerName = (String)reqHeaderEnum.nextElement(); //THIS IS THE HEADER NAME responseString += CRLF +

URL Auth Apache 2.2.11 + Tomcat 6.0.16

2009-06-08 Thread Alexander Diedler
Hi, Since we modify our server to use mod_jk to serve sites there is an error with a Tomcat Action, that requires a HTML Auth. If we open the URL http://www.bla.de/?action=Import in a Browser, there is a Auth-Dialog to fill in Username and Passwort. This Username and Password seems to be hard

RE: URL Auth Apache 2.2.11 + Tomcat 6.0.16

2009-06-08 Thread Martin Gainty
did you ensure TC has execute access to that code? // These permissions apply to javac grant codeBase file:D:\wwwroot\Java_shop\WEB-INF\classes\- { permission java.security.AllPermission; }; Martin Gainty __ Verzicht und

Frustrating refusal to serve *some* pages, scripts, images.

2009-06-08 Thread Zaq Rizer
We have tomcat 6 (Tomcat/6.0.16) installed on a Redhat ES4 server in a production environment (although it's not being depended-upon at this moment; we're in the installation phase). I installed it via the tarball binary, not from an RPM. When I deployed a WAR that was running bug-free on my own

Re: org.apache.tomcat.sendfile.support attribute returned via getAttribute() but name not returned via getAttributeNames()

2009-06-08 Thread Chris Markle
Folks, Going to try this again since I got no reply to my first inquiry. I'd like to log a bug report along the lines of request getAttributeNames method does not return all request attributes (e.g., org.apache.tomcat.sendfile.support). Either that or this is a doc issues somewhere. I know in the

RE: Frustrating refusal to serve *some* pages, scripts, images.

2009-06-08 Thread Caldarale, Charles R
From: Zaq Rizer [mailto:idhindsi...@gmail.com] Subject: Frustrating refusal to serve *some* pages, scripts, images. The full text of the stack trace follows ... Since this appears to be reproducible, you might want to stop Tomcat, clear out the logs, restart Tomcat, and try the failing

Re: Frustrating refusal to serve *some* pages, scripts, images.

2009-06-08 Thread Zaq Rizer
On Mon, Jun 8, 2009 at 4:14 PM, Caldarale, Charles Rchuck.caldar...@unisys.com wrote: From: Zaq Rizer [mailto:idhindsi...@gmail.com] Subject: Frustrating refusal to serve *some* pages, scripts, images. The full text of the stack trace follows ... Since this appears to be reproducible, you

Re: Frustrating refusal to serve *some* pages, scripts, images.

2009-06-08 Thread Mark Thomas
Zaq Rizer wrote: We have tomcat 6 (Tomcat/6.0.16) installed on a Redhat ES4 server in a production environment (although it's not being depended-upon at this moment; we're in the installation phase). I installed it via the tarball binary, not from an RPM. When I deployed a WAR that was

RE: Frustrating refusal to serve *some* pages, scripts, images.

2009-06-08 Thread Caldarale, Charles R
From: Zaq Rizer [mailto:idhindsi...@gmail.com] Subject: Re: Frustrating refusal to serve *some* pages, scripts, images. Jun 8, 2009 3:35:15 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw exception javax.servlet.ServletException:

Re: Frustrating refusal to serve *some* pages, scripts, images.

2009-06-08 Thread Zaq Rizer
I retained my entire conf and logs directory, and installed .0.20, and it works perfectly fine. I'm not confident enough to say it's a bug in .0.16, but it certainly could be Bad Unix Admin syndrome (not me). Btw, apologies for top-posting; I'm on my iPhone now... On Jun 8, 2009, at

[SECURITY] CVE-2008-5515 RequestDispatcher directory traversal vulnerability

2009-06-08 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2008-5515: Apache Tomcat information disclosure vulnerability Severity: Important Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.0 to 4.1.39 Tomcat 5.5.0 to 5.5.27 Tomcat 6.0.0 to 6.0.18 The unsupported Tomcat 3.x, 4.0.x

Problem with overriding the default servlet on tc 6.0.18

2009-06-08 Thread Joseph S
I have this in the web.xml of my application: servlet-mapping servlet-name MyServlet /servlet-name url-pattern / /url-pattern /servlet-mapping Which works fine, except for requests without pathinfo (i.e. http://servername/ ). That still

Re: Problem with overriding the default servlet on tc 6.0.18

2009-06-08 Thread Joseph S
After restarting tomcat it started working by itself, but only if I've overriden the default welcome-file-list in my web.xml or move index.jsp out of the way, implying that the default tomcat servlet is running *before* mine and then handing off to mine. I checked and requesting a plain

Re: Problem with overriding the default servlet on tc 6.0.18

2009-06-08 Thread Joseph S
Joseph S wrote: After restarting tomcat it started working by itself, but only if I've overriden the default welcome-file-list in my web.xml More on this: I discovered that reloading the webapp itself doesn't work, I have to restart Tomcat itself in order to get the welcome file list override

Re: Frustrating refusal to serve *some* pages, scripts, images.

2009-06-08 Thread Mark Eggers
--- On Mon, 6/8/09, Zaq Rizer idhindsi...@gmail.com wrote: WARNING: Unable to find configured definition '/WEB-INF/tiles.xml' Jun 8, 2009 3:35:00 PM org.apache.tiles.factory.TilesContainerFactory initializeContainer Just a random thought, which you've alluded to from your iPhone-posted

Starting Tomcat 6.0

2009-06-08 Thread Dick Eastlake
I currently start Tomcat with the Procrun Service Manager. It's an app called Apache Tomcat Properties with  six tabbed forms: general, log on, logging, java, startup and shutdown. To start Tomcat I press the start button in the general tab. I want to experiment with security, lock down a

Re: Problem with overriding the default servlet on tc 6.0.18

2009-06-08 Thread Bill Barker
Joseph S j...@selectacast.net wrote in message news:4a2da6d6.50...@selectacast.net... I have this in the web.xml of my application: servlet-mapping servlet-name MyServlet /servlet-name url-pattern / /url-pattern /servlet-mapping

swallowOutput=true not working. Why?

2009-06-08 Thread Christopher Piggott
Hi, I just switched from Tomcat 5.5 to Tomcat 6 on an Ubuntu server. I'm trying to use log4j with this configuration: log4j.appender.R=org.apache.log4j.ConsoleAppender log4j.appender.R.target=System.out log4j.appender.R.layout=org.apache.log4j.PatternLayout

Re: implementing a Manager - how do I get a reference to it?

2009-06-08 Thread Bill Barker
Nolan Johnson n0...@yahoo.com wrote in message news:291765.23953...@web38808.mail.mud.yahoo.com... I'm implementing a Manager (session management) that stores sessions on shared servers (that is, a distributed manager, but not the default one that comes with tomcat). A key difference