Re: Using RemoteAddressValve with an Apache mod_proxy_balancer
Bill Barker wrote: ... Which gives a third option to the OP, which is to use the useIPVHosts=true option on the Connector ... /, and only configure Host .../s for the ones that he wants to allow to connect (and the default Host just returns 404 to every request). Yes, that possibility was kind of nagging at me since the beginning. This would also be valid for all protocols and all Connectors, wouldn't it ? Host name=defaultHost ... always returns 404 /Host Host name=allowedHosts Aliasname-of-allowed-proxy-1/Alias Aliasname-of-allowed-proxy-2/Alias Aliasname-of-allowed-proxy-3/Alias) ... /Host It is not really secure yet, but incrementally harder to fake than a secret or a header. And it does not require any change of configuration at the proxy server level. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Errors in session replication and very high server load
Thanks for the reply. I have tried to figure out why the load is high but I couldn't. Any hints? Thanks, Mohamed Mohamedin - Original Message - From: Filip Hanik - Dev Lists devli...@hanik.com To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, December 20, 2009 3:56 PM Subject: Re: Errors in session replication and very high server load Well, the log messages you see, are all based on timeouts. If your system has a load average of 12, unless you have a 12-way machine, that is very high, and could be the cause of your timeouts. You will need to figure out what is causing the high load average. Filip On 12/18/2009 01:30 AM, mohame...@easy-dialog.info wrote: Dear All, I have a strange problem. When I added a new server to my tomcat cluster I have noticed that the load is getting very high on the server. Tomcat log show a lot of these lines 18.12.2009 09:07:14 org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -120}:4000,{62, 75, -127, -120},4000, alive=65087504,id={-64 -42 103 97 8 -7 69 -88 -113 -106 -32 -64 46 76 -117 -58 }, payload={}, command={}, domain={}, ] 18.12.2009 09:07:14 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Verification complete. Member still alive[org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -122}:4000,{62, 75, -127, -122},4000, alive=64996684,id={-15 62 -53 -50 -43 81 75 18 -112 -43 58 -102 69 72 83 21 }, payload={}, command={}, domain={}, ]] 18.12.2009 09:07:19 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector performBasicCheck WARNUNG: Member added, even though we werent notified:org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -117}:4000,{62, 75, -127, -117},4000, alive=58229968,id={16 -115 -21 -109 18 -76 79 58 -95 -17 57 -32 -69 -111 -20 28 }, payload={}, command={}, domain={}, ] 18.12.2009 09:07:19 org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -117}:4000,{62, 75, -127, -117},4000, alive=58229968,id={16 -115 -21 -109 18 -76 79 58 -95 -17 57 -32 -69 -111 -20 28 }, payload={}, command={}, domain={}, ] 18.12.2009 09:08:10 org.apache.catalina.ha.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -121}:4000,{62, 75, -127, -121},4000, alive=64986581,id={-87 -91 115 -83 80 64 76 -9 -68 -107 -109 52 0 -47 109 98 }, payload={}, command={}, domain={}, ] 18.12.2009 09:08:10 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector performBasicCheck INFO: Suspect member, confirmed dead.[org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -121}:4000,{62, 75, -127, -121},4000, alive=64986581,id={-87 -91 115 -83 80 64 76 -9 -68 -107 -109 52 0 -47 109 98 }, payload={}, command={}, domain={}, ]] 18.12.2009 09:08:10 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -121}:4000,{62, 75, -127, -121},4000, alive=65045054,id={-87 -91 115 -83 80 64 76 -9 -68 -107 -109 52 0 -47 109 98 }, payload={}, command={}, domain={}, ]] message. Will verify. 18.12.2009 09:08:10 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Verification complete. Member still alive[org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -121}:4000,{62, 75, -127, -121},4000, alive=65045054,id={-87 -91 115 -83 80 64 76 -9 -68 -107 -109 52 0 -47 109 98 }, payload={}, command={}, domain={}, ]] 18.12.2009 09:08:10 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -122}:4000,{62, 75, -127, -122},4000, alive=65054434,id={-15 62 -53 -50 -43 81 75 18 -112 -43 58 -102 69 72 83 21 }, payload={}, command={}, domain={}, ]] message. Will verify. 18.12.2009 09:08:10 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -118}:4000,{62, 75, -127, -118},4000, alive=58290426,id={101 61 65 84 -59 -114 65 -57 -106 8 -118 -25 -55 56 -82 111 }, payload={}, command={}, domain={}, ]] message. Will verify. 18.12.2009 09:08:10 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{62, 75, -127, -120}:4000,{62, 75, -127, -120},4000, alive=65141440,id={-64 -42 103 97 8 -7 69 -88 -113 -106 -32 -64 46 76 -117 -58 }, payload={}, command={}, domain={}, ]] message. Will verify. Also the load on
Re: submitting more patches
On 20/12/2009 20:24, André Warnier wrote: snip/ It did not however seem to generate anything for the new files, so I filed these separately, one per bug. Many thanks. For future reference if you right click on the new file and select TortoiseSVN Add... the new files will also be included in any patch you generate. One more thing : I noticed that in some of the Language_fr.properties files, not all of the labels that are present in the basic Language.properties file are present if the _fr version. Example : connector/Language.properties Should I add the missing entries, or is there a specific reason why they are not translated ? Yes, please add them. Cheers, Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Www-authenticate ...
Hi, My tomcat server is sending www-authenticate (digest) header but the header doesn't contain the algorithm field, which one is choosen by default? How do I specify it to use particular algorithm (sha1/md5)? -- View this message in context: http://old.nabble.com/Www-authenticate-...-tp26873247p26873247.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Www-authenticate ...
insi wrote: Hi, My tomcat server is sending www-authenticate (digest) header but the header doesn't contain the algorithm field, which one is choosen by default? MD5 How do I specify it to use particular algorithm (sha1/md5)? In short, you can't. See HTTP 2616 and 2617. Theoretically, you could, via the optional Authentication-Info header indicated in RFC2617. But in the practice, to my knowledge, browsers support only Digest with MD5, so it doesn't really help. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: Re: Ignore http header if-modified-since
Thanks a lot. I logged all header modifications using a filter and found the root cause. It is a class called AbstractResourceProcessor from the Apache Shale framework. When requesting a resource which is actually located inside a jar, it sets the last-modified header using java.text.SimpleDateFormat format = new SimpleDateFormat(EEE, dd MMM HH:mm:ss zzz); without specifying any locale. This naturally results in a date formatted according to the server's locale. So it seems I'll have to use a filter which converts the date back to the englisch locale format. Best regards, Abid -Ursprüngliche Nachricht- Von: Len Popp [mailto:len.p...@gmail.com] Gesendet: Freitag, 18. Dezember 2009 17:13 An: Tomcat Users List Betreff: Re: Ignore http header if-modified-since Add some debugging code to your app to find the point where the Last-Modified header is added. Call HttpServletResponse.containsHeader to see if the header has been set. -- Len On Fri, Dec 18, 2009 at 10:47, Abid Hussain abid.huss...@dilax.com wrote: OK, it seems that tomcat is working correctly. Still I would like to get the root cause of my problem which is again: The last-modified response header is delivered in the locale of the server. E.g. if this locale is polish or germen, the header is delivered in polish resp. german format which is not correct and causes misbehaviour. Naturally I just can set the locale to en_US to get the desired header format. But this is not the root cause of the problem. The question is: How can the format of this header can be set (or overridden) to the server's locale? I tried the following: * Asked Google: Nothing found. * Searched for occurences of last-modified in the source code of my application: Nothing found. * Looked if the methods HttpServletResponse.setHeader() or HttpServletResponse.addHeader() are used with the last-modified somewhere in my application: Nothing found. * Looked if one of the configured filters modify the header: Nothing found. * Looked if any valves are used: None. Anybody got an idea how I can investigate further? Regards, Abid -Ursprüngliche Nachricht- Von: André Warnier [mailto:a...@ice-sa.com] Gesendet: Freitag, 18. Dezember 2009 13:56 An: Tomcat Users List Betreff: Re: AW: Re: AW: RE: RE: Ignore http header if-modified-since Mark Thomas wrote: On 18/12/2009 09:36, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abid, On 12/17/2009 12:08 PM, Abid Hussain wrote: I used the startup parameters -Duser.language=en -Duser.region=US This caused Tomcat to deliver the Last-Modified in the correct format. That solved the problem, no 404 anymore, thanks. So it seems to be a bug in tomcat...? I would say so. http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 Tomcat's behavior seems to ignore the specification, here. Would you care to share your Tomcat version with us? So far, I haven't seen anything that demonstrates Tomcat is generating this header. It looks like an app issue to me. My testing with trunk, 6.0.x and 6.0.20 all show the correct format being used. I think that once this is confirmed, it may be worth raising its visibility a bit for the Tomcat developers. As always before reporting an error, I'd highly recommend generating a simple as possible test case that demonstrates the issue on a clean Tomcat install. I can't repeat this and at the moment it looks like an application issue. Any bug report that can't be repeated is just going to get closed as WORKSFORME. For a confirmation of what Mark says above, I ran some tests. This Tomcat 5.5 is a pretty vanilla version, with just the standard example apps and not much more, on my Windows workstation. Versions are not the latest ones, I know. INFO: Starting Servlet Engine: Apache Tomcat/5.5.26 Platform : Windows XP, German Java : java version 1.6.0_06 Java(TM) SE Runtime Environment (build 1.6.0_06-b02) Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing) Tomcat running as service, stopped and restarted before each test below A) Platform default Tomcat startup parameters as per tomcat5w.exe : -Dcatalina.home=C:\Tomcat5.5 -Dcatalina.base=C:\Tomcat5.5 -Djava.endorsed.dirs=C:\Tomcat5.5\common\endorsed -Djava.io.tmpdir=C:\Tomcat5.5\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Tomcat5.5\conf\logging.properties (platform default) Request: (Request-Line) GET /RELEASE-NOTES.txt HTTP/1.1 Host localhost:8180 User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Tomcat 6 Log Tomcat output to file
I usually install Tomcat as a Service under windows which causes all Tomcat output to go to stdout.log. I am in a situation where I can not do this. I have to start Tomcat from the command line. When I do all of Tomcats output is logged to the console. How do I manually configure Tomcat so the output gets logged to a file? I tried the instructions under the log4j section here http://tomcat.apache.org/tomcat-6.0-doc/logging.html When I restarted Tomcat no new log file was created. The output stilled logged to the console window. I couldn't find any other documentation on how to do this in Tomcat 6. Can some one point me to some documentation on how to set up this type of logging? Thank you - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 Log Tomcat output to file
Richard Sayre wrote: I usually install Tomcat as a Service under windows which causes all Tomcat output to go to stdout.log. I am in a situation where I can not do this. I have to start Tomcat from the command line. When I do all of Tomcats output is logged to the console. How do I manually configure Tomcat so the output gets logged to a file? I tried the instructions under the log4j section here http://tomcat.apache.org/tomcat-6.0-doc/logging.html When I restarted Tomcat no new log file was created. The output stilled logged to the console window. I couldn't find any other documentation on how to do this in Tomcat 6. Can some one point me to some documentation on how to set up this type of logging? startup.bat outputfile ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Http session lost b/w struts actions on Linux but not in Win
Thanks, but the folder permissions where already like drwxr-xr-x Johan 2009/12/17 Martin Gainty mgai...@hotmail.com sounds like a permissions error on the work folders /tomcat/apache-tomcat-6.0.18/work fu...@127.0.0.1 /tomcat/apache-tomcat-6.0.18/work $ ls -al total 0 drwx--+ 3 0 at a min i would turn on read/execute for tomcat work folder chmod +x . chmod +r . $ ls -al total 0 drwxr-xr-x+ 3 0 Oct 7 19:43 . Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Thu, 17 Dec 2009 13:52:59 +0100 Subject: Http session lost b/w struts actions on Linux but not in Win From: johan.thorsel...@gmail.com To: users@tomcat.apache.org request.getSession() returns an incorrect null on Linux, but on Windows it's OK. I have an ordinary Struts2 web app deployed on Tomcat 6.0.20, together with a JAAS-solution where I have my own Valve class. The Valve repeatedly executes invoke() with the following code-snippet (here very much simplified): . . . if (LOGGER.isDebugEnabled()) { if (request.getSession() == null) { // Log incorrect event (1) } else { // Log OK (2) } if (request.getSession(true) == null) { // Log incorrect event (3) } else { // Log OK (4) } } /* * Here a NullPointerException occurs */ request.getSession().setAttribute(...,...); . . . In the first request the session is not lost, everything is fine with (2) and (4). In the following requests getSession() returns null (1) and (3). This occurs on Linux, not on Windows, both with Tomcat 6.0.20. On Windows Java version 1.6.0_16 is used On RedHat Linux Java version 1.6.0_13 is used Regards Johan _ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. http://clk.atdmt.com/GBL/go/171222985/direct/01/
Re: Tomcat 6 Log Tomcat output to file
No this only writes the following: Using CATALINA_BASE: D:\liferay\tomcat-6.0.18 Using CATALINA_HOME: D:\liferay\tomcat-6.0.18 Using CATALINA_TMPDIR: D:\liferay\tomcat-6.0.18\temp Using JRE_HOME:D:\liferay\tomcat-6.0.18/jre1.5.0_17/win Then it spawns a new window for Tomcat output. On Mon, Dec 21, 2009 at 11:32 AM, André Warnier a...@ice-sa.com wrote: Richard Sayre wrote: I usually install Tomcat as a Service under windows which causes all Tomcat output to go to stdout.log. I am in a situation where I can not do this. I have to start Tomcat from the command line. When I do all of Tomcats output is logged to the console. How do I manually configure Tomcat so the output gets logged to a file? I tried the instructions under the log4j section here http://tomcat.apache.org/tomcat-6.0-doc/logging.html When I restarted Tomcat no new log file was created. The output stilled logged to the console window. I couldn't find any other documentation on how to do this in Tomcat 6. Can some one point me to some documentation on how to set up this type of logging? startup.bat outputfile ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat 6 Mirth
Hi all! I am trying install Mirth Connect [1] under Tomcat 6.20. I dont know how can i do it but I know it is possible. Do any of you have any experience in this topic? If you do, can you help me? I need some tutorial or something similar :( Thanks! Regards. [1] http://www.mirthcorp.com/products/mirth-connect
App runs in Tomcat, but without images.
I'm running my app on embedded Tomcat. My startup script and information is here: http://gist.github.com/259737 I almost have it working. I just can't see any images. There are no errors, and I can't find any info elsewhere online. Any idea what I should look at? Thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 Log Tomcat output to file
Richard Sayre wrote: No this only writes the following: Using CATALINA_BASE: D:\liferay\tomcat-6.0.18 Using CATALINA_HOME: D:\liferay\tomcat-6.0.18 Using CATALINA_TMPDIR: D:\liferay\tomcat-6.0.18\temp Using JRE_HOME:D:\liferay\tomcat-6.0.18/jre1.5.0_17/win Then it spawns a new window for Tomcat output. It requires a bit of work examining the startup.bat and catalina.bat files, but maybe try this : startup.bat run logfile If I interpret these bat files correctly, that should start Tomcat in the same window. (To stop it, just type CTRL-C). If not, then you are welcome to go look for yourself. ;-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: App runs in Tomcat, but without images.
Clay McCoy wrote: I'm running my app on embedded Tomcat. My startup script and information is here: http://gist.github.com/259737 I almost have it working. I just can't see any images. There are no errors, and I can't find any info elsewhere online. Any idea what I should look at? Thanks. Images are usually just img links in the html page that your browser gets. Then it tries to obtain these images by sending the URL to the server. Look at the links, and figure out why you are not getting the images, maybe ? You could also set up an AccessLog Valve, and see what the browser is actually requesting. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: App runs in Tomcat, but without images.
On 21/12/2009 16:26, Clay McCoy wrote: I'm running my app on embedded Tomcat. My startup script and information is here: http://gist.github.com/259737 I almost have it working. I just can't see any images. There are no errors, and I can't find any info elsewhere online. Any idea what I should look at? Thanks. [cough] thread hijacking... [cough] p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 6 Mirth
Hector Muñoz wrote: Hi all! I am trying install Mirth Connect [1] under Tomcat 6.20. I dont know how can i do it but I know it is possible. Do any of you have any experience in this topic? If you do, can you help me? I need some tutorial or something similar :( Thanks! Regards. [1] http://www.mirthcorp.com/products/mirth-connect On the website with the URL above, there seems to be (paying) support available. Did you ask them ? From what I see in the FAQ on that same website, it is not very clear what relation this has with Tomcat, if any (apart that they mention Java). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 Log Tomcat output to file
the logfile still only logs the Using messages that I posted earlier. I tried adding outTest.txt at the bottom of Catalina.bat after each of the commands that start tomcat. The output is still logging to the console window. I tried removing the 'start' prefix from %_EXECJAVA%. In DOS start is what launches a new cmd window. This caused an error. I'll keep trying different things. If anyone has any more suggestions they would greatly appreciated. I might move back to the original documentation and see if I can just get the loggers set up properly. Thanks On Mon, Dec 21, 2009 at 1:00 PM, André Warnier a...@ice-sa.com wrote: Richard Sayre wrote: No this only writes the following: Using CATALINA_BASE: D:\liferay\tomcat-6.0.18 Using CATALINA_HOME: D:\liferay\tomcat-6.0.18 Using CATALINA_TMPDIR: D:\liferay\tomcat-6.0.18\temp Using JRE_HOME: D:\liferay\tomcat-6.0.18/jre1.5.0_17/win Then it spawns a new window for Tomcat output. It requires a bit of work examining the startup.bat and catalina.bat files, but maybe try this : startup.bat run logfile If I interpret these bat files correctly, that should start Tomcat in the same window. (To stop it, just type CTRL-C). If not, then you are welcome to go look for yourself. ;-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Cookie Issue in Tomcat 6.0.20
I am seeing problem in my login logic in tomcat 6.0.20 which was working fine tomcat 5.5.*. The logic reads cookie and based on that authenticates user. This cookie is set by my company's enterprise site. For Example in the below cookie *testUser* is the login name. We need to parse and get the username (testUser) by reading cookie. COOKIE: === ECCUser:n0MSlkL7ugtO84tH:n0MTL1Z9YZSMSolB:testUser In tomcat 5.5 when i read the above cookie I get whole information. But when I read cookie using the same code in Tomcat 6.0.20 i get only ECCUser:n0MSlkL7ugtO84tH I couldn't get whole information until testUser. Since I am using the same piece of code, I was expecting it would be consistent in tomcat 6.0.20, but it is not. Please help me in this regard. Thanks in advance, Sundar Ramalingam
Re: Cookie Issue in Tomcat 6.0.20
On 21/12/2009 17:55, Sundar Ramalingam wrote: I am seeing problem in my login logic in tomcat 6.0.20 which was working fine tomcat 5.5.*. The logic reads cookie and based on that authenticates user. This cookie is set by my company's enterprise site. For Example in the below cookie *testUser* is the login name. We need to parse and get the username (testUser) by reading cookie. COOKIE: === ECCUser:n0MSlkL7ugtO84tH:n0MTL1Z9YZSMSolB:testUser In tomcat 5.5 when i read the above cookie I get whole information. But when I read cookie using the same code in Tomcat 6.0.20 i get only ECCUser:n0MSlkL7ugtO84tH I couldn't get whole information until testUser. Since I am using the same piece of code, I was expecting it would be consistent in tomcat 6.0.20, but it is not. Please help me in this regard. Tomcat won't read that cookie as you want as it isn't spec compliant (older Tomcat versions were more tolerant). If you can't get the system that is sending the broken header fixed, then you'll have to parse the header yourself. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Question about Tomcat 6.020 appBase Vs autoDeploy?
Hi, I'm new to Tomcat, but I managed to install Tomcat 6.020 which I use on a development server (production server will come soon). I have three development environments on this server, which are DEV, TEST and STAGE. Here's what my directory looks like: \Tomcat 6.0\webapps\WebAppMan\dev \Tomcat 6.0\webapps\WebAppMan\test \Tomcat 6.0\webapps\WebAppMan\stage Here's the host line in my server.xml file: Host name=xwebapp-man-mobile-dev.domain.com appBase=webapps/WebAppMan unpackWARs=true autoDeploy=true As you can see, my appBase is set to webapps/WebAppMan, because I wanted to have URLs like this (identifying the development environment used): https://xwebapp-man-mobile-dev.domain.com/dev/... https://xwebapp-man-mobile-dev.domain.com/test/... https://xwebapp-man-mobile-dev.domain.com/stage/... However, even if autoDeploy is set to true, it doesn't seem to work inside nested folders. It works If I place a .WAR file inside the webapps/WebAppMan folder, but it doesn't work if I place it inside the webapps/WebAppMan/dev folder for example. The problem with that, is that I want to give developpers read/write access to everything inside the dev, test and stage folders... but I don't want to give them access to the WebAppMan folder. They told me they have to use the autoDeploy feature to correctly install their applications... and I want them to install these inside the dev, test or stage folders (not inside the root folder WebAppMan). I could change my appBase to point directly in the dev folder like appBase=webapps/WebAppMan/dev... but that would mean I would also have to do this for the test and stage environment. I would then have to create three DNS hosts instead of one (ex: xwebapp-man-mobile-dev, xwebapp-man-mobile-test, xwebapp-man-mobile-stage). I tried to avoid that, cause we have a naming convention here that the DNS host name is identifying the dev server or the prod server, and the folder name is identifying the environment used on that server. Is there a way to keep my logic in place... and still satisfy the developers demand (be able to deploy applications themselves using a .WAR file)? Again, I'm new to Tomcat, so sorry if this looks like a weird question. Thanks! _ Pascal Vachon Senior Analyst Programmer Canam Group Phone: 418-228-8031 #2567 | Fax: 418-227-8697 Email: pascal.vac...@canamgroup.ws Web Site: Canam Group Do you really need to print this email? Think green!
Re: Question about Tomcat 6.020 appBase Vs autoDeploy?
On 21/12/2009 18:50, Pascal Vachon wrote: Is there a way to keep my logic in place... and still satisfy the developers demand (be able to deploy applications themselves using a .WAR file)? Again, I'm new to Tomcat, so sorry if this looks like a weird question. You can use virtual hosting. See http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html You can give your developers read/write to the dev host's appBase but not the other appBase directories. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question about Tomcat 6.020 appBase Vs autoDeploy?
Thanks for your quick answer... but doesn't that require a different DNS host name for my three development environments? (ex: xwebapp-man-mobile-dev, xwebapp-man-mobile-test, xwebapp-man-mobile-stage). Engine name=Catalina defaultHost=ren Host name=renappBase=renapps/ Host name=stimpy appBase=stimpyapps/ /Engine Like I mentionned in my question, I would like to use the same DNS host name for my three development environments... but use a different folder for each one of them in my URL. I just don't know how to make the autoDeploy works inside nested folders. Pascal From: Mark Thomas ma...@apache.org To: Tomcat Users List users@tomcat.apache.org Date: 12/21/2009 01:57 PM Subject: Re: Question about Tomcat 6.020 appBase Vs autoDeploy? On 21/12/2009 18:50, Pascal Vachon wrote: Is there a way to keep my logic in place... and still satisfy the developers demand (be able to deploy applications themselves using a .WAR file)? Again, I'm new to Tomcat, so sorry if this looks like a weird question. You can use virtual hosting. See http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html You can give your developers read/write to the dev host's appBase but not the other appBase directories. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question about Tomcat 6.020 appBase Vs autoDeploy?
On 21/12/2009 19:08, Pascal Vachon wrote: Thanks for your quick answer... but doesn't that require a different DNS host name for my three development environments? Yes. Like I mentionned in my question, I would like to use the same DNS host name for my three development environments... but use a different folder for each one of them in my URL. I just don't know how to make the autoDeploy works inside nested folders. You can't do what you are trying to do without separate hosts. Mark Aside: Nest folders can be achieved using the # syntax. E.g.: dev#app1.war but this does not let you limit developers to just the dev directory. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Using RemoteAddressValve with an Apache mod_proxy_balancer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/19/2009 4:22 PM, Mark Thomas wrote: On 19/12/2009 10:45, André Warnier wrote: If this is too vast as a question, just let me know and point me where to get started maybe ? Not at all, although this is heading off topic. I'd start another thread if you have trouble with the build process. ...at which point, you'll get a bunch of smart-asses asking you why you want to compile your own Tomcat from source :p - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAksvzXUACgkQ9CaO5/Lv0PAphQCgon+p8/D25GgcMXIFXXkFwkxQ 9e4AniAJPItgnSRNRrTtxOWwSF4fjm/A =R2cI -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AW: Re: Ignore http header if-modified-since
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abid, On 12/21/2009 8:54 AM, Abid Hussain wrote: [The cause was] a class called AbstractResourceProcessor from the Apache Shale framework. When requesting a resource which is actually located inside a jar, it sets the last-modified header using java.text.SimpleDateFormat format = new SimpleDateFormat(EEE, dd MMM HH:mm:ss zzz); without specifying any locale. This naturally results in a date formatted according to the server's locale. So it seems I'll have to use a filter which converts the date back to the englisch locale format. Also, I'd file a bug against Apache Shale so they can get that fixed. In the meantime, I'd run my server in en_US.UTF-8 mode and forget trying to re-write header values on the fly. Just wait for a fix from Shale for that. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAksvz0YACgkQ9CaO5/Lv0PCQHQCbBJmMMQnDR33BtB+G6aZlyN0r NHUAnRzobzVIhruSxbK+G/v5KYCAtudm =P54R -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 Log Tomcat output to file
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, On 12/21/2009 9:56 AM, Richard Sayre wrote: I usually install Tomcat as a Service under windows which causes all Tomcat output to go to stdout.log. I am in a situation where I can not do this. I have to start Tomcat from the command line. When I do all of Tomcats output is logged to the console. How do I manually configure Tomcat so the output gets logged to a file? I tried the instructions under the log4j section here http://tomcat.apache.org/tomcat-6.0-doc/logging.html When I restarted Tomcat no new log file was created. The output stilled logged to the console window. Could you specify what you did do? Posting your logging.properties file would also be helpful. I believe there are a few messages that Tomcat simply logs to System.out/System.err and there's nothing you can do about that. STARTUP.BAT calls CATALINA.BAT which, as you have seen, runs START java.exe If you read through that mess, you'll see that no output redirection is done. I think Windows doesn't do stdout/stderr inheritance when one process calls another (or, at least, running start escapes that). Finally, the start command doesn't appear to have a redirect stdout to a file option. It looks like you already tried redirecting the output of start to no avail looks like Windows is fighting you, here. Is Tomcat itself generating a lot of output? If you have your logging configuration correct, very little should end up on stdout. If it's your webapp that's spewing to stdout, check out the swallowOutput attribute of the Context configuration element in context.xml. You'll still have to have a sane logging configuration for this to work properly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAksv1BcACgkQ9CaO5/Lv0PC7TQCZAcgnZ4cDaEDHkdj+VlTYJE+v xc4AoKbYIhLVGb8EiFDj2Jkz9sW91ABV =axVp -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
j_security_check not working with flash
Hello, I have a problem authenticating my users with j_security_check interworking with a flash on my login.jsp page. Here is how things go: I use j_security_check method to authenticate my users. As a result, I have assigned a login.jsp page where I have a login form and at the top of the page a menu developed with flash: ..::1 - Login Form::.. form method='POST' action='j_security_check' Username:input type='text' name='j_username'br Password:input type='password' name='j_password'br input type='submit' value='Log In' /form ..::2 - Menu Flash::.. When the user is prompt to login, then inserts the correct username - password. But after submit, the authentication method fails and the error page appears from Tomcat: HTTP Status 404 - /./j_security_check type Status report message /./j_security_check description The requested resource (/./j_security_check) is not available. Then I simply remove my flash menu and the whole login procedure of the user is performed correctly!! This means that flash caused the error in this page!! Is there a way I can have in my login.jsp page my flash menu and perform the login successfully? Thanks in Advance for the answer, papado. -- View this message in context: http://old.nabble.com/j_security_check-not-working-with-flash-tp26880231p26880231.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: j_security_check not working with flash
Try resetting your browser, meaning fully close it, or try from a different browser. Same result? I sometimes get the exact same (/./j_security_check) is not available. when i have had my browser open on the doc for while and re-authenticate. Same thing happens on my cisco call manager when i let the login go stale a few times without closing the browser. Maybe that will help you troubleshoot it further. On Mon, Dec 21, 2009 at 1:50 PM, vpapado vpapadopoulos2...@yahoo.gr wrote: Hello, I have a problem authenticating my users with j_security_check interworking with a flash on my login.jsp page. Here is how things go: I use j_security_check method to authenticate my users. As a result, I have assigned a login.jsp page where I have a login form and at the top of the page a menu developed with flash: ..::1 - Login Form::.. form method='POST' action='j_security_check' Username:input type='text' name='j_username'br Password:input type='password' name='j_password'br input type='submit' value='Log In' /form ..::2 - Menu Flash::.. When the user is prompt to login, then inserts the correct username - password. But after submit, the authentication method fails and the error page appears from Tomcat: HTTP Status 404 - /./j_security_check type Status report message /./j_security_check description The requested resource (/./j_security_check) is not available. Then I simply remove my flash menu and the whole login procedure of the user is performed correctly!! This means that flash caused the error in this page!! Is there a way I can have in my login.jsp page my flash menu and perform the login successfully? Thanks in Advance for the answer, papado. -- View this message in context: http://old.nabble.com/j_security_check-not-working-with-flash-tp26880231p26880231.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: j_security_check not working with flash
Hello, Thank you for fast reply. I try everything. Open in different browser, etc. But the whole login procedure seems to result to error from Tomcat when I have my flash on the login.jsp page. When I remove this flash everything seems to work OK. Is there a possibility that j_security_check type of authentication conflicts with flash swf file? Who knows... I know about the problem with re-authentication and I solved it in a way that whenever a user goes to login.jsp page again (this means that there is already a user loged in the current secured file system), then I simultaneously log out the user with session.invalidate(); and redirect him to the same page where the user pressed log-in button. This will cause to automatic redirection to login.jsp page, since tomcat recognises that there is no user loged-in at that moment. This causes successful re-authentication. Thank you again for the fast answer. papado. anthonyvierra wrote: Try resetting your browser, meaning fully close it, or try from a different browser. Same result? I sometimes get the exact same (/./j_security_check) is not available. when i have had my browser open on the doc for while and re-authenticate. Same thing happens on my cisco call manager when i let the login go stale a few times without closing the browser. Maybe that will help you troubleshoot it further. On Mon, Dec 21, 2009 at 1:50 PM, vpapado vpapadopoulos2...@yahoo.gr wrote: Hello, I have a problem authenticating my users with j_security_check interworking with a flash on my login.jsp page. Here is how things go: I use j_security_check method to authenticate my users. As a result, I have assigned a login.jsp page where I have a login form and at the top of the page a menu developed with flash: ..::1 - Login Form::.. form method='POST' action='j_security_check' Username:input type='text' name='j_username'br Password:input type='password' name='j_password'br input type='submit' value='Log In' /form ..::2 - Menu Flash::.. When the user is prompt to login, then inserts the correct username - password. But after submit, the authentication method fails and the error page appears from Tomcat: HTTP Status 404 - /./j_security_check type Status report message /./j_security_check description The requested resource (/./j_security_check) is not available. Then I simply remove my flash menu and the whole login procedure of the user is performed correctly!! This means that flash caused the error in this page!! Is there a way I can have in my login.jsp page my flash menu and perform the login successfully? Thanks in Advance for the answer, papado. -- View this message in context: http://old.nabble.com/j_security_check-not-working-with-flash-tp26880231p26880231.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/j_security_check-not-working-with-flash-tp26880231p26880891.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Servlets in web-inf/lib
I have some servlets that are in jars in web-inf/lib and Tomcat does not see them. I know that it is typical to have servlets in web-inf/classes, but it is an existing application. Is there a way to get Tomcat to use these Servlets without moving them to web-inf/classes? They are mapped in the web.xml, but I get 404s when I browse to them. Thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlets in web-inf/lib
1. It's WEB-INF, not web-inf. Case matters. 2. If the classes are in .jar files, yes. Otherwise they will have to be in WEB-INF/classes --David Clay McCoy wrote: I have some servlets that are in jars in web-inf/lib and Tomcat does not see them. I know that it is typical to have servlets in web-inf/classes, but it is an existing application. Is there a way to get Tomcat to use these Servlets without moving them to web-inf/classes? They are mapped in the web.xml, but I get 404s when I browse to them. Thanks - - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
TomCat 6 performance issues
Hello. I have TomCat server on production and have from 80 up to 400 requests per second. In server.xml I have next connector description: Connector port=80 maxThreads=200 acceptCount=100 minSpareThreads=5 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true connectionTimeout=1500 keepAliveTimeout=0 maxKeepAliveRequests=1 / For application spesific we don't need to support keep alive and don't need to wait for huge requests. Main task is to serve responses as fast as we can. ~Time for request processing on server (I use tomcat log figures and own time counters for checking) is 1 ms. PROBLEM now: Most part of time server works fine and ~ time for request/response 300 ms (for external users via browser) BUT time to time request/response time is upto 5 seconds for the same users. How I could figure out a problem? How could I check if it is Tomcat server problem or not? You are very welcome with comments. Thanks, Denis. -- View this message in context: http://old.nabble.com/TomCat-6-performance-issues-tp26884227p26884227.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: TomCat 6 performance issues
This could be problem with memmory and GC. Please show your jvm memmory settings. Regards, Zacheusz On Tue, Dec 22, 2009 at 6:36 AM, DOrlov dor...@redaril.com wrote: Hello. I have TomCat server on production and have from 80 up to 400 requests per second. In server.xml I have next connector description: Connector port=80 maxThreads=200 acceptCount=100 minSpareThreads=5 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true connectionTimeout=1500 keepAliveTimeout=0 maxKeepAliveRequests=1 / For application spesific we don't need to support keep alive and don't need to wait for huge requests. Main task is to serve responses as fast as we can. ~Time for request processing on server (I use tomcat log figures and own time counters for checking) is 1 ms. PROBLEM now: Most part of time server works fine and ~ time for request/response 300 ms (for external users via browser) BUT time to time request/response time is upto 5 seconds for the same users. How I could figure out a problem? How could I check if it is Tomcat server problem or not? You are very welcome with comments. Thanks, Denis. -- View this message in context: http://old.nabble.com/TomCat-6-performance-issues-tp26884227p26884227.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: TomCat 6 performance issues
Zacheusz Siedlecki-2 wrote: This could be problem with memmory and GC. Please show your jvm memmory settings. Regards, Zacheusz Thank you for reply, I use next memory and GC settings: -Xms1024m -Xmx6144m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -- View this message in context: http://old.nabble.com/TomCat-6-performance-issues-tp26884227p26884294.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat shutdown automaticly after randomaly period of time
hi, i have Tomcat 6.0.20. i config server.xml to work with SSL. the problem is that Tomcat shutdown after randomaly period of time and doesnt restart again. in server.xml i config: !--Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 /-- !-- A Connector using the shared thread pool-- !-- Connector executor=tomcatThreadPool port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / -- !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- Connector port=8443 protocol=HTTP/1.1 maxThreads=150 scheme=https secure=true SSLEnabled=true keystoreFile=/certificate/.key keystorePass=changeit clientAuth=false sslProtocol=TLS URIEncoding=UTF-8 compression=on compressableMimeType=text/html,text/xml,text/css,text/plain,text/javascript,application/javascript,application/x-javascript / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=443 / the log i get is: Catalina.2009-12-21.log: Dec 21, 2009 3:13:45 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/cie /java/jdk1.5.0_21/jre/lib/i386/server:/opt/cie/java/jdk1.5.0_21/jre/lib/i386:/opt/cie/java/jdk1.5.0_21/jre/../lib/i386 Dec 21, 2009 3:13:46 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 Dec 21, 2009 3:13:46 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2784 ms Dec 21, 2009 3:13:46 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 21, 2009 3:13:46 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Dec 21, 2009 3:13:49 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive AdminManager.war Dec 21, 2009 3:14:55 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive Publisher.war Dec 21, 2009 3:15:36 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive Advertiser.war Dec 21, 2009 3:16:11 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Dec 21, 2009 3:16:11 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Dec 21, 2009 3:16:12 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/171 config=null Dec 21, 2009 3:16:12 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 145986 ms Dec 21, 2009 3:50:04 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/cie /java/jdk1.5.0_21/jre/lib/i386/server:/opt/cie/java/jdk1.5.0_21/jre/lib/i386:/opt/cie/java/jdk1.5.0_21/jre/../lib/i386 Dec 21, 2009 3:50:06 AM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in usenull:8443 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:509) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176) at org.apache.catalina.connector.Connector.initialize(Connector.java:1058) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:535) at org.apache.catalina.startup.Catalina.load(Catalina.java:555) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) Dec 21, 2009 3:50:06 AM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in usenull:8443 at org.apache.catalina.connector.Connector.initialize(Connector.java:1060) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at
Re: Tomcat shutdown automaticly after randomaly period of time
I think it happens when another process else uses port 8443 : java.net.BindException: Address already in usenull:8443 Regards, Zacheusz On Tue, Dec 22, 2009 at 7:18 AM, Tomcat1 z...@amdocs.com wrote: hi, i have Tomcat 6.0.20. i config server.xml to work with SSL. the problem is that Tomcat shutdown after randomaly period of time and doesnt restart again. in server.xml i config: !--Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 /-- !-- A Connector using the shared thread pool-- !-- Connector executor=tomcatThreadPool port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 / -- !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- Connector port=8443 protocol=HTTP/1.1 maxThreads=150 scheme=https secure=true SSLEnabled=true keystoreFile=/certificate/.key keystorePass=changeit clientAuth=false sslProtocol=TLS URIEncoding=UTF-8 compression=on compressableMimeType=text/html,text/xml,text/css,text/plain,text/javascript,application/javascript,application/x-javascript / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=443 / the log i get is: Catalina.2009-12-21.log: Dec 21, 2009 3:13:45 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/cie /java/jdk1.5.0_21/jre/lib/i386/server:/opt/cie/java/jdk1.5.0_21/jre/lib/i386:/opt/cie/java/jdk1.5.0_21/jre/../lib/i386 Dec 21, 2009 3:13:46 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 Dec 21, 2009 3:13:46 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2784 ms Dec 21, 2009 3:13:46 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 21, 2009 3:13:46 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Dec 21, 2009 3:13:49 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive AdminManager.war Dec 21, 2009 3:14:55 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive Publisher.war Dec 21, 2009 3:15:36 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive Advertiser.war Dec 21, 2009 3:16:11 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Dec 21, 2009 3:16:11 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Dec 21, 2009 3:16:12 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/171 config=null Dec 21, 2009 3:16:12 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 145986 ms Dec 21, 2009 3:50:04 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/cie /java/jdk1.5.0_21/jre/lib/i386/server:/opt/cie/java/jdk1.5.0_21/jre/lib/i386:/opt/cie/java/jdk1.5.0_21/jre/../lib/i386 Dec 21, 2009 3:50:06 AM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in usenull:8443 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:509) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176) at org.apache.catalina.connector.Connector.initialize(Connector.java:1058) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:535) at org.apache.catalina.startup.Catalina.load(Catalina.java:555) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) Dec 21, 2009 3:50:06 AM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: