Re: Problema con tomcat

2011-01-25 Thread Simone Tripodi
Buenos dias William, personalmente no se responser a su pregunta, seria mucho mejor si usted pueda escribir en Inglés asi de aumentar las probabilidades de obtener una respuesta. Cordialmente, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ 2011/1/25 Fierro, William

What are the units for the session ID length

2011-01-25 Thread Adib
Hi, The tomcat session manager documentation claims that for the standard manager the default sessionIdLength attribute has a value of 16, the question is 16 what, characters, bytes? When I look at the jessionId in the URL such as ( FDD699674D95E77EC9B03232DC761DC3) it has 32 characters, does

Understanding the Persistent Session Manager

2011-01-25 Thread Adib
Hi, I am trying to understand the settings on the persistent session manager on tomcat 6 and 7. It seems that the persistent session manager is primarily meant for the purpose of swapping IDLE sessions to persistent storage and then hope that they expire, I can see the value of this given that

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Adib
I just read through some of the tomcat source code for the Persistent Session Manager and it seems that there are three possibilities. Session on the JVM heap lets call it the active session Session not in the JVM heap but in the persistent store this would be a swapped out session Session in the

Re: servlet spec violation?

2011-01-25 Thread Konstantin Kolinko
2011/1/25 mikewse mike...@hotmail.com: Trying out a simple servlet on Tomcat 6 and 7: (..) and sending a request:        GET /app AFAIK, usually Tomcat will respond with 302 redirect to /app/ and the second request will be GET /app/. So, one question is why it is not happening in your case.

Which is right, the comment or the docs?

2011-01-25 Thread David Goodenough
In the file tomcat-users.xml (at least the one shipped with the 6.0.23 Debian package) the sample users have the attribute username= in the user tag. But in the manager-howto.html (again shipped with the Debian package) the examples all say the attribute should be name=. Which is right? David

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Reinwald Warapen
On 1/25/2011 5:02 PM, Adib wrote: Hi, I am trying to understand the settings on the persistent session manager on tomcat 6 and 7. It seems that the persistent session manager is primarily meant for the purpose of swapping IDLE sessions to persistent storage and then hope that they expire, I can

Re: Which is right, the comment or the docs?

2011-01-25 Thread Konstantin Kolinko
2011/1/25 David Goodenough david.goodeno...@btconnect.com: In the file tomcat-users.xml (at least the one shipped with the 6.0.23 Debian package) the sample users have the attribute username= in the user tag.  But in the manager-howto.html (again shipped with the Debian package) the examples

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Mark Thomas
On 25/01/2011 11:49, Adib wrote: I just read through some of the tomcat source code for the Persistent Session Manager and it seems that there are three possibilities. Session on the JVM heap lets call it the active session Session not in the JVM heap but in the persistent store this would

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Adib
Thanks for the link that was useful. So the key idea to understand is that there is a background thread that does all the cleanup and this background thread executes on a timer not on very request arriving a the server. I am surprised at the limitations of the Persistent Manager it's that it

Re: What are the units for the session ID length

2011-01-25 Thread Konstantin Kolinko
2011/1/25 Adib amsl...@gmail.com: The tomcat session manager documentation claims that for the standard manager the default sessionIdLength attribute has a value of 16, the question is 16 what, characters, bytes? When I look at the jessionId in the URL  such as (

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Adib
Thanks for the hints mark, I just read through the code and that answers some of my questions. The docs says that org.apache.catalina.session. StandardSession.ACTIVITY_CHECK should be true and that Tomcat will track the number of active requests for each session. what do the docs mean by active

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Martin Grotzke
On Tue, Jan 25, 2011 at 1:35 PM, Adib amsl...@gmail.com wrote: Thanks for the link that was useful. So the key idea to understand is that there is a background thread that does all the cleanup and this background thread executes on a timer not on very request arriving a the server. I am

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Mark Thomas
On 25/01/2011 12:45, Adib wrote: Thanks for the hints mark, I just read through the code and that answers some of my questions. The docs says that org.apache.catalina.session. StandardSession.ACTIVITY_CHECK should be true and that Tomcat will track the number of active requests for each

Re: writing logs on a separate server while the project as jar file

2011-01-25 Thread Konstantin Kolinko
2011/1/25 Christopher Schultz ch...@christopherschultz.net: What exactly I need is something that is the standard way to write logs to a server where there are many Java application are deployed as separate jar file and is being used by the tibco processes. If you can't get access to the

Re: Why does tomcat need a shutdown port on Windows?

2011-01-25 Thread Adib
I am not running as a windows service just started from startup.bat. I have a couple of tomcats running as a windows service and I am familiar with the tomcat.exe the docs were a bit hard to get through and I had to read through some of the C code for the tomcat windows launcher to really figure

Re: Understanding the Persistent Session Manager

2011-01-25 Thread Adib
Is there any downside to turning on the ACTIVITY_CHECK flag? On Tue, Jan 25, 2011 at 4:47 AM, Mark Thomas ma...@apache.org wrote: On 25/01/2011 12:45, Adib wrote: Thanks for the hints mark, I just read through the code and that answers some of my questions. The docs says that  

Re: Why does tomcat need a shutdown port on Windows?

2011-01-25 Thread Mark Thomas
On 21/01/2011 04:00, Adib wrote: Hi, I am wondering why does tomcat need a shut down port on windows but not on Unix. Shutdown port is supported (and used by default) on all platforms. It is not platform specific. Both Windows and Linux can safely shut Tomcat down without using the shutdown

RE: servlet spec violation?

2011-01-25 Thread Mike Wilson
Konstantin Kolinko wrote: 2011/1/25 mikewse mike...@hotmail.com: Trying out a simple servlet on Tomcat 6 and 7: (..) and sending a request:        GET /app AFAIK, usually Tomcat will respond with 302 redirect to /app/ and the second request will be GET /app/. So, one question is why

Upload WAR file problem

2011-01-25 Thread Nick Wiedenbrück
I'm using Tomcat 5.5.23 and Tomcat 7.0.6 on Windows. When uploading a WAR file through the manager application, Tomcat responds with a blank page (URL pointing to html/upload). The WAR file has not been uploaded and I cannot find any error messages in any log file. With Tomcat 6 it works fine,

Re: Why does tomcat need a shutdown port on Windows?

2011-01-25 Thread Konstantin Kolinko
2011/1/25 Adib amsl...@gmail.com: My question was more from a design perspective why did the tomcat developers include this shutdown port mechanism what are the benefits and what limitations were they trying to work around when they came up with this design. There are two ways to perform the

Re: Problema con tomcat

2011-01-25 Thread Michael Ludwig
Moin moin, voy a replicar en inglés ya que mi castellano no es muy bien y esta lista usualmente es in inglés. Fierro, William Alfonso schrieb am 25.01.2011 um 04:08 (+): En la actualizadad tengo una aplicación configurada con Apache Tomcat/5.5.30, en la cual se encuentran 6 tomcat

Re: Which is right, the comment or the docs?

2011-01-25 Thread David Goodenough
On Tuesday 25 January 2011, Konstantin Kolinko wrote: 2011/1/25 David Goodenough david.goodeno...@btconnect.com: In the file tomcat-users.xml (at least the one shipped with the 6.0.23 Debian package) the sample users have the attribute username= in the user tag. But in the

how to access tomcat conf dir from my webapp

2011-01-25 Thread alexis
Hello, usually i store my custom config files in WEB-INF, but i need now to store a file (a binary file containing a license for my app) inside the tomcat conf dir. Main purpose for this is avoid the need to rebuild a war every time i license a different customer. So, in this way, application

Re: how to access tomcat conf dir from my webapp

2011-01-25 Thread Stevo Slavić
String tomcatHomePath = System.getenv(CATALINA_HOME); // or CATALINA_BASE, where CATALINA_HOME/CATALINA_BASE is name of environment variable set to point to tomcat installation home or instance base java.io.File tomcatConfDir = new java.io.File(tomcatHomePath, conf); Regards, Stevo. On Tue, Jan

Problem Running Two Tomcat Servers at the Same Time

2011-01-25 Thread Tim Clotworthy
Hello, I have tomcat5.5 running on port 8080. I wanted to have a second tomcat instance (that was is tomcat5.0) running at the same time. I made only one change to prevent a conflict. I changed the connect port (in the server.xml file) of the 5.0 instance to 8090. However, if my 5.5 instance

RE: Problem Running Two Tomcat Servers at the Same Time

2011-01-25 Thread Caldarale, Charles R
From: Tim Clotworthy [mailto:tclotwor...@integratedsecure.com] Subject: Problem Running Two Tomcat Servers at the Same Time Do I need to do more than change the connect port to avoid a conflict? Yes, you need to insure that /all/ ports in server.xml are unique. This includes the ones for

Re: how to access tomcat conf dir from my webapp

2011-01-25 Thread Konstantin Kolinko
2011/1/25 Stevo Slavić ssla...@gmail.com: String tomcatHomePath = System.getenv(CATALINA_HOME); The above works only when starting Tomcat with .sh/.bat files and only when CATALINA_BASE does not differ from CATALINA_HOME (see RUNNING.txt). The correct alternative would be to use

RE: Problem Running Two Tomcat Servers at the Same Time

2011-01-25 Thread Tim Clotworthy
Thanks, that fixed it! -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, January 25, 2011 10:28 AM To: Tomcat Users List Subject: RE: Problem Running Two Tomcat Servers at the Same Time From: Tim Clotworthy

Re: Upload WAR file problem

2011-01-25 Thread Nick Wiedenbrück
I still don't have a clue what the problem is. Meanwhile I tried the same with a different application with the same result - blank page, URL pointing to http://localhost:8080/manager/html/upload?org.apache.catalina.filters.CSRF_NONCE=2..., WAR file has not been deployed, no messages about the

400 error when a request does not map to a context

2011-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Should I expect that a request that doesn't map to a running context should return a 400 error? I would have expected a 404 Not Found. Tomcat 6.0.29 and Tomcat 7.0.6 both behave this way. With no ROOT context deployed, make a request to

Re: 400 error when a request does not map to a context

2011-01-25 Thread Michael Ludwig
Christopher Schultz schrieb am 25.01.2011 um 11:48 (-0500): Should I expect that a request that doesn't map to a running context should return a 400 error? I would have expected a 404 Not Found. Definitely 404, as long as it isn't a bad request. Tomcat 6.0.29 and Tomcat 7.0.6 both behave

Re: Security question about Multiple instances of Tomcat running as non-admin users on a single box

2011-01-25 Thread Guy Pontecorvo
Our decision to replace the Mac os Xservers with Windows is purely financial. We already run our software on Windows and though Linux would be a good choice it is less expensive to support a single platform. We run as many as 15 apps on a single xServe box. The corresponding Oracle 10g databases

Re: Security question about Multiple instances of Tomcat running as non-admin users on a single box

2011-01-25 Thread Brett Delle Grazie
Hi, On 25 January 2011 18:00, Guy Pontecorvo guy.ponteco...@pearson.com wrote: We run as many as 15 apps on a single xServe box. The corresponding Oracle 10g databases run on a separate server. Everything is automated. Start up, shutdown, updates etc. are scripted and executed using sudo.

Re: 400 error when a request does not map to a context

2011-01-25 Thread Pid
On 1/25/11 5:37 PM, Michael Ludwig wrote: Christopher Schultz schrieb am 25.01.2011 um 11:48 (-0500): Should I expect that a request that doesn't map to a running context should return a 400 error? I would have expected a 404 Not Found. Definitely 404, as long as it isn't a bad request.