Re: isapi_redirector.dll Problems - Bad Gateway?
amythyst schrieb am 20.12.2010 um 10:17 (-0800): The default website in IIS (version 6) is up and the ISAPI filter is loaded with the green light. However, when we go to the website we're getting a Bad Gateway error and the ISAPI logs say this: [Thu Dec 16 11:20:10.559 2010] [1508:1800] [error] ajp_get_reply::jk_ajp_common.c (2058): (worker1) Tomcat is down or refused connection. No response has been sent to the client (yet) Does Tomcat have an AJP connector configured for the port the ISAPI is expecting? Have you tried to run netstat? netstat -an -p tcp There should be something listening on the AJP port, probably 8009. Do you have a firewall that might block Tomcat? You could post your worker.properties file to provide further information. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 5.5.20
vikas.sha...@polaris.co.in schrieb am 21.12.2010 um 10:34 (+0530): Can you please tell me in which version this problem was fixed, so that i can upgarde the version of my tomcat to avoid this problem Why don't you simply upgrade to the latest version of your line? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 5.5.20
Dear Michael, My system is in production now.. thats why i was looking for a sure shot version. Michael Ludwig mil...@gmx.de To 12/21/2010 02:36 users@tomcat.apache.org PM cc Subject Please respond to Re: tomcat 5.5.20 Tomcat Users List us...@tomcat.apa che.org vikas.sha...@polaris.co.in schrieb am 21.12.2010 um 10:34 (+0530): Can you please tell me in which version this problem was fixed, so that i can upgarde the version of my tomcat to avoid this problem Why don't you simply upgrade to the latest version of your line? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit us at http://www.polaris.co.in - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 5.5.20
On 21/12/2010 09:12, vikas.sha...@polaris.co.in wrote: Dear Michael, My system is in production now.. thats why i was looking for a sure shot version. That info is in the bug report and the change log. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: APR and async request
OK; I've got it... when I change the Connector from HTTP/1.1 to org.apache.coyote.http11.Http11NioProtocol is works. Sounds a bit logical (Non-Blocking and async) but can someone please explain? Thank you when I disable APR by removing the tcnative-1.dll or by removing the APR listener from server.xml async requests do not work anymore. I get immediately after the request an empty response body with status 200. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: APR and async request
On 21/12/2010 13:07, spr...@gmx.eu wrote: OK; I've got it... when I change the Connector from HTTP/1.1 to org.apache.coyote.http11.Http11NioProtocol is works. Sounds a bit logical (Non-Blocking and async) but can someone please explain? You'll need to explain what you mean by async requests before anyone can answer that. Mark Thank you when I disable APR by removing the tcnative-1.dll or by removing the APR listener from server.xml async requests do not work anymore. I get immediately after the request an empty response body with status 200. - 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
Does mod_dosevasive work in this situation?
Hi, I have tomcat running behind apache http server using mod_proxy, I'd like to stop some DOS attacks, and thinking of installing http://www.zdziarski.com/blog/?page_id=442 mod_evasive , is this effective considering all the traffic is being proxied to tomcat ? Thanks, Angelo -- View this message in context: http://old.nabble.com/Does-mod_dosevasive-work-in-this-situation--tp30505994p30505994.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: Re: Occasional (!) error (404) Not Found with Apache Axis 1.4 web service after update to Tomcat 6.0.29
Hi Konstantin, thank you for your quick reply! Am 20:59, schrieb Konstantin Kolinko: 2010/12/20 Felix Dierichf.dier...@overspeed.de: I have a very strange issue, which only occured after an update from Tomcat 6.0.26 to 6.0.29. I have a number applications doing alltogether ~50-100 SOAP calls per minute to an Apache Axis 1.4 based web service running on Tomcat. After the Tomcat update some of these calls suddenly get a (404)Not Found response from the servlet, with no clear pattern. In a write operation with 20 SOAP calls more or less at once, two may get this response, the rest works well. This has never happened under 6.0.26. How is JspServlet configured in your conf/web.xml ? It is vanilla config: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namefork/param-name param-valuefalse/param-value /init-param init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param load-on-startup3/load-on-startup /servlet I'd recommend to set its development parameter to the value of false. Okay, I will give this a try, thanks. I'm surprised it true by default when installing with the standard Tomcat Windows installer. --- An update from my side: I'm now assuming, that the issue causing this is actually coming out of Axis. I have had many issues with Axis 1.x not seeming to be thread-safe on client side (and I use a lot of multiple threads, typically ~20-30) and I have put in a lot of workarounds for issues coming out of this, but this one is new: I normally use two different URLs of redundant services in my SOAP calls. The usually differ only by hostname, the rest is the same. When setting up the new Tomcat version I had to change the webapp path, so that I ended up with different hostnames and webapp paths in the two URLs. It seems like Axis 1.x is sometimes getting the URLs of different call objects confused, but the hostname and path parts separately... Not good. This previously was unnoticed in my software as the paths were always the same (in the situations with redundant services), now I got 404 because the hostname and changed webapp path did not match... I have now made the webapp paths the same in my test environment and so far I haven't got a 404 again. So it seems like this is not an issue with Tomcat, but with Axis 1.x. Sorry for bothering the wrong mailing list in the end. I know Axis 1.x has been discontinued for quite a while now, but I haven't yet found the time to switch to a different Java SOAP lib like Axis2 (which is a rewrite and needs a bit more work to change to), but it is pretty clear I have to do that sooner rather than later... Thanks and regards Felix - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: APR and async request
I mean the new servlet 3.0 capabilities: startAsync() and the resulting AsyncContext: request.startAsync() AsyncContext#getResponse() sample: HttpServletResponse res = (HttpServletResponse)ac.getResponse(); res.setStatus(200); res.setHeader(X-Foo, bar); res.setContentType(application/xml); PrintWriter w = res.getWriter(); w.println(foo/); w.flush(); ac.complete(); It seem that the response object is some what damaged, the code does not fail, but the client only receives status 200, no body and no custom headers send via Response#setHeader(X-..., ...). Thank you! -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Dienstag, 21. Dezember 2010 14:10 To: Tomcat Users List Subject: Re: APR and async request On 21/12/2010 13:07, spr...@gmx.eu wrote: OK; I've got it... when I change the Connector from HTTP/1.1 to org.apache.coyote.http11.Http11NioProtocol is works. Sounds a bit logical (Non-Blocking and async) but can someone please explain? You'll need to explain what you mean by async requests before anyone can answer that. Mark Thank you when I disable APR by removing the tcnative-1.dll or by removing the APR listener from server.xml async requests do not work anymore. I get immediately after the request an empty response body with status 200. - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
Hi, running under W2K3, tomcat 6.0.26 and java 1.6_22 I get after a while: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader at: Iterator it = ImageIO.getImageReadersByFormatName(TIF); r = (TIFFImageReader)it.next(); //==BANG When I restart tomcat, everything is fine again for some hours and the it happens again until tomcat is restartet. It seems that somewhat reloads the webapp which uses TIFFImageReader but that plugin is still somewhere in another classloader which causes this CCE then. The problem is: No one explicitly reloads the app. Nothing to be seen in the logs. The app is the only app on this tomcat. NO JreMemoryLeakPreventionListener is configured in server.xml. What can be the problem here? Thank you - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
On 21 Dec 2010, at 15:20, spr...@gmx.eu spr...@gmx.eu wrote: Hi, running under W2K3, tomcat 6.0.26 and java 1.6_22 I get after a while: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader at: Iterator it = ImageIO.getImageReadersByFormatName(TIF); r = (TIFFImageReader)it.next(); //==BANG When I restart tomcat, everything is fine again for some hours and the it happens again until tomcat is restartet. It seems that somewhat reloads the webapp which uses TIFFImageReader but that plugin is still somewhere in another classloader which causes this CCE then. The problem is: No one explicitly reloads the app. Nothing to be seen in the logs. The app is the only app on this tomcat. NO JreMemoryLeakPreventionListener is configured in server.xml. What can be the problem here? ImageIO pins the classloader it first uses. So if that's a WebappClassloader you subsequently reload the app you'll have a memory leak the potential for class cast exceptions. The leak prevention stuff handles this, but you've turned it off. Thank you - 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: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
ImageIO pins the classloader it first uses. So if that's a WebappClassloader you subsequently reload the app you'll have a memory leak the potential for class cast exceptions. As I said, nobody reloads the app (at least I cannot see this in the logs). It just happens after a while. The leak prevention stuff handles this, but you've turned it off. When I active the listener I get a NPE... Iterator it = ImageIO.getImageReadersByFormatName(TIF); r = (TIFFImageReader)it.next(); //== NPE Thank you! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: http-tomcat - AJP ilink receive failed - 500/503 errors
Thanks for the tips Chris. I had tried AJP PING/PONG options which worked for a while, but not consistently. Seems like a better solution would be to work with network folks regarding firewall config. Just want to mention a nice Perl script that I found during debugging: http://www.perlmonks.org/?node_id=766945 , useful for sending AJP ping requests to Tomcat independent of web server. -- Shantanu. On Dec 16, 2010, at 1:54 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shantanu, On 12/15/2010 5:45 PM, Shantanu Pavgi wrote: There was a firewall between two systems (distinct from CentOS iptables), which dropped (idle) connections after some time. Not sure about exact firewall config here. The Apache web server would throw an 500/503 error when it tried to reuse an open connection which firewall had already closed. The issue was resolved by using disablereuse parameter in ProxyPass directive. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass mod_jk (and therefore AJP) supports a ping operation in order to keep the channels open but validate them (and re-connect if necessary) before using them. You might want to look for those options in mod_proxy_ajp to improve performance. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0Kbn4ACgkQ9CaO5/Lv0PBZGACfVg8rodAPEAn7bhqm3OGJrifC SrkAoIeWVDqZ+3Q0i4g8hcJ/10HXLrxY =9H2n -END PGP SIGNATURE- - 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 7.0.4 on MAC my app works on Windows get...
tomcat 7.0.4 on MAC my app works on Windows get... SEVERE: Exception starting filter struts2 java.lang.NoClassDefFoundError: Lorg/apache/velocity/app/VelocityEngine; i have removed all other applications from the webapps and have restarted the box. Application is built with maven, and i used the exact same war file. Any ideas on what to try next? Thanks, Joe
RE: Webapp undeploy failure
Hi Thank you both for info. I didn't put the app into server.xml so I don't know how it got there but the problem is solved now. Thanks Lewis -Original Message- From: Michael Ludwig [mailto:mil...@gmx.de] Sent: 21 December 2010 00:11 To: users@tomcat.apache.org Subject: Re: Webapp undeploy failure Pid schrieb am 20.12.2010 um 19:39 (+): On 20/12/2010 17:13, McGibbney, Lewis John wrote: Looking at server.xml I find that 'wombra' is the only webapp specified […] Don't define your app in server.xml. To understand why, search the list archives for Caldarale and context, and/or read the relevant section in the manual. http://tomcat.apache.org/tomcat-6.0-doc/config/context.html -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Email has been scanned for viruses by Altman Technologies' email management service - www.altman.co.uk/emailsystems Glasgow Caledonian University is a registered Scottish charity, number SC021474 Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009 http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Joe Greenawalt schrieb am 21.12.2010 um 12:04 (-0500): tomcat 7.0.4 on MAC my app works on Windows get... SEVERE: Exception starting filter struts2 java.lang.NoClassDefFoundError: Lorg/apache/velocity/app/VelocityEngine; i have removed all other applications from the webapps and have restarted the box. Application is built with maven, and i used the exact same war file. The JAR containing Velocity is missing at runtime. Or if present, it doesn't have the class the filter needs. Is Velocity in the WAR in WEB-INF/lib? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: APR and async request
On 21/12/2010 15:09, spr...@gmx.eu wrote: I mean the new servlet 3.0 capabilities: startAsync() and the resulting AsyncContext: request.startAsync() AsyncContext#getResponse() sample: HttpServletResponse res = (HttpServletResponse)ac.getResponse(); res.setStatus(200); res.setHeader(X-Foo, bar); res.setContentType(application/xml); PrintWriter w = res.getWriter(); w.println(foo/); w.flush(); ac.complete(); It seem that the response object is some what damaged, the code does not fail, but the client only receives status 200, no body and no custom headers send via Response#setHeader(X-..., ...). That should work with all connectors and there are a fair number of test cases that check that it does. If you have a simple, reproducible test case then please open a bugzilla issue. Mark Thank you! -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Dienstag, 21. Dezember 2010 14:10 To: Tomcat Users List Subject: Re: APR and async request On 21/12/2010 13:07, spr...@gmx.eu wrote: OK; I've got it... when I change the Connector from HTTP/1.1 to org.apache.coyote.http11.Http11NioProtocol is works. Sounds a bit logical (Non-Blocking and async) but can someone please explain? You'll need to explain what you mean by async requests before anyone can answer that. Mark Thank you when I disable APR by removing the tcnative-1.dll or by removing the APR listener from server.xml async requests do not work anymore. I get immediately after the request an empty response body with status 200. - 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 - 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 7.0.4 on MAC my app works on Windows get...
2010/12/21 Joe Greenawalt joe.greenaw...@gmail.com: Here is the lib Folder of the deployed app: activation-1.1.jar (...) slf4j-log4j12-1.5.2.jar and which one of the jars listed above belongs to Velocity? java.lang.NoClassDefFoundError: Lorg/apache/velocity/app/VelocityEngine; - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Well since its the exact same war file placed in the exact same version of tomcat, the main variable being the OS (mac/windows) my thinking is that the class does exist, but its getting loaded differently or something else is causing the problem but this log error is getting reported. If it will help, i can try to find it in the jar files. On Tue, Dec 21, 2010 at 1:09 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2010/12/21 Joe Greenawalt joe.greenaw...@gmail.com: Here is the lib Folder of the deployed app: activation-1.1.jar (...) slf4j-log4j12-1.5.2.jar and which one of the jars listed above belongs to Velocity? java.lang.NoClassDefFoundError: Lorg/apache/velocity/app/VelocityEngine; - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Joe Greenawalt schrieb am 21.12.2010 um 13:26 (-0500): Well since its the exact same war file placed in the exact same version of tomcat, the main variable being the OS (mac/windows) Not necessarily. The Tomcats might well be configured differently. What's the contents of the %Tomcat_Home%\lib\ folder on Windows? Or anything in conf\catalina.properties? Same story for the JVM. Velocity in lib/ext/, who knows? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to put restrictions to mod_jk's log
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kikuchi, On 12/20/2010 10:26 PM, Yu Kikuchi wrote: My Environment: Apache 2.2.11 mod_jk 1.2.30 When my system is highly-loaded, the messeges are printed in mod_jk.log. [mod_jk.log] [Tue Dec 21 11:31:25.958 2010] [4744:3086915888] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (962): Uri * is invalid. Uri must start with / I don't want to print out the warning messages on mod_jk.log. Would you tell me how to restrict them? If you use JkLogLevel, you'll have to set it to ERROR, which I wouldn't recommend: INFO is probably the best setting. PS. I assume the messages are caused by Internal Dummy Connection of Apache by reading access_log. [access_log] ::1 - - [21/Dec/2010:11:31:25 +0900] OPTIONS * HTTP/1.0 200 - Maybe you should make sure that requests to * don't get sent to mod_jk. Maybe something like this: JkUnmount * What do your existing JkMount statements look like? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RBnMACgkQ9CaO5/Lv0PBQXgCgokD0S9r0DYzrwQ1+/QJHZRUk khIAniRvbhdtcSgcgWsU3fy3SEbC83PR =tzHf -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Does mod_dosevasive work in this situation?
On 21.12.2010 14:10, AngeloChen wrote: Hi, I have tomcat running behind apache http server using mod_proxy, I'd like to stop some DOS attacks, and thinking of installing http://www.zdziarski.com/blog/?page_id=442 mod_evasive , is this effective considering all the traffic is being proxied to tomcat ? It could, but it depends on the type of attac you are experiencing. There's also mod_reqtimeout for some other type of attack, which is now part of the httpd 2.2.x standard distribution. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to put restrictions to mod_jk's log
On 21.12.2010 20:56, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kikuchi, On 12/20/2010 10:26 PM, Yu Kikuchi wrote: My Environment: Apache 2.2.11 mod_jk 1.2.30 When my system is highly-loaded, the messeges are printed in mod_jk.log. [mod_jk.log] [Tue Dec 21 11:31:25.958 2010] [4744:3086915888] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (962): Uri * is invalid. Uri must start with / I don't want to print out the warning messages on mod_jk.log. Would you tell me how to restrict them? If you use JkLogLevel, you'll have to set it to ERROR, which I wouldn't recommend: INFO is probably the best setting. Seconded. But you can add rotatelogs to JkLogFile 8in the same way one does it for Customlog), which at least lets you compress and purge the files in regular intervals (after being rotated). Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does my stderr go?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, On 12/21/2010 2:43 AM, Thomas Kloeber wrote: I'm not sure if Tomcat's service wrapper will fail silently or angrily if files cannot be created. If I were you, I'd specify an exact filename, including full path, for the Redirect Stdout and Redirect Stderr settings, and make sure that the effective user running the Tomcat service (TOMCAT? LOCAL_SERVICE?) has rights to write to that file/directory. this is exactly what I did on a previous suggestion. I replaced the auto bits with C:\tmp\stderr and C:\tmp\stdout. Tomcat creates the files and writes into stdout. Excellent. It also creates stderr but it remains empty. :( That might be a bug in the service wrapper. Can you re-test with 6.0.29 and a minimal WAR file (nothing but a .jsp that prints to both stdout and stderr should do it)? If it still fails, please file a bug in bugzilla: https://issues.apache.org/bugzilla/ When I set it to auto the files are created in the standard log directory with the names stdout_XXX.log and stderr_XXX.log where XXX is the date the files were created. Sorry, I didn't catch that, earlier. logging.properties: Since stdout is working, swallowOutput isn't in effect, which means that the contents of logging.properties aren't really relevant. Sorry for the misstep on my part. That logging.properties looks pretty stock, anyway. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RC5cACgkQ9CaO5/Lv0PDoeQCgg1n5UriEllIkeoxx8K5q9JN/ FucAoKDx0QrHKVZRLDqhZkBb5vAMlmEx =1na+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micheal, On 12/21/2010 2:22 PM, Michael Ludwig wrote: Joe Greenawalt schrieb am 21.12.2010 um 13:26 (-0500): Well since its the exact same war file placed in the exact same version of tomcat, the main variable being the OS (mac/windows) Not necessarily. The Tomcats might well be configured differently. What's the contents of the %Tomcat_Home%\lib\ folder on Windows? Or anything in conf\catalina.properties? +1 What's likely is whoever set up your original system had the brilliant idea of pushing the libraries up to the upper-level class loaders. We've had a rash of questions over the last 7 days or so about this kind of thing, and we always tell people not to do it. This is a huge reason why not to do it. Same story for the JVM. Velocity in lib/ext/, who knows? Yikes! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RC40ACgkQ9CaO5/Lv0PB2fgCgmb+6QqQfar4j8kTu+a5V5ZVL UH8An1ZjxYlwrqGqdcxPx5DGEHVUSMQt =QTfo -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Good points, i'll start searching for them. Anyone have a OS X jar inspector recommendation? 'jarinspector' itself doesn't work on 10.6. Thanks for the feedback. Joe On Tue, Dec 21, 2010 at 3:18 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micheal, On 12/21/2010 2:22 PM, Michael Ludwig wrote: Joe Greenawalt schrieb am 21.12.2010 um 13:26 (-0500): Well since its the exact same war file placed in the exact same version of tomcat, the main variable being the OS (mac/windows) Not necessarily. The Tomcats might well be configured differently. What's the contents of the %Tomcat_Home%\lib\ folder on Windows? Or anything in conf\catalina.properties? +1 What's likely is whoever set up your original system had the brilliant idea of pushing the libraries up to the upper-level class loaders. We've had a rash of questions over the last 7 days or so about this kind of thing, and we always tell people not to do it. This is a huge reason why not to do it. Same story for the JVM. Velocity in lib/ext/, who knows? Yikes! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RC40ACgkQ9CaO5/Lv0PB2fgCgmb+6QqQfar4j8kTu+a5V5ZVL UH8An1ZjxYlwrqGqdcxPx5DGEHVUSMQt =QTfo -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Joe Greenawalt schrieb am 21.12.2010 um 15:22 (-0500): Good points, i'll start searching for them. Anyone have a OS X jar inspector recommendation? 'jarinspector' itself doesn't work on 10.6. Searching? For starters, you should check the following: dir %TOMCAT_HOME%\lib type %TOMCAT_HOME%\conf\catalina.properties dir %java_home%\jre\lib\ext -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does my stderr go?
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, On 12/21/2010 2:43 AM, Thomas Kloeber wrote: I'm not sure if Tomcat's service wrapper will fail silently or angrily if files cannot be created. If I were you, I'd specify an exact filename, including full path, for the Redirect Stdout and Redirect Stderr settings, and make sure that the effective user running the Tomcat service (TOMCAT? LOCAL_SERVICE?) has rights to write to that file/directory. this is exactly what I did on a previous suggestion. I replaced the auto bits with C:\tmp\stderr and C:\tmp\stdout. Tomcat creates the files and writes into stdout. Excellent. It also creates stderr but it remains empty. :( That might be a bug in the service wrapper. Can you re-test with 6.0.29 and a minimal WAR file (nothing but a .jsp that prints to both stdout and stderr should do it)? If it still fails, please file a bug in bugzilla: https://issues.apache.org/bugzilla/ When I set it to auto the files are created in the standard log directory with the names stdout_XXX.log and stderr_XXX.log where XXX is the date the files were created. Sorry, I didn't catch that, earlier. logging.properties: Since stdout is working, swallowOutput isn't in effect, which means that the contents of logging.properties aren't really relevant. Sorry for the misstep on my part. That logging.properties looks pretty stock, anyway. And if, in the tomcat6w.exe gui, you navigate to the Java tab, what are the options mentioned there for the JVM ? (There might be a -D there which redirects the JVM stderr) (which is really the stderr you are looking for here). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 12/21/2010 3:43 PM, Michael Ludwig wrote: Joe Greenawalt schrieb am 21.12.2010 um 15:22 (-0500): Good points, i'll start searching for them. Anyone have a OS X jar inspector recommendation? 'jarinspector' itself doesn't work on 10.6. Searching? For starters, you should check the following: dir %TOMCAT_HOME%\lib type %TOMCAT_HOME%\conf\catalina.properties dir %java_home%\jre\lib\ext You're really just looking for velocity-[version].jar. It should be self-contained. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RHhoACgkQ9CaO5/Lv0PAfgACgk3ERA9Z7WNq47lWUMu/J2MK4 2OcAnAxPZA0pWPtXUaYL6HoDnbcYjh7g =BGs7 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does my stderr go?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/21/2010 3:50 PM, André Warnier wrote: And if, in the tomcat6w.exe gui, you navigate to the Java tab, what are the options mentioned there for the JVM ? (There might be a -D there which redirects the JVM stderr) (which is really the stderr you are looking for here). Is there a system property that redirects stderr? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RHpIACgkQ9CaO5/Lv0PAuqgCbBGN5p3HGROwA5bCcIwPyGOUH iMQAnAvvJk38+LOF+Mho2oIRsGxZFPKB =ePYR -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: http-tomcat - AJP ilink receive failed - 500/503 errors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shantanu, On 12/21/2010 11:11 AM, Shantanu Pavgi wrote: I had tried AJP PING/PONG options which worked for a while, but not consistently. Seems like a better solution would be to work with network folks regarding firewall config. It's always good to avoid errors than to recover from them. If the CPING/CPONGs weren't working well, you should have posted here: Rainer and Mladen can usually give inspect your configuration and give you some tips. Just want to mention a nice Perl script that I found during debugging: http://www.perlmonks.org/?node_id=766945 , useful for sending AJP ping requests to Tomcat independent of web server. Go ahead and add that link to the Tomcat Wiki: sounds like a very useful tool. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RIYIACgkQ9CaO5/Lv0PDpzwCeObz3ngrxexgbk57o3pp8jF19 0DMAnA7fKrZmyGyfv3jZiILjlgzGdmMT =lTS2 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
interestingly its not, and when i add it to windows it works (with some other things like velosity tools), but i still don't have it on my mac or in the app and it runs there. So i have a workaround, but still don't understand how. Guess i'll add it to the pom. Thanks for the input and help. On Tue, Dec 21, 2010 at 4:37 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 12/21/2010 3:43 PM, Michael Ludwig wrote: Joe Greenawalt schrieb am 21.12.2010 um 15:22 (-0500): Good points, i'll start searching for them. Anyone have a OS X jar inspector recommendation? 'jarinspector' itself doesn't work on 10.6. Searching? For starters, you should check the following: dir %TOMCAT_HOME%\lib type %TOMCAT_HOME%\conf\catalina.properties dir %java_home%\jre\lib\ext You're really just looking for velocity-[version].jar. It should be self-contained. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0RHhoACgkQ9CaO5/Lv0PAfgACgk3ERA9Z7WNq47lWUMu/J2MK4 2OcAnAxPZA0pWPtXUaYL6HoDnbcYjh7g =BGs7 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: IS that a good idea moving all the common libs?
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, December 20, 2010 1:08 PM To: Tomcat Users List Subject: Re: IS that a good idea moving all the common libs? On Dec 20, 2010, at 12:16, Luca Gervasi tom...@ashetic.net wrote: I'm trying to lower the permgen needed by a large amount of webapps moving all the commonly used libs to the tomcat common libs. That's a really, really bad idea. You would be intertwining all your webapps, potentially introducing object leaks across webapps, and creating insurmountable versioning issues. You'd also require a complete Tomcat restart to update any single webapp. I'm really not seeing that. Anyhow, would the suggestion change if you were running 300+ web applications? Webapps are intended to be independent; don't make your life miserable by tying them all together. If you need more PermGen space, configure it. If you've got memory leaks, fix them. - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org George Sexton MH Software, Inc. 303 438-9585 www.mhsoftware.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Joe Greenawalt schrieb am 21.12.2010 um 17:40 (-0500): interestingly its not Not what? (Lack of clarity and precision so typical of top-posting …) and when i add it to windows it works What do you mean when I add it? Weren't you saying that it worked on Windows even though there is no Velocity in the web app? So have you located the JAR on your Windows box now? (with some other things like velosity tools), but i still don't have it on my mac or in the app and it runs there. So i have a workaround, but still don't understand how. Guess i'll add it to the pom. Hmm? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does my stderr go?
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/21/2010 3:50 PM, André Warnier wrote: And if, in the tomcat6w.exe gui, you navigate to the Java tab, what are the options mentioned there for the JVM ? (There might be a -D there which redirects the JVM stderr) (which is really the stderr you are looking for here). Is there a system property that redirects stderr? I thought there was, but I may be wrong. There is one which allows to set the directory for temporary files, I'm quite sure. And in the IBM java, I saw os400.stderr|stdout|stdin properties to do that. But not in Sun pardon Oracle Java I guess. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: IS that a good idea moving all the common libs?
On Dec 21, 2010, at 18:50, George Sexton geor...@mhsoftware.commailto:geor...@mhsoftware.com wrote: Anyhow, would the suggestion change if you were running 300+ web applications? The more webapps, the more important it is to keep them independent - so the suggestion would become more like an imperative. - Chuck
Re: How to put restrictions to mod_jk's log
Mr.Schultz, Mr.Jung Thank you for your advices. I also think it's not good idea to make JkLogLevel ERROR. I'll consider to use rotatelogs. BTW, I think it's reasonable for apache to send requests of OPTIONS * HTTP/1.0 to kill child processes. But it isn't quite convincing that mod_jk makes those request to WARNING. I'm going to inform this matter to bugzilla. Regards, (2010/12/22 5:04), Rainer Jung wrote: On 21.12.2010 20:56, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kikuchi, On 12/20/2010 10:26 PM, Yu Kikuchi wrote: My Environment: Apache 2.2.11 mod_jk 1.2.30 When my system is highly-loaded, the messeges are printed in mod_jk.log. [mod_jk.log] [Tue Dec 21 11:31:25.958 2010] [4744:3086915888] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (962): Uri * is invalid. Uri must start with / I don't want to print out the warning messages on mod_jk.log. Would you tell me how to restrict them? If you use JkLogLevel, you'll have to set it to ERROR, which I wouldn't recommend: INFO is probably the best setting. Seconded. But you can add rotatelogs to JkLogFile 8in the same way one does it for Customlog), which at least lets you compress and purge the files in regular intervals (after being rotated). Regards, Rainer - 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: Monitoring tomcat6 as a windows service with jvisualvm
Hello, Le 16/12/2010 08:34, Johan Cwiklinski a écrit : Hello, I'm trying to monitor a Tomcat6 (6.0.29) instance which is running as a service une der windows (2003 server) using Oracle's JDK 1.6.0_21. In tomcat service, under java tab, I've added the following: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=9002 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false When I try to connect with jvisualvm using JMX on localhost:9002 I got the following error: Cannot connect to localhost:9002 using service: jmx:rmi:///jndi/rmi://localhost:9002/jmxrmi Using JConsole ; I can connect using the same host:ip. Local windows firewall is disbaled ; I do not know what the problem is... Did I miss something ? Regards, Answering to myself... It seems that the issue was related to a server misconfiguration. I do not know which one since we are not in charge of server's administration. Regards, -- Johan Cwiklinski AJLSM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does my stderr go?
André Warnier wrote on 21.12.2010 21:50: And if, in the tomcat6w.exe gui, you navigate to the Java tab, what are the options mentioned there for the JVM ? (There might be a -D there which redirects the JVM stderr) (which is really the stderr you are looking for here). following are the settings (looks like all standard to me - never touched 'em anyways): Java Virtual Machine: C:\Programme\Java\jre6\bin\client\jvm.dll Java Classpath: C:\Programme\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar Java Options: -Dcatalina.home=C:\Programme\Apache Software Foundation\Tomcat 6.0 -Dcatalina.base=C:\Programme\Apache Software Foundation\Tomcat 6.0 -Djava.endorsed.dirs=C:\Programme\Apache Software Foundation\Tomcat 6.0\endorsed -Djava.io.tmpdir=C:\Programme\Apache Software Foundation\Tomcat 6.0\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Programme\Apache Software Foundation\Tomcat 6.0\conf\logging.properties Initial memory pool: empty Maximum memory pool: empty Thread stack size: empty -- Intelligent Communication Software Vertriebs GmbH Firmensitz: Kistlerhof Str. 111, 81379 München Registergericht: Amtsgericht München, HRB 88283 Geschäftsführer: Albert Fuss - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org