RE: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps/appname/lib?
Just a quick one, how do you start Tomcat? Is it another user? Does the directories/apps have the correct rights. And does Tomcat/java have the necessery rights to read, and run? Regards Per Jonsson -Original Message- From: Ghodmode [mailto:[EMAIL PROTECTED] Sent: den 4 september 2007 09:22 To: Tomcat Users List Subject: Re: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps/appname/lib? On 9/4/07, David Delbecq [EMAIL PROTECTED] wrote: J2EE specs says librairies of a webapp must be in /WEB-INF/lib (that's for the part about subjet line where you use /lib) Thank you David. That was a typo. I am actually using WEB-INF/lib. Now, for you mail content you seem to be indeed using WEB-INF/lib, and it seems to be the 3 libs required by wicket example. I suggest you investigate the possibility of having downloaded a broken jar. Maybe, try switching away from a beta version I've double-checked the JAR file and it's okay, but I re-downloaded it anyway and I still get the same results. The Wicket download page says that the latest beta is stable and suggests using it for new projects. But I tried version 1.2.6 anyway and I have the same results :( I have become convinced that this is a Tomcat problem. Just to be thorough, though, I'm going to try with an earlier version of Java. Wicket's site states that it requires 1.4. I think that it means 1.4 and up, but I'm using 1.6. So, I'll give it a try with 1.5, then with 1.4. Thank you, Vince This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Memory Usage
Hi! If you get OutOfMemory Errors and running java 1.6 (maybe later versions of java 1.5) you can make the vm to save a memory dump which you could load in ie. YourKit java profiler. And After a crach you could analyse the memroy in your applications. I did that resently and it works like a charm. This is the parameters I used: -verbose:gc -XX:HeapDumpPath=C:\Java\heapdump -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails You could also look in the gc_log, sometimes you could see what's released and what needs correcting when jvm is doing a full gc. Hope it helps. (If you don't run java6 I can recommend it, faster and better :-) /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 11:21 To: users@tomcat.apache.org Subject: Tomcat Memory Usage Hi all, I run a cocoon webapp which is hosted on a shared Linux environnement and runs under tomcat 5.5.9. There are about 7 applications running under that tomcat instance (2 cocoon, at least 1 jsp, don't know for the others). My host provider complains that he tomcat uses a lot of memory and that he needs to restart it every 4 hours to release the memory. Tomcat runs as a daemon (started using jsvc) and with the following parameters: jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -java.awt.headless=true -Xmx5 -XX:MaxPermSize=300m -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security I'm really not sure where to start looking: memory leak due to bad programming in the webapp or bad tomcat configuration leading to memory leaks. I also noticed there are quiet a few links in google pointing to problems with Tomcat not releasing memory (objets not getting garbage-collected), although they are mostly related to Tomcat 4.x. What is the situation on with Tomcat 5.5.9 ? I'm looking for help on what to look for, what configuration parameters should be used in production environnement, how can I pinpoint this memory problem ? Cheers, Jerome Jerome Benezech [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] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Memory Usage
Ok, turn on the -verbose:gc and -XX:+PrintGCDetails and see if you could find any strange things in the logs. I have seen that when the jvm is making big full garbage collection the jvm practicaly halts for several seconds which could cause some strange behaviors. We had for example a xsl-stylesheet which used the mozilla javascript functions and that singe stylesheet generated very big full gc's. Check this page for which options you can run on your version of java 1.5 they are different depending on the versions. http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 12:33 To: Tomcat Users List Subject: RE: Tomcat Memory Usage Hi, We're on Java 1.5 and do not get any OutOfMemory but after some point, Tomcat uses 50% of the server memory and stops serving requests. --- Per Johnsson [EMAIL PROTECTED] wrote: Hi! If you get OutOfMemory Errors and running java 1.6 (maybe later versions of java 1.5) you can make the vm to save a memory dump which you could load in ie. YourKit java profiler. And After a crach you could analyse the memroy in your applications. I did that resently and it works like a charm. This is the parameters I used: -verbose:gc -XX:HeapDumpPath=C:\Java\heapdump -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails You could also look in the gc_log, sometimes you could see what's released and what needs correcting when jvm is doing a full gc. Hope it helps. (If you don't run java6 I can recommend it, faster and better :-) /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 11:21 To: users@tomcat.apache.org Subject: Tomcat Memory Usage Hi all, I run a cocoon webapp which is hosted on a shared Linux environnement and runs under tomcat 5.5.9. There are about 7 applications running under that tomcat instance (2 cocoon, at least 1 jsp, don't know for the others). My host provider complains that he tomcat uses a lot of memory and that he needs to restart it every 4 hours to release the memory. Tomcat runs as a daemon (started using jsvc) and with the following parameters: jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -java.awt.headless=true -Xmx5 -XX:MaxPermSize=300m -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security I'm really not sure where to start looking: memory leak due to bad programming in the webapp or bad tomcat configuration leading to memory leaks. I also noticed there are quiet a few links in google pointing to problems with Tomcat not releasing memory (objets not getting garbage-collected), although they are mostly related to Tomcat 4.x. What is the situation on with Tomcat 5.5.9 ? I'm looking for help on what to look for, what configuration parameters should be used in production environnement, how can I pinpoint this memory problem ? Cheers, Jerome Jerome Benezech [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] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jerome Benezech [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] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer
RE: Ideal JVM params for 64-bit?
There is a good documentation about this at: http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html Its for Java 6 but I think it's appliable for Java 1.5 also. I made some test running 1.6_u1 with the: -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode and it's a lot slower but the gc is more stable. Also when I tried the -XX:MaxGCPauseMillis=500 the result was muchs slower so I rather live with the pause than running so slow. Mor info about ergonomics at: http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html We did upgrade to java 1.6u1 which was a very good performance booster, try that. /Per Jonsson -Original Message- From: Darren Kukulka [mailto:[EMAIL PROTECTED] Sent: den 20 april 2007 11:52 To: Tomcat Users List Subject: Ideal JVM params for 64-bit? Hi Tomcaters! Just a quick query relating to Tomcat 5.5.20 on Win2K3 with SUN JVM 1.5.0_10 (64-bit) What are the ideal JVM GC parameter settings for a system with two dual-core processors and 4GB RAM (of which we've allocated a little over 3GB to the JVM)? Sometimes Tomcat pauses for a long time when OldGen gets close to full to perform a full GC... my JConsole session tends to drop out, although I can re-establish a session less than a minute later...users logged into the application experience no response which then returns to normal once the GC is finished. Cheers, Darren K Connaught wins RoSPA Gold Award for fourth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught?s Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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: changing the name of tomcat homedir - impact?
Hi! I suppose you have installed the Tomcat Service also and there is references in the registry to the Tomcat Path so a better choice is to uninstall Tomcat 6 and reinstall it in a proper directory without spaces. /Per Jonsson -Original Message- From: Christoph P. Kukulies [mailto:[EMAIL PROTECTED] Sent: den 18 april 2007 12:38 To: [EMAIL PROTECTED] Subject: changing the name of tomcat homedir - impact? I have TOMCAT_HOME=C:\Programme\Apache_Group\Tomcat 6.0 You see the crux? Blank in Tomcat 6.0. Some applications, like mvnForum (www.mvnForum.com) claim in the README or INSTALL instructions that a blank character in the PATH should be avoided (Windows) because of possible unexpected or erroneous behaviour resulting from that. Now, after I had in stalled OpenCMS, Tomcat, MySQL and such and everything is working, I'm asking myself if it would just be sufficient to rename that directory node, change the evironment variable, and done with it. Or would I have to expect surprises from elsewhere? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on Windows Server 2003 R2
Hi! Ok, but adding the path to javajre/bin I making the service finding the dll which is in the bin directory. I had the exact same problem and by adding the JAVA_HOME and PATH solved my problems, then if it's a good thing to do I don't know. There is a bugzilla describing the issue here: http://issues.apache.org/bugzilla/show_bug.cgi?id=41538 Regards Per Jonsson -Original Message- From: Layton Berry [mailto:[EMAIL PROTECTED] Sent: den 26 mars 2007 19:46 To: Tomcat Users List Subject: Re: Tomcat on Windows Server 2003 R2 No, these environment variables are not needed unless you take the zip file distribution of Tomcat 6 and try to run it in a command window. The standard distribution uses a service, and the service requires the C run time support package, ie., msvcr71.dll, but the distribution is not including it. A simple test on a machine with a working Tomcat 6 service can reproduce the poster's original error messages. Just stop the service, find msvcr71.dll in the windows SYSTEM32 directory and rename it temporarily. (Assuming nothing else is using it.) Then start the service. The service will not start, and the jakarta_service log file will show the poster's error messages. Then restore the msvcr71.dll to the correct name and start the service again. This time it will work. If you are running the zip file distribution in a command window, you are not running the windows service. In that case, your environment variables are important. Layton Per Johnsson wrote: There is a known bug or missfeature in the java installer. Add in the system env JAVA_HOME=yourjrepath and ;%JAVA_HOME%/bin in the end of PATH variable. I hade the same problem with the java6 and tomcat but the abve solved it. /per jonsson -Original Message- From: Markus Franz [mailto:[EMAIL PROTECTED] Sent: den 25 mars 2007 20:00 To: users@tomcat.apache.org Subject: Tomcat on Windows Server 2003 R2 Hi! I am running Microsoft Windows Server 2003 R2 Standard x64 Edition with JDK 6 (also x64 edition. My problem: I successfully installed Tomcat 6 (with the Windows Service installer). But everytime I try to start the service, it terminates without notice. The jakarta log contains the following line (all in one line) for every tried startup: [2007-03-25 17:45:50] [947 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0\jre\bin\server\jvm.dll [2007-03-25 17:45:50] [1202 prunsrv.c] [error] ServiceStart returned 1 [2007-03-25 17:45:50] [info] Run service finished. [2007-03-25 17:45:50] [info] Procrun finished. (The stderr and stdout logs are empty.) What is the problem? How can I get my Tomcat running? I tried a x86 edition of Java 6, but this also does not work. I would be very happy if there would be someone knowing how to solve this problem... Regards, Markus PS: I tried Java 6 and Tomcat 6 on a Windows 2000 Machine, there's no problem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** ** This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. ** ** - 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] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on Windows Server 2003 R2
There is a known bug or missfeature in the java installer. Add in the system env JAVA_HOME=yourjrepath and ;%JAVA_HOME%/bin in the end of PATH variable. I hade the same problem with the java6 and tomcat but the abve solved it. /per jonsson -Original Message- From: Markus Franz [mailto:[EMAIL PROTECTED] Sent: den 25 mars 2007 20:00 To: users@tomcat.apache.org Subject: Tomcat on Windows Server 2003 R2 Hi! I am running Microsoft Windows Server 2003 R2 Standard x64 Edition with JDK 6 (also x64 edition. My problem: I successfully installed Tomcat 6 (with the Windows Service installer). But everytime I try to start the service, it terminates without notice. The jakarta log contains the following line (all in one line) for every tried startup: [2007-03-25 17:45:50] [947 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0\jre\bin\server\jvm.dll [2007-03-25 17:45:50] [1202 prunsrv.c] [error] ServiceStart returned 1 [2007-03-25 17:45:50] [info] Run service finished. [2007-03-25 17:45:50] [info] Procrun finished. (The stderr and stdout logs are empty.) What is the problem? How can I get my Tomcat running? I tried a x86 edition of Java 6, but this also does not work. I would be very happy if there would be someone knowing how to solve this problem... Regards, Markus PS: I tried Java 6 and Tomcat 6 on a Windows 2000 Machine, there's no problem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on Windows Server 2003 R2
Yes, But either you add the 1.4 compliance package or use the java 1.5. /Per Jonsson -Original Message- From: Sabitha Divakaran [mailto:[EMAIL PROTECTED] Sent: den 26 mars 2007 12:19 To: Tomcat Users List Subject: RE: Tomcat on Windows Server 2003 R2 My java version is j2sdk1.4.1_03 and tomcat is 5.5 Is the tomcat 5.5 is not supporting the java 1.4 I mean more latest java version is required for tomcat 5.5 -Original Message- From: Per Johnsson [mailto:[EMAIL PROTECTED] Sent: Monday, March 26, 2007 3:02 PM To: Tomcat Users List Subject: RE: Tomcat on Windows Server 2003 R2 There is a known bug or missfeature in the java installer. Add in the system env JAVA_HOME=yourjrepath and ;%JAVA_HOME%/bin in the end of PATH variable. I hade the same problem with the java6 and tomcat but the abve solved it. /per jonsson -Original Message- From: Markus Franz [mailto:[EMAIL PROTECTED] Sent: den 25 mars 2007 20:00 To: users@tomcat.apache.org Subject: Tomcat on Windows Server 2003 R2 Hi! I am running Microsoft Windows Server 2003 R2 Standard x64 Edition with JDK 6 (also x64 edition. My problem: I successfully installed Tomcat 6 (with the Windows Service installer). But everytime I try to start the service, it terminates without notice. The jakarta log contains the following line (all in one line) for every tried startup: [2007-03-25 17:45:50] [947 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0\jre\bin\server\jvm.dll [2007-03-25 17:45:50] [1202 prunsrv.c] [error] ServiceStart returned 1 [2007-03-25 17:45:50] [info] Run service finished. [2007-03-25 17:45:50] [info] Procrun finished. (The stderr and stdout logs are empty.) What is the problem? How can I get my Tomcat running? I tried a x86 edition of Java 6, but this also does not work. I would be very happy if there would be someone knowing how to solve this problem... Regards, Markus PS: I tried Java 6 and Tomcat 6 on a Windows 2000 Machine, there's no problem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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: Still connection problems between IIS tomcat 5.5.12....
Hi! Thanks for the answare! As far as we know and according to the networking guys there has been no changes in the firewall and the load balancer, but I must admit that it is a very tempting error. The problem is that we have a hard time to localize the problem, we even can't se that the firewall or the lb is the problem and our environment is not so flexible that we just could bypass it to test. connection_pool_timeout - This one seems not to be an issue, if this would be applicible then we would get some thread errors on the tomcat side, but tomcat seems to run smooth as nothing had happend. prepost_timeout - This one, as I see it is good if tomcat hangs but that's not our problem. reply_timeout - Could be interesting but as I understand it the default value is 0 (infinite) even if not defined? Is there a good way to see if the firewall or the lb is reseting our connections? Some tools or special debug/log? Is there a way to see in the connector logs the url's or something to tie the error to an actual event? This is our worker properties: ---8--- worker.list=ajp13w,ajp15w # # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13w.type=ajp13 worker.ajp13w.host=10.182.19.3 worker.ajp13w.port=8009 worker.ajp13w.socket_keepalive=True worker.ajp13w.connection_pool_size=120 worker.ajp15w.type=ajp13 worker.ajp15w.host=10.182.18.2 worker.ajp15w.port=8009 worker.ajp15w.socket_keepalive=True worker.ajp15w.socket_timeout=60 ---8--- /Per Jonsson -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: den 23 februari 2007 09:25 To: Tomcat Users List Subject: Re: Still connection problems between IIS tomcat 5.5.12 Winsock error 10054 is a connection reset. Do you use socket_timeout in workers.properties? If yes, try without socket_timeout (but have a look at the other timeout possibilities of mod_jk). Socket_timeout is difficult to handle at the application=mod_jk layer. Any changes on the firewall around the time your trouble began? Regards, Rainer Per Johnsson wrote: It's me again, we have not yet solved our problems, but now we have turned one of the IIS servers to IIS 5 compability mode which made us get som logs from the tomcat connector. Short Review of setup: Tomcat 5.5.12 APR 1.1.0-dev ispi_redirect.dll 1.2.20 between the iis and tomcat we have a firewall and a load balancer and it have worked very good in about a year until 1/2-2007 where the IIS started to crash without any hardware and software changes (what we know of) The thing is that Tomcat seems to run fine, we can't se any problems on the tomcat side so I wonder if anyone have any suggestions. (We have looked at the firewall and load balancer and there should not be any problems there, otherwise that seemed to be a good error source.) My intepretation is that the connector can send the request but don't get any response, could that be correct? Any input is more than welcome! Here is a snip from our connector log: ---8--- [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (948): (ajp13w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.19.2:8009), err=-54 [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (948): (ajp13w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.19.2:8009), err=-54 [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1928): (ajp13w) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_isapi_plugin.c (1098): service() failed [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (948): (ajp15w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.18.2:8009), err=-54 [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1566): (ajp15w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (948): (ajp15w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.18.2:8009), err=-54 [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1566): (ajp15w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1928): (ajp15w) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong
RE: Still connection problems between IIS tomcat 5.5.12....
Thank you for again for your answare, we will dig into this further and se if we could find the actual timeouts/resets. I have installed tomcat 5.5.20 on one of four machines with the latest 1.1.4 APR now to see if that solves anything. If we can't solve this, are you avaiable for consulting? Regards Per Jonsson -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: den 23 februari 2007 10:19 To: Tomcat Users List Subject: Re: Still connection problems between IIS tomcat 5.5.12 OK, my mail was slightly misleading: the other timeouts should *not* bea a reason for error -54. The one that could be a source of trouble is socket_timeout. You've got it in your configuration. Delete it and try, if this fixes the problem - might be. Tie messages to requests: No easy way. For Apache I would say, in the mod_jk error log we log process ID and thread ID. You can log these too in the apache access logs and then it's very likely, that only a few lines will fit timestamp, and those two IDs. I don't know much about IIS access logs. Using mod_jk only, you would need to increase log level to debug. Then, if you get your error, you pick out the lines before with the same PID and TID and there will be log statements containing the URL. To anylyze one would try to sniff and find out, if at the time of the -54, there was a connection reset packat from the remote side, or if the reset has been done solely by the local TCP/IP stack. in this case I would suppose it's a socket timeout issue. In the other case (reset packet) one would need to invest, what is the remote side (firewall?) and to find out, why the remote side resets the connection. There is a normal use case of closing the connection by the remote side, the connectionTimeout of the tomcat connector. It's normal to use this feature and mod_jk normally logs only an info message and opens a new one. This feature should not produce the kind of situation you are experiencing. Regards, Rainer Per Johnsson wrote: Hi! Thanks for the answare! As far as we know and according to the networking guys there has been no changes in the firewall and the load balancer, but I must admit that it is a very tempting error. The problem is that we have a hard time to localize the problem, we even can't se that the firewall or the lb is the problem and our environment is not so flexible that we just could bypass it to test. connection_pool_timeout - This one seems not to be an issue, if this would be applicible then we would get some thread errors on the tomcat side, but tomcat seems to run smooth as nothing had happend. prepost_timeout - This one, as I see it is good if tomcat hangs but that's not our problem. reply_timeout - Could be interesting but as I understand it the default value is 0 (infinite) even if not defined? Is there a good way to see if the firewall or the lb is reseting our connections? Some tools or special debug/log? Is there a way to see in the connector logs the url's or something to tie the error to an actual event? This is our worker properties: ---8--- worker.list=ajp13w,ajp15w # # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13w.type=ajp13 worker.ajp13w.host=10.182.19.3 worker.ajp13w.port=8009 worker.ajp13w.socket_keepalive=True worker.ajp13w.connection_pool_size=120 worker.ajp15w.type=ajp13 worker.ajp15w.host=10.182.18.2 worker.ajp15w.port=8009 worker.ajp15w.socket_keepalive=True worker.ajp15w.socket_timeout=60 ---8--- /Per Jonsson -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: den 23 februari 2007 09:25 To: Tomcat Users List Subject: Re: Still connection problems between IIS tomcat 5.5.12 Winsock error 10054 is a connection reset. Do you use socket_timeout in workers.properties? If yes, try without socket_timeout (but have a look at the other timeout possibilities of mod_jk). Socket_timeout is difficult to handle at the application=mod_jk layer. Any changes on the firewall around the time your trouble began? Regards, Rainer Per Johnsson wrote: It's me again, we have not yet solved our problems, but now we have turned one of the IIS servers to IIS 5 compability mode which made us get som logs from the tomcat connector. Short Review of setup: Tomcat 5.5.12 APR 1.1.0-dev ispi_redirect.dll 1.2.20 between the iis and tomcat we have a firewall and a load balancer and it have worked very good in about a year until 1/2-2007 where the IIS started to crash without any hardware and software changes (what we know of) The thing is that Tomcat seems to run fine, we can't se any problems on the tomcat side so I wonder if anyone have any suggestions. (We have looked at the firewall and load balancer and there should not be any problems there, otherwise that seemed to be a good error source.) My
Still connection problems between IIS tomcat 5.5.12....
It's me again, we have not yet solved our problems, but now we have turned one of the IIS servers to IIS 5 compability mode which made us get som logs from the tomcat connector. Short Review of setup: Tomcat 5.5.12 APR 1.1.0-dev ispi_redirect.dll 1.2.20 between the iis and tomcat we have a firewall and a load balancer and it have worked very good in about a year until 1/2-2007 where the IIS started to crash without any hardware and software changes (what we know of) The thing is that Tomcat seems to run fine, we can't se any problems on the tomcat side so I wonder if anyone have any suggestions. (We have looked at the firewall and load balancer and there should not be any problems there, otherwise that seemed to be a good error source.) My intepretation is that the connector can send the request but don't get any response, could that be correct? Any input is more than welcome! Here is a snip from our connector log: ---8--- [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (948): (ajp13w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.19.2:8009), err=-54 [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (948): (ajp13w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.19.2:8009), err=-54 [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_ajp_common.c (1928): (ajp13w) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Wed Feb 21 23:11:32 2007] [4580:7020] [error] jk_isapi_plugin.c (1098): service() failed [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (948): (ajp15w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.18.2:8009), err=-54 [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1566): (ajp15w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (948): (ajp15w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.18.2:8009), err=-54 [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1566): (ajp15w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_ajp_common.c (1928): (ajp15w) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Thu Feb 22 02:36:13 2007] [4580:4524] [error] jk_isapi_plugin.c (1098): service() failed [Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (948): (ajp13w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.19.2:8009), err=-54 [Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (948): (ajp13w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.19.2:8009), err=-54 [Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_ajp_common.c (1928): (ajp13w) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Thu Feb 22 03:56:51 2007] [4580:7940] [error] jk_isapi_plugin.c (1098): service() failed [Thu Feb 22 07:40:25 2007] [4580:4244] [error] jk_ajp_common.c (948): (ajp13w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.19.2:8009), err=-54 [Thu Feb 22 07:40:25 2007] [4580:4244] [error] jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Feb 22 07:43:41 2007] [4580:7940] [error] jk_ajp_common.c (948): (ajp15w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.18.2:8009), err=-54 [Thu Feb 22 07:43:41 2007] [4580:7940] [error] jk_ajp_common.c (1566): (ajp15w) Tomcat is down or refused connection. No response has been sent to the client (yet) [Thu Feb 22 08:40:08 2007] [4580:6404] [error] jk_isapi_plugin.c (659): WriteClient failed with 2746 [Thu Feb 22 10:29:52 2007] [4580:5972] [error] jk_ajp_common.c (948): (ajp13w) can't receive the response message from tomcat, network problems or tomcat is down (10.182.19.2:8009), err=-54 [Thu Feb 22 10:29:52 2007] [4580:5972] [error] jk_ajp_common.c (1566): (ajp13w) Tomcat is down or refused connection. No response
RE: [OT] Apache mod_jk memory leak?
Hi! I wonder if this is the same problem we have, but we are using IIS6 and isapi_redirect.dll and if I'm not totally wrong the same codebase is used for apache and iis. We have come to the conclusion that there is a error in the free memory causing a crash when the pool workers of the iis is unloaded, unfortunaly we have not managed to see what is causing the error. Am I wrong or is this a Win 2003 Server error which can be helped with the suggested patch. I wrote a longer mail about our problems: http://marc.theaimsgroup.com/?l=tomcat-userm=117092232007880w=2 /Per Jonsson -Original Message- From: RChartier [mailto:[EMAIL PROTECTED] Sent: den 9 februari 2007 16:00 To: users@tomcat.apache.org Subject: Re: [OT] Apache mod_jk memory leak? Hi, I am using Apache 2.0.59 and Tomcat 5.0.28 with mod_jk 1.2.20 on Windows 2003 SP1 but the system have some issue on the socket layer. In fact, after some time, some users are able to crash our architecture: apache answers to request such as *.html but mod_jk says it cannot connect to tomcat. Even a restart of services doesn't change anythink. Tomcat is running and answer for simple hello world jsp pages but cannot answer to /manage/html. I have exacltly the same error logs and thread dumps as you are. I patch windows with KB 931311 and it seems to work properly. JNeuhoff wrote: I have just managed to repeat the error. 2 of us, from 2 different workstations, hammered our website for a minute, by rapidly clicking on links within the same site before it ended up always responding with a standard Error 503 (Service unavailable) coming from the Apache frontend. I checked all the log files, and again the only errors recorded were found in the mod_jk.log: [Fri Jan 19 11:34:42 2007] [0404:2392] [info] mod_jk.c (2142): Service error=0 for worker=ajp13 [Fri Jan 19 11:34:42 2007] [0404:2388] [error] jk_ajp_common.c (948): (ajp13) can't receive the response message from tomcat, network problems or tomcat is down (127.0.0.1:8009), err=-53 [Fri Jan 19 11:34:42 2007] [0404:2388] [error] jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused connection. No response has been sent to the client (yet) [Fri Jan 19 11:34:42 2007] [0404:2388] [info] jk_ajp_common.c (1877): (ajp13) receiving from tomcat failed, recoverable operation attempt=1 [Fri Jan 19 11:34:42 2007] [0404:2388] [info] jk_ajp_common.c (1916): (ajp13) sending request to tomcat failed, recoverable operation attempt=2 [Fri Jan 19 11:34:42 2007] [0404:2388] [error] jk_ajp_common.c (1928): (ajp13) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port The 2 connections between Apache and Tomcat according the the netstat -a command just after the web server started the 503 (Service unavilable) responses (hightlighted in bold): Proto Local Address Foreign AddressState TCPDAOHPRW2:epmap DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:microsoft-ds DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:1078 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:3389 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:8009 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:8080 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:1 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:2093 DAOHPRW2.essex.ac.uk:8009 TIME_WAIT TCPDAOHPRW2:2110 DAOHPRW2.essex.ac.uk:8009 TIME_WAIT TCPDAOHPRW2:8005 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:netbios-ssn DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:2076 daohprp2.essex.ac.uk:3306 ESTABLISHED TCPDAOHPRW2:2077 daohprp2.essex.ac.uk:microsoft-ds TIME_WAIT TCPDAOHPRW2:2176 sernt29.essex.ac.uk:epmap ESTABLISHED TCPDAOHPRW2:2177 sernt29.essex.ac.uk:1025 ESTABLISHED TCPDAOHPRW2:2181 sernt29.essex.ac.uk:microsoft-ds TIME_WAIT TCPDAOHPRW2:2194 sernt50.essex.ac.uk:epmap ESTABLISHED TCPDAOHPRW2:2204 sernt5.essex.ac.uk:epmap ESTABLISHED TCPDAOHPRW2:2215 sernt25.essex.ac.uk:epmap ESTABLISHED TCPDAOHPRW2:2230 dalinux6a.essex.ac.uk:netbios-ssn ESTABLISHED TCPDAOHPRW2:2250 sernt2.essex.ac.uk:netbios-ssn TIME_WAIT TCPDAOHPRW2:2253 bodger.essex.ac.uk:microsoft-ds TIME_WAIT TCPDAOHPRW2:http DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:http daohpr1.essex.ac.uk:1528 TIME_WAIT TCPDAOHPRW2:http daohpr2.essex.ac.uk:1936 TIME_WAIT TCPDAOHPRW2:netbios-ssn DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:2232 sernt23.essex.ac.uk:netbios-ssn TIME_WAIT TCPDAOHPRW2:2237 sernt9.essex.ac.uk:netbios-ssn TIME_WAIT TCPDAOHPRW2:2245 serlx08.essex.ac.uk:netbios-ssn
RE: Apache mod_jk memory leak?
Please do! It will be much appriciated... /per jonsson -Original Message- From: RChartier [mailto:[EMAIL PROTECTED] Sent: den 14 februari 2007 13:10 To: users@tomcat.apache.org Subject: RE: Apache mod_jk memory leak? Hi! I don't know IIS but maybe the patch could help. This is not an official patch. WindowsServer2003-KB931311 can be retrieved by calling microsoft support. But I can also send you the patch if you can't get it. Romain Per Johnsson wrote: Hi! I wonder if this is the same problem we have, but we are using IIS6 and isapi_redirect.dll and if I'm not totally wrong the same codebase is used for apache and iis. We have come to the conclusion that there is a error in the free memory causing a crash when the pool workers of the iis is unloaded, unfortunaly we have not managed to see what is causing the error. Am I wrong or is this a Win 2003 Server error which can be helped with the suggested patch. I wrote a longer mail about our problems: http://marc.theaimsgroup.com/?l=tomcat-userm=117092232007880w=2 /Per Jonsson -Original Message- From: RChartier [mailto:[EMAIL PROTECTED] Sent: den 9 februari 2007 16:00 To: users@tomcat.apache.org Subject: Re: [OT] Apache mod_jk memory leak? Hi, I am using Apache 2.0.59 and Tomcat 5.0.28 with mod_jk 1.2.20 on Windows 2003 SP1 but the system have some issue on the socket layer. In fact, after some time, some users are able to crash our architecture: apache answers to request such as *.html but mod_jk says it cannot connect to tomcat. Even a restart of services doesn't change anythink. Tomcat is running and answer for simple hello world jsp pages but cannot answer to /manage/html. I have exacltly the same error logs and thread dumps as you are. I patch windows with KB 931311 and it seems to work properly. JNeuhoff wrote: I have just managed to repeat the error. 2 of us, from 2 different workstations, hammered our website for a minute, by rapidly clicking on links within the same site before it ended up always responding with a standard Error 503 (Service unavailable) coming from the Apache frontend. I checked all the log files, and again the only errors recorded were found in the mod_jk.log: [Fri Jan 19 11:34:42 2007] [0404:2392] [info] mod_jk.c (2142): Service error=0 for worker=ajp13 [Fri Jan 19 11:34:42 2007] [0404:2388] [error] jk_ajp_common.c (948): (ajp13) can't receive the response message from tomcat, network problems or tomcat is down (127.0.0.1:8009), err=-53 [Fri Jan 19 11:34:42 2007] [0404:2388] [error] jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused connection. No response has been sent to the client (yet) [Fri Jan 19 11:34:42 2007] [0404:2388] [info] jk_ajp_common.c (1877): (ajp13) receiving from tomcat failed, recoverable operation attempt=1 [Fri Jan 19 11:34:42 2007] [0404:2388] [info] jk_ajp_common.c (1916): (ajp13) sending request to tomcat failed, recoverable operation attempt=2 [Fri Jan 19 11:34:42 2007] [0404:2388] [error] jk_ajp_common.c (1928): (ajp13) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port The 2 connections between Apache and Tomcat according the the netstat -a command just after the web server started the 503 (Service unavilable) responses (hightlighted in bold): Proto Local Address Foreign AddressState TCPDAOHPRW2:epmap DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:microsoft-ds DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:1078 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:3389 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:8009 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:8080 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:1 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:2093 DAOHPRW2.essex.ac.uk:8009 TIME_WAIT TCPDAOHPRW2:2110 DAOHPRW2.essex.ac.uk:8009 TIME_WAIT TCPDAOHPRW2:8005 DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:netbios-ssn DAOHPRW2.essex.ac.uk:0 LISTENING TCPDAOHPRW2:2076 daohprp2.essex.ac.uk:3306 ESTABLISHED TCPDAOHPRW2:2077 daohprp2.essex.ac.uk:microsoft-ds TIME_WAIT TCPDAOHPRW2:2176 sernt29.essex.ac.uk:epmap ESTABLISHED TCPDAOHPRW2:2177 sernt29.essex.ac.uk:1025 ESTABLISHED TCPDAOHPRW2:2181 sernt29.essex.ac.uk:microsoft-ds TIME_WAIT TCPDAOHPRW2:2194 sernt50.essex.ac.uk:epmap ESTABLISHED TCPDAOHPRW2:2204 sernt5.essex.ac.uk:epmap ESTABLISHED TCPDAOHPRW2:2215 sernt25.essex.ac.uk:epmap ESTABLISHED TCPDAOHPRW2:2230 dalinux6a.essex.ac.uk:netbios-ssn ESTABLISHED TCPDAOHPRW2:2250 sernt2.essex.ac.uk:netbios-ssn TIME_WAIT TCPDAOHPRW2:2253
Help localizing IIS crach running isapi_redirect.dll
We are suddenly experience major problems on all of our four productionservers. We are running four IIS 6 servers on Win 2003 Server which are connected with isapi_redirect (ajp13) to four tomcat 5.5.12 which is mapped 1 to 1. They have been runnning fine in at least some month and suddenly the IIS application pools is crashing for us and we have no idea why, tomcat is running fine and we cant se any problems. The is a typical event from one of the iis server event log: 8 Event Type: Error Event Source: Application Error Event Category: (100) Event ID: 1000 Date: 2007-02-07 Time: 19:48:02 User: N/A Computer: SE05WWW02 Description: Faulting application w3wp.exe, version 6.0.3790.1830, faulting module ntdll.dll, version 5.2.3790.1830, fault address 0x0002f583. 8 We have run DebugDiag and this is a snippet from that, below, and the only clue we can find is that the following: isapi_redirect!TerminateFilter+89af 01027884 6a6b8266 isapi_redirect+8406 0048010278a0000a To me it looks like the method TerminateFilter in isapi_redirect is in someway crashing... And we have looked in the tomcatlogs, iis logs, event logs and can't se why this is happening. ---8--- Type of Analysis Performed Crash Analysis Machine Name SE05WWW02 Operating System Windows Server 2003 Service Pack 1 Number Of Processors 4 Process ID 9152 Process Image c:\WINDOWS\system32\inetsrv\w3wp.exe System Up-Time 04:07:33 Process Up-Time02:23:09 Thread 5 - System ID 9188 Entry pointw3tp!THREAD_MANAGER::ThreadManagerThread Create time2007-02-04 19:11:05 Time spent in user mode0 Days 0:0:0.468 Time spent in kernel mode 0 Days 0:0:0.421 Function Arg 1 Arg 2 Arg 3 Source ntdll!RtlpCoalesceFreeBlocks+36e 0109101801741028 00d8ec68 ntdll!RtlFreeHeap+38e00260108f010 msvcrt!free+c3 0108f01001027780 isapi_redirect!TerminateFilter+89af 01027884 6a6b8266 isapi_redirect+8406 0048010278a0000a ---8--- Any input is most welcome, we have no idea where to look or where to search for an error. So any suggestions is of great help... I attach the full debugdiag result. Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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: Unable to run Tomcat 5.5.20 as a Windows service under jdk 1.6
Hi! I digged in the source of the service and posted some days ago, but I have also problems. I think there is some underneeth problem with either windows 2003 or some settup (user rights/permissions?) The strange thing in all this is that I managed to run 1.6 with the service on one machine of 4, so there is probobly some strange configuration which makes it mess up. This was my latest conclusion and if someone could dig more into this and come up with some ide I'm more than happy! 8--- I tried to look at the sources: http://svn.apache.org/viewvc/jakarta/commons/proper/daemon/trunk/src/nat ive/nt/procrun/src/ I'm not a really into C but someone here could maybe see whats wrong, I have come to the conclusion that the method: serviceStart() Is failing on row (~946): 8--- /* Set the environment using putenv, so JVM can use it */ setInprocEnvironment(); /* Create the JVM glbal worker */ gWorker = apxCreateJava(gPool, _jni_jvmpath); if (IS_INVALID_HANDLE(gWorker)) { apxLogWrite(APXLOG_MARK_ERROR Failed creating java %S, _jni_jvmpath); return 1; } 8--- I have tried reinstall both tomcat5.5.20, reinstall jre1.6.0 and jdk1.6.0 tried all the different options in the java virtual machine setting in service, from default to jre/client/jvm.dll, jdk/client and server jvm.dll... I have run out of options, and I haven't got the knowledge to debug this furhter, so... Does anyone know what the IS_INVALID_HANDLE(gWorker) is checking? Or why the apxCreateJava(..) is failing why? /Per Jonsson -Original Message- From: Ken Menzel [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 21:10 To: Tomcat Users List Subject: Re: Unable to run Tomcat 5.5.20 as a Windows service under jdk 1.6 - Original Message - From: Grassi Fabio [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, February 05, 2007 6:15 AM Subject: Unable to run Tomcat 5.5.20 as a Windows service under jdk 1.6 On some machines only and only under jdk 1.6 I'm not able to run Tomcat as a Windows service. Installation of the service goes all right, but when I try to start the service I get the following error in jakarta_service.log: [2007-02-05 12:04:27] [info] Debugging Service... [2007-02-05 12:04:27] [info] Starting service... [2007-02-05 12:04:27] [173 javajni.c] [error] Impossibile trovare il modulo specificato. [2007-02-05 12:04:27] [924 prunsrv.c] [error] Failed creating java C:\IRIS_PROGRAMMI\jdk1.6.0\jre\bin\server\jvm.dll [2007-02-05 12:04:27] [1179 prunsrv.c] [error] ServiceStart returned 1 [2007-02-05 12:04:27] [info] Debug service finished. [2007-02-05 12:04:27] [info] Procrun finished. I'm out of options, any idea? - I was hoping someone would answer you as I am having a similar problem with JDK 1.6. I uninstalled 1.6 and installed 1.5 everything seems fine. You can find the 1.5 download on the previous release page. Tomcat 5.5.20, on Windows 2003 brand new servers from Dell. [ some cut ] [2007-02-05 13:17:26] [info] Starting service... [2007-02-05 13:17:26] [173 javajni.c] [error] The specified module could not be found. [2007-02-05 13:17:26] [924 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0\bin\client\jvm.dll [2007-02-05 13:17:26] [1179 prunsrv.c] [error] ServiceStart returned 1 [2007-02-05 13:17:26] [info] Run service finished. [2007-02-05 13:17:26] [info] Procrun finished. And here after downgrading to 1.5. [2007-02-05 15:02:51] [info] Service Tomcat5 name Apache Tomcat [2007-02-05 15:02:51] [info] Service Tomcat5 installed [2007-02-05 15:02:51] [info] Procrun finished. [2007-02-05 15:02:52] [info] Updating service... [2007-02-05 15:02:52] [info] Service Tomcat5 updated [2007-02-05 15:02:52] [info] Update service finished. [2007-02-05 15:02:52] [info] Procrun finished. [2007-02-05 15:02:53] [info] Updating service... [2007-02-05 15:02:53] [info] Service Tomcat5 updated [2007-02-05 15:02:53] [info] Update service finished. [2007-02-05 15:02:53] [info] Procrun finished. [2007-02-05 15:02:55] [info] Running Service... [2007-02-05 15:02:55] [info] Starting service... [2007-02-05 15:02:56] [info] Service started in 1109 ms. Sorry I can't say any more than that. Hope it helps. Ken - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
RE: Tomcat and Java6
Hi Again.. I tried to look at the sources: http://svn.apache.org/viewvc/jakarta/commons/proper/daemon/trunk/src/nat ive/nt/procrun/src/ I'm not a really into C but someone here could maybe see whats wrong, I have come to the conclusion that the method: serviceStart() Is failing on row (~946): 8--- /* Set the environment using putenv, so JVM can use it */ setInprocEnvironment(); /* Create the JVM glbal worker */ gWorker = apxCreateJava(gPool, _jni_jvmpath); if (IS_INVALID_HANDLE(gWorker)) { apxLogWrite(APXLOG_MARK_ERROR Failed creating java %S, _jni_jvmpath); return 1; } 8--- I have tried reinstall both tomcat5.5.20, reinstall jre1.6.0 and jdk1.6.0 tried all the different options in the java virtual machine setting in service, from default to jre/client/jvm.dll, jdk/client and server jvm.dll... I have run out of options, and I haven't got the knowledge to debug this furhter, so... Does anyone know what the IS_INVALID_HANDLE(gWorker) is checking? Or why the apxCreateJava(..) is failing why? /Per Jonsson -Original Message- From: Per Johnsson [mailto:[EMAIL PROTECTED] Sent: den 1 februari 2007 11:02 To: Tomcat Users List Subject: RE: Tomcat and Java6 I get this error in jakarta_service_20070201.log which don't give me much of a clue :-/ But it seams that java itself won't load ---8--- [2007-02-01 10:33:10] [173 javajni.c] [error] The specified module could not be found. [2007-02-01 10:33:10] [924 prunsrv.c] [error] Failed creating java C:\Java\jdk1.6.0\jre\bin\server\jvm.dll [2007-02-01 10:33:10] [1179 prunsrv.c] [error] ServiceStart returned 1 --8--- You could run tomcat witout the service but I don't have the run.bat scripts etc in the installation in the environment right now.. Will maybe test it later. There was an earlier thread abaout this here: http://www.mail-archive.com/users@tomcat.apache.org/msg21543.html /per jonsson -Original Message- From: Kristian Rink [mailto:[EMAIL PROTECTED] Sent: den 31 januari 2007 14:35 To: users@tomcat.apache.org Subject: Re: Tomcat and Java6 [Per Johnsson [EMAIL PROTECTED] @ Wed, 31 Jan 2007 14:20:13 +0100] Do you run on windows with the Tomcat Service? Did you do a clean install of tomcat after installing java 6? I have tried both the server and client jvm.dll in both the jre and jdk withouit luck. Ahh, no, our production systems are Linux and Solaris exclusively. Isn't there a way to also run tomcat without the service atop Win32? Just in order to figure out which piece of the setup is actually broken... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Java6
I get this error in jakarta_service_20070201.log which don't give me much of a clue :-/ But it seams that java itself won't load ---8--- [2007-02-01 10:33:10] [173 javajni.c] [error] The specified module could not be found. [2007-02-01 10:33:10] [924 prunsrv.c] [error] Failed creating java C:\Java\jdk1.6.0\jre\bin\server\jvm.dll [2007-02-01 10:33:10] [1179 prunsrv.c] [error] ServiceStart returned 1 --8--- You could run tomcat witout the service but I don't have the run.bat scripts etc in the installation in the environment right now.. Will maybe test it later. There was an earlier thread abaout this here: http://www.mail-archive.com/users@tomcat.apache.org/msg21543.html /per jonsson -Original Message- From: Kristian Rink [mailto:[EMAIL PROTECTED] Sent: den 31 januari 2007 14:35 To: users@tomcat.apache.org Subject: Re: Tomcat and Java6 [Per Johnsson [EMAIL PROTECTED] @ Wed, 31 Jan 2007 14:20:13 +0100] Do you run on windows with the Tomcat Service? Did you do a clean install of tomcat after installing java 6? I have tried both the server and client jvm.dll in both the jre and jdk withouit luck. Ahh, no, our production systems are Linux and Solaris exclusively. Isn't there a way to also run tomcat without the service atop Win32? Just in order to figure out which piece of the setup is actually broken... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Java6
Hi! Are you sure it's tomcat which fails, in my case it was the Tomcat Service which hangs, and I have no clue why. I got it working on one machine but not on all other with the same setup. I tried updated the Tomcat.exe service files without luck. Another person on the list said it will work if you reinstall tomcat. I presume you run windows, because in Linux and without the service Tomcat runs perfect.. /per jonsson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: den 31 januari 2007 13:58 To: 'Tomcat Users List' Subject: Tomcat and Java6 Hello List! is it possible to run Tomcat with Java6 ? I've just tried Tomcat 5.5.20 and it did not start with Java 6. Is there a Version that is compatible with Java 6 allready? Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Java6
Hi! Do you run on windows with the Tomcat Service? Did you do a clean install of tomcat after installing java 6? I have tried both the server and client jvm.dll in both the jre and jdk withouit luck. Then on the other hand we had both jdk5 and jdk6 installed and we did not reinstalled tomcat. (We are running tomcat 5.5.17) I tried the debug of the tomcat service but I didn't get much of information from that either.. /Regards Per Jonsson -Original Message- From: Kristian Rink [mailto:[EMAIL PROTECTED] Sent: den 31 januari 2007 14:12 To: users@tomcat.apache.org Subject: Re: Tomcat and Java6 [EMAIL PROTECTED] @ Wed, 31 Jan 2007 13:58:05 +0100] Hello List! is it possible to run Tomcat with Java6 ? I've just tried Tomcat 5.5.20 and it did not start with Java 6. Could you be more verbose about the meaning of it did not start with Java 6? I am running several tomcat machines (both internally and externally available) using Java 6, and so far I haven't had any trouble... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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 problem : works in all cases except one
Hi! I just notice that you have /wiki/ in the uriworkers and path=/wiki. Try to change your ajp connector to /wiki*=ajp13w I have sometimes had some problem with differences in the last slash. /Per Jonsson -Original Message- From: Rich Stern [mailto:[EMAIL PROTECTED] Sent: den 19 januari 2007 22:56 To: users@tomcat.apache.org Subject: isapi_redirect problem : works in all cases except one I have Tomcat 5.5 installed on a Win2000 server with IIS 5.0, and I'm using the isapi_redirect.dll ver 1.2.19. I have deployed this on a development server, and it worked like a charm (only difference is that the dev server is Win2003 server with IIS 6.0). I am now deploying it on the previously mentioned Win2k server, and I have one situation that causes a problem. Problem: All web requests are being forwarded correctly from IIS to Tomcat (via isapi_redirect.dll), except for those at the root of the Servlet. For example, http://ip or dns name/wiki/anything will load and execute my servlet. The URL http://ip or dns name/wiki/ by itself (nothing following the last forward slash) will fail somewhere in the process of execution without logging anything anywhere, and the browser (both IE and Firefox so far) are asking me to download a file instead of outputting html to the browser window. I don't believe that IIS is giving me the problem, because if the request was being processed by IIS, the response would simply be a 404 error. I'm tempted to think that the problem lies in how the isapi filter is modifying the request before handing it off to Tomcat, or that Tomcat is modifying it in between receiving and processing it. My uriworkermap.properties has the following entry: /wiki/*=ajp13w And my xml file in Tomcat (tomcat install\cont\Catalina\localhost\wiki.xml) has the context element installdefined with path=/wiki and docBase=D:/physical path to servlet root/. To the best of my knowledge, I have configured this to work correctly. I say this because I can go directly to Tomcat (by appending Tomcat's standalone listening port of 8080 in the url) and I can also request any other URL (other than the one I'm having trouble with) without specifying the port number, and IIS hands it off to Tomcat and returns the expected html content. I also have double, triple, and quadruple checked that all my config files and registry entries as described in the isapi_redirect documentation are the same on both servers (with differences only in the file paths because the file systems are laid out differently), and the only difference between the two servers is the OS and version of IIS. I will continue researching and trouble shooting, but ANY help, information, or ideas are greatly appreciated. Thanks! - Rich This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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: JSTL c:if statements
Hi! I hade some similar strange problems when I had a very old xml jars. (like xml-api.jar etc) Check your jars for xml and update them. /Regards Per Jonsson -Original Message- From: rotvang [mailto:[EMAIL PROTECTED] Sent: den 12 januari 2007 06:32 To: users@tomcat.apache.org Subject: JSTL c:if statements I have Tomcat version 5.0.28, and I am trying to use the JSTL tags in my webapp. I have placed the 2 required JSTL jar files, standard.jar and jstl.jar into my WEB-INF/lib directory. The bizarre thing is that some of the JSTL standard tags work, and some don't! Even stranger, it doesn't break down by taglib--in other words, half of the core tags work, and half don't. Half of the fmt tags work, and half don't. Most importantly, c:out works just fine, and with the EL, properly. However, none of the selection or conditional tags work: c:if , c:when, and c:choose tags all throw weird, indecypherable Jasper exceptions at JSP compilation time. Why would only some of the c: tags throw exceptions, and not all of the c: tags. Now, to rule out the possibility of syntax errors in my source, I copy/pasted a complete JSP example from Sun's own website, which ostensibly should work. Even with Sun Microsystem's own JSPs, these conditional c: tags throw the weird Jasper exception. I've pasted an excerpt of the stack trace thrown by any occurrence of c:if in any of my JSPages: Jan 12, 2007 12:30:04 AM org.apache.jasper.compiler.Compiler generateClass SEVERE: Error compiling file: /C:/Documents and Settings/HR Systems/Desktop/jaka rta-tomcat-5.0.28/jakarta-tomcat-5.0.28/work/Catalina/localhost/OVWebApp //org/ap ache/jsp\Example1_jsp.java [javac] Compiling 1 source file C:\Documents and Settings\HR Systems\Desktop\jakarta-tomcat-5.0.28\jakarta-tomca t-5.0.28\work\Catalina\localhost\OVWebApp\org\apache\jsp\Example1_jsp.ja va:152: _jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.Pag eContext ) in org.apache.jsp.Example1_jsp cannot be applied to (org.apache.taglibs.standa rd.tag.el.core.IfTag,javax.servlet.jsp.PageContext) if (_jspx_meth_c_out_1(_jspx_th_c_if_0, _jspx_page_context)) -- View this message in context: http://www.nabble.com/JSTL-c%3Aif--statements-tf2963977.html#a8292740 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat cache problem?
Hi! I just want to enlight you about FireBug which is a FireFox plugin which has a lot of stuff, including webserver communication: http://www.getfirebug.com/ It's a beta but its very promising and nice. Another good way to se if a page is cached during debugging is a sysout to the logfile, that way you really se if the jsp/servlet is executed. /Per Jonsson -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: den 5 januari 2007 01:01 To: Tomcat Users List Subject: Re: Tomcat cache problem? the caching behaviour of the modern browsers is really a rocket science. One of the way to try to control it is to put the according meta-tags into your files: META http-equiv=pragma content=no-cache META http-equiv=Cache-Control content=no-cache, must-revalidate META name=Expires content=0 Furthermore I'd suggest you add a unique timestemp (System.currentTimeMillis()) to each link (and change it on each page reload). This way you can force the browser to believe he hasn't visited the page yet. That been said, you should really look into using a program which displays browser-webserver communication. For firefox its LiveHttpHeaders or TamperData , for IE a version of LiveIEHttpHeaders exists somewhere on the net. When you see that your browser sends a valid new request and the servers sends old data back you should start to check your webapp :-) regards Leon This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible bug in Apache Tomcat JK 1.2.19 for WIN32?
Hi! I don't know if this is a bug or if it's a known issue. This is an extract from our uriworkermap.properties file: ... /ExtranetLogin*=ajp13w /images*=ajp13w /ExtranetLogin*=ajp14w .. It seems like the two ExtranetLogin pointing to two different hosts was confused in some way and didn't work. After changing the ajp14w to /Extranet* it worked. So I wonder if there may be some sort of mixup with url defenitions matching exacly like the two we have above. /Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
RE: Possible bug in Apache Tomcat JK 1.2.19 for WIN32?
Thanks four your quick response. I think, after reading the bugzilla, the problem is: The keys on the left side are used in a case insensitive way as a key in a hash table. If there are multiple same keys, the first key wins and the value is set to the last one. It would explain our problem. We run a rather complex environment with 4 live tomcat servers fronting with 4 iis , and one tomcatpreview sharing an IIS with one of the live ones. So we have the exact patterns in both ajp13w and ajp14w.. /Regards Per Jonsson -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: den 7 november 2006 15:25 To: Tomcat Users List Subject: Re: Possible bug in Apache Tomcat JK 1.2.19 for WIN32? I'm not sure, what kind of problem you have. Putting two identical patterns for different workers into uriworkermap.properties will not result in a well understood (or documented) behaviour. Nevertheless http://issues.apache.org/bugzilla/show_bug.cgi?id=40855 might be interesting to read. Regards, Rainer Per Johnsson schrieb: Hi! I don't know if this is a bug or if it's a known issue. This is an extract from our uriworkermap.properties file: ... /ExtranetLogin*=ajp13w /images*=ajp13w /ExtranetLogin*=ajp14w .. It seems like the two ExtranetLogin pointing to two different hosts was confused in some way and didn't work. After changing the ajp14w to /Extranet* it worked. So I wonder if there may be some sort of mixup with url defenitions matching exacly like the two we have above. /Regards Per Jonsson ** ** This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. ** ** - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost?
Thank you. There was no mention in the doc about the removed libs.. I'm always beeing little bit confused when things disapear whithout any mention it. /Regards Per Jonsson -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: den 31 oktober 2006 14:52 To: Tomcat Users List Subject: RE: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost? From: Per Johnsson [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost? I downloaded Tomcat 6 (the alpha I presume) the zipped version and I I noticed there was no directory for shared/lib, common/ and no conf/Catalina. I Googled and read the doc and got no clue if there is some changes in the lib structure which you should be aware of. Read the doc again: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html and this thread: http://marc.theaimsgroup.com/?t=11618463222r=1w=2 Modify conf/catalina.properties as desired. Is the conf/Catalina created when first run and depending on the server.xml? It's only created when needed. In previous versions of Tomcat, it was always there to hold manager.xml and host-manager.xml, but in 6.0 these apps are in the regular webapps directory and their Context tags are stored with the app. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Two apps with different hosts?
We have two different applications running on tomcat 5 today with different hosts, one is inside the webapps directory and one did we put outside. Before we had both the applications in webapps but that made tomcat run several instances of the apps due to we declared the host ... appbase=webapps ... several times. So if we want to have more applications inside webapps and with different hosts we get several instances, so our only solution was to use a dummy appBase for one of the applications and point out the off the apps directly (which if I'm not misinformed can have behavior on the libs in the shared directory). Is there a smother way of doing this? It does feel a little bit awkward to do as below. Host name=www.mysite.com http://www.mysite.com appBase=emptywebapps unpackWARs=false autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=C:\Java\Tomcat 5.5\mysiteapps\mysite debug=0 crossContext=true/ /Host Host name=preview.mysite.com appBase=webapps unpackWARs=false autoDeploy=false xmlValidation=false xmlNamespaceAware=false /Host Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
RE: Two apps with different hosts?
Hi! I may be missinformed but I was told there may be issues with the loading of the shared libs if using pluto (jsr-168) if the appbase was outside the webapps directory and there could be other issues as well. /Per Jonsson -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: den 30 oktober 2006 15:16 To: Tomcat Users List Subject: Re: Two apps with different hosts? Per, So if we want to have more applications inside webapps and with different hosts we get several instances, so our only solution was to use a dummy appBase for one of the applications and point out the off the apps directly (which if I'm not misinformed can have behavior on the libs in the shared directory). Is there a smother way of doing this? It does feel a little bit awkward to do as below. Why not simply keep your webapps for one host in one directory, and those for the other in a separate directory. Then, set the appBase attribute as appropriate for each host (note changes): Host name=www.mysite.com appBase=webapps unpackWARs=false autoDeploy=false xmlValidation=false xmlNamespaceAware=false /Host Host name=preview.mysite.com appBase=webapps-preview unpackWARs=false autoDeploy=false xmlValidation=false xmlNamespaceAware=false /Host -chris This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 and shared/lib, common/ and conf/catalina/localhost?
I downloaded Tomcat 6 (the alpha I presume) the zipped version and I I noticed there was no directory for shared/lib, common/ and no conf/Catalina. I Googled and read the doc and got no clue if there is some changes in the lib structure which you should be aware of. Is the conf/Catalina created when first run and depending on the server.xml? /Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
Help on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0
Hi! We have had some major problems today on our productions serves with the config below. We have had a hard time localizing the problem and therefor I ask you here if you have any comments. There seems to be a some Whe have Apache Tomcat 5.5.12 running Tomcat Native Java Library 1.1 (apr) And we are running JK-1.2.19. We have 4 tomcat servers and 4 IIS servers in front and a dcc beween the tomcat and iis with sticky configured on the loadbalancer. This is our config for the jk and I just want to check see if we have made some mistakes thou we are not really sure. worker.ajp13w.type=ajp13 worker.ajp13w.host=10.182.18.3 worker.ajp13w.port=8009 worker.ajp13w.socket_keepalive=True // The for above seems to be no problem worker.ajp13w.socket_timeout=60 // This timeout, is it better to have it zero? As I read the doc if I put it lower the jk will make more retries often and higher lesser retries. worker.ajp13w.connection_pool_size=100 //from the docs: // It will limit the number of those connection that each web server child process can made...default is 10 on IIS... What does webserver child process when talking about IIS means, is it connections per user or is it, What config in IIS is this? We havn't found anyone matching really? worker.ajp13w.connection_pool_timeout=60 // This one, is it seconds? I really don't understand if it's a good thing if it's many connections or if you want them to be kept alive. Here is out server.xml config for the connectors: --8-- Service name=Catalina Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=5000 disableUploadTimeout=true compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml,text/css,text/javascript / Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=5000 disableUploadTimeout=true compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml,text/css,text/javascript / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 maxProcessors=250 / --8-- Today we have three connectors, is these three independent of each other or does for exampple the ajp connector talking to the 8080 connector? Hope some of you have some idéas of this, and any other tweaking, optimizationtricks for tomcat together with IIS 6.0 is highly appriciated. Sorry if I'm a little unclear, it has been a long day and it's gong to be a long night.. /Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0 (own thread)
Hi! (Now own thread, sorry about the previouse stealing) We have had some major problems today on our productions serves with the config below. We have had a hard time localizing the problem and therefor I ask you here if you have any comments. There seems to be a some Whe have Apache Tomcat 5.5.12 running Tomcat Native Java Library 1.1 (apr) And we are running JK-1.2.19. We have 4 tomcat servers and 4 IIS servers in front and a dcc beween the tomcat and iis with sticky configured on the loadbalancer. This is our config for the jk and I just want to check see if we have made some mistakes thou we are not really sure. worker.ajp13w.type=ajp13 worker.ajp13w.host=10.182.18.3 worker.ajp13w.port=8009 worker.ajp13w.socket_keepalive=True // The for above seems to be no problem worker.ajp13w.socket_timeout=60 // This timeout, is it better to have it zero? As I read the doc if I put it lower the jk will make more retries often and higher lesser retries. worker.ajp13w.connection_pool_size=100 //from the docs: // It will limit the number of those connection that each web server child process can made...default is 10 on IIS... What does webserver child process when talking about IIS means, is it connections per user or is it, What config in IIS is this? We havn't found anyone matching really? worker.ajp13w.connection_pool_timeout=60 // This one, is it seconds? I really don't understand if it's a good thing if it's many connections or if you want them to be kept alive. Here is out server.xml config for the connectors: --8-- Service name=Catalina Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=5000 disableUploadTimeout=true compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml,text/css,text/javascript / Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=5000 disableUploadTimeout=true compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml,text/css,text/javascript / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 maxProcessors=250 / --8-- Today we have three connectors, is these three independent of each other or does for exampple the ajp connector talking to the 8080 connector? Hope some of you have some idéas of this, and any other tweaking, optimizationtricks for tomcat together with IIS 6.0 is highly appriciated. Sorry if I'm a little unclear, it has been a long day and it's gong to be a long night.. /Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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 on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0 (own thread)
Hi! If I had a clear answare to that I would give you one but I don't have that :-) (If I know what the problem was I would fix it :-) It seems like the server get to many connections but the server is not running at 100% which they should if they get a loot of work. But that is just a thought, no really proof. /per jonsson -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: den 2 oktober 2006 20:55 To: Tomcat Users List Subject: RE: Help on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0 (own thread) From: Per Johnsson [mailto:[EMAIL PROTECTED] Subject: Help on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0 (own thread) We have had some major problems today on our productions serves with the config below. Want to give us a hint what the problems are? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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 on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0 (own thread)
Thanks. We'll remove the timeout and sync the maxthreads to the iis. And if tomcat (java/jsp) itself is reading xml from itself we should take that in account I presume or is java it going on the other connector 8080/80? /regards per jonsson -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: den 2 oktober 2006 21:00 To: Tomcat Users List Subject: Re: Help on settings jk 1.2.19, tomcat 5.5.12 with IIS 6.0 (own thread) Per Johnsson wrote: Hi! (Now own thread, sorry about the previouse stealing) Great :) worker.ajp13w.connection_pool_size=100 //from the docs: It means: The maximum number of connections from IIS to Tomcat worker.ajp13w.connection_pool_timeout=60 Comment (delete) this one. Connection pool timeout is used when you have a connection pool larger then maxThreads in server.xml Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk failover and preferring localhost
Hi! Is 1.2.16 avaiable for download somewhere? Found this: http://tomcat.apache.org/connectors-doc/news/20060505.html Regards Per -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: den 21 juni 2006 21:14 To: Tomcat Users List Subject: Re: mod_jk failover and preferring localhost Filip Hanik - Dev Lists wrote: you've setup sticky_sessions to be false, (btw, I thought that only took 0/1 values) so how can you expect session affinity from that? Recent mod_jk versions can take True/False instead 1/0 just as an convenience method. Also the 'distance' param will be supported with the next 1.2.16 release. Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - 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: Running webapp as root context
Hi! I think the easiest way is to put all the contents in your folder mmwebclient in the webapps/ROOT. Not put the whole folder just the contents. /Per Jonsson Ryan Di Francesco [EMAIL PROTECTED] 2006-03-22 22:57 Please respond to Tomcat Users List users@tomcat.apache.org To users@tomcat.apache.org cc Subject Running webapp as root context Hello - I've just finished my first installation of Tomcat 5.5 along with Meeting Maker. Right now the URL to access Meeting Maker is http://localhost/mmwebclient. As this is the only application this server will be running, ideally I'd like to configure it so just accessing http://localhost will direct one to Meeting Maker, instead of the default Tomcat webpage. D:\Tomcat 5.5\webapps\mmwebclient is where the Meeting Maker application resides. If anyone can provide me with details on how to do this or point me in the right direction, it would be greatly appreciated. Thanks in advance for your time and consideration. Ryan DiFrancesco Information Systems Specialist Systems Group - Library ITS New York University This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
Re: Mapping different different folders in a webapp to different urls
Hi! We have managed to do that but with a side effect that Tomcat loads each webapp several times. This is an example config. Host name=www.aaa.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=aaa debug=0 crossContext=true/ /Host Host name=www.bbb.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=bbb debug=0 crossContext=true/ /Host I think by setting the webapps folder to a empty dummy folder you could get rid of the autoloaded webapps and only get those you want. I have not tried it out much. I'm looking for a nicer solution Host name=www.aaa.com appBase=webappsDummy unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=webapps/aaa debug=0 crossContext=false/ /Host Host name=www.bbb.com appBase=webappsDummy unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=webapps/bbb debug=0 crossContext=false/ /Host So if someone knows another way of only load the defined context I'm more than glad to hear about it. Regards Per Jonsson Tim Diggins [EMAIL PROTECTED] wrote on 2006-03-13 12:38:59: If you are planning to use apache anyway, then you could use mod_rewrite for this (see apache docs on mod_rewrite - but basically rewrite (internally) the a.abc.com to abc.com/a and connect abc.com/a via mod_jk to tomcat /a and then tomcat doesn't need to know about the rewrite). don't __think__ there is a tomcat way to distribute a webapp across urls, but you __might__ get the same effect by having virtual hosts in tomcat, each with a ROOT webapp, and enabling single-sign-on (to enable the same session across the webapps). I've never used single-sign-on, but that's the first thing I'd check, if you want a tomcat-only solution. hth Tim Kumar Limbu wrote: Hi Guys, Hi everyone. I am new to this mailing list and I have a configuration problem. I searched through the web and googled around but I couldn't get a satisfactory reply. I also went through the mailing list, but I couldn't come across anything specific to my need. We are about to deploy an application. What we are looking to do is to map each individual folder within the web application to a different urls. What I mean by this is, For example we have a web application called webapp and within webapp we have folders like a, b and c. What I would like to know is , how can I map these folder to urls like a.abc.com , b.abc.com and c.abc.com. Is there any way to do this? I haven't really been able to find a reasonable solution to this problem. So if anyone knows how to do it please drop a word. Thank You, Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
Defining two host
Host name=www.mydomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=mydomain debug=0 crossContext=true/ /Host Host name=www.yourdomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=yourdomain debug=0 crossContext=true/ /Host This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.
Re: Defining two host
Sorry. Missed the question. How do I best define two hosts with specific pathes. In my example below the webapps is loaded several times. I just want tomcat to load the webapps that I define. The below works good if I use a fullpath in context and sets the appBase to a dummy directory or removes the tag, but is there really not a another way? Host name=www.mydomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=mydomain debug=0 crossContext=true/ /Host Host name=www.yourdomain.com appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false Context path= docBase=yourdomain debug=0 crossContext=true/ /Host Regards Per Jonsson This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer.