Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5.x?

2008-12-03 Thread andre John Mas
Hi, We are currently experiencing session issues with our customer's Tomcat server, in a production environment. Basically what is happening is that, despite the idle time-out being set for 20 minutes we are seeing sessions that have been idle (have not been accessed) for over 3 hours. The

RE: Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5.x?

2008-12-03 Thread andre John Mas
From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Subject: RE: Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5.x? From: andre John Mas [mailto:[EMAIL PROTECTED] Subject: Session timeout related fixes between Tomcat 5.0 and Tomcat 5.5

Re: howto add a UDP Listener

2009-09-13 Thread Andre-John Mas
On 13-Sep-2009, at 14:19, Caldarale, Charles R wrote: From: Sebastian Wagner [mailto:seba.wag...@gmail.com] Subject: howto add a UDP Listener Is there a way of telling tomcat to receive UDP Packets and forward them to my Handlers? No. Tomcat is a server for HTTP requests running over TCP

Re: howto add a UDP Listener

2009-09-13 Thread Andre-John Mas
On 13-Sep-2009, at 15:04, Sebastian Wagner wrote: Thanks for your answers. I am working on a Desktop Sharing application that is sending the Desktop Images over UDP to Tomcat. As this is quite time-critical I need to integrate the UDP-handler into my webapp. It seems like using MINA does

Re: howto add a UDP Listener

2009-09-13 Thread Andre-John Mas
it is a solution send only ... or receive only. sebastian 2009/9/13 Andre-John Mas aj...@sympatico.ca On 13-Sep-2009, at 15:04, Sebastian Wagner wrote: Thanks for your answers. I am working on a Desktop Sharing application that is sending the Desktop Images over UDP to Tomcat. As this is quite

Re: howto add a UDP Listener

2009-09-14 Thread Andre-John Mas
-Project so it cannot be based on commercial products. thanks, sebastian 2009/9/13 Andre-John Mas aj...@sympatico.ca You may want to look at the Java VNC Viewer: http://www.realvnc.com/support/javavncviewer.html or TightVNC: http://www.tightvnc.com/download.html it may save you repeating

Re: Default character encoding for ServletRequest

2009-10-01 Thread Andre-John Mas
On 1-Oct-2009, at 07:22, Halm Reusser wrote: Pid wrote: How about? request.setCharacterEncoding(ENCODING); I wan't do it within the application. I prefer to configure the app container or the app itself. I had asked for this too a while back, but I was told the RFC indicates

Re: Questions on Single Sign On?

2009-10-12 Thread Andre-John Mas
On 12-Oct-2009, at 10:51, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Perter, On 10/12/2009 9:37 AM, Peter Crowther wrote: 2009/10/12 Josh Gooding josh.good...@gmail.com: To my knowledge the Single Sign on in Tomcat is a way for all of your back end

Re: Questions on Single Sign On?

2009-10-12 Thread Andre-John Mas
On 12-Oct-2009, at 11:24, Josh Gooding wrote: Well upon clicking logout the following occurs: session.removeAttribute(User); session.invalidate(); response.sendRedirect(EULA.jsp); If I close the browser window, and reopen it without clicking the logout button, I can still get back into my

Re: Questions on Single Sign On?

2009-10-12 Thread Andre-John Mas
On 12-Oct-2009, at 11:41, Josh Gooding wrote: On Mon, Oct 12, 2009 at 11:03 AM, André Warnier a...@ice-sa.com wrote: Josh Gooding wrote: ... Andre, your talking about something like Active Directory for Windows Domain's to use with say Communicator, Outlook, etc, across windows

Re: Tomcat 5.17 crashes too often

2009-11-28 Thread Andre-John Mas
On 28-Nov-2009, at 10:17, Rocco Scappatura wrote: 28-nov-2009 15.56.41 org.apache.catalina.startup.Catalina stopServer GRAVE: Catalina.stop: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at

Cookies and values with ':' in them

2009-04-16 Thread Andre-John Mas
Hi, The company I am working for is in the process of migrating from Tomcat 5.x.x to Tomcat5.5.27. In doing so we noticed that the any cookie value containing a colon will have the value trimmed up to before that character. This is new. A work around is to add quotes around the value,

Re: Cookies and values with ':' in them

2009-04-16 Thread Andre-John Mas
On 16-Apr-2009, at 17:08, Mark Thomas wrote: Using a ':' in a v0 cookie is not legal. You have to use a v1 cookie which is as simple as using: cookie.setVersion(1); 5.5.28 will (hopefully - if it gets enough votes) an feature (enabled by default) to automatically switch invalid v0 cookies

When is 5.5.28 planned to be released?

2009-04-17 Thread Andre-John Mas
Hi, Tomcat 5.5.28 offers us the ability to change the name of the JSESSIONID, something we depend on because we are operating two application servers behind the same HTTPD server. We currently have a patched version of 5.x and are in the process of moving to 5.5.x, but without this patch

When is 5.5.28 planned to be released?

2009-04-17 Thread Andre-John Mas
Hi, Tomcat 5.5.28 offers us the ability to change the name of the JSESSIONID, something we depend on because we are operating two application servers behind the same HTTPD server. We currently have a patched version of 5.x and are in the process of moving to 5.5.x, but without this patch

Building Tomcat 5.5.27 tomcat-native

2009-04-17 Thread Andre-John Mas
Hi, I am trying to build 5.5.27, but it is asking for tomcat-native 1.1.12, though I see that only 1.1.16 is available. This being the case, a couple of questions: - is this a suitable replacement? - where do I specify to use this version instead? I will looking through the source in

Re: Building Tomcat 5.5.27 tomcat-native

2009-04-17 Thread Andre-John Mas
On 17-Apr-2009, at 14:12, Caldarale, Charles R wrote: From: Andre-John Mas [mailto:aj...@sympatico.ca] Subject: Building Tomcat 5.5.27 tomcat-native I am trying to build 5.5.27, but it is asking for tomcat-native 1.1.12, though I see that only 1.1.16 is available. This being the case

Re: Building Tomcat 5.5.27 tomcat-native

2009-04-17 Thread Andre-John Mas
On 17-Apr-2009, at 15:30, Andre-John Mas wrote: On 17-Apr-2009, at 14:12, Caldarale, Charles R wrote: From: Andre-John Mas [mailto:aj...@sympatico.ca] Subject: Building Tomcat 5.5.27 tomcat-native I am trying to build 5.5.27, but it is asking for tomcat-native 1.1.12, though I see

Re: Building Tomcat 5.5.27 tomcat-native

2009-04-17 Thread Andre-John Mas
On 17-Apr-2009, at 15:34, Caldarale, Charles R wrote: From: Andre-John Mas [mailto:aj...@sympatico.ca] Subject: Re: Building Tomcat 5.5.27 tomcat-native should I be using JDK 1.4 or JDK 1.5 for my builds? Use 1.5. Sun enhanced the SQL interfaces in 1.6 in a way that made them

Re: 15 second for redeployment is to much

2009-04-19 Thread Andre-John Mas
On 19-Apr-2009, at 14:57, André Warnier wrote: Hi. I am far from being the specialist here, but my inner application designer core revolts at the idea of having a thread in Tomcat busy at nothing else but checking 86,400 times a day, just in case you redeploy an application from time to

Re: Building Tomcat 5.5.27 tomcat-native

2009-04-19 Thread Andre-John Mas
On 19-Apr-2009, at 16:45, Mark Thomas wrote: Andre-John Mas wrote: the only thing which seems odd is the generated tar balls are marked as 5.5.26. Is this normal? No :). That is a bug. I suppose it is the wrong time to open a ticket for this, but for 5.5.28 would it be worth opening

