Re: Communicating between webapps

2008-10-08 Thread André Warnier
Mikolaj Rydzewski wrote: Leon Rosenberg wrote: You need additional lib (commons httpclient), you need special servlet/action/jsp on B-side, you probably need to start threads, you need to monitor those on A side, and and and... One can use HttpURLConnection. There're probably some

Re: Communicating between webapps

2008-10-09 Thread André Warnier
Hi. This is not my thread, so if anyone thinks I'm pushing the envelope a bit, tell me and I'll start another one. I am interested in this same issue, but in a broader sense : how to share some data, in general, between collaborating webapps within the same container. My case goes somewhat

Re: Communicating between webapps

2008-10-09 Thread André Warnier
Leon Rosenberg wrote: [...] It could look like following: [...] (200 lines of code snipped) Just a question : what do you answer when people ask for *really* detailed specifications ? :-) Many thanks. I'll need some time to digest that.

Re: Communicating between webapps

2008-10-09 Thread André Warnier
Leon Rosenberg wrote: On Thu, Oct 9, 2008 at 9:59 AM, André Warnier [EMAIL PROTECTED] wrote: I realise that this can be done via e.g. an external DB. It could also probably be done, most portably, by creating an entirely separate application accessed via HTTP calls e.g. (à la Amazon DB

Re: [OT] Communicating between webapps

2008-10-10 Thread André Warnier
Thanks to all for the answers, and an interesting thread. As just an occasional dabbler into this, I must say that the more I dig into Java, the more I get the impression that this is a language that needs lifetime dedication in order to fully understand the beauties of it. I am starting to

Re: setHeader after DoFilter delegation in filter?

2008-10-10 Thread André Warnier
slioch wrote: [...] I'll risk an explanation here.. I think maybe the issue is a misunderstanding of how a servlet filter works. It took me a while too, but I think I've got it in the end. Sorry if this is level 101, that's my own level. What was confusing to me at first, is that this is

Re: Problem in finding APP-BASE (IIS--- Worker Tomcat A----Tomcat B---- Further config help

2008-10-10 Thread André Warnier
Thangavel Sankaranarayanan wrote: Hi , I have a problem in finding the webapps and my application where it is deployed My application URL is http://virtualdir.cca.com.in/via/jsp/Index.jsp That's not a real URL, so why do you mention it ? WebServer is :Microsoft IIS Web Container: Apache

Re: setHeader after DoFilter delegation in filter?

2008-10-10 Thread André Warnier
(and this is after my filter delegates the doFilter() call to the other filters). Mike Pid-2 wrote: André Warnier wrote: slioch wrote: [...] I'll risk an explanation here.. I think maybe the issue is a misunderstanding of how a servlet filter works. It took me a while too, but I think I've got

Re: Tomcat and apache and jk_mod HowTo

2008-10-10 Thread André Warnier
Tim Potter wrote: the way you have it configured.. test.jsp would only render if implemented = in the 'ROOT' webapp of TC I would suggest implementing a test webapp where the exact physical location of test.jsp would be $CATALINA_HOME/webapps/test/test.jsp Regards/ Martin Ok, that works

Re: setHeader after DoFilter delegation in filter?

2008-10-11 Thread André Warnier
: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: setHeader after DoFilter delegation in filter? To create output for the client, the application calls something, right? (I mean a method of HttpRequest). Not quite - you're confusing request with response. There are methods

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-11 Thread André Warnier
Caldarale, Charles R wrote: From: IceManPat [mailto:[EMAIL PROTECTED] Subject: Re: Why can NOT run Tomcat on my Laptop C:\set JAVA_HOME =D:\Program Files\Java\jdk1.6.0_07 The problem is you have a space before the equals sign; that makes the environment variable JAVA_HOME (note the trailing

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-13 Thread André Warnier
David Smith wrote: Caldarale, Charles R wrote: ... for that Microsoft should be awarded the opposite of the Nobel peace prize. - Chuck That would be the Darwin award :-) --David Now, call me thick, but that one I don't get.

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-13 Thread André Warnier
David Smith wrote: André Warnier wrote: David Smith wrote: Caldarale, Charles R wrote: ... for that Microsoft should be awarded the opposite of the Nobel peace prize. - Chuck That would be the Darwin award :-) --David Now, call me thick, but that one I don't get. Google

Re: polish dialectic signs lturn into #

2008-10-13 Thread André Warnier
Mark Thomas wrote: Raghu wrote: I have developed JSP Struts Polish Application in UTF-8 encoding. Application interacts with SAP for polish data .I am able to insert the data into SAP from jsp application running on tomcat. Application which is working on windows version of polish

Re: server.xml configuration

2008-10-14 Thread André Warnier
Caldarale, Charles R wrote: From: gjj391 [mailto:[EMAIL PROTECTED] [...] I am using mod_jk to bypass apache and have tomcat serve everything. Then why bother with httpd at all? Hey ! I patented that line. - To start a

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-14 Thread André Warnier
André Warnier wrote: Pid wrote: David Smith wrote: André Warnier wrote: David Smith wrote: Caldarale, Charles R wrote: ... for that Microsoft should be awarded the opposite of the Nobel peace prize. - Chuck That would be the Darwin award :-) --David Now, call me thick

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-14 Thread André Warnier
Pid wrote: David Smith wrote: André Warnier wrote: David Smith wrote: Caldarale, Charles R wrote: ... for that Microsoft should be awarded the opposite of the Nobel peace prize. - Chuck That would be the Darwin award :-) --David Now, call me thick, but that one I don't get

Re: Tomcat5 - Error : catalina.bat startup script is missing

2008-10-15 Thread André Warnier
In your Tomcat\bin directory, is there a (small) file called tomcat5.exe , and another called tomcat5w.exe ? If yes, then this will explain what is currently going on : http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html (Note : it is also linked to what you will find here :

Appeal to Tomcat developers

2008-10-16 Thread André Warnier
Dear Tomcat developers, this is a humble appeal. I know I have in the past been over the top on this subject, and for that I apologise. The appeal is about Tomcat logging. I will venture a few risky bets : 1) for every Tomcat used in a development context, there are 100 used in a production

Re: Appeal to Tomcat developers

2008-10-16 Thread André Warnier
Leon Rosenberg wrote: [...] I am sorry, but do you always log to system.out in your applications? Maybe you should take a look at some of numerous logging projects, starting with log4j as the most prominent. http://logging.apache.org/log4j/1.2/index.html With utmost respect, Leon, but this

Re: Appeal to Tomcat developers

2008-10-16 Thread André Warnier
Mark H. Wood wrote: [...] good stuff I think that's what is being asked: there should be *one page* that begins with *everything you need to know* in order to say, put the log file there. Just that. After that, it's appropriate to point out that much more subtle arrangements are available,

Re: Controlling the order of classloading.

2008-10-16 Thread André Warnier
Mark Thomas wrote: Vinay Binny wrote: Hi all, I have a situation where I need to control the order in which the webapp jar files(in lib folder) are loaded by Tomcat. Is there anyway to acheive this? Sorry, no. You simply don't have that much control over the classloader in a servlet

Re: I/O exception

2008-10-16 Thread André Warnier
Frank Uccello wrote: I have Windows 2003 SP2, tom cat 5.5 , jave 1.5 box and I get the tomcat error of INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect Ok, I'll pick that one up, that's obviously in my league ;-) Frank, thanks for

Re: Appeal to Tomcat developers

2008-10-16 Thread André Warnier
Christofer, Mark and others, I have read, collected, and will re-read, the answers I got this time. I appreciate them, because they are informative, and you took the time and pain to answer this in a way I can (at least in part) understand. Other people, in various ways, made the point better

Re: about tomcat default error page

2008-10-17 Thread André Warnier
Hi 李征, I don't know the answer to your question, but here is a recommendation : To avoid delays in answering your question, it is always helpful to specify : - on which platform this happens (Windows, Unix, Linux,..) - what version of Apache - what version of Tomcat - what connector you use

Re: JAVA_HOME is not found but tomcat is running. possible?

2008-10-17 Thread André Warnier
Thangavel Sankaranarayanan wrote: Hi all , I have a tomcat 4.x version (Perhaps it is a old version ,it is in production and we cant upgrade as of now). It is running as a window service in Windows2000 server. in the service icon i can find the path to executable: C:\Products\Apache Tomcat

Re: Where to look for connection refused errors in Tomcat6.0.18 ?

2008-10-18 Thread André Warnier
[EMAIL PROTECTED] wrote: Thanks Peter for your answer . you said : You *can never* see these errors in Tomcat, because Tomcat is never aware that the connection was received. The operating system's TCP/IP stack has received the incoming SYN, tried to queue the connection request on Tomcat's

I18N, HTTP 2.0 ?

2008-10-18 Thread André Warnier
Hi. I am sending this to both the Apache httpd and Tomcat users lists, in the hope that because together these HTTP servers cover a good fraction of the market, there might be a chance to reach the righ people. My hope is that someone who is aware of, and connected to, the process of RFC

Re: Increase accepted HTTP Header

2008-10-19 Thread André Warnier
Alexander Diedler wrote: Hello, By default there are a limit for http Header, that will be accepted by Tomcat. But we have the configuration with a IIS Connector installed and this connector seems to truncate the HTTP Header after 2KB. In the server.xml we can increase this limit, but it

Re: Increase accepted HTTP Header

2008-10-19 Thread André Warnier
André Warnier wrote: Alexander Diedler wrote: Hello, By default there are a limit for http Header, that will be accepted by Tomcat. But we have the configuration with a IIS Connector installed and this connector seems to truncate the HTTP Header after 2KB. In the server.xml we can increase

Re: [EMAIL PROTECTED] I18N, HTTP 2.0 ?

2008-10-19 Thread André Warnier
William, Nick, William A. Rowe, Jr. wrote: [...] The reason your search was futile is that you want to focus on searching internet-draft where there are proposals in this sphere. Also watch the dependencies of the http draft, many of those have also evolved and are beginning to solve the utf8

Re: environment variable

2008-10-20 Thread André Warnier
Melanie Pfefer wrote: Hello I got this error in tomcat: Cannot run program htmldoc: error=2, No such file or directory Is it a good practice to include this command in PATH and put the variable PATH in startup.sh script? I am usin tomcat 6 with solaris 10 Hi Melanie. The htmldoc program

Re: Change logs directory on Tomcat 5.5.26

2008-10-20 Thread André Warnier
Philippe Couas wrote: Hi, I want change logs directory on Tomcat 5.5.26 ? I have tried without succes following command ? Where is my mistake Regards Philippe Context path=/test docBase=test debug=0 reloadable=true crossCont ext=true allowLinking=true caseSensitive=false Logger

Re: environment variable

2008-10-20 Thread André Warnier
Mårten Svantesson wrote: Melanie Pfefer skrev: Hi Andre, yes I put this executable file under bin/ directory. I did not come with tomcat. I am using the command in a java code. tomcat gives this error in catalina.out java.io.IOException: Cannot run program htmldoc: error=2, No such file or

Re: catalina.out rotation

2008-10-21 Thread André Warnier
emerson cargnin wrote: Hi again... Has anyone here used Logadm to implement rotation on the catalina.out? http://www.softpanorama.org/Logs/log_rotation_in_solaris.shtml I know i can rotate a log file configure via log4j, but that is useless if catalina.out continues receiving everything.

Re: Announce: PrincipalAuthenticator 1.0 (for NTLM Authorization behind IIS)

2008-10-21 Thread André Warnier
Louis wrote: [...] PrincipalAuthenticator is an implementation of a Tomcat Authenticator that allows transparent authorization to happen for corporate Windows users. [...] The JKConnector provides Tomcat the ability to sit behind an instance of IIS and have requests passed to it for java

Re: tomcat 6.0 support

2008-10-23 Thread André Warnier
rajesh202023 wrote: Hi All, Can anyone please tell me whether Tomcat 6.0 is supported on the following platforms or not? a. Windows 2003, 2008 32 bit x86 b. Windows 2003, 2008 64 bit x64 c. Solaris 10 SPARC d. HP-UX 11.31 IPF e. RHEL 5, SLES 10 x64 I am not the best qualified to answer

Re: How to serve two docBases under the same context path

2008-10-23 Thread André Warnier
nlif wrote: [...] I will not, like some others (;-)), presume to guess why you want to do this. But I will presume that you have a clear way to distinguish what are links to static content from what are links to dynamic content (e.g. static ends in .html,.jpg,.css etc.. while dynamic ends in

Re: jsessionid sent in URL is being ignored.

2008-10-25 Thread André Warnier
Vinuth Madinur wrote: Hi, I'm facing this weird situation. I've a URL which is like this:

Re: Apache mod_jk and Tomcat not working correctly

2008-10-26 Thread André Warnier
I think your Alias at the beginning has more priority than your JkMount later. Not that the order in the config file matters, that's not what I mean. What I mean is : Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/ also covers URLs like /dwr-examples/dwr, and so it is Apache trying to

Re: Apache mod_jk and Tomcat not working correctly

2008-10-26 Thread André Warnier
It's maybe your own fault if you get lost : do not post new messages with the subject of another thread. It is confusing to everyone, not just to you. Re: Tomcat Server .pac Script configuration for outgoing connection. Wayne Bragg wrote: I guess you lost me with if you want a working

Re: Apache mod_jk and Tomcat not working correctly

2008-10-27 Thread André Warnier
to the JkMount /dwr-examples/*.jsp ajp13worker1 Forgive me for being so dense but this is new to me! - Original Message - From: André Warnier [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 26, 2008 6:36 PM Subject: Re: Apache mod_jk and Tomcat not working

Re: Downloading issues in IE via https

2008-10-27 Thread André Warnier
Nar Karapetyan wrote: Hello, the issue I encounter might not directly be related with Tomcat. However if anyone hase a clue of how can I overcome that, I'd like to learn it. The thing is that when I connect to my web page via https, IE7 hints a message that the certificate is not error

Re:

2008-10-27 Thread André Warnier
Hisham Farahat wrote: Dear All, I have a problem with my web application. I configured tomcat 6.0 to authenticate users through Realm ( LDAP), it connects to an active directory server. Everything seems OK, but sometimes the connection could not be established ( Connection refused ) and it

Re:

2008-10-27 Thread André Warnier
Hisham Farahat wrote: [...] Maybe also the next time, you could put a real subject line in your mails to the list ? It may help others figuring out what you want. ;-) - To start a new topic, e-mail: users@tomcat.apache.org To

Re: Tomcat 5.5 and x64 Windows

2008-11-03 Thread André Warnier
Hi guys. Sorry to talk out of turn maybe, but if you do not know this already, two bits of information : - tomcat5/6.exe and tomcat5/6w.exe are but renamed versions of what you find in Apache Commons Daemon (prunsrv and ...). Somewhere around there may lurk 64-bit versions of these programs.

Re: absolute url only working - urget hel p needed

2008-11-07 Thread André Warnier
Rainer Jung wrote: Srinivas Jonnalagadda schrieb: I need urget help configuring Apache HTTP Server 2.0.63, Tomact 5.5.9 and mod_jk1.2.26. Now i am inable to access with relative url and unless i give absolut servre name with port. For Example:

Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier
I believe that this only a problem of documentation. If you followed the on-line instructions (tomcat.apache.org, 6.0, documentation, download etc..), you probably downloaded and installed the Windows Service version. That version works a bit differently from the usual version under

Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap I believe that this only a problem of documentation. Nope. I think maybe yep still. I believe it is really not clear what you get

Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap I think maybe yep still. I'm not saying the doc is perfect (far from it), but the OP downloaded the source, not the binary. I

Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap why are there two versions for Windows, and what would be the best usage of the one or the other version ? Now that's a good question

Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap

2008-11-10 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr,ap Not everyone who drives a car is, or wants to be, a mechanic. It only very seldom helps. True; but if you're at the point where

Re: tomcat 5.5 memory

2008-11-11 Thread André Warnier
Alberto Jesus La Rosa Agramonte wrote: The hardware only, the software is 32 bits, and the jvm too. The problem that it's spawning too many processes. Alberto, what a couple of other people on this list have already tried to tell you - without apparently triggering any reaction from you - is

Tomcat threads

2008-11-11 Thread André Warnier
Hi. Only for my own intellectual advancement in matters Tomcat : On this page : http://tomcat.apache.org/tomcat-6.0-doc/config/http.html , referring to the third paragraph of the Introduction. This paragraph explains that Tomcat will start additional threads as required to process incoming

Re: Tomcat threads

2008-11-12 Thread André Warnier
Filip Hanik .. and many others - Dev Lists wrote: [...] Thanks for all the answers, very enlightening. In summary thus : - Tomcat (or rather I suppose the Connector) will create new threads as needed to service simultaneous requests, up to the number given in the Connector's maxThreads

Re: Tomcat threads, II

2008-11-12 Thread André Warnier
David kerber wrote: Pid wrote: ... Having said that, parsing XML can be a memory intensive operation as well, so your old box could be experiencing problems there - check the garbage collection log. p I try to avoid XML for this exact reason. We found that our application could handle

Re: Tomcat threads

2008-11-12 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: - The memory usage one sees with top under some versions of Linux for each one of these threads is not really cumulative, because most of it is actually shared between the threads. The total

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread André Warnier
Markus Reis wrote: Our Tomcat 5.5 sends 30 cookie (cookie=JSESSIONID=2D79FB71207A83A09B32677B9640693E.jbprod; domain=null; path=/) Are they all identical? No. They are ALL different (and they also differ from response to response) and 900 Set-Cookie

Re: multiple Set-Cookie headers in initial http response

2008-11-12 Thread André Warnier
Markus Reis wrote: [...] Further I found out that this happens only with an initial POST request - if I do the same via GET only one Set-Cookie header is returned (I wrote before that I was not able to reproduce those 900 Set-Cookie headers on my PC, but that was due to the fact that I sent

Tomcat threads, II

2008-11-12 Thread André Warnier
Hi again. Now that I have (with your help) established some basic facts, I have a practical case for analysis. Before I get into details (because this is quite long), I'd like to explain the reason why I'm asking this. We have been testing a Tomcat application from a vendor. It works very

Re: Tomcat threads, II

2008-11-12 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Tomcat threads, II -Djava.security.manager Enabling the security manager slows things down; do you really need it? Not as far as I know. It was only the default setting on that system, from the (non

Re: log POST data

2008-11-12 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, Markus Reis wrote: Pardon me for butting in where I'm obviously outclassed, consider this as a genuine question : Would what Markus wants to do not be easier to do with a servlet filter ? It would also be a

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread André Warnier
Adam Gordon wrote: We're running two Tomcat (5.5.16) instances in a load-balanced capacity behind an Apache server (2.0.55 w/ mod j/k 1.2.14). We'd like to set up some sort of monitoring that would allow us to not just check to see if the Tomcat Java processes are still running (that's easy)

Re: Tomcat threads

2008-11-12 Thread André Warnier
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat threads PermGen seems like an odd item to share... though I guess all those java.lang.Package, java.lang.Class, java.lang.Method, etc. objects can really beat a system down. The sharing is not

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread André Warnier
to http://tomcat2:8081/imtheretoo.html /Location Seemed pretty clever to me, as a quick solution. ;-) Maybe due to my lack of knowledge, but I don't really see where the overkill would be. --adam André Warnier wrote: Adam Gordon wrote: We're running two Tomcat (5.5.16) instances in a load

Re: Tomcat threads, II

2008-11-12 Thread André Warnier
Chris, Chuck and others, many thanks for taking the time to educate me (on both Tomcat threads threads). I got lots of information and tips, which will be useful now or later. I'll now go sift through them again. At least now I have an idea where to start. About the fact that my hardware

Re: Get Security subject from Tomcat

2008-11-12 Thread André Warnier
Arash Bizhan zadeh wrote: On Wed, Nov 12, 2008 at 4:06 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Arash Bizhan zadeh [mailto:[EMAIL PROTECTED] Subject: Get Security subject from Tomcat Is there is was I can get the authenticated User from inside my servlet/filter? Perhaps

Re: log POST data

2008-11-12 Thread André Warnier
Christopher Schultz wrote: [...] Honestly, an app-server-agnostic Filter that performs the same function would be a really useful thing to write. Care to try your hand at writing it? ;) Honestly too, I don't think I'm capable of doing that yet. As part of a filter I did write, I put some

Re: multiple Set-Cookie headers in initial http response

2008-11-13 Thread André Warnier
Markus Reis wrote: [...] There are however three new observation results: (1) This also happens with GET requests (Previously I tested GET requests only with an empty query string - sorry for that) Well, if you keep on changing the conditions, we'll never get out of this ;-) I have now

Re: log POST data

2008-11-13 Thread André Warnier
Christopher Schultz wrote: The only legal ways I know of are to call getReader and getInputStream. Those are easily handled as I've laid out in previous posts. Can you point me to one of these posts ? Because at the moment, I don't see this so easily. Mmm.. I assume we can be talking about a

Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-13 Thread André Warnier
Not to interfere with Dave, but just as another halfway idea : You could define 2 other workers in the Jk config, which are not load-balanced, each going to one Tomcat. You would still not be testing the exact same path as the clients, but would be checking Apache, mod_jk itself and the

Re: AW: Different session timeout for local and external users

2008-11-14 Thread André Warnier
Mikolaj Rydzewski wrote: Ehlers, Kolja wrote: Thanks for the speedy answer to my question. Is this the only possibility? Since the filter will be called for each request, maybe this will slow down my web application Maybe. But not likely. Search the web for 'premature optimization' ;-)

Re: Tomcatx.x and vista

2008-11-17 Thread André Warnier
Caldarale, Charles R wrote: From: Chuck Hodge [mailto:[EMAIL PROTECTED] Subject: Re: Tomcatx.x and vista Have not made any changes to server.xml. Tomcat normally listens to HTTP requests on port 8080, and AJP requests (from IIS or httpd) on port 8009. If you have IIS configured to listen on

HttpServletRequest.getUserPrincipal

2008-11-17 Thread André Warnier
Hi. More of a general curiosity question : To get the authenticated user-id from within a filter or a servlet, one calls HttpServletRequest.getUserPrincipal.getName() e.g. But where and more mysteriously how, does this Principal get set ? I cannot find any setUserPrincipal() anywhere.

Re: Tomcatx.x and vista

2008-11-17 Thread André Warnier
in Apache and Tomcat, and all the other webservers out there. :-) Serge Fonville wrote: Use http://support.microsoft.com/kb/294807 http://support.microsoft.com/kb/294807 to disable these great pages ;-) Regards, Serge Fonville On Mon, Nov 17, 2008 at 3:54 PM, André Warnier [EMAIL PROTECTED

Re: HttpServletRequest.getUserPrincipal

2008-11-17 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: HttpServletRequest.getUserPrincipal To get the authenticated user-id from within a filter or a servlet, one calls HttpServletRequest.getUserPrincipal.getName() or HttpServletRequest.getRemoteUser

Re: HttpServletRequest.getUserPrincipal

2008-11-18 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: HttpServletRequest.getUserPrincipal Sorry for not answering sooner you are forgiven - it's easier to do the source searching at home. is getRemoteUser() merely a shortcut, under which happens

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-18 Thread André Warnier
Krapacs Ambrose wrote: I have tried many different configurations and I have been unable to get my Servlets / JSP to connect to MySQL server running. I am trying to get this set up on my main server which is running Ubuntu 8.10 Server with MySQL 5 and Tomcat6. I also tried setting up a Ubuntu

Re: How to access JSP and Servlet remotely ?

2008-11-18 Thread André Warnier
deathgod86 wrote: I have installed Tomcat 6 in my personal computer (Win XP). However, I want this computer to act as server and I am accessing the JSP and Servlet placed on this computer remotely (access JSP and Servlet from another computer). Remote computer connect to this Tomcat computer

Re: How to access JSP and Servlet remotely ?

2008-11-18 Thread André Warnier
deathgod86 wrote: The error is: Connection timeout. Or do i need to do some configuration on the xml in conf folder ? Or i need to install tomcat connector ? No, nothing like that. If your Tomcat access works when you do it from the same computer where Tomcat is running, but does not work

JVM/Tomcat startup parameters, HPUX

2008-11-19 Thread André Warnier
Hi. On a customer HPUX B.11.11 system that we are (remotely and partially) managing, I would like to know with which java options (default or otherwise) the JVM is being started, particularly the options regarding memory usage by the JVM and Tomcat. Tomcat runs as follows (ps -ex output) :

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-19 Thread André Warnier
Ambrose Krapacs wrote: [...] I have tried using telnet to connect to port 3306 and it does appear that the server is listening because it refuses the telnet connection. Well, that would tend to indicate exactly the opposite : either MySQL is *not* listening on that port, or something is

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-20 Thread André Warnier
Krapacs Ambrose wrote: Well I thought that I had tried turning off the security manager but I couldn't remember how I did it. I tried again by modifying /etc/init.d/tomcat and set TOMCAT_SECURITY to no. I executed the JSP again and EVERY TEST SUCCESSFULLY CONNECTED! Wow, finally! So now I

Re: How to prevent Tomcat redirect my request

2008-11-20 Thread André Warnier
Mikolaj Rydzewski wrote: jim ma wrote: I still want to know if it is possible to stop Tomcat from redirecting. If yes, that will be zero code effort for our current implementation. Why is it a problem for you to use http://localhost:8080/foo/ URL? I agree with the above, but in case it

Re: Is it possible to hide tomcat resource from outside?

2008-11-20 Thread André Warnier
espinchi wrote: Christopher Schultz-2 wrote: Is it possible to hide an url pattern on the outside, but have it available when accessing from the server machine? There are ways to do this, but the best way depends on what you want to actually happen when someone requests a URL from /admin.

Re: Servlets / JSP can't connect to MySQL in Ubuntu Server

2008-11-20 Thread André Warnier
Krapacs Ambrose wrote: [...] I have to say that I do not think Tomcat is doing the right thing in this particular situation. There should be some sort of security exception being thrown indicating that the socket connection was being block by tomcat's security manager. Indeed. I was a bit

Re: tomcat virtual host

2008-11-20 Thread André Warnier
Can you be a bit more specific about the problem ? it does not work does not help much. [EMAIL PROTECTED] wrote: Hi, I deployed my webapp svn.war on webapps directory of tomcat 6. I configured localy a virtual host with tomcat 6, but it does not work. This url works :

Re: How to prevent Tomcat redirect my request

2008-11-20 Thread André Warnier
jim ma wrote: On Thu, Nov 20, 2008 at 6:48 PM, André Warnier [EMAIL PROTECTED] wrote: Mikolaj Rydzewski wrote: jim ma wrote: I still want to know if it is possible to stop Tomcat from redirecting. If yes, that will be zero code effort for our current implementation. Why is it a problem

Re: tomcat virtual host

2008-11-20 Thread André Warnier
Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat virtual host status, or does something else happen? Is the DNS name mysvn defined on the machine your browser is running on? Internet Explorer could not display this web page i test this in

Re: How to prevent Tomcat redirect my request

2008-11-21 Thread André Warnier
jim ma wrote: On Thu, Nov 20, 2008 at 10:24 PM, André Warnier [EMAIL PROTECTED] wrote: jim ma wrote: On Thu, Nov 20, 2008 at 6:48 PM, André Warnier [EMAIL PROTECTED] wrote: Mikolaj Rydzewski wrote: jim ma wrote: I still want to know if it is possible to stop Tomcat from redirecting

Re: Tomcat threads, II

2008-11-21 Thread André Warnier
Hi. To implement a recommendation from someone on this list, I took a few snapshots using jmap -heap pid while Tomcat was starting up and also starting up a webapp. I just ran the jmap command several times at about 5 second intervals, and redirected the output to a file. Below if the file

Re: How to prevent Tomcat redirect my request

2008-11-21 Thread André Warnier
jim ma wrote: Tell your clients to generate URLs like: http://host/your_servlet?url=url_to_fetch In other words you should implemet proxy that will handle redirects itself. Finally, your clients will not see any 302 redirects. I like this idea. It is greatly helpful , I think it works for

Re: Connectors and apache with mpm worker

2008-11-21 Thread André Warnier
Martin Spinassi wrote: Hi everyone! I'm doing some performance tests under apache and tomcat using jakarta connectors. Searching around, I've read about apache-worker (not jakarta), to make it multi-process and multi-thread, but I'm having some troubles with connectors now. Here is the

Where does it find them ?

2008-11-21 Thread André Warnier
Hi. At a customer runs a Tomcat 5.5.9, on Java 1.5, under HPUX 11.11. It was installed from a standard HPUX package, which install in /opt/hpws/tomcat, but otherwise looks pretty much like a plain vanilla Tomcat5.x from the official site. The package comes with a series of sample webapps,

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-21 Thread André Warnier
You should post your entire filter next time, if only so André can see it ;) Yes, I'll resubmit it to your scrutiny when it's ready ... I already saw it, copied it, saved it, studied it and sold it to a customer. Now you guys are telling me it's not working ? :-) I did put Michael's name

Re: Where does it find them ?

2008-11-21 Thread André Warnier
Martin Gainty wrote: Hi Andre did you try to clean all folders below $TOMCAT_HOME/work, make sure the wars are not located in webapps (and recycle TC) ? Martin, Chuck, No, I did not do that, because I did not know I had to, and since this is a customer's Tomcat and not mine, I didn't want

Re: User Request Ordering

2008-11-24 Thread André Warnier
Clifton B. Sothoron Jr. wrote: I have a Tomcat 6.0 Web application with a number of buttons on the screen. Some of them execute quickly, some more slowly. However, they need to execute in order. When a user clicks on a slow button and then clicks on a fast button Tomcat needs to wait for the

Monitoring Tomcat with Jconsole

2008-11-24 Thread André Warnier
Hi. I lied in the subject. This is not strictly a question about Tomcat monitoring, although the ultimate aim is to monitor a specific Tomcat application. But I'm trying to start small first, and I'm encountering a problem with Jconsole, for which this is my first-ever try. I have a java

Re: Monitoring Tomcat with Jconsole

2008-11-24 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Monitoring Tomcat with Jconsole ./java -Dcom.sun.management.jmxremote.port=11200 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=/mydir/ management.jmxremote.password

Re: Setup Logging for Tomcat 6

2008-11-24 Thread André Warnier
dOE wrote: Its running on win32, JVM is 1.6 installed via js-wrapper. I don't know that js-wrapper, but if this is under Windows, might not the logs be all redirected in the Windows system logs ? My computer icon, right-click, Manage, then the first folder under System. (Can't tell you

<    1   2   3   4   5   6   7   8   9   10   >