Re: I keep getting prompted for Basic Authentication
Richard, all sounds very strange, I think post your config data... It sounds like its not authenticating, and that somehow the error page is mapped to the servlet... something like that. - Original Message - From: Richard Sayre [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, July 20, 2007 12:26 AM Subject: I keep getting prompted for Basic Authentication I have a 2 separate tomcat server with about 20 webapps set up. I recently added a new webapp, this webapp has all the same web.xml and server.xml setting as the rest of the applications. On the second server, when I log into the new webapp and start navigating I get prompted for my user name and password every time a go to a new page. If I don't enter the user and pass, the page still loads. I can cancel the password dialog and the page will load normally. The app is using basic auth and authenticating off a database. This same environment on the first server is not having the problem. I also noticed this only happens in internet explorer, Firefox works normally. Are there any settings that I might have set that would be causing this? I checked my settings on both servers and I can't notice any difference. Thank you, Rich - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I keep getting prompted for Basic Authentication
Just out of my mind, i remember a case here where Internet Explorer was keeping a copy of session cookie that was in contradiction with the ;JESSSIONID part of URL. For some reason it had kept alive a session cookie after exit and tried to reuse it. The effect was strange behaviour of session, as it was like session was constantly switched between session1 and session2. Solution was to completly clean cookies on IE client and restart it. Could you check the list of cookies in IE when this happens? En l'instant précis du 20/07/07 09:38, Johnny Kewl s'exprimait en ces termes: Richard, all sounds very strange, I think post your config data... It sounds like its not authenticating, and that somehow the error page is mapped to the servlet... something like that. - Original Message - From: Richard Sayre [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, July 20, 2007 12:26 AM Subject: I keep getting prompted for Basic Authentication I have a 2 separate tomcat server with about 20 webapps set up. I recently added a new webapp, this webapp has all the same web.xml and server.xml setting as the rest of the applications. On the second server, when I log into the new webapp and start navigating I get prompted for my user name and password every time a go to a new page. If I don't enter the user and pass, the page still loads. I can cancel the password dialog and the page will load normally. The app is using basic auth and authenticating off a database. This same environment on the first server is not having the problem. I also noticed this only happens in internet explorer, Firefox works normally. Are there any settings that I might have set that would be causing this? I checked my settings on both servers and I can't notice any difference. Thank you, Rich - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.noooxml.org/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat cluster and maven2?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; still all along considering switching our application environment to tomcat6, I wonder whether there is a meaningful way of deploying a web application to multiple tomcats / a tomcat cluster using maven2? FarmWarDeployer still seems not working in tomcat6, and aside that I also would enjoy seeing to have this switched off and not regularly polling my server filesystem. Hints, anyone? TIA and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGoHDtcxBAPOA1m6wRAr0tAJoChJaiu98/k3Wl+Ly8uIn8tk+qOwCfaKJ+ t87wdJk/CaI6DE5C2Fyf/RY= =eAfH -END PGP SIGNATURE-
AW: isapi_redirect from IIS5 to tomcat 5.5 brings HTTP 404 - isapi_redirect.dll not found
Hi Bruno, and others! In the end I was successfull. In summaray, I've checked my config (from HOWTO) tripple and more, but nothing. I've transfered my config on a test machine and surprise, it works! But reinstalling the IIS on the original machine was not an option. And in last distress I've switched from configuring isapi_redirect by MS Registry to configure by isapi_redirect.properties file. And with the same settings it works :-) Isapi_redirect Filter is installed only on the virtual web instance and _not_ global. May others find usefull tips in here, too. Huge thanks to Bruno for his ideas. Regards Martin A few other things that just came to my mind: 1- Where I use the registry for the settings, I don't double the backslashes - just use (for instance) D:\Tomcat\logs etc. 2- IMHO, with the latest JKs it's better to clean the registry entries and use the isapi_redirect.properties configuration file, especially if you install it on a single site (http://tomcat.apache.org/connectors-doc/reference/iis.html Using a properties file.. - this might also help debugging.. 3- Try on different computers.. despite the procedure was correct, once I had to remove and add IIS again to get everything to work. -Ursprüngliche Nachricht- Von: myrealbruno [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Juli 2007 12:52 An: Tomcat Users List Betreff: Re: isapi_redirect from IIS5 to tomcat 5.5 brings HTTP 404 - isapi_redirect.dll not found Hi Martin, As far as I can tell everything is ok in your setup - I tried to replicate the error you get without success. You might want to check the IIS logs, the file permissions on the isapi dll, check if the /jakarta alias on IIS has execute permissions, try to set it as a global filter.. what else? And as a last resort use one of the old versions installers and then upgrade the files afterwards - version 1.2.15 had an msi installer for instance: http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/ - this might work. - Original Message - From: Kirst Martin Wolfgang [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, July 16, 2007 8:40 AM Subject: isapi_redirect from IIS5 to tomcat 5.5 brings HTTP 404 - isapi_redirect.dll not found Hi, I'm trying to use IIS v5.00.3700.1000 with Tomcat 5.5.17 using isapi_redirect 1.2.23 and AJP13. But in the end I always see an error page from tomcat: HTTP Status 404 - /jakarta/isapi_redirect.dll ... The requested resource (/jakarta/isapi_redirect.dll) is not available ... Apache Tomcat/5.5.17 . Setup: OS: Windows 2000 SP4. JAVA: v 1.6.0_u1 (jdk from SUN) There are multiple IPs on this mashine for one ethernet card. One IP is mapped to DNS portoweb.portolancs.com (195.127.36.18). There are multiple web sites hosted on this IIS, each mapped configured to one IP. The isapi_redirect.dll is only installed on this single IIS web site under properties - isapi filters, that means _not global_ for all. I was following this howto: http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html I googled around and found others with the same problem, but no solution. I've checked all settings at least twice. There was a hint, the the uri is mapped twice. When reading the redirect-log.txt, it seems to be all fine, mapping is working, AJP is working, but still an error page. Whats wrong with this setup/configs? My configs: Registry: - [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=D:\\Tomcat\\logs\\isapi.log log_level=debug worker_file=D:\\Tomcat\\conf\\workers.properties worker_mount_file=D:\\Tomcat\\conf\\uriworkermap.properties uriworkermap.properties: /portoweb.portolancs.com/*=portoweb workers.properties: --- worker.list = portoweb worker.portoweb.type = ajp13 worker.portoweb.host = 127.0.0.1 worker.portoweb.port = 8009 Best regards Martin - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk issue
If you've got DOS lineendings, then you downloaded the zip instead of the .tar.gz. Please download the tarball and extract it with gtar (gnu tar) to make sure you don't run into problems with long path names. Solaris is one of our major development platforms and build should run just fine. Which compiler do you use, gcc or Suns compiler? Regards, Rainer Sridhar Kommireddy schrieb: Hi All, I am facing problems building mod_jk. If anyone of you have binary for this please share it. (Solaris 10 Sparc) My env details: Using GNU Make 3.81 (This program built for sparc-sun-solaris2.10) OS: SunOS sfodb01 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-480R Steps followed: ./configure.sh --with-apxs=/usr/apache2/bin/apxs -- This is successful (after removing dos special chararctes from .sh files) make -- This gives me compilation errors jk_ajp12_worker.c, line 582: undefined struct/union member: pool jk_ajp12_worker.c, line 582: warning: assignment type mismatch: pointer to char = pointer to int jk_ajp12_worker.c, line 583: warning: invalid white space character in directive jk_ajp12_worker.c, line 585: warning: invalid white space character in directive jk_ajp12_worker.c, line 592: undefined struct/union member: pool jk_ajp12_worker.c, line 598: improper member use: pool jk_ajp12_worker.c, line 610: undefined struct/union member: pool jk_ajp12_worker.c, line 610: warning: assignment type mismatch: pointer to char = pointer to int jk_ajp12_worker.c, line 611: improper member use: pool jk_ajp12_worker.c, line 611: warning: assignment type mismatch: pointer to char = pointer to int jk_ajp12_worker.c, line 661: cannot recover from previous errors cc: acomp failed for jk_ajp12_worker.c make[1]: *** [jk_ajp12_worker.lo] Error 1 make[1]: Leaving directory `/chroot/sridhar/tomcat-connectors-1.2.23-src /native/common' make: *** [all-recursive] Error 1 Thanks, Sridhar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bad workers.properties configuration
What are your Jk directives for Apache? What exactly gets written to the error log *and* to the mod_jk log? Does localhost resolve to an ip address on your system? Which platform are you using? Regards, Rainer Raffaele Viola schrieb: Hi all, I'm using Apache 2.2.3 and Tomcat 5.5.17 and I want to connect Apache with Tomcat using mod_jk-1.2.21. I write this workers.properties worker.list=default worker.default.port=8009 worker.default.host=localhost worker.default.type=ajp13 worker.default.lbfactor=1 But when I try to start Apache in the error_log I read: bad workers.properties configuration. What's wrong?? Thanks Raffo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: isapi_redirect from IIS5 to tomcat 5.5 brings HTTP 404 - isapi_redirect.dll not found
Thanks for reporting back your findings! Kirst Martin Wolfgang schrieb: Hi Bruno, and others! In the end I was successfull. In summaray, I've checked my config (from HOWTO) tripple and more, but nothing. I've transfered my config on a test machine and surprise, it works! But reinstalling the IIS on the original machine was not an option. And in last distress I've switched from configuring isapi_redirect by MS Registry to configure by isapi_redirect.properties file. And with the same settings it works :-) Isapi_redirect Filter is installed only on the virtual web instance and _not_ global. May others find usefull tips in here, too. Huge thanks to Bruno for his ideas. Regards Martin - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk vs. reverse proxy
Johnny Kewl wrote: Mladen you very modest... your mod_jk is great. LOL. It's not mine, not at all! Mladen, if you retire, elope or die, send me an email, I'll look at mod_proxy ;) Don't worry, there are many other folks actively developing mod_jk like Bill, Henri, Jean-Frederic, Mark, Rainer and many others. Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with uriworkermap.properties
Could you please rerun your tests with log level debug for the redirector and post the result from its log file? Thanks. Eric B. schrieb: Hi, I'm running IIS with tomcat 5.5 and have the latest isapi_redirect.dll (1.2.23) installed and running. The basic functionality is working well, but I am having trouble with getting exclusion rules to work properly. I have the following in uriworkermap.properties: /*=worker !/*.htm=worker !/private/*=worker The following happens: All *.htm files (no matter what path) are served up by IIS and not Tomcat All other files are served by Tomcat All files in /private/* are also served by Tomcat I would have expected that the last exclusion (!/private/*) would mean that the connector would ignore any requests to the /private/ path. Am I doing something wrong? Thanks for any help! And if I am asking in the wrong group / list, please let me know where I should direct my question. Thanks, Eric - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding Text field editor in JSP
Hello are there any text editor built in that assist us in formating input data, like Subscripting, superscripting, making bold, etc. This editor we need to embed in our jsp page. -- Regards Girish S.Havaldar
Re: Regarding Text field editor in JSP
This is more an ajax or client side question. You might want to look at Google Web Toolkit as one possibility. --David Girish Havaldar wrote: Hello are there any text editor built in that assist us in formating input data, like Subscripting, superscripting, making bold, etc. This editor we need to embed in our jsp page. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Regarding Text field editor in JSP
Girish Havaldar wrote: Hello are there any text editor built in that assist us in formating input data, like Subscripting, superscripting, making bold, etc. This editor we need to embed in our jsp page. http://www.fckeditor.net/ is quite good and has java module. p smime.p7s Description: S/MIME Cryptographic Signature
Re: Regarding Text field editor in JSP
Girish Havaldar wrote: Hello are there any text editor built in that assist us in formating input data, like Subscripting, superscripting, making bold, etc. This editor we need to embed in our jsp page. 'openWYSIWYG' and 'tinyMCE' are JavaScript rich text editors embeddable in web pages including JSPs Paul S. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Regarding Text field editor in JSP
Does any of these toolkits allow the server to provide set of CSS files upon request of a page with embedded HTML editor so as the writer composes his/her page, he/she be able to include classes, for instance, from the designated CSS file(s)? On 7/20/07, Paul Singleton [EMAIL PROTECTED] wrote: Girish Havaldar wrote: Hello are there any text editor built in that assist us in formating input data, like Subscripting, superscripting, making bold, etc. This editor we need to embed in our jsp page. 'openWYSIWYG' and 'tinyMCE' are JavaScript rich text editors embeddable in web pages including JSPs Paul S. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Interrupting tomcat threads.
Christopher Schultz-2 wrote: So, multiple simultaneous AJAX requests are considered illegal? Exactly. All requests that modify the session state will be synchronized. Christopher Schultz-2 wrote: I would also recommend vetoing the /second/ request, rather than canceling the first request when a second one comes in. Well, once the requests are synchronized, I'd like to give users an ability to change their mind and not wait until the first request finishes. That is the main justification for interrupting threads. It will allow for a more responsive interaction with the UI. There is an article with a good example of request synchronization: http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html. Hope it's clear now why I'm asking about interrupting threads - vetoing the second request would make the user wait for the first one to complete. -- View this message in context: http://www.nabble.com/Interrupting-tomcat-threads.-tf4113604.html#a11708046 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat cluster and maven2?
Kristian Rink wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; still all along considering switching our application environment to tomcat6, I wonder whether there is a meaningful way of deploying a web application to multiple tomcats / a tomcat cluster using maven2? FarmWarDeployer still seems not working in tomcat6, and aside that I also would enjoy seeing to have this switched off and not regularly polling my server filesystem. best and easiest way, is to use Tomcat's ANT deployer, and simply script your deployments Filip Hints, anyone? TIA and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGoHDtcxBAPOA1m6wRAr0tAJoChJaiu98/k3Wl+Ly8uIn8tk+qOwCfaKJ+ t87wdJk/CaI6DE5C2Fyf/RY= =eAfH -END PGP SIGNATURE- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.10/908 - Release Date: 7/19/2007 6:10 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: iPlanet / SunONE web server tomcat connector connection re-use disabled
Thank for the encouraging feedback. Your config looks OK, maybe you would also like to add a connect_timeout, which works like prepost_timeout but when creating a new backend connection. Regards, Rainer [EMAIL PROTECTED] wrote: Just as a courtesy in case anyone wonders the outcome of this thread: I have tested the latest subversion development iPlanet connector indicated by Rainer (compiled using Sun's compiler but gnu make - also updated to link with Sun's compiler rather than ld as recommended in the man page for the Sun compiler). This latest version with patches including un disabling of connection pooling appears to work quite happily in our test environment. I will roll it out to production when the next stable release is done most likely. Using the stable 1.2.23 release with just the un disabling fixed, compiled in the same way, in production has so far managed to hold it's own without great issue. There are a number of what I believe are spurious log entries regarding tomcat servers being unavailable, and only around 30 odd connections ever seem to get held open at any one time despite having 64 set in my workers.properties (included below - and hopefully not misconfigured - the XX are intentionally to hide IP's). However, so far this doesn't appear to have adversely effected things. As an indicator, the site we run is fairly busy, with only a small subset of content being served by the tomcat servers, but still we get around 7 million hits a day handled by our 3 tomcat servers. worker.list=jknsapiworker worker.host1.port=8009 worker.host1.host=XX.XX.XX.0 worker.host1.type=ajp13 worker.host1.lbfactor=1 worker.host1.socket_keepalive=True worker.host1.socket_timeout=30 worker.host1.prepost_timeout=5000 worker.host1.reply_timeout=18 worker.host1.connection_pool_size=64 worker.host1.connection_pool_timeout=600 worker.host2.port=8009 worker.host2.host=XX.XX.XX.1 worker.host2.reference=worker.host1 worker.host3.port=8009 worker.host3.host=XX.XX.XX.2 worker.host3.reference=worker.host1 worker.jknsapiworker.type=lb worker.jknsapiworker.balance_workers=host1,host2,host3 Dale Roberts Sony Computer Entertainment Europe http://www.scee.com [EMAIL PROTECTED] 09/07/2007 09:55 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: iPlanet / SunONE web server tomcat connector connection re-use disabled Hi Rainer, Many thanks for the feedback. To answer your question on stability, without the connection pooling being un disabled the connector appears stable until placed under load at which point it starts to flag all tomcat instances as down, which they are not. (I don't believe this is a result of over busy back-end tomcat servers though based on some preliminary observations of number of connections, tomcat logs, tomcat server performance etc). Unfortunately I couldn't give you any figures on how much load is required (we have a system under light load and a system under heavy load and nothing to test the middle ground). However, with the connection pooling un disabled it appears to work much better having run for most of the day on our heavy load system without issue before being rolled out for operational reasons not related to stability. To answer your question about ongoing support for the iPlanet / SunONE connector, from an ongoing support point of view I think that's really a matter of how many people use iPlanet and how hard it is to maintain. That said, I for one appreciate the fact there is a connector. The only other option I can see is to configure one of the proxy forwarding modules of iPlanet available for Sun, but I suspect that wouldn't facilitate connection pooling and would thus provide lower performance and I had trouble trying to download it anyway. As to bugzilla and patches, I will do my best (I have signed up for a bugzilla account today so I can open a bug to track this). However I feel I should point out that I'm not a developer. My last proper C experience was a university (and that was C++) over 10 years ago. So I know enough to read some code and was able to find this possible bug but I fear I might do more damage than good if let loose on source code for real. I work at the infrastructure level (more an end use of the connector). So apologies in advance if I don't contribute to further updates and fixes but I will try to provide the specifics of the update I made in suitable format in the bugzilla report when I raise it. Dale Roberts Sony Computer Entertainment Europe http://www.scee.com Rainer Jung [EMAIL PROTECTED] 07/07/2007 13:33 Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: iPlanet / SunONE web server tomcat connector connection re-use disabled Hi Dale, thanks for digging into this. In fact the Netscape/Sun connector is not
Log4J in multiple web applications
Hey, all. I've seen this question posted in various forums before, but the solutions proposed don't work for me, so here goes: I am using Tomcat 6.0.13, and I have two web applications, FooBar1 and FooBar2, and I want to use log4j to spit out log statements to two different files, foobar1.log and foobar2.log. I am told that to do this I put each of their log4j.xml files in WEB-INF/classes and each of their log4j.jar files in WEB-INF/lib, and this is what I've done: FooBar1 --WEB-INF --classes/log4j.xml --lib/log4j-1.2.x.jar FooBar2 --WEB-INF --classes/log4j.xml --lib/log4j-1.2.x.jar I have these two files in Tomcat's webapps directory. Here are the log4j.xml files: FooBar1: ?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; appender name=foobar1 class=org.apache.log4j.RollingFileAppender param name=File value=${catalina.home}/logs/foobar1.log / param name=MaxFileSize value=100MB / layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ISO8601} %-5p %c: %m%n / /layout /appender logger name=com.foo additivity=false level value=debug / appender-ref ref=foobar1 / /logger logger name=com.bar additivity=false level value=debug / appender-ref ref=foobar1 / /logger root priority value=fatal / appender-ref ref=foobar1 / /root /log4j:configuration FooBar2: ?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; appender name=foobar2 class=org.apache.log4j.RollingFileAppender param name=File value=${catalina.home}/logs/foobar2.log / param name=MaxFileSize value=100MB / layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ISO8601} %-5p %c: %m%n / /layout /appender logger name=com.foo additivity=false level value=debug / appender-ref ref=foobar2 / /logger logger name=com.baz additivity=false level value=debug / appender-ref ref=foobar2 / /logger root priority value=fatal / appender-ref ref=foobar2 / /root /log4j:configuration All log statements go to foobar1.log. I have commons-logging-1.0.4.jar in ${catalina.home}/lib, but not any log4j.jar. I don't understand what I should be doing. Please help! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk issue
Thanks a lot Rainer. Now I have downloaded tar.gz source and it is working perfectly fine. Thanks, Sridhar On 7/20/07, Rainer Jung [EMAIL PROTECTED] wrote: If you've got DOS lineendings, then you downloaded the zip instead of the .tar.gz. Please download the tarball and extract it with gtar (gnu tar) to make sure you don't run into problems with long path names. Solaris is one of our major development platforms and build should run just fine. Which compiler do you use, gcc or Suns compiler? Regards, Rainer Sridhar Kommireddy schrieb: Hi All, I am facing problems building mod_jk. If anyone of you have binary for this please share it. (Solaris 10 Sparc) My env details: Using GNU Make 3.81 (This program built for sparc-sun-solaris2.10) OS: SunOS sfodb01 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-480R Steps followed: ./configure.sh --with-apxs=/usr/apache2/bin/apxs -- This is successful (after removing dos special chararctes from .sh files) make -- This gives me compilation errors jk_ajp12_worker.c, line 582: undefined struct/union member: pool jk_ajp12_worker.c, line 582: warning: assignment type mismatch: pointer to char = pointer to int jk_ajp12_worker.c, line 583: warning: invalid white space character in directive jk_ajp12_worker.c, line 585: warning: invalid white space character in directive jk_ajp12_worker.c, line 592: undefined struct/union member: pool jk_ajp12_worker.c, line 598: improper member use: pool jk_ajp12_worker.c, line 610: undefined struct/union member: pool jk_ajp12_worker.c, line 610: warning: assignment type mismatch: pointer to char = pointer to int jk_ajp12_worker.c, line 611: improper member use: pool jk_ajp12_worker.c, line 611: warning: assignment type mismatch: pointer to char = pointer to int jk_ajp12_worker.c, line 661: cannot recover from previous errors cc: acomp failed for jk_ajp12_worker.c make[1]: *** [jk_ajp12_worker.lo] Error 1 make[1]: Leaving directory `/chroot/sridhar/tomcat-connectors-1.2.23-src /native/common' make: *** [all-recursive] Error 1 Thanks, Sridhar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Interrupting tomcat threads.
On Fri Jul 20 15:23:45 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Christopher Schultz-2 wrote: So, multiple simultaneous AJAX requests are considered illegal? Exactly. All requests that modify the session state will be synchronized. Christopher Schultz-2 wrote: I would also recommend vetoing the /second/ request, rather than canceling the first request when a second one comes in. Well, once the requests are synchronized, I'd like to give users an ability to change their mind and not wait until the first request finishes. That is the main justification for interrupting threads. It will allow for a more responsive interaction with the UI. There is an article with a good example of request synchronization: http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html. Hope it's clear now why I'm asking about interrupting threads - vetoing the second request would make the user wait for the first one to complete. The requests aren't synchronized. Only updating the session is synchronized. So, you can make multiple ajax requests to servlets if the browser supports it. Ronald.
Re: bad workers.properties configuration
On 7/19/07, Raffaele Viola [EMAIL PROTECTED] wrote: I write this workers.properties worker.list=default worker.default.port=8009 worker.default.host=localhost worker.default.type=ajp13 worker.default.lbfactor=1 Is that all you have in the worker.properties file ? My worker.properties file has this at the top of it: worker.tomcat_home = /usr/local/tomcat worker.java_home = /usr/local/java ps = / - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bad workers.properties configuration
ommit lbfactor ? On 7/20/07, Joe Riopel [EMAIL PROTECTED] wrote: On 7/19/07, Raffaele Viola [EMAIL PROTECTED] wrote: I write this workers.properties worker.list=default worker.default.port=8009 worker.default.host=localhost worker.default.type=ajp13 worker.default.lbfactor=1 Is that all you have in the worker.properties file ? My worker.properties file has this at the top of it: worker.tomcat_home = /usr/local/tomcat worker.java_home = /usr/local/java ps = / - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bad workers.properties configuration
Dears, Im looking to get the following quote as below, could you please reply it to me asap: Item1 - TOMCAT V5.0 Subscription 3years - 24x7 Item2 - APACHE V2.0 Subscription 3years - 24x7 Payment Conditions: NET 45days Regards Thiago Dantas Procurement Global Procurement 55 11 4197-4592 [EMAIL PROTECTED] http://www.hp.com.br Esta mensagem (incluindo qualquer anexo) e os arquivos nela contidos é confidencial e legalmente protegida, somente podendo ser usada pelo indivíduo ou entidade a quem foi endereçada. Caso você a tenha recebido por engano, deverá devolvê-la ao remetente e, posteriormente, apagá-la, pois, a disseminação, encaminhamento, uso, impressão ou cópia do conteúdo desta mensagem são expressamente proibidos. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly rohibited. -Original Message- From: Titi Wangsa [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 11:56 AM To: Tomcat Users List Subject: Re: bad workers.properties configuration ommit lbfactor ? On 7/20/07, Joe Riopel [EMAIL PROTECTED] wrote: On 7/19/07, Raffaele Viola [EMAIL PROTECTED] wrote: I write this workers.properties worker.list=default worker.default.port=8009 worker.default.host=localhost worker.default.type=ajp13 worker.default.lbfactor=1 Is that all you have in the worker.properties file ? My worker.properties file has this at the top of it: worker.tomcat_home = /usr/local/tomcat worker.java_home = /usr/local/java ps = / - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat slows down in long run
You're exhausting memory and PermGen space try java -jar -Xms256m -Xmx512m -XX:MaxPermSize=512m -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -jar bootstrap.jar M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Len Popp [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, July 19, 2007 7:42 PM Subject: Re: Tomcat slows down in long run This doesn't sound like a Tomcat problem to me. I haven't seen Tomcat slowing down even after running for a couple of weeks. It's most likely caused by something in your application. Is it possible that there is a memory leak in your application? If memory is filling up, garbage collections will become more frequent and eventually the system will fail. -- Len On 7/19/07, Manivannan Palanichamy [EMAIL PROTECTED] wrote: I often wonder about tomcat server slow down problem. Tomcat freezes and becomes zombie in the long run. Anyway, to keep it active all time? -- Manivannan.Palanichamy (@) Oracle.com http://mani.gw.googlepages.com/index.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OracleConnectionPoolDataSource
I'll try to answer all your questions and tell you what state is the page now. 1. I get the same results with oracle.jdbc.pool.OracleConnectionPoolDataSource, oracle.jdbc.OracleDriver and oracle.jdbc.driver.OracleDriver. Currently I'm using oracle.jdbc.OracleDriver. 2. I am importing javax.naming.* which includes javax.naming.Context, import javax.naming.InitialContext and javax.naming.NamingException. I think if I were not importing that, it would NEVER work, so I think this is not the problem. 3. factory attribute is new. I have found it in google and it began to work when I started using it. 4. I use OracleConnectionPoolDataSource because with javax.sql.DataSource it doesn't close correctly close connections from pool and server got to hang up. 5. con variable is of type Connection. I found this in an example in google. May it be of type PooledConnection? If so, can I use pc variable instead of con? 6. I've putted user=test password=test in context but it still doesn't work if I don't put user and password in getPooledConnection. Currently context.xml is this: Context debug=0 reloadable=true Resource name=jdbc/test auth=Container type=oracle.jdbc.pool.OracleConnectionPoolDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory maxActive=5 maxIdle=-1 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@192.168.1.47:1521:GLOBALDB / /Context And code that gets the connection is this: Context initCtx = null; PooledConnection pc = null; Connection con = null; public void init() { if(pc == null) { try { initCtx = new InitialContext(); Context ctx = (Context) initCtx.lookup(java:/comp/env); OracleConnectionPoolDataSource fuenteDatos = (OracleConnectionPoolDataSource) ctx.lookup(/jdbc/ganaderia); pc = fuenteDatos.getPooledConnection(dbUser, dbPassword); } catch(Exception e) { String mensaje = getMessage(e); sc.log(mensaje); } } initConnection(); } void initConnection() { try { con = pc.getConnection(); } catch(Exception e) { sc.log(getMessage(e)); } } public void finishConnection() { try { if(con != null) { con.close(); con = null; } } catch(Exception e) { sc.log(getMessage(e)); con = null; } } public void finish() { try { finishConnection(); if(pc != null) pc.close(); } catch(Exception e) { sc.log(getMessage(e)); } } Currently I can browse the page normally, but when I play stress test, I see only one connection and two users cannot log in at the same time. Seva Popov escribió: Yes, this is Oracle specific. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, July 19, 2007 12:24 PM To: Tomcat Users List Subject: Re: OracleConnectionPoolDataSource -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Seva, Seva Popov wrote: You need to use user=test instead of username=test. This should work in the context.xml file. Is this Oracle-specific? I use 'user=username' in my Resource element and it works perfectly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGn7pZ9CaO5/Lv0PARAtDYAJ994n4wU0MoNpuNiRWm5twz2q6WKACgsXbK npQLX/vREfNQFCo+NTLRRY8= =xKxF -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing an application with different paths
Hi, We have a scenario for High Availability setup (using tomcat 5.5.9); The application 'app' is deployed on two machines (recognized as 'app1' on one machine, and 'app2' in another) to handle failover. We have enabled tomcat cluster to have the session replicated between two instances. MOD_JK connector is used for load balancing. When the application is accessed using the path web_ip_address/app the request is process by either 'app1' or 'app2' instance. The context is defined as 'app1', where as the war file is named as 'app' and the war is placed in tomcat/webapps/'. This leads to application being initialized twice. The context path is required to be /app1, because we need to perform application specific activities (start/stop engines) only on one machine, if required. We tried to move the application to any location other than tomcat/webapps, and included a Context file, tomcat/conf/[engine-name]/[host-name]/app1.xml. This way individual applications are accessible, however the path web_ip_address/app fails with Page cannot be displayed error. Is there a way to access an application deployed in tomcat using two different paths? Thank you in advance for the support. Regards, Kiran Tadepalli. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: Interrupting tomcat threads.
However, even then, you may find that the requests are not as asynchronous as you'd like. If the two HTTP requests underlying the AJAX requests happen to be sent over the same HTTP connection, then the HTTP protocol dictates that the responses must be returned in the same order, i.e. the response for request 2 cannot be returned, until the response for request 1 has been returned. If the two HTTP requests happen to be sent over separate HTTP connections, you will get the desired behavior. While guidelines indicate 1-4 concurrent connections may be used by a client, most browsers will try to minimize the use of separate connections, and pipeline some of the requests. The bottom line is that you may, or may not, get the asynchronous behavior you seek, depending on decisions made within the browser under a given set of circumstances. Please respond to Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org cc: keif [EMAIL PROTECTED] Subject:Re: Interrupting tomcat threads. On Fri Jul 20 15:23:45 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Christopher Schultz-2 wrote: So, multiple simultaneous AJAX requests are considered illegal? Exactly. All requests that modify the session state will be synchronized. Christopher Schultz-2 wrote: I would also recommend vetoing the /second/ request, rather than canceling the first request when a second one comes in. Well, once the requests are synchronized, I'd like to give users an ability to change their mind and not wait until the first request finishes. That is the main justification for interrupting threads. It will allow for a more responsive interaction with the UI. There is an article with a good example of request synchronization: http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html. Hope it's clear now why I'm asking about interrupting threads - vetoing the second request would make the user wait for the first one to complete. The requests aren't synchronized. Only updating the session is synchronized. So, you can make multiple ajax requests to servlets if the browser supports it. Ronald.
Re: Accessing an application with different paths
I've done this by specifying both applications' context paths in the server.xml, along with the appropriate docbase entries. [EMAIL PROTECTED] wrote: Hi, We have a scenario for High Availability setup (using tomcat 5.5.9); The application 'app' is deployed on two machines (recognized as 'app1' on one machine, and 'app2' in another) to handle failover. We have enabled tomcat cluster to have the session replicated between two instances. MOD_JK connector is used for load balancing. When the application is accessed using the path web_ip_address/app the request is process by either 'app1' or 'app2' instance. The context is defined as 'app1', where as the war file is named as 'app' and the war is placed in tomcat/webapps/'. This leads to application being initialized twice. The context path is required to be /app1, because we need to perform application specific activities (start/stop engines) only on one machine, if required. We tried to move the application to any location other than tomcat/webapps, and included a Context file, tomcat/conf/[engine-name]/[host-name]/app1.xml. This way individual applications are accessible, however the path web_ip_address/app fails with Page cannot be displayed error. Is there a way to access an application deployed in tomcat using two different paths? Thank you in advance for the support. Regards, Kiran Tadepalli. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accessing an application with different paths
From: David kerber [mailto:[EMAIL PROTECTED] Subject: Re: Accessing an application with different paths I've done this by specifying both applications' context paths in the server.xml, along with the appropriate docbase entries. Please don't do that - put them in conf/Catalina/[host]/[appname].xml, where they belong. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OracleConnectionPoolDataSource
on this: -Original Message- From: Julio J. Suárez Salinero [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 10:13 AM To: Tomcat Users List Subject: Re: OracleConnectionPoolDataSource 3. factory attribute is new. I have found it in google and it began to work when I started using it. Could it be the factory class in that jar is either not the right one needed or something else could be wrong with it? Maybe you need to redownload the jar containing it? 4. I use OracleConnectionPoolDataSource because with javax.sql.DataSource it doesn't close correctly close connections from pool and server got to hang up. were you explicitly closing each connection and/or prepared statement, or callable statement? I found I had to do the same thing myself or the connections wouldn't close properly. 5. con variable is of type Connection. I found this in an example in google. May it be of type PooledConnection? If so, can I use pc variable instead of con? I was thinking you might not need to establish Connection con, if you're already establishing pooled connection. But if you do, you might need to declare it first. I was thinking, though, that the PooledConnection object would serve as your connection. To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing an application with different paths
But then they both need their own copy of the war, and I never figured out how to get these to work with a name that looked like a sub-directory, so that it was accessed like: http://www.myhost.com:81/wra/customername/Login.jsp It works fine if I only have a one-level context path, but I never got it to work with the two-level version without putting it in server.xml. Dave Caldarale, Charles R wrote: From: David kerber [mailto:[EMAIL PROTECTED] Subject: Re: Accessing an application with different paths I've done this by specifying both applications' context paths in the server.xml, along with the appropriate docbase entries. Please don't do that - put them in conf/Catalina/[host]/[appname].xml, where they belong. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Capturing Tomcat thread dumps from startup.bat (Windows)
Thank you Filip. That seem to work just fine! Can you also tell me how I can capture JAVA thread dumps along with these Tomcat logs? Thank you Jayson -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 11:46 AM To: Tomcat Users List Subject: Re: Capturing Tomcat thread dumps from startup.bat (Windows) catalina.bat run dump.log then do a Ctrl+Break for the dump another way is to use a service wrapper that lets you do dumps, http://people.apache.org/~fhanik/wrapper.html Filip Jayson Enriquez wrote: I am unable to copy Tomcat thread dumops when launching it from Startup.bat from a command window. At the end of the day I do a select all and copy but it only captures part of the thread dump. Is/Are their other ways to capture thread dumps from a command (DOS) window? Buffers are set to 999 I do need a full day of activity. I've also tried Option 1: Start command window and 'cd' to 'C:\...Tomcat\bin' folder where 'startup.bat' file resides and enter startup.bat tomcat.log This creates tomcat.log file in the same folder as startup.bat. I have attached the file which got generated now. The log gets updated with first 4 lines and that's all. Option 2: In the start-run type C:\Apache\Tomcat\bin\startup.bat tomcat.log and the log is generated with same output. The log gets updated with first 4 lines and that's all. Thank you No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.6/902 - Release Date: 7/15/2007 2:21 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accessing an application with different paths
From: David kerber [mailto:[EMAIL PROTECTED] Subject: Re: Accessing an application with different paths But then they both need their own copy of the war Not true; the docBase attributes in the two (or more) Context elements can be identical. I never figured out how to get these to work with a name that looked like a sub-directory, so that it was accessed like: http://www.myhost.com:81/wra/customername/Login.jsp Put the Context element in a file named conf/Catalina/[host]/wra#customername.xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing an application with different paths
I sure wish you had been answering questions when I was setting this up 4 or 5 years ago!! D Caldarale, Charles R wrote: From: David kerber [mailto:[EMAIL PROTECTED] Subject: Re: Accessing an application with different paths But then they both need their own copy of the war Not true; the docBase attributes in the two (or more) Context elements can be identical. I never figured out how to get these to work with a name that looked like a sub-directory, so that it was accessed like: http://www.myhost.com:81/wra/customername/Login.jsp Put the Context element in a file named conf/Catalina/[host]/wra#customername.xml. - Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accessing an application with different paths
From: David kerber [mailto:[EMAIL PROTECTED] Subject: Re: Accessing an application with different paths I sure wish you had been answering questions when I was setting this up 4 or 5 years ago!! Might not have worked this way back then. This capability came in at some point in the 5.0 development. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Take my e-mail out of this current
Dears, Please take my e-mail out from this current. Thanks Thiago Dantas Procurement Global Procurement 55 11 4197-4592 [EMAIL PROTECTED] http://www.hp.com.br Esta mensagem (incluindo qualquer anexo) e os arquivos nela contidos é confidencial e legalmente protegida, somente podendo ser usada pelo indivíduo ou entidade a quem foi endereçada. Caso você a tenha recebido por engano, deverá devolvê-la ao remetente e, posteriormente, apagá-la, pois, a disseminação, encaminhamento, uso, impressão ou cópia do conteúdo desta mensagem são expressamente proibidos. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly rohibited. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zdenek Vráblík Sent: Friday, July 20, 2007 12:48 PM To: Tomcat Users List Subject: Re: OracleConnectionPoolDataSource Hi, 4. I use OracleConnectionPoolDataSource because with javax.sql.DataSource it doesn't close correctly close connections from pool and server got to hang up. Have you got any exception? 5. con variable is of type Connection. I found this in an example in google. May it be of type PooledConnection? If so, can I use pc variable instead of con? I am using interface OracleConnection becouse sam libraries needs this interface instead of Connection interface 6. I've putted user=test password=test in context but it still doesn't work if I don't put user and password in getPooledConnection. Currently context.xml is this: Context debug=0 reloadable=true Resource name=jdbc/test auth=Container type=oracle.jdbc.pool.OracleConnectionPoolDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory maxActive=5 maxIdle=-1 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@192.168.1.47:1521:GLOBALDB / This is my resource: Resource name=IC auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory user=IC password=IC driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@192.168.100.119:1521:orcl maxActive=20 maxIdle=10 maxwait=-1/ /Context And code that gets the connection is this: Context initCtx = null; PooledConnection pc = null; Connection con = null; public void init() { if(pc == null) { try { initCtx = new InitialContext(); Context ctx = (Context) initCtx.lookup(java:/comp/env); OracleConnectionPoolDataSource fuenteDatos = (OracleConnectionPoolDataSource) ctx.lookup(/jdbc/ganaderia); pc = fuenteDatos.getPooledConnection(dbUser, dbPassword); } catch(Exception e) { String mensaje = getMessage(e); sc.log(mensaje); } } initConnection(); } void initConnection() { try { con = pc.getConnection(); } catch(Exception e) { sc.log(getMessage(e)); } } public void finishConnection() { try { if(con != null) { con.close(); con = null; } } catch(Exception e) { sc.log(getMessage(e)); con = null; } } public void finish() { try { finishConnection(); if(pc != null) pc.close(); } catch(Exception e) { sc.log(getMessage(e)); } } and this is my java code I use try { // Look up the data source on the JNDI tree DataSource ds = (DataSource) ctxt.lookup(java:/comp/env/ + poolName); if (ds instanceof OracleDataSource) { log.debug(oracleDatasource found); } conn = ds.getConnection(); if (conn instanceof OracleConnection) { log.debug( OracleConnection - delegated ); } } catch ( Exception ex ) { log.error( classId + Error getting Oracle Connection., ex ); throw ex; } What jdbc driver do you use? And one question. Are you going to use any user transaction manager? :) I use simpleJTA, but I have tested it only in developement... Regards, Zdenek - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Take my e-mail out of this current
Have you tried the advice at the bottom of every email you receive from this list? If you have and it still doesn't work, please send a message to user-owner (at) tomcat.apache.org and ask them to remove you. --David Dantas, Thiago wrote: Dears, Please take my e-mail out from this current. Thanks Thiago Dantas Procurement Global Procurement 55 11 4197-4592 [EMAIL PROTECTED] http://www.hp.com.br Esta mensagem (incluindo qualquer anexo) e os arquivos nela contidos é confidencial e legalmente protegida, somente podendo ser usada pelo indivíduo ou entidade a quem foi endereçada. Caso você a tenha recebido por engano, deverá devolvê-la ao remetente e, posteriormente, apagá-la, pois, a disseminação, encaminhamento, uso, impressão ou cópia do conteúdo desta mensagem são expressamente proibidos. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly rohibited. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zdenek Vráblík Sent: Friday, July 20, 2007 12:48 PM To: Tomcat Users List Subject: Re: OracleConnectionPoolDataSource Hi, 4. I use OracleConnectionPoolDataSource because with javax.sql.DataSource it doesn't close correctly close connections from pool and server got to hang up. Have you got any exception? 5. con variable is of type Connection. I found this in an example in google. May it be of type PooledConnection? If so, can I use pc variable instead of con? I am using interface OracleConnection becouse sam libraries needs this interface instead of Connection interface 6. I've putted user=test password=test in context but it still doesn't work if I don't put user and password in getPooledConnection. Currently context.xml is this: Context debug=0 reloadable=true Resource name=jdbc/test auth=Container type=oracle.jdbc.pool.OracleConnectionPoolDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory maxActive=5 maxIdle=-1 maxWait=-1 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@192.168.1.47:1521:GLOBALDB / This is my resource: Resource name=IC auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory user=IC password=IC driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@192.168.100.119:1521:orcl maxActive=20 maxIdle=10 maxwait=-1/ /Context And code that gets the connection is this: Context initCtx = null; PooledConnection pc = null; Connection con = null; public void init() { if(pc == null) { try { initCtx = new InitialContext(); Context ctx = (Context) initCtx.lookup(java:/comp/env); OracleConnectionPoolDataSource fuenteDatos = (OracleConnectionPoolDataSource) ctx.lookup(/jdbc/ganaderia); pc = fuenteDatos.getPooledConnection(dbUser, dbPassword); } catch(Exception e) { String mensaje = getMessage(e); sc.log(mensaje); } } initConnection(); } void initConnection() { try { con = pc.getConnection(); } catch(Exception e) { sc.log(getMessage(e)); } } public void finishConnection() { try { if(con != null) { con.close(); con = null; } } catch(Exception e) { sc.log(getMessage(e)); con = null; } } public void finish() { try { finishConnection(); if(pc != null) pc.close(); } catch(Exception e) { sc.log(getMessage(e)); } } and this is my java code I use try { // Look up the data source on the JNDI tree DataSource ds = (DataSource) ctxt.lookup(java:/comp/env/ + poolName); if (ds instanceof OracleDataSource) { log.debug(oracleDatasource found); } conn = ds.getConnection(); if (conn instanceof OracleConnection) { log.debug( OracleConnection - delegated ); } } catch ( Exception ex ) { log.error( classId + Error getting Oracle Connection., ex ); throw ex; } What jdbc driver do you use? And one question. Are you going to use any user transaction manager? :) I use simpleJTA, but I have tested it only in developement... Regards, Zdenek - To start a
Re: Take my e-mail out of this current
Bye Dears. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sessionDestroyed don't respond to the user closing t he browser window
Hi. I am trying to get the number of sessions that is active. I have made a SessionListener and every thing works as I intended except that the sessionDestroyed dont respond to the user closing the browser window. I there a way to destroy/invalidate a session when the browser is closed without using javascript:onunload Soren, DK
FW: Capturing Tomcat and JAVA thread dumps from (Windows)
Thank you Filip. That seem to work just fine! Can anyone also tell me how I can capture JAVA thread dumps along with these Tomcat logs? Thank you Jayson -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 11:46 AM To: Tomcat Users List Subject: Re: Capturing Tomcat thread dumps from startup.bat (Windows) catalina.bat run dump.log then do a Ctrl+Break for the dump another way is to use a service wrapper that lets you do dumps, http://people.apache.org/~fhanik/wrapper.html Filip Jayson Enriquez wrote: I am unable to copy Tomcat thread dumops when launching it from Startup.bat from a command window. At the end of the day I do a select all and copy but it only captures part of the thread dump. Is/Are their other ways to capture thread dumps from a command (DOS) window? Buffers are set to 999 I do need a full day of activity. I've also tried Option 1: Start command window and 'cd' to 'C:\...Tomcat\bin' folder where 'startup.bat' file resides and enter startup.bat tomcat.log This creates tomcat.log file in the same folder as startup.bat. I have attached the file which got generated now. The log gets updated with first 4 lines and that's all. Option 2: In the start-run type C:\Apache\Tomcat\bin\startup.bat tomcat.log and the log is generated with same output. The log gets updated with first 4 lines and that's all. Thank you No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.6/902 - Release Date: 7/15/2007 2:21 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS JK connector issues with connections forcibly closed.
Good afternoon, I have a web service that is hosted on tomcat v4. I use the jakarta redirect DLL with IIS to front-end the requests. Under load, I receive quite a few exceptions from my client application consuming the web service. The exceptions are all the same and read: System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. My workers.properties for the ajp13 connector is setup like this: worker.ajp13.port=8809 worker.ajp13.host=127.0.0.1 worker.ajp13.connection_pool_size=100 worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.ajp13.cachesize=150 worker.ajp13.cache_timeout=600 worker.ajp13.recycle_timeout=300 worker.ajp13.socket_timeout=30 worker.ajp13.socket_keepalive=1 In my server.xml for tomcat I have: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8809 minProcessors=10 maxProcessors=150 enableLookups=false redirectPort=8844 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false address=127.0.0.1 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ I am able to put thru ~60 requests per second to give you an idea about load and the client applcation runs 10 threads to generate the load. Out of about 6000 requests I get around 10 to 100 of these failures. If I retry the request, the subsequent request always succeeds so I am a little puzzled. I have done a few things to try and pinpoint the error: 1) Not using IIS and going to tomcat directly over the defined HTTP connector works without error. 2) I receive the same error using the old AJP1.3 connector as I do with the new coyote 1.3 connector. 3) I have tried setting timeouts higher on tomcat or higher on the jk isapi redirect filter with no success. 4) Even debugging all components does not present an additional error. 5) I have been searching Google for the error and some other keywords like IIS and Tomcat that have resulted in some good results but none that seem to solve my issue. If someone could point me in the right direction I would really appreciate it. This problem is going to drive me to drink! :) What am I missing? Thanks so much in advance for any assistance! - Ian -- View this message in context: http://www.nabble.com/IIS-JK-connector-issues-with-connections-forcibly-closed.-tf411.html#a11713813 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Capturing Tomcat thread dumps from startup.bat (Windows)
a tomcat thread dump is equal to a java thread dump, the latter is the correct term for it so I am not sure what you are asking Filip Jayson Enriquez wrote: Thank you Filip. That seem to work just fine! Can you also tell me how I can capture JAVA thread dumps along with these Tomcat logs? Thank you Jayson -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 11:46 AM To: Tomcat Users List Subject: Re: Capturing Tomcat thread dumps from startup.bat (Windows) catalina.bat run dump.log then do a Ctrl+Break for the dump another way is to use a service wrapper that lets you do dumps, http://people.apache.org/~fhanik/wrapper.html Filip Jayson Enriquez wrote: I am unable to copy Tomcat thread dumops when launching it from Startup.bat from a command window. At the end of the day I do a select all and copy but it only captures part of the thread dump. Is/Are their other ways to capture thread dumps from a command (DOS) window? Buffers are set to 999 I do need a full day of activity. I've also tried Option 1: Start command window and 'cd' to 'C:\...Tomcat\bin' folder where 'startup.bat' file resides and enter startup.bat tomcat.log This creates tomcat.log file in the same folder as startup.bat. I have attached the file which got generated now. The log gets updated with first 4 lines and that's all. Option 2: In the start-run type C:\Apache\Tomcat\bin\startup.bat tomcat.log and the log is generated with same output. The log gets updated with first 4 lines and that's all. Thank you No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.6/902 - Release Date: 7/15/2007 2:21 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sessionDestroyed don't respond to the user closing the browser window
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Søren, Søren Blidorf wrote: I am trying to get the number of sessions that is active. I have made a SessionListener and every thing works as I intended except that the “sessionDestroyed” don’t respond to the user closing the browser window. That's because closing the browse window does not terminate the session on the server side. I there a way to destroy/invalidate a session when the browser is closed without using javascript:onunload No. And even if you use an 'onunload' method in your page's body, you still won't get what you want: the unload event will fire when the page changes, not just when the window is closed. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGoRIM9CaO5/Lv0PARArwzAJwOfJN6GMFZcNA7XNf9t4Sqr0viTwCeJLwF PpO8j1pOu5EdhwakTlRzz4Y= =J/gt -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk vs. reverse proxy
Since we're all giving mod_jk a big hug here I thought I would point out that I had issues with both mod_proxy_http and mod_proxy_ajp which were solved by moving (back) to mod_jk. Intermittently the response to the browser would be sent as plain-text (the browser just prints out the html) or I would have random corruption sprinkled in the response. Mark go jk! On 7/20/07, Mladen Turk [EMAIL PROTECTED] wrote: Don't worry, there are many other folks actively developing mod_jk like Bill, Henri, Jean-Frederic, Mark, Rainer and many others. Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Capturing Tomcat thread dumps from startup.bat (Windows)
Does this look like it captured Java thread dumps to you? The Support group we sent it to send that it does not. They need the Java thread dumps also. (Partial only) Using CATALINA_BASE: C:\Apache\Tomcat5.0 Using CATALINA_HOME: C:\Apache\Tomcat5.0 Using CATALINA_TMPDIR: C:\Apache\Tomcat5.0\temp Using JAVA_HOME: C:\j2sdk1.4.2_06 Jul 18, 2007 8:08:08 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-80 Jul 18, 2007 8:08:08 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 18, 2007 8:08:09 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-443 Jul 18, 2007 8:08:09 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1235 ms Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Apache\Tomcat5.0\conf\Catalina\localhost\admin.xml Jul 18, 2007 8:08:10 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Jul 18, 2007 8:08:10 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Jul 18, 2007 8:08:10 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [GC 64511K-2978K(1040512K), 0.0442702 secs] Jul 18, 2007 8:08:13 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Apache\Tomcat5.0\conf\Catalina\localhost\balancer.xml Jul 18, 2007 8:08:13 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Apache\Tomcat5.0\conf\Catalina\localhost\manager.xml Jul 18, 2007 8:08:13 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /da from URL file:C:\Apache\Tomcat5.0\webapps\da [Full GC 40238K-4398K(1040512K), 0.1266084 secs] [2007-07-18 20:08:14,772|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.util.Trace.ZIPARCHIVE set to false [2007-07-18 20:08:14,788|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.job.async.Trace.ASYNC_MGR set to false [2007-07-18 20:08:14,788|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.servlet.Trace.RESPONSE_COMPRESSION set to false [2007-07-18 20:08:14,803|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.contentxfer.Trace.ACS set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.formext.Trace.FOLDERUTIL set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.formext.Trace.CLIENTDOCBASE set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.common.Trace.COOKIE set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.form.Trace.FORMREQUEST set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.webtop.Trace.MESSAGING set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.env.Trace.ENVIRONMENT set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.form.Trace.FORMRESPONSE set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.form.Trace.NESTOPERATION set to false [2007-07-18 20:08:14,835|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.formext.Trace.SESSION set to false [2007-07-18 20:08:14,835|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.servlet.Trace.RESPONSE_HEADER_CONTROL set to false [2007-07-18 20:08:14,835|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace
RE: Capturing Tomcat thread dumps from startup.bat (Windows)
From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Subject: RE: Capturing Tomcat thread dumps from startup.bat (Windows) Does this look like it captured Java thread dumps to you? You apparently missed the critical part of Filip's post: then do a Ctrl+Break for the dump another way is to use a service wrapper that lets you do dumps, http://people.apache.org/~fhanik/wrapper.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Capturing Tomcat thread dumps from startup.bat (Windows)
That's it! Thank you guys. Keep up the good work. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 1:22 PM To: Tomcat Users List Subject: RE: Capturing Tomcat thread dumps from startup.bat (Windows) From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Subject: RE: Capturing Tomcat thread dumps from startup.bat (Windows) Does this look like it captured Java thread dumps to you? You apparently missed the critical part of Filip's post: then do a Ctrl+Break for the dump another way is to use a service wrapper that lets you do dumps, http://people.apache.org/~fhanik/wrapper.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Capturing Tomcat thread dumps from startup.bat (Windows)
there is no dump at all in this log, make sure you don't have the -Xrs flag enabled Filip Jayson Enriquez wrote: Does this look like it captured Java thread dumps to you? The Support group we sent it to send that it does not. They need the Java thread dumps also. (Partial only) Using CATALINA_BASE: C:\Apache\Tomcat5.0 Using CATALINA_HOME: C:\Apache\Tomcat5.0 Using CATALINA_TMPDIR: C:\Apache\Tomcat5.0\temp Using JAVA_HOME: C:\j2sdk1.4.2_06 Jul 18, 2007 8:08:08 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-80 Jul 18, 2007 8:08:08 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 18, 2007 8:08:09 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-443 Jul 18, 2007 8:08:09 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1235 ms Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Jul 18, 2007 8:08:09 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Apache\Tomcat5.0\conf\Catalina\localhost\admin.xml Jul 18, 2007 8:08:10 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Jul 18, 2007 8:08:10 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Jul 18, 2007 8:08:10 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true [GC 64511K-2978K(1040512K), 0.0442702 secs] Jul 18, 2007 8:08:13 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Apache\Tomcat5.0\conf\Catalina\localhost\balancer.xml Jul 18, 2007 8:08:13 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Apache\Tomcat5.0\conf\Catalina\localhost\manager.xml Jul 18, 2007 8:08:13 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /da from URL file:C:\Apache\Tomcat5.0\webapps\da [Full GC 40238K-4398K(1040512K), 0.1266084 secs] [2007-07-18 20:08:14,772|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.util.Trace.ZIPARCHIVE set to false [2007-07-18 20:08:14,788|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.job.async.Trace.ASYNC_MGR set to false [2007-07-18 20:08:14,788|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.servlet.Trace.RESPONSE_COMPRESSION set to false [2007-07-18 20:08:14,803|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.contentxfer.Trace.ACS set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.formext.Trace.FOLDERUTIL set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.formext.Trace.CLIENTDOCBASE set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.common.Trace.COOKIE set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.form.Trace.FORMREQUEST set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.webtop.Trace.MESSAGING set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.env.Trace.ENVIRONMENT set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.form.Trace.FORMRESPONSE set to false [2007-07-18 20:08:14,819|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.form.Trace.NESTOPERATION set to false [2007-07-18 20:08:14,835|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation: com.documentum.web.formext.Trace.SESSION set to false [2007-07-18 20:08:14,835|DEBUG|Thread-2 |com.documentum.fc.common.DfLogger|debug|105 ] Trace initialisation:
Re: IIS JK connector issues with connections forcibly closed.
As an update, I did find that I was a few revs behind on the isapi connector version. I did upgrade but found that the error persists. :( -- View this message in context: http://www.nabble.com/IIS-JK-connector-issues-with-connections-forcibly-closed.-tf411.html#a11715708 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat access log question
I currently have Tomcat access log enable which will log all the query that hits my web server. Some of the information is confidential. So is there a mechanism that I can use to add a interceptor or filter to encrypt those information before it gets log into the access log? Any suggestion or pointer would be greatly appreciated! John
Re: Tomcat access log question
John Hui wrote: I currently have Tomcat access log enable which will log all the query that hits my web server. Some of the information is confidential. So is there a mechanism that I can use to add a interceptor or filter to encrypt those information before it gets log into the access log? Any suggestion or pointer would be greatly appreciated! John It would be better to alter the application (if you can) to not include private information inside url's. But either way, just make the logs read writeable only by tomcat. That way the user has to have access to tomcat before they can read the logs. And if the user has access to tomcat, then they will be able to read your logs no matter wether your logs are encrypted or not. (ie if the user has access to tomcat they can simply monitor all incoming traffic via other means, and get much more confidential information than just urls and ip addresses) Best Regards, Jacob - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat access log question
Thanks for the response Jacob. I think I should be more clear about my use case. I am actually not permitted to store any of these confidential information any where including ( the access logs ). That's why I want to encrypt these information. I can remove the entire query string from being logged at all but these data can be very useful to us so we do want to log them ( without exposing the confidential value in the request ). Thanks! John On 7/20/07, Jacob Rhoden [EMAIL PROTECTED] wrote: John Hui wrote: I currently have Tomcat access log enable which will log all the query that hits my web server. Some of the information is confidential. So is there a mechanism that I can use to add a interceptor or filter to encrypt those information before it gets log into the access log? Any suggestion or pointer would be greatly appreciated! John It would be better to alter the application (if you can) to not include private information inside url's. But either way, just make the logs read writeable only by tomcat. That way the user has to have access to tomcat before they can read the logs. And if the user has access to tomcat, then they will be able to read your logs no matter wether your logs are encrypted or not. (ie if the user has access to tomcat they can simply monitor all incoming traffic via other means, and get much more confidential information than just urls and ip addresses) Best Regards, Jacob - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Added 005f on the path after pre-compilation
Is a way to tell tomcat not to do it? I have the same path in the jsp template. The extra 005f will totally break my app. Thanks! Billy -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 5:55 PM To: Tomcat Users List Subject: Re: Added 005f on the path after pre-compilation Kwok Ng wrote: Hi folks, I am using Tomcat 5.5.23. I am trying to use org.apache.jasper.JspC to pre-compile the JSP files. I notice all the file paths were added 005f if there is a _ in the path like ../my_package/test.jsp will change to ../my_005fpackage/test_jsp.java. What did I do wrong? Nothing. This is by design. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]