Re: How to figure out if a user is authenticated when using single sign on?

2008-04-23 Thread Mark Thomas
FR wrote: The standard workaround mentioned is to place user information in session, but that won't work across webapps using Single Sign On. I have a bunch of webapps, only one of which is protected and requires login, the rest work fine without logging in, but display different information

Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread David Smith
Tomcat requires java. There's never been a problem with them on the same box. Can you be a little more specific on what you're asking? --David Nix Hanwei wrote: Hi Gurus, How do I co-exist both tomcat and java in one windows server? Thanks in advance.

Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread Nix Hanwei
Thanks. I'm trying to install tomcat 5.0 and tomcat 6.0 and java 1.4 and java 1.6 in a box. How do I define CATALINA_HOME and JAVA_HOME and jk connector for each tomcat? - Original Message From: David Smith [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent:

Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread David Smith
The JDKs are no problem -- they just get installed each in their own directory. The tomcat's can also be installed each in their own directory. You'll have to modify the server.xml of each to make sure there are no conflicts in the shutdown ports or any of the connetors. I'm going to

Re: How do I co-exist both tomcat and java in one windows machine?

2008-04-23 Thread Nix Hanwei
Thanks. I'm running on IIS. I think I roughly know how to get it done now. Thank you for your advices. - Original Message From: David Smith [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, 23 April 2008 7:51:32 Subject: Re: How do I co-exist both tomcat

Re: Directories in Tomcat 5.5\temp

2008-04-23 Thread hezjing
The Monitor Tomcat is one of the menu items created by Tomcat installer. You can find it from Windows Start - Programs - Apache Tomcat 5.5 - Monitor Tomcat where it's target is pointing to Tomcat 5.5\bin\tomcat5w.exe. My application is using log4j release 1.2.15 and now, I noticed the following

Problem with Datasource

2008-04-23 Thread Fabien D.
Hi everybody, I'm using tomcat6 and trying to use datasource for mysql connexion (and hibernate). I have looked to the tomcat 6 official documentation, and in the $CATALINA_HOME/conf/context.xml, i have declared : Context path=/appWicket reloadable=true Resource

RE: Directories in Tomcat 5.5\temp

2008-04-23 Thread Caldarale, Charles R
From: hezjing [mailto:[EMAIL PROTECTED] Subject: Re: Directories in Tomcat 5.5\temp log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository. Not likely to be the problem, but I can't be sure. 23-Apr-2008 21:06:31

Re: Problem with Datasource

2008-04-23 Thread David Smith
What is in tomat's lib directory? And what's in the resource-ref ... /resource-ref section of your web.xml? Commenting on your resource definition below, remove autoReconnect=true as it's not recommended by the mysql folks. Add validationQuery=select 1 to have the pool test connections on

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington
Hey, thanks for responding. I'm using Firefox 2.0.0.14, so it definitely supports cookies. It's just weird because it looks like the JSESSIONID cookie is not even being sent to it. I'll try URL encoding as a last resort. Tim - Original Message From: Martin Gainty [EMAIL PROTECTED]

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington
Thanks for the feedback so far. I actually kept the interactions as simple as possible exactly to minimize any unknown behaviour. There's no SSL or filters in the application yet. So my code looks something like the following (by path of execution, I assume you mean the code's call sequence).

Re: Problem with Datasource

2008-04-23 Thread Mark Thomas
Fabien D. wrote: Hi everybody, I'm using tomcat6 and trying to use datasource for mysql connexion (and hibernate). I have looked to the tomcat 6 official documentation, and in the $CATALINA_HOME/conf/context.xml, i have declared : You do want this to be available to *every* webapp don't you?

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Timothy Washington wrote: | Thanks for the feedback so far. I actually kept the interactions as | simple as possible exactly to minimize any unknown behaviour. There's no | SSL or filters in the application yet. So, there's pretty much nothing

JNDI Realm nor returning LDAP error codes/exceptions

2008-04-23 Thread Gundersen, Richard
Hi I'm using the standard JNDIRealm class to authenticate users. However if the login is unsuccessful, I am unable report the *reason* for the failure. The code for JNDIRealm.java tries to return a valid Principal object. If logging on fails - which could be for several reasons e.g. bad

Response time

2008-04-23 Thread Bruno Matos
Hello, I'm using tomcat to run my servlet. This is the code of processReuqest method: response.setContentType(text/xml;charset=UTF-8); PrintWriter outResponse = response.getWriter(); StringBuffer out = new StringBuffer(); try {

FW: Tomcat ModJK Issues!!!

2008-04-23 Thread Razat Gupta (razgupta)
Hi All Can any one help me on this, I am posting it for the second time. Regards Razat -Original Message- From: Razat Gupta (razgupta) Sent: Thursday, April 17, 2008 12:19 PM To: users@tomcat.apache.org Subject: Tomcat ModJK Issues!!! Hi All, We are using Tomcat 4.1.29,

Re: Cookie-less session tracking - whats are the downsides

2008-04-23 Thread Peter Stavrinides
This topic comes up on the list very frequently, you ask ten developers this question you may even get eleven opinions. Your answer is it depends on your use case and security requirements (for example: I may not care, in a shopping cart application, if I write a product id in the URL, but I

Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-04-23 Thread Rajeev Angal
On Apr 22, 2008, at 11:39 AM, Mark Thomas wrote: Rajeev Angal wrote: You indiated earlier on this thread that a patch for 6.0.16 is being worked on to fix the v1 cookies issue - any idea when it will be released? There has been some discussion of this on the dev list. No specific

Re: Response time

2008-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno, Bruno Matos wrote: | I'm getting documents from lucene and creating a string with all the | results with string buffer. The string creation takes 2 seconds and the | | outResponse.print(out.toString()); | | takes 1 second. Closing the writer

Re: FooRealm not returning [any] error codes/exceptions

2008-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Gundersen, Richard wrote: | I'm using the standard JNDIRealm class to authenticate users. However if | the login is unsuccessful, I am unable report the *reason* for the | failure. Yup. That's just how the realms are written. The code

Re: Response time

2008-04-23 Thread Alan Chaney
One a similar vein, exactly how do you connect firefox to the server? Directly, or via some kind of network connection. If its a network, what's the bandwidth? Alan Chaney Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno, Bruno Matos wrote: | I'm getting

Re: Response time

2008-04-23 Thread Bruno Matos
Hello, Tank you every one. I connect to localhost and my CPU stays in 100% all the time. Open directly the xml file take no time at all. Alan Chaney wrote: One a similar vein, exactly how do you connect firefox to the server? Directly, or via some kind of network connection. If its a

Re: Response time

2008-04-23 Thread Alan Chaney
I do a lot of downloads of large files (several 10's of MB). Firefox seems to limit its transfer rate to about 100 kbps (that is, kilobits per sec). If you are using linux, try doing a 'wget' on the file instead of using a browser. 300,000 bytes is 2,400,000 bits (approx) so to take 2 minutes

Re: Response time

2008-04-23 Thread Bruno Matos
Thank you a lot. Alan Chaney wrote: I do a lot of downloads of large files (several 10's of MB). Firefox seems to limit its transfer rate to about 100 kbps (that is, kilobits per sec). If you are using linux, try doing a 'wget' on the file instead of using a browser. 300,000 bytes is

Re: Response time

2008-04-23 Thread Bruno Matos
I have tried with wget, and with my client application and the problem was the firefox. Now I have to go to another forum: solr. Solr really takes 3 minutes to make what my test version makes in 6 seconds. Thank you every one! Regards. Bruno Matos wrote: Thank you a lot. Alan Chaney wrote:

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington
Yes, the client and server are both on my localhost (I also tried 127.0.0.1), and that is the requesting/sending url. Hmmm, I tried setting that specific header (resp.addHeader(my-custom-header, foo);), but there's no indication it's sending(from RequestDumpervalse output) or receiving(from

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timothy, Timothy Washington wrote: | Yes, the client and server are both on my localhost (I also tried | 127.0.0.1), and that is the requesting/sending url. Hmmm, I tried | setting that specific header (resp.addHeader(my-custom-header, | foo);), but

Re: FW: Tomcat ModJK Issues!!!

2008-04-23 Thread Filip Hanik - Dev Lists
what OS are you on, if you are on a Unix system, you can issue a kill -3 process id of java and that will generate a thread dump in your std.out looking at this file, you can see where the processors are taken up, and if they are locked up somewhere in your code, or simply busy with other

Re: FW: Tomcat ModJK Issues!!!

2008-04-23 Thread Mark Thomas
Razat Gupta (razgupta) wrote: Can any one help me on this, I am posting it for the second time. 1. Stop posting the same question multiple times. 2. Read the response(s) you do get. 3. Respond to the questions in those responses. Hint: There are responses you don't appear to have read yet.

Re: Share session cookie across subdomains

2008-04-23 Thread Zach Cox
Hi Chris - I'm not sure what this will accomplish: public Request(Request wrapped) { ~this.wrapped = wrapped; } public whatever doWhatever(args) { ~super.doWhatever(args); } 1) this.wrapped is never used so what's the point of saving it? 2) why override all of the methods just to call

Re: Share session cookie across subdomains

2008-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zach, Zach Cox wrote: | Hi Chris - I'm not sure what this will accomplish: | | public Request(Request wrapped) | { | ~this.wrapped = wrapped; | } | | public whatever doWhatever(args) | { | ~super.doWhatever(args); | } | | 1) this.wrapped is

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington
Oh, that's a good point. I actually have an EchoSservlet to test stuff like this and the JSESSIONID is being passed back in that case. I've copied it's process method which is called by doGet/doPost. LiveHTTPHeader output: http://localhost:8080/webkell/echo GET /webkell/echo HTTP/1.1 Host:

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Timothy Washington wrote: | Oh, that's a good point. I actually have an EchoSservlet to test | stuff like this and the JSESSIONID is being passed back in that case. | I've copied it's process method which is called by doGet/doPost. So, what's

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-23 Thread Timothy Washington
The only thing is that in my real app, I send the response (via responseWriter) in my facade. Whereas in the EchoServlet, all processing is done in the servlet proper. I tried moving the response sending back up to the handling servlet and still no dice. I'll have to rip everything out and add

Re: Directories in Tomcat 5.5\temp

2008-04-23 Thread hezjing
You may read more about the log4j error at http://marc.info/?l=log4j-userm=120897082320333w=2 So, that seems to be a normal behaviour in Tomcat. Maybe we should conclude that this is an expected side-effect of using antiResourceLocking? :-) On 4/23/08, Caldarale, Charles R [EMAIL PROTECTED]

Extending DefaultServlet, broken welcome-file

2008-04-23 Thread Fred Toth
Hi all, I'm lost in the woods. Some time ago we built an application that required us to extend the TC 5.5 DefaultServlet. All we did was point it to an external path (outside the war file). It works great. However, I now realize that I've somehow broken the welcome-file mechanism for our