Re: Cookies and values with ':' in them

2009-04-21 Thread Andre-John Mas
On 21-Apr-2009, at 10:15, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andre-John, On 4/16/2009 5:48 PM, Andre-John Mas wrote: Will this only be for writing? I depend a cookie set by a third-party web application in the same domain, which sends me the cookies

Re: Browser shows source of .jsp file. Why?

2009-04-24 Thread Andre-John Mas
What does try to open the parent folder show? Chances are, if they have set up Tomcat, the files aren't being hosted with Tomcat. Another thing worth checking is whether you have you WEB-INF/web.xml file deployed. If they are cooperative ask them to show you how they have set things up. The

Re: Browser shows source of .jsp file. Why?

2009-04-27 Thread Andre-John Mas
On 27-Apr-2009, at 09:04, Pid wrote: David Rush wrote: I checked my web.xml, and found no mime-mapping elements at all. I tried adding one explicitly mapping the jsp extension to text/html, but it had no effect. I'm still getting HTML markup in the browser window with Firefox. David

Re: Browser shows source of .jsp file. Why?

2009-04-27 Thread Andre-John Mas
On 27-Apr-2009, at 18:15, Andre-John Mas wrote: On 27-Apr-2009, at 09:04, Pid wrote: David Rush wrote: I checked my web.xml, and found no mime-mapping elements at all. I tried adding one explicitly mapping the jsp extension to text/ html, but it had no effect. I'm still getting HTML

Tomcat and Apache HTTPD modules?

2009-04-27 Thread Andre-John Mas
Hi, If Apache HTTPD is dropped for a pure Tomcat solution, which standard modules have Tomcat equivalent solutions? For example: - Mod Rewrite - HTTPS - Virtual Hosts It may be interesting to get some of this into the official Tomcat documentation. André-John

Re: Why we need two servers (httpd and tomcat)

2009-04-27 Thread Andre-John Mas
On 27-Apr-2009, at 13:59, Leon Rosenberg wrote: In addition to more granular security (as described above), having isolated the web layer from the application layer allows you to independently adjust the performance of each. If you are finding that your system serves a lot more static

Re: Browser shows source of .jsp file. Why?

2009-04-27 Thread Andre-John Mas
On 27-Apr-2009, at 22:05, David Rush wrote: Andre-John: Actually it was the original poster who was using a hosting company. I'm using machines that I have full control of. My problem was resolved by calling setContentType(text/html) in the controller servlet before it used include()

Re: Basic authentication without a secure connection

2009-05-03 Thread Andre-John Mas
On 3-May-2009, at 08:11, Tokajac wrote: Now why would you want to do that ? I want to connect applications: one is running on Tomcat (Java/ Struts) with another (php). I have an application running on Tomcat that has a link to other application which is on another server. Application on

Re: Database pooling prob

2009-05-03 Thread Andre-John Mas
The IP address isn't missing. What you are seeing is an IPv6 address, and more specifically the localhost IP address. For information see: http://en.wikipedia.org/wiki/IPv6 You can try doing 'ping6 ::1' and you will get a repsonse. André-John On 2-May-2009, at 17:17, S Arvind wrote: Why

Re: Basic authentication without a secure connection

2009-05-03 Thread Andre-John Mas
The browser takes care of that, and you should not be trying to over- ride it. If you don't want to retype the username/password all the time, then you can tell teh browser to remember the password, or have the server in question not asking for the password, understanding the consequences -

Re: Prevent Hot Linking

2009-05-04 Thread Andre-John Mas
On 19-Apr-2009, at 12:22, Graeme Kidd wrote: Thanks André, urlrewrite seems a suficiant solution for now as I only want to block people if they try and acess the file from outside my domain. If my understanding is correct blocking by IP although harder to fake would prevent them no

Re: how to build an multi lingual website

2009-05-07 Thread Andre-John Mas
If Apache is handling your static content, and you are simply using Tomcat to serve dynamic content, then you can use the request.getLocale() method to find out what language the visitors browser is suggesting. For example: String lang = request.getLocale().getLanguage(); if (

Re: Performance with many small requests

2009-05-07 Thread Andre-John Mas
On 7-May-2009, at 19:05, David Kerber wrote: Andre-John Mas wrote: That would be my impression too. It is best to avoid making the synchronized scope so large, unless there is a very good reason. David, do you have any reason for this? Beyond the counter, what other stuff do you

Analyzing Tomcat related VM crash?

2009-05-11 Thread Andre-John Mas
Hi, We have recently put into production a Tomcat 5.5.27 based web site, using JDK 1.6 (JDK 1.6.0_12-b04 on RedHat Linux). We have spent months developing and testing the site, both by us and the customer, and experienced no VM crashes. Now that we are in production we find the VM is

Re: Analyzing Tomcat related VM crash?

2009-05-11 Thread Andre-John Mas
On 11-May-2009, at 18:59, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André-John, On 5/11/2009 6:48 PM, Andre-John Mas wrote: We have recently put into production a Tomcat 5.5.27 based web site, using JDK 1.6 (JDK 1.6.0_12-b04 on RedHat Linux). We have spent

Re: [OT] Performance with many small requests

2009-05-13 Thread Andre-John Mas
On 13-May-2009, at 09:16, David kerber wrote: Christopher Schultz wrote: ... Since a String object is immutable, one should always use a StringBuffer (preferably a StringBuilder, these days) when you are constructing strings in a piecemeal fashion, then convert to String when complete.

Page not completing loading - ideas?

2009-05-13 Thread Andre-John Mas
Hi, We recently encountered an issue on one of our integration machines, where a fews pages will not finish loading (actually it will, but only after around 4 minutes), and this is not even a large page. The same tomcat and web application work fine on the local development workstation

Re: tomcat no longer writing to log files

2009-05-15 Thread Andre-John Mas
On 15-May-2009, at 10:37, Michael A. Repucci wrote: Also, tomcat does work out of the box. Incorrect administration of any system will stop it from working out of the box. Honestly, what I'm most frustrated about isn't Tomcat, per say, but the stuff written by my colleagues that should

Re: Page not completing loading - ideas?

2009-05-15 Thread Andre-John Mas
On 13-May-2009, at 21:14, Caldarale, Charles R wrote: From: Andre-John Mas [mailto:andrejohn@gmail.com] Subject: Page not completing loading - ideas? Does anyone have any ideas of how to go about analysing the issue? I'd start with a Wireshark capture/trace on the client workstation

mod_proxy, Tomcat and request URL

2009-05-20 Thread Andre-John Mas
Hi, Where I work the production environment is using Apache HTTPD in front of Tomcat and the link is then made via mod_proxy. While I understand this is not the ideal setup, I don't have any control over this. At the same time I see that using mod_proxy, by way of ProxyPass, means that

Re: mod_proxy, Tomcat and request URL

2009-05-21 Thread Andre-John Mas
On 21-May-2009, at 12:32, Rainer Jung wrote: On 20.05.2009 17:33, Markus Schönhaber wrote: Andre-John Mas: this is not the ideal setup, I don't have any control over this. At the same time I see that using mod_proxy, by way of ProxyPass, means that the Tomcat server does not know what

Re: retrive Arabic data

2009-05-28 Thread Andre-John Mas
On 28-May-2009, at 09:23, abdul razack wrote: Hi Mark, As you suggested, I have tested sample JSP in the FAQ as you pointed. I could see Arabic in the output. This is OK. I am not able to view Arabic data when tomcat application running on winodws 2003 server OR windows 2000 professional.

Re: retrive Arabic data

2009-05-28 Thread Andre-John Mas
On 28-May-2009, at 10:00, Stevo Slavić wrote: Or Tomcat installations are configured differently on each of the environments, e.g. Connector URIEncoding attribute. URIEncoding only effects how the query URL is interpretted, AFAIK. It effects nothing else. André-John

Re: retrive Arabic data

2009-05-28 Thread Andre-John Mas
On 28-May-2009, at 15:59, George Sexton wrote: The issue is the default character set for Java. I've noticed that at least at one point in time, the default character set for Java running under windows was Windows-1252. Running under Linux it defaults to ISO-8859-1. A few other things

Caching rendered page - reducing hits to the backend?

2009-05-30 Thread Andre-John Mas
Hi, Much of the content on the site which I am in the process will be semi- static, and I want to be able to cache the rendered pages to reduce database hits. To explain: A given page will depend on dynamic data that is stored in the database, but that data is updated about once a month.

Re: Caching rendered page - reducing hits to the backend?

2009-06-02 Thread Andre-John Mas
On 2-Jun-2009, at 04:37, Pid wrote: Have you already measured the performance of your application and determined that caching the rendered pages is the appropriate thing to do - ie how have you determined that database access is the bottleneck? If not, caching page content may just hide a

Re: Serving images from classes directory

2009-06-18 Thread Andre-John Mas
On 18-Jun-2009, at 08:26, Susan G. Conger wrote: -- What is 'it', precisely? It is server images from the classes directory. I realize the correct place to put my scripts and graphics. However the tool app deploys the app it makes for me as a class under it's classes directory. So I want

Re: Best practices for switching back/forth between java 1.5/1.6

2009-06-24 Thread Andre-John Mas
On 24-Jun-2009, at 14:54, Ken Bowen wrote: Hi all, I failed at searching for this, even though I know it's been answered: Setting: Tomcat 6.0_20; Mac OS X 10.5.7; I've been normally running against java 1.5.0_19, but I tried to install a war which is throwing

Re: Problem of port 8080

2009-06-26 Thread Andre-John Mas
On 26-Jun-2009, at 06:18, Xia Guowen wrote: Those three ports actually belong to the same process. # netstat -lnutp |grep 80 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 29907/java tcp0 0 0.0.0.0:8009 0.0.0.0:*

Re: Ignore or Trust any certificate

2009-07-11 Thread Andre-John Mas
On 11-Jul-2009, at 00:36, kareem_s_m wrote: So when my site connects to a site through HTTPS protocol, tomcat tires to validate the server certificate with the cacerts keystore in my JDK. Now if the server certificate is signed by a trusted authority then the connection is successful.

Preventing access to directories?

2009-07-22 Thread Andre-John Mas
Hi, If I create a folder in the base of my web application, for example: webapp/mydir can I prevent access to it? What I am wanting to do it create modules within my web application that contain the associated components: webapp/ module/ js/ css/ jsp/

Re: Preventing access to directories?

2009-07-22 Thread Andre-John Mas
On 22-Jul-2009, at 22:36, Hassan Schroeder wrote: On Wed, Jul 22, 2009 at 5:23 PM, Andre-John Masandrejohn@gmail.com wrote: I want to ensure that someone typing: http://../webapp/module/jsp/abc.jsp won't be able to access the resource. I know I could put the JSPs in WEB-INF

Re: Preventing access to directories?

2009-07-22 Thread Andre-John Mas
On 22-Jul-2009, at 20:23, Andre-John Mas wrote: Hi, If I create a folder in the base of my web application, for example: webapp/mydir can I prevent access to it? What I am wanting to do it create modules within my web application that contain the associated components: webapp

Re: JSESSIONID cookie permanent?

2009-08-12 Thread Andre-John Mas
The session data is stored on the server, so if the JSESSIONID lasted longer than the session on the server, it would simply map to an expired session. What would happen in this case is the server would have no session mapping to that ID and simply allocate a new session, with a new

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Andre-John Mas
The time stamp on the file is given by your OS. What operating system and version are you using? Also, what time zone are you in? André-John On 13-Aug-2009, at 23:38, Mon Cab wrote: When I edit a JSP, tomcat is compiling the JSP (both java and class files) in the work directory with a

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Andre-John Mas
On 13-Aug-2009, at 23:55, Mon Cab wrote: That's what I thought. However if I edit and reload a file at 20:00, and check the system time with date command I get 20:00 as the system time. And yet the compiled Java and Class files are timestamped 21:00 What operating system and version

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Andre-John Mas
On 13-Aug-2009, at 23:59, Mon Cab wrote: Sorry forgot to answer your other questions. I'm using Fedora, and timezone is PDT. Pacific. Which Fedora version? Also what version of Java? I am wondering whether there is a daylight saving issue. Maybe there is something in this article of

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-13 Thread Andre-John Mas
On 14-Aug-2009, at 00:09, Andre-John Mas wrote: On 13-Aug-2009, at 23:59, Mon Cab wrote: Sorry forgot to answer your other questions. I'm using Fedora, and timezone is PDT. Pacific. Which Fedora version? Also what version of Java? I am wondering whether there is a daylight saving

Sub paths and context (migrating Tomcat 5.0 to 5.5)

2009-08-14 Thread andre John Mas
Hi, We currently have a context configuration (conf/Catalina/localhost/partnerco.xml) file that contains the following : Context debug=1 docBase=/data/webapps/enroll/agent path=/enroll/partnerco reloadable=true override=true Parameter name=redirectURL value=/agent/enroll.do?partner=PC

RE: Sub paths and context (migrating Tomcat 5.0 to 5.5)

2009-08-14 Thread andre John Mas
Date: Fri, 14 Aug 2009 11:44:37 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: Re: Sub paths and context (migrating Tomcat 5.0 to 5.5) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andre John, On 8/14/2009 11:37 AM, andre John Mas wrote: How can I

Gzip compression and caching?

2009-08-19 Thread Andre-John Mas
Hi, I saw the Tomcat can use Gzip compression, though I am curious to know whether there is any built in caching mechanism to cache static content that has been Gzipped, to reduce the server load? André-John - To

Multiple data centers and redundency?

2009-08-25 Thread Andre-John Mas
Hi, I have been asked to look into a solution that would involve a few different data centres each with their own set of load balanced Tomcat servers. The requirement is for the users not to lose their session if one data center goes down. I have never had to work on something this large

Re: Multiple data centers and redundency?

2009-08-25 Thread Andre-John Mas
-John Mas wrote: Hi, I have been asked to look into a solution that would involve a few different data centres each with their own set of load balanced Tomcat servers. The requirement is for the users not to lose their session if one data center goes down. I have never had to work

Re: Multiple data centers and redundency?

2009-08-25 Thread Andre-John Mas
On 25-Aug-2009, at 20:52, Hassan Schroeder wrote: On Tue, Aug 25, 2009 at 5:38 PM, Andre-John Masaj...@sympatico.ca wrote: ... The architecture would involve a DNS server perodically giving out a DNS address for one DNS server and then an address for the other. Huh? Teaches me to