RE: JSESSIONID doesn't contain the port

2008-06-19 Thread Zsolt Koppany
Thank you everybody making comments to my original post. Our customer has two tomcats because one instance is the production version of our application and the second one is a test instance of the new version of the same application. Because of that the context-pathes are the same. I understand,

Re: Jrockit Vs Sun

2008-06-19 Thread Quan Zhou
It seems Oracle has closed the download of JRockit without giving any reasons. Few months ago, I've deployed my app both in Sun VM 1.6 and JRockit R26 (support 1.6). Several differences are listed here: 1. as we know, there're some difference of vm starting parameters, so sometimes you may need to

Re: A few questions

2008-06-19 Thread jan
Thanks, guys! /jan Walter Thompson wrote: Then use "startup.sh" or "shutdown.sh" Walter -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 10:44 AM To: Tomcat Users List Subject: RE: A few questions Date sent: Thu, 19 Jun 20

Re: tomcat 3.3 question

2008-06-19 Thread Bill Barker
"Robert Welz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Am 18.06.2008 um 15:02 schrieb Robert Welz: > >> A question: >> >> If I have a class / function >> >> Logger.Log (Logger.LOG_LEVEL_INFO, "Test " + Globals.BACKUP_STARTDIR); >> >> >> where will tomcat write these data ou

Re: AJP encryption

2008-06-19 Thread Bill Barker
"Rossen Raykov" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > > Is there anybody interested in encrypting the AJP communication channel? > Is anything like that planned for the next release? > It's on the wishlist for AJP/1.4 (as well as compression). However there ha

Re: multiple login pages within one webapp

2008-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Exkor, exkor wrote: | What if I would have all users in one table, can I make multiple secured | areas each exclusively dedicated to a different role? Of course this is what s are for. Just use different roles for different operations in your we

Re: Logging for Dummies in Tomcat 5.5/6.0

2008-06-19 Thread André Warnier
Hi. I'm back. First of all, I appreciate the information received already as a response to my initial post, and I am thankful for it. I keep on reading and collecting the new stuff coming, and getting enlightened by it. There is a lot of information there, which for a large part - in my opinio

Re: Default servlet doesn't encode URI on redirect?

2008-06-19 Thread Mark Thomas
Benoit Maisonny wrote: Sorry, not always easy to keep a thread with the huge traffic on this list. Christopher Schultz wrote: Benoit, Benoit Maisonny wrote: | Christopher Schultz wrote: |> |> Benoit, |> |> Benoit Maisonny wrote: |> | I suspect someone forgot to encode the URI in the Location:

Re: multiple login pages within one webapp

2008-06-19 Thread exkor
Hi Chris What if I would have all users in one table, can I make multiple secured areas each exclusively dedicated to a different role? If all fails I would use securityFilter Thanks -Assaf On Thu, Jun 19, 2008 at 4:13 PM, Christopher Schultz < [EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNE

Re: multiple login pages within one webapp

2008-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Assaf, exkor wrote: | Is it possible to have multiple login forms, configured to work with | mutually exclusive tables. in the same webapp? Not when using TC's container-managed authentication and authorization. You could use securityfilter (http://

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zsolt, Zsolt Koppany wrote: | How can we make tomcat-5.5.25 to store also port into JSESSIONID? You can't really do that, unless you want to hack-up TC's source. What you could do is deploy your applications under different context names, instead o

when use classes that implements javax.sql.DataSource in a JDBC datasource throws an Exception at first try

2008-06-19 Thread Clovis Wichoski
Hi, i'm using tomcat 6.0.16 and if i configure a class that implements javax.sql.DataSource as the value of the attribute driverClassName of the Resource element, when the server starts, the first try to get a connection from JNDI that fails with follow Exception: org.apache.tomcat.dbcp.dbcp.SQLN

Re: Character encoding

2008-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nch, nch wrote: | Chris, I finally found it. | My server.xml was not correctly configured. My fault. | | Again, thank you all for your help. No problem. Would you mind explaining for the group what the actual problem was, and what the solution was?

multiple login pages within one webapp

2008-06-19 Thread exkor
Hi Is it possible to have multiple login forms, configured to work with mutually exclusive tables. in the same webapp? For example I want to have a login page for users of type A and a different login page for users of type B. Users of type A have no relation to users of type B and vice-versa. Th

Re: Logging for Dummies in Tomcat 5.5/6.0

2008-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Okay, I lied about shutting up until someone paid me. Maybe I should threaten to keep posting until I get paid. ;) Mark H. Wood wrote: | On Wed, Jun 18, 2008 at 04:44:21PM -0400, Christopher Schultz wrote: |> | Assume that one has read the Tom

Re: Questions related to configuring a REST API on Apache

2008-06-19 Thread Vinay Chilakamarri
The ip addresses (including port) are being sent as some data structure for the clients to communicate with the server on them. So I think it shouldn't be a problem for that. Also I am not sure if they have a DNS On Thu, Jun 19, 2008 at 11:23 AM, Caldarale, Charles R < [EMAIL PROTECTED]> wrote: >

RE: Questions related to configuring a REST API on Apache

2008-06-19 Thread Caldarale, Charles R
> From: Vinay Chilakamarri [mailto:[EMAIL PROTECTED] > Subject: Re: Questions related to configuring a REST API on Apache > > Do you see any drawbacks in this approach? How will a client know which port to choose? > if I go the virtual hosts way, others have to explicitly > modify the etc/hosts f

Re: Questions related to configuring a REST API on Apache

2008-06-19 Thread Vinay Chilakamarri
Thanks for that excellent link. I somehow overlooked it while going through the documentation of Tomcat. As of now I am planning to go with another approach: I will be opening 20 different ports on a single instance and access the resources under the same appbase, which will contain the dynamic ser

RE: Questions related to configuring a REST API on Apache

2008-06-19 Thread Caldarale, Charles R
> From: Vinay Chilakamarri [mailto:[EMAIL PROTECTED] > Subject: Re: Questions related to configuring a REST API on Apache > > Is there a way to setup virtual hosts on Tomcat alone with > out having to connect to Apache Httpd for that? Yes - configure multiple elements in conf/server.xml. It's in

Re: Questions related to configuring a REST API on Apache

2008-06-19 Thread Vinay Chilakamarri
Is there a way to setup virtual hosts on Tomcat alone with out having to connect to Apache Httpd for that? On Wed, Jun 18, 2008 at 2:32 PM, Vinay Chilakamarri < [EMAIL PROTECTED]> wrote: > I am using Apache Http D

RE: JSESSIONID doesn't contain the port

2008-06-19 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: JSESSIONID doesn't contain the port > > of course it would since there will be two different cookies with > different pathes referring to both different sessions. The webapps could choose to generate their own cookies with the common

RE: JSESSIONID doesn't contain the port

2008-06-19 Thread Caldarale, Charles R
> From: Pid [mailto:[EMAIL PROTECTED] > Subject: Re: JSESSIONID doesn't contain the port > > The problem is that the TC1 sets a value of JSESSIONID that does not > exist in TC2. Go back and reread the original post. There's only one instance of Tomcat, but there are two elements, each with a un

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread Leon Rosenberg
On Thu, Jun 19, 2008 at 6:09 PM, André Warnier <[EMAIL PROTECTED]> wrote: > > > So now that it is settled that different names for the cookies /would/ solve > the problem, is that a possibility in Tomcat ? > Is it possible for one application to "influence" the name of it's session > cookie, so tha

Re: Logging for Dummies in Tomcat 5.5/6.0

2008-06-19 Thread Mark H. Wood
On Thu, Jun 19, 2008 at 12:41:30AM +0200, André Warnier wrote: > My idea was, maybe naively, that Tomcat was like any other program, fairly > logical, and that things in it happen for a reason. > Thus that when Tomcat starts, it knows, from some top-level configuration > file, where to look for i

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread André Warnier
Leon Rosenberg wrote: On Thu, Jun 19, 2008 at 5:42 PM, Pid <[EMAIL PROTECTED]> wrote: André Warnier wrote: Leon Rosenberg wrote: On Thu, Jun 19, 2008 at 4:51 PM, André Warnier <[EMAIL PROTECTED]> wrote: Now, maybe the issue is whether the session of one application can or cannot be valid

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread André Warnier
Pid wrote: André Warnier wrote: Leon Rosenberg wrote: On Thu, Jun 19, 2008 at 4:51 PM, André Warnier <[EMAIL PROTECTED]> wrote: Now, maybe the issue is whether the session of one application can or cannot be valid for the other. If they just shared a session (and a cookie), then there

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread Leon Rosenberg
On Thu, Jun 19, 2008 at 5:42 PM, Pid <[EMAIL PROTECTED]> wrote: > André Warnier wrote: >> >> >> Leon Rosenberg wrote: >>> >>> On Thu, Jun 19, 2008 at 4:51 PM, André Warnier <[EMAIL PROTECTED]> wrote: >>> Now, maybe the issue is whether the session of one application can or cannot be

RE: A few questions

2008-06-19 Thread Walter Thompson
Then use "startup.sh" or "shutdown.sh" Walter -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 10:44 AM To: Tomcat Users List Subject: RE: A few questions Date sent: Thu, 19 Jun 2008 10:30:15 -0500 From: Walter

RE: A few questions

2008-06-19 Thread Steve Ochani
Date sent: Thu, 19 Jun 2008 10:30:15 -0500 From: Walter Thompson <[EMAIL PROTECTED]> Subject:RE: A few questions To: Tomcat Users List Send reply to: Tomcat Users List > In the Tomcat bin directory there should be two ba

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread Pid
André Warnier wrote: Leon Rosenberg wrote: On Thu, Jun 19, 2008 at 4:51 PM, André Warnier <[EMAIL PROTECTED]> wrote: Now, maybe the issue is whether the session of one application can or cannot be valid for the other. If they just shared a session (and a cookie), then there would be harmo

JSF dataTable with Calendar component

2008-06-19 Thread Don Millhofer
Hi, I am moving an application from glassfish to tomcat and have run into a problem with a dataTable component, where I have placed a group panel which contains a Calendar component. This arrangement worked fine with glassfish but with tomcat the component acts as a single component rather than

Re: Logging for Dummies in Tomcat 5.5/6.0

2008-06-19 Thread Mark H. Wood
On Wed, Jun 18, 2008 at 04:44:21PM -0400, Christopher Schultz wrote: > | Assume that one has read the Tomcat logging page at > | http://tomcat.apache.org/tomcat-6.0-doc/logging.html > > Although the this is a good reference, you cannot follow any of the > instructions on that page, because the logg

RE: A few questions

2008-06-19 Thread Walter Thompson
In the Tomcat bin directory there should be two batch files "startup.bat" and "shutdown.bat" that should work fine unless you are running Tomcat as a service. If running as a service, use services to stop and start. Walter -Original Message- From: jan [mailto:[EMAIL PROTECTED] Sent: Th

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread Leon Rosenberg
but the path of the cookie. IMHO the path of the cookie is the webapp context -> /webappname Leon. On Thu, Jun 19, 2008 at 5:12 PM, André Warnier <[EMAIL PROTECTED]> wrote: > > > Leon Rosenberg wrote: >> >> On Thu, Jun 19, 2008 at 4:51 PM, André Warnier <[EMAIL PROTECTED]> wrote: >> >>> Now, ma

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread André Warnier
Leon Rosenberg wrote: On Thu, Jun 19, 2008 at 4:51 PM, André Warnier <[EMAIL PROTECTED]> wrote: Now, maybe the issue is whether the session of one application can or cannot be valid for the other. If they just shared a session (and a cookie), then there would be harmony again. Or the OP ju

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread Leon Rosenberg
On Thu, Jun 19, 2008 at 4:51 PM, André Warnier <[EMAIL PROTECTED]> wrote: > Now, maybe the issue is whether the session of one application can or cannot > be valid for the other. If they just shared a session (and a cookie), then > there would be harmony again. Or the OP just renames one of his

RE: JAASRealm problem moving from 5.5.23 -> 5.5.26

2008-06-19 Thread Caldarale, Charles R
> From: Stephen More [mailto:[EMAIL PROTECTED] > Subject: Re: JAASRealm problem moving from 5.5.23 -> 5.5.26 > > 5.5.26 seems to work fine when useContextClassloader=true > 5.5.23 no longer works if useContextClassloader=true (I assume useContextClassloader is really useContextClassLoader in the a

RE: Redhat patch level cheatsheet?

2008-06-19 Thread Peter Crowther
> From: [EMAIL PROTECTED] > I was hoping someone around here was using > RedHat-sourced Apache products, too. Several of us try quite hard not to, typically because of these repackaging problems and black holes. I've moved away from DeadRat packages over the last decade*, simply because I don't

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread André Warnier
Caldarale, Charles R wrote: From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Subject: JSESSIONID doesn't contain the port we have two web applications running on the same host (with the same tomcat) but on DIFFERENT ports. For curiosity's sake, why are you doing that? Buf, if one tomcat appli

Logging contexts with multiple / in path attribute

2008-06-19 Thread Jonathan Mast
I want to capture the System.out and System.err stuff for individual web-apps (ie. Contexts). I've done this ok for some of my contexts but I have a question about how to do this for my webapps whose "path" attribute contains more than 1 slash, eg. Specifically, how do I reference this webapp i

RE: Redhat patch level cheatsheet?

2008-06-19 Thread Brandie.B.Huber
Thanks, Ben and Steve. I knew RedHat backported and changed version numbers, but did not realize they only backported security fixes and not new functionality. This goes back to not being able to -find- the documentation to determine what ends up where. I was hoping someone around here was usi

RE: NoClassDefFoundError

2008-06-19 Thread Walter Thompson
Use JRE_HOME not JAVA_HOME. It should point to jre1.6.0.02 directory. If you are trying to access the site from the machine it is on try http://localhost:8080 , if you are trying to access it from a remote system across the network use http://###.###.###.###:8080 the machine actual IP address, 127

RE: JSESSIONID doesn't contain the port

2008-06-19 Thread Caldarale, Charles R
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED] > Subject: JSESSIONID doesn't contain the port > > we have two web applications running on the same host (with > the same tomcat) but on DIFFERENT ports. For curiosity's sake, why are you doing that? > Buf, if one tomcat application refers on URL of

RE: JSESSIONID doesn't contain the port

2008-06-19 Thread Zsolt Koppany
No, they (must) use the same IP address. Zsolt > -Original Message- > From: Pid [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2008 2:45 PM > To: Tomcat Users List > Subject: Re: JSESSIONID doesn't contain the port > > Zsolt Koppany wrote: > > Hi, > > > > we have two web applicat

Re: A few questions

2008-06-19 Thread Steve Ochani
Date sent: Thu, 19 Jun 2008 11:52:59 +0100 From: jan <[EMAIL PROTECTED]> Subject:A few questions To: Tomcat Users List Send reply to: Tomcat Users List > The answer to these questions are quite possibly annoyingly obviou

Re: AJP encryption

2008-06-19 Thread Markus Schönhaber
Rossen Raykov wrote: > Is there anybody interested in encrypting the AJP communication channel? > Is anything like that planned for the next release? I can answer neither of your questions. But, wouldn't be tunnelling AJP traffic through an encrypted channel (for example OpenVPN) be an alternativ

AJP encryption

2008-06-19 Thread Rossen Raykov
Hi All, Is there anybody interested in encrypting the AJP communication channel? Is anything like that planned for the next release? Rossen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL P

RE: Redhat patch level cheatsheet?

2008-06-19 Thread Steve Ochani
Date sent: Thu, 19 Jun 2008 19:57:17 +1000 From: Ben Stringer <[EMAIL PROTECTED]> Subject:RE: Redhat patch level cheatsheet? To: Tomcat Users List Send reply to: Tomcat Users List > Hi Brandie, > > My understanding is t

NoClassDefFoundError

2008-06-19 Thread Gaurav Pruthi
Hi All, I had installed tomcat last year. Everything was find but yesterday i saw a strange error. Under examples, i can't execute even a single jsp script. I gets the following error. I don't have any CLASSPATH set. I m using Tomcat 6.0.14 & JRE1.6.0.02 with mod_jk. On the web interface, i am us

Re: JSESSIONID doesn't contain the port

2008-06-19 Thread Pid
Zsolt Koppany wrote: Hi, we have two web applications running on the same host (with the same tomcat) but on DIFFERENT ports. Buf, if one tomcat application refers on URL of the second application the browser (FF-2.0.0.14 IE-6) get a NEW a new JSESSIONID thus the browser looses its session-id t

Re: JAASRealm problem moving from 5.5.23 -> 5.5.26

2008-06-19 Thread Stephen More
>> > > Take out the path attribute; it's not allowed unless the element is > in server.xml (where it should never be, these days). It should be ignored, > but... Done. >> ... >> useContextClassLoader="false" /> > > Just for grins, what happens if you set useContextClassloader to

A few questions

2008-06-19 Thread jan
The answer to these questions are quite possibly annoyingly obvious, but I haven't been able to find them in the User Guide. 1. What is the proper way of shutting down tomcat? I start it with what I have found in the user guide: export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13 /u01/tomca

JNDI realm strange problem(Tomcat 6.0.16)

2008-06-19 Thread Kumar Gaurav Srivastava
hello , i will be really grateful if someone can help me on this. i have my realm configuration in server.xml, every thing is fine i can login. but when i try to login the next morning it gives error SEVERE: Exception performing authentication javax.naming.NoInitialContextException: Need to sp

JSESSIONID doesn't contain the port

2008-06-19 Thread Zsolt Koppany
Hi, we have two web applications running on the same host (with the same tomcat) but on DIFFERENT ports. Buf, if one tomcat application refers on URL of the second application the browser (FF-2.0.0.14 IE-6) get a NEW a new JSESSIONID thus the browser looses its session-id to the first application

RE: Redhat patch level cheatsheet?

2008-06-19 Thread Ben Stringer
Hi Brandie, My understanding is that Redhat maintain the version numbering that they receive from upstream, and the only "patching" they are doing is repackaging the tomcat releases to fit in with the Redhat distro (ie. moving files around to fit their packaging structure). So if you download (fr

Re: tomcat 6 memory

2008-06-19 Thread Thomas Haines
luke l wrote: Hi. I'm running a webApplication on Tomcat 6.0.16: it's quite simple some jsf, jsp pages (every page is periodically reloaded). Running it on a linux environment there is a memory leak on client browser (iExplore or firefox): browser memory costantly increase and webappl beca

Re: tomcat 6 memory

2008-06-19 Thread André Warnier
luke l wrote: Hi. I'm running a webApplication on Tomcat 6.0.16: it's quite simple some jsf, jsp pages (every page is periodically reloaded). Running it on a linux environment there is a memory leak on client browser (iExplore or firefox): browser memory costantly increase and webappl became unu

Re: Character encoding

2008-06-19 Thread nch
Chris, I finally found it. My server.xml was not correctly configured. My fault. Again, thank you all for your help. - Original Message From: Christopher Schultz <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Wednesday, June 18, 2008 11:12:45 PM Subject: Re: Character encoding

tomcat 6 memory

2008-06-19 Thread luke l
Hi. I'm running a webApplication on Tomcat 6.0.16: it's quite simple some jsf, jsp pages (every page is periodically reloaded). Running it on a linux environment there is a memory leak on client browser (iExplore or firefox): browser memory costantly increase and webappl became unusable. any sugge

Changing roles on the fly

2008-06-19 Thread Lyallex
Hello Tomcat 5.5.26 Java 1.5.0_15-b04 This question is about role based security and the dynamic assignment/removal of roles. I have a requirement to allow an user to add or remove certain roles 'on the fly' Allowing a user to add a role is simple enough. Once they have 'clicked the button' to a