URIEncoding UTF-16 problem

2008-08-15 Thread Nayyer Kamran
Hello, I am facing problem in accessing deployed modules once I configured connector's URIEncoding to UTF-16 in server.xml. The log is showing nothing unusual but no web module is accessible and throwing http status 404.   Can you some one told me what is the reason? Do I need to modify

Re: URIEncoding UTF-16 problem

2008-08-15 Thread André Warnier
Nayyer Kamran wrote: Hello, I am facing problem in accessing deployed modules once I configured connector's URIEncoding to UTF-16 in server.xml. Hi. Could you tell us *why* exactly you did set this attribute ? It is rather unusual, as it supposes that you expect all clients to encode

Re: ssl certificate

2008-08-15 Thread Alonzo Wilson
Thank you. I look forward to having a tomcat restart command. The stop and restart is considered downtime and requires documentation. I'm hoping it will come in a future release. Mark Thomas [EMAIL PROTECTED] 8/14/2008 11:17 AM Alonzo Wilson wrote: Please explain. How does adding a new

Re: ssl certificate

2008-08-15 Thread Mark Thomas
Alonzo Wilson wrote: Thank you. I look forward to having a tomcat restart command. The stop and restart is considered downtime and requires documentation. I'm hoping it will come in a future release. Sorry, that is very unlikely to ever happen. You can restart a context without dropping

RE: https j_security_check apparently Solved :P

2008-08-15 Thread Julio César Chaves Fernández
Hi, Ye, i think thats what i needed apparently the redirection was the problem ... thanks for your help and excuse my ignorance but ... i have this connectors: Service name=Catalina Connector URIEncoding=UTF-8 port=8100 minSpareThreads=25 connectionTimeout=2 uRIEncoding=UTF-8

Re: where to place context configuration

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: So, the server admin can configure the DB server etc. by editing the file under the conf dir, but every time they deploy a new version of the app the settings are auto-wiped? No. Ideally, the server admin sets up data sources

Re: Fwd: Re: servlet works, jsp not, why? (Tomcat 5.0)

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elanora, [EMAIL PROTECTED] wrote: When I use sql:query var=rs dataSource=jdbc/TestDB I get: javax.servlet.ServletException: Unable to get connection, DataSource invalid: java.sql.SQLException: No suitable driver found for jdbc/TestDB I

Re: https j_security_check apparently Solved :P

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: Ye, i think thats what i needed apparently the redirection was the problem ... thanks for your help and excuse my ignorance but ... i have this connectors: Can you explain what each of these

Re: URIEncoding UTF-16 problem

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: Could you tell us *why* exactly you [are trying to use UTF-16]? It is rather unusual, as it supposes that you expect all clients to encode their requested URI's in UTF-16 prior to sending the request to Tomcat on that

RE: https j_security_check apparently Solved :P

2008-08-15 Thread Julio César Chaves Fernández
Hi, the access is over Apache through the mod_jk connector (the one that connects with AJP13), and mapping with httpd.conf, but its also accessed by ports 8100 and 8443. Date: Fri, 15 Aug 2008 11:10:09 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: https

RE: Clustering failing over with Tomcat 6.0.16

2008-08-15 Thread Gupta, Sharad
I created a simple session variable test and it seems to be working. I must have a problem with how I am using it in my application. I will look for in the framework will send my findings. But at this time, its not a tomcat issue.. -Original Message- From: Filip Hanik - Dev Lists

Re: where to place context configuration

2008-08-15 Thread Len Popp
Thanks for reminding me about resource-ref. I don't think that putting app-specific settings in server.xml is ideal - I'd rather have the per-app config files - but I can see that would get around the issues I'm complaining about. -- Len On Fri, Aug 15, 2008 at 10:57, Christopher Schultz [EMAIL

Re: Amazing stuff with Tomcat

2008-08-15 Thread ying lcs
On Sat, Aug 9, 2008 at 8:11 PM, Johnny Kewl [EMAIL PROTECTED] wrote: We now doing absolutely incredible stuff with Tomcat... and I just want to show you where we at. For those that dont know... we made Tomcat not only do our web stuff, Tomcat is also our application server... But have a look

URL rewrite!!!

2008-08-15 Thread Shahar Cohen
Hi, Can anyone tell me how can I configure URL rewrite in tomcat 5.5. What I actually need is define url rewrite to perform the following 301 redirections: 1) From www.mydomain.com/index.htm to www.mydomain.com http://www.mydomain.com/ 2) From lang.mydomain.com/lang/

RE: URL rewrite!!!

2008-08-15 Thread Caldarale, Charles R
-Original Message- From: Shahar Cohen [mailto:[EMAIL PROTECTED] Subject: URL rewrite!!! Can anyone tell me how can I configure URL rewrite in tomcat 5.5. Try this: http://tuckey.org/urlrewrite/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

gzip failing for some files

2008-08-15 Thread Daniel Blumenthal
I've set my Tomcat server up to gzip files of appropriate types, but for some reason it doesn't seem to be working on two files (according to YSlow). These files don't seem to be special, both are minified. One is fairly large (~328k), the other is medium-sized (72k). Here are the additional

Re: https j_security_check apparently Solved :P

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: the access is over Apache through the mod_jk connector (the one that connects with AJP13), and mapping with httpd.conf, but its also accessed by ports 8100 and 8443. I think you might reduce confusion if

reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
I'm having an odd problem. When filters are enabled in my application (e.g., to add an Expires header to certain files), I have to restart the tomcat server every time I recompile. When the filters are disabled, I don't have to restart the server (i.e., reloadable works). tomcat/conf/web.xml:

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
Sorry, I forgot to mention. This is for Tomcat 5.5.23. _ From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2008 1:40 PM To: 'Tomcat Users List' Subject: reloadable problem with filters I'm having an odd problem. When filters are enabled in my application

Using tabbed browsers causes session sharing

2008-08-15 Thread murthy gandikota
Hello All While using tabbed browsers (e.g. IE 7) I am facing a login problem. Say on Tab#1 I login with a username A, on Tab#2 I login with username B, I still see A's session. Apparently the browser/Tomcat doesn't create a new session. Has anyone faced this problem? Are there any fixes?

Redirection

2008-08-15 Thread Ravi Sharma
Hi, I have the following scenerio. I have a site which provide music online. Now for hosting the actual song i have purchased another site with better band widthm but no tomcat. So my webserver(tomcat) is running on one server(say domain1) and files are hosted on another (with different domain

Re: Tomcat monitoring

2008-08-15 Thread Kees Jan Koster
Dear Tokajac, As far as I see http://www.zabbix.com http://www.zabbix.com is not available for WinXP (that's my platform). *shrug* You could always run it on FreeBSD or Linux in VMWare. I downloaded Zapcat. Can Zapcat be useful without zabbix? No, it only works as a bridge to Zabbix.

Re: reloadable problem with filters

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel Blumenthal wrote: I'm having an odd problem. When filters are enabled in my application (e.g., to add an Expires header to certain files), I have to restart the tomcat server every time I recompile. When the filters are disabled,

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Robert Dietrick
This is normal behavior. Sessions are tied to cookies bound to an entire domain. Why would you want the same person logged in twice with different accounts? On 8/15/08, murthy gandikota [EMAIL PROTECTED] wrote: Hello All While using tabbed browsers (e.g. IE 7) I am facing a login problem. Say

Re: Redirection

2008-08-15 Thread Hassan Schroeder
On Fri, Aug 15, 2008 at 11:47 AM, Ravi Sharma [EMAIL PROTECTED] wrote: So is there any way to do this using anything in apache,tomcat to hide domain2 from everyone., You should either move everything to the higher-bandwidth server, or have your DNS identify it as a subdomain --

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Rusty Wright
Sessions are tied to the whole browser, not tabs within the browser. In other words, it's a browser issue, not a tomcat issue. murthy gandikota wrote: Hello All While using tabbed browsers (e.g. IE 7) I am facing a login problem. Say on Tab#1 I login with a username A, on Tab#2 I login with

How to tell Tomcat to use an additional classpath other than web-inf/classes?

2008-08-15 Thread swimming_rabbit
Does anyone know of a way to tell Tomcat to use an additional classpath (other than WEB-INF/classes) when loading an application? I've got an off the shelf application that requires us to copy our custom classes into the application's WEB-INF/classes/ directory every time we upgrade, which is

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Bill Davidson
Robert Dietrick wrote: Why would you want the same person logged in twice with different accounts? As a developer of a web app that has both admin and regular user roles, I want to do this all the time. The admin roles can change things in ways that affect the regular user's view. I want

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Davidson wrote: Robert Dietrick wrote: Why would you want the same person logged in twice with different accounts? As a developer of a web app that has both admin and regular user roles, I want to do this all the time. The admin

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
Hi Chris, Unfortunately, I don't think it's related to that. The reloadable attribute has been working like a champ for me. But today, I added a filter (a new class, created today). As soon as I added the configuration to the web.xml file, I started having to restart the Tomcat server after

RE: Using tabbed browsers causes session sharing

2008-08-15 Thread Nathan E. Pilling
I've found that if I set the maxAge of the cookie to -1 (which means the cookie should only exist until the browser exits) that on Internet Explorer each window I open the session is different. Each tab shares the session. In Firefox, the session is shared by all tabs and windows.

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
Unfortunately, neither renaming the file to ZZExpiresFilter.java nor removing the line from the config file appears to be having an effect. -Original Message- From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2008 4:34 PM To: 'Tomcat Users List' Subject:

RE: Using tabbed browsers causes session sharing

2008-08-15 Thread Martin Gainty
I would suggest assigning each logged-in user the capabilities of nindividual roles which have a specified capability http://tomcat.apache.org/tomcat-4.0-doc/manager-howto.html start with xml basic MemoryRealm and work your way into JDBCRealm or JNDIRealm Martin

RE: reloadable problem with filters

2008-08-15 Thread Caldarale, Charles R
From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Subject: RE: reloadable problem with filters I'm actually getting an error in catalina.out *during compilation* (see log extract below). Are you compiling into the deployment directory of an active application? I don't know how you could

Re: How to tell Tomcat to use an additional classpath other than web-inf/classes?

2008-08-15 Thread Johnny Kewl
- Original Message - From: swimming_rabbit [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, August 15, 2008 9:48 PM Subject: How to tell Tomcat to use an additional classpath other than web-inf/classes? Does anyone know of a way to tell Tomcat to use an additional

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
On my development machine, I do compile into the same directory that I'm running from. Is there a more effective development configuration? -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2008 4:50 PM To: Tomcat Users List Subject:

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread David Rees
On Fri, Aug 15, 2008 at 1:21 PM, Christopher Schultz [EMAIL PROTECTED] wrote: Bill Davidson wrote: The way I deal with it is to use Firefox for one and IE for the other. You could use separate tabs in the same browser if you were to disable cookies on your browser (and you have correctly

RE: How to tell Tomcat to use an additional classpath other thanweb-inf/classes?

2008-08-15 Thread Caldarale, Charles R
From: swimming_rabbit [mailto:[EMAIL PROTECTED] Subject: How to tell Tomcat to use an additional classpath other thanweb-inf/classes? Does anyone know of a way to tell Tomcat to use an additional classpath (other than WEB-INF/classes) when loading an application? (The discussion below is

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Bill Davidson
Christopher Schultz [EMAIL PROTECTED] wrote: You could use separate tabs in the same browser if you were to disable cookies on your browser (and you have correctly encoded your outgoing URLs). David Rees wrote: Yep, this is probably the best way to do it. Just keep in mind that if you copy

RE: reloadable problem with filters

2008-08-15 Thread Caldarale, Charles R
From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Subject: RE: reloadable problem with filters On my development machine, I do compile into the same directory that I'm running from. You could try turning off autoDeploy and then manually initiate a redeployment when the compilations are

Re: URIEncoding UTF-16 problem

2008-08-15 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: Could you tell us *why* exactly you [are trying to use UTF-16]? It is rather unusual, as it supposes that you expect all clients to encode their requested URI's in UTF-16 prior to sending the

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread André Warnier
murthy gandikota wrote: Hello All While using tabbed browsers (e.g. IE 7) I am facing a login problem. Say on Tab#1 I login with a username A, on Tab#2 I login with username B, I still see A's session. Apparently the browser/Tomcat doesn't create a new session. Has anyone faced this problem?

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread André Warnier
Robert Dietrick wrote: This is normal behavior. Sessions are tied to cookies bound to an entire domain. Why would you want the same person logged in twice with different accounts? I don't know what the real issue of the OP is, but there are plenty of situations where you would want to have 2

Re: URIEncoding UTF-16 problem

2008-08-15 Thread André Warnier
Replying to myself : André Warnier wrote: My own name, expressed in the Unicode alphabet and encoded in UTF-8, occupies 6 bytes, not 7. I meant 6 bytes, not 5, of course. It rather weakens my argument when I mix-up my own byte counts...

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread André Warnier
Hi guys, shouldn't someone *explain* to the OP why this is happening ? I mean, the different bits and pieces are there in different answers, but maybe the big picture is missing to understand what and why it is happening ? Not knowing myself the hows and whys of Tomcat's session management, I

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Rusty Wright
Sorry, I thought I did. It has nothing to do with tomcat; it's up to the browser whether or not it assigns different sessions to the tabs or not. Apparently IE, or some versions of IE, do. In my experience Firefox doesn't. I think if you have multiple Firefoxes opened, i.e., separate

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Leon Rosenberg
Thats probably because it has nothing to do with tomcat or sessionmanagement, but has something to do with cookies and browser processes. AFAIK the only browser which allow theirself to be started in multiple processes are internet explorer and lynx. And internet explorer only if you activated a

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Johnny Kewl
- Original Message - From: André Warnier [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, August 16, 2008 12:56 AM Subject: Re: Using tabbed browsers causes session sharing Hi guys, shouldn't someone *explain* to the OP why this is happening ? I mean,

RE: Using tabbed browsers causes session sharing

2008-08-15 Thread Martin Gainty
if you want to take it a step further determine if the client is using an old browser route them to latest script language=JavaScript !-- function onLoad() if(parseInt(navigator.appVersion)7); document.window.open(http://www.microsoft.com/windows/downloads/ie/getitnow.mspx;); // -- /script ?

Re: Using tabbed browsers causes session sharing

2008-08-15 Thread Robert Dietrick
That's an acceptable way to deal with the problem (it's not a tomcat problem after all but an abnormal use case). Anyone who's built an administrative web app is accustomed to such shenanigans. If you have a legitimate need to access different parts of your app while logged in under one account,