Re: Killing tomcat java process, Windows
Janne, When running Tomcat as a Windows service it will appear in the task manager as - for instance - Tomcat5.exe. For each instance I use to rename the Tomcat executable to the instance name, so to distinguish between them easily. Note that you will have to change a bit the service installer batch. You can then run or schedule a batch that does a net stop servicename first and then a kill, you never know. The kill command is in the Support Tools kit. By the way, I just discovered that the Windows service installer installs Tomcat without the juli LogManager, so you will have to copy a line from the catilina.bat/sh to enable it. Hope it helps, b. - Original Message - From: jimpo [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, November 20, 2007 10:10 AM Subject: Killing tomcat java process, Windows I run two separate tomcat 6 instances on my development environment. Once I have redeployed the application enough times, the tomcat java.exe freezes and has to be shutdown using control-c. shutdown.bat does not work most of the times. I start the tomcat processes with startup.bat, they are not windows services. I know, one path is to try and fix the redeployment problem, but let's not go there in this thread I would like to create a .bat script which shuts down the frozen tomcat java.exe processes (and calls startup.bat scripts). How could I accomplish this in Windows? In unix I would have plenty of tools (ps/grep/kill/etc), but can this be done in Windows? The process name alone is not enough to identify the tomcat processes, as there are several java.exe processes running. What about running the instances as windows services, can those be killed / started again more easily? -- View this message in context: http://www.nabble.com/Killing-tomcat-java-process%2C-Windows-tf4842107.html#a13853324 Sent from the Tomcat - User mailing list archive at Nabble.com. ---AV Spam Filtering by M+Guardian - Risk Free Email (TM)--- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Incorrect function error w/isapi_redirect 1.2.25
Dmitry, In the past eight years I have been using several isapi_redirect 1.x and 2 versions with IIS 4, 5.x and 6 and never had the need to recompile anything. I currently have several production machines with IIS 5 and isapi_redirect 1.2.25. I read somewhere that deprecated directives in the workers.properties file can cause this error. Another thing to try is to remove the old isapi filter from IIS before switching to the new one, and consider moving your settings to the isapi_redirect.properties file instead of messing with the registry. Hope it helps, b. -Original Message- From: Dmitry Beransky [mailto:[EMAIL PROTECTED] Sent: 14 November 2007 06:33 To: Tomcat Users List Subject: Re: Incorrect function error w/isapi_redirect 1.2.25 Ay, caramba. I don't even have access to VS... do I need VS to compile or can I use a GNU compiler? On Nov 13, 2007 5:25 PM, Martin Gainty [EMAIL PROTECTED] wrote: This is the classic problem of Microsoft products not working with Microsoft Products If a dll isnt working you will need to get the source and build it for your specific OS http://tomcat.apache.org/connectors-doc/reference/iis.html ---AV Spam Filtering by M+Guardian - Risk Free Email (TM)--- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with Tomcat IIS
Hi, I think the mailing list archives are full of people with IIS - or Apache - fronting Tomcat. There is a very good article that explains the technical reasons http://people.apache.org/~mturk/docs/article/ftwai.html Also, there might be cases where the reasons are political, or when the environment is very heterogenous, or combinations of the two. (The last sentence should be read with a sad tone) Hope it helps, b. - Original Message - From: Jacob Rhoden [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 25, 2007 12:38 AM Subject: Re: Help with Tomcat IIS Wow, this is the first time I have heard of someone wanting to use Tomcat with IIS. Most IIS people would be using .NET. (I am interested to hear from people if its possible and why you would do it) Is there a speciffic reason you need to connect it to IIS? Did you know that tomcat can be used without Apache or IIS? Simply edit the server.xml file so that it listens on port 80 instead of port 8080. This makes configuration much easier. However I understand if you do have a specific reason to use IIS. Best Regards, Jacob Demetris Zavorotnichenko wrote: I have been banging my head about this for a long time and haven't figured it out yet. I have a 64 Bit Machine with Windows Server 2003 (64 bit) What version of Tomcat should I install in order to be able to connect it to IIS 6 And What Jakata connector version should I use? Which would be compatible with all this. Please help me out on this. I have been through the tutorials a hundred times and I got confused since there are SO many Directories with different Jakata Connectors for different versions. Please if someone could write down this things (in short) - since I know the procedure of setting this up Please help me here. ---AV Spam Filtering by M+Guardian - Risk Free Email (TM)--- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 20 Tips for Using Tomcat in Production
Maybe it should also be noted that the service installation batch file that comes with the Tomcat's Windows binaries distribution (the zipped one) defaults to the server JVM, if available. The same should happen with the so called service installer version (the exe one) but I didn't check which jvm it defaults to.. though it is able to download the APR dll, so I don't see why it should make the service point to the client jvm instead. :-) Hope it helps -Original Message- From: Milanez, Marcus [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 13:59 To: Tomcat Users List Subject: RES: 20 Tips for Using Tomcat in Production If you are running tomcat under windows services, you can select which JVM you want to use through bin/tomcatXw.exe. -Mensagem original- De: Karel V Sedlacek [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 22 de agosto de 2007 08:19 Para: Tomcat Users List Assunto: Re: 20 Tips for Using Tomcat in Production Thanks for this info,... How do I implement this tip? #18. Use the -server JVM option. This enables the server JVM, which JIT compiles bytecode much earlier, and with stronger optimizations. Startup and first calls will be slower due to JIT compilation taking more time, but subsequent ones will be faster. Karel In putting #1 into the JAVA_OPTS (which it appears that is the CATALINA_OPTS for our implementation), it doesn't appear to work, as Tomcat doesn't restart. It could be our version -- which is currently 5.0.30. please let me know if there are other steps we need to take here as well. thanks, Kim :-) On 8/21/07, Shane Witbeck [EMAIL PROTECTED] wrote: I thought my latest blog post would be of interest to the people on this list: http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in- production/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---AV Spam Filtering by M+Guardian - Risk Free Email (TM)--- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 20 Tips for Using Tomcat in Production
IMHO the only good reason to move a library out from an application and place it into /common/lib (or /lib) is to get advantage of connection pooling. http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html Then, yes, if you have different database versions you might find yourself in the usual library versions nightmare.. :-) -Original Message- From: Diego Yasuhiko Kurisaki [mailto:[EMAIL PROTECTED] Sent: 22 August 2007 00:35 To: Tomcat Users List Subject: Re: 20 Tips for Using Tomcat in Production I agree, i'm not willing to pay the management overhead of putting my shared libraries to the tomcat common lib, unless my gains are very big in terms of memory consumption. I don't really think you should change for another one though, but you can make regards about the cons of that approach. Anyway, great work 5 stars. On 8/21/07, Ben Souther [EMAIL PROTECTED] wrote: From: Christopher Schultz I also agree with David and, uh, David, that #6 is a little dubious. Yes, moving shared libraries into the common/lib directory will save you some memory, but it creates a management headache when it comes to version numbers, WAR packaging, etc. Ideally, the WAR contains everything the webapp needs. If you rely on the servlet container to provide essential libraries, you are changing your deployment strategy significantly. +1 Starting with Servlet Spec 2.3 (I think) there has been an emphasis on putting everything a web app needs to run into its war file. To put include something that runs contrary to this 'best practice' in an article of tips at this point in time doesn't sound like a good idea. I would seriously consider replacing that one with something else. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Diego Yasuhiko Kurisaki ---AV Spam Filtering by M+Guardian - Risk Free Email (TM)--- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isapi_redirect from IIS5 to tomcat 5.5 brings HTTP 404 - isapi_redirect.dll not found
Hi Martin, As far as I can tell everything is ok in your setup - I tried to replicate the error you get without success. You might want to check the IIS logs, the file permissions on the isapi dll, check if the /jakarta alias on IIS has execute permissions, try to set it as a global filter.. what else? And as a last resort use one of the old versions installers and then upgrade the files afterwards - version 1.2.15 had an msi installer for instance: http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/ - this might work. Hope it helps, b. - Original Message - From: Kirst Martin Wolfgang [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, July 16, 2007 8:40 AM Subject: isapi_redirect from IIS5 to tomcat 5.5 brings HTTP 404 - isapi_redirect.dll not found Hi, I'm trying to use IIS v5.00.3700.1000 with Tomcat 5.5.17 using isapi_redirect 1.2.23 and AJP13. But in the end I always see an error page from tomcat: HTTP Status 404 - /jakarta/isapi_redirect.dll ... The requested resource (/jakarta/isapi_redirect.dll) is not available ... Apache Tomcat/5.5.17 . Setup: OS: Windows 2000 SP4. JAVA: v 1.6.0_u1 (jdk from SUN) There are multiple IPs on this mashine for one ethernet card. One IP is mapped to DNS portoweb.portolancs.com (195.127.36.18). There are multiple web sites hosted on this IIS, each mapped configured to one IP. The isapi_redirect.dll is only installed on this single IIS web site under properties - isapi filters, that means _not global_ for all. I was following this howto: http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html I googled around and found others with the same problem, but no solution. I've checked all settings at least twice. There was a hint, the the uri is mapped twice. When reading the redirect-log.txt, it seems to be all fine, mapping is working, AJP is working, but still an error page. Whats wrong with this setup/configs? My configs: Registry: - [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=D:\\Tomcat\\logs\\isapi.log log_level=debug worker_file=D:\\Tomcat\\conf\\workers.properties worker_mount_file=D:\\Tomcat\\conf\\uriworkermap.properties uriworkermap.properties: /portoweb.portolancs.com/*=portoweb workers.properties: --- worker.list = portoweb worker.portoweb.type = ajp13 worker.portoweb.host = 127.0.0.1 worker.portoweb.port = 8009 Best regards Martin --- Scanned by M+ Guardian Messaging Firewall --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk connector stripping Content-Type?
All, Apologies, for the records: the content type mapping was missing under Tomcat. The pages I tested were served by Apache, not by Tomcat. Apache seem to insert the content type if Tomcat does not send it, while IIS does not. Sorry again, br1. - Original Message - From: myrealbruno [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, June 22, 2006 1:42 PM Subject: jk connector stripping Content-Type? Hello, I am using the JK connector version 1.2.15 with IIS 5. When trying to load through IIS a powerpoint ppt file served by Tomcat I get only garbage (it might be the binary displayed in the browser). I can see getting the HEAD through IIS that the Content-Type is not there, while opening the same file directly from Tomcat reports the correct Content-Type (application/vnd.ms-powerpoint). I made a try with pdf and doc extensions and both work. Is this a bug in the JK connector? Has anyone experienced this? Thank you all very much in advance, br1. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk connector stripping Content-Type?
Hello, I am using the JK connector version 1.2.15 with IIS 5. When trying to load through IIS a powerpoint ppt file served by Tomcat I get only garbage (it might be the binary displayed in the browser). I can see getting the HEAD through IIS that the Content-Type is not there, while opening the same file directly from Tomcat reports the correct Content-Type (application/vnd.ms-powerpoint). I made a try with pdf and doc extensions and both work. Is this a bug in the JK connector? Has anyone experienced this? Thank you all very much in advance, br1. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]