potential thread? and what should we do?
Hello there, recently I'm reading in the security news channels that there are discovered multiple vulnerabilities in tomcat and almost all versions are affected. For example these news from today: http://www.linuxsecurity.com/content/view/149201?rdf On the other side, I can see that the latest version of tomcat is 5.5.27 and the package is created in 2008 (06-Sep). Are there any fixes, or some new version comes soon? Does someone know something about this. -- Best regards, Nikolay Diulgerov Network Administrator - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: potential thread? and what should we do?
Does this means that 5.5.x is no more developed, and there will be no new versions in the 5.5 branch ? Best regards, Nikolay Diulgerov Network Administrator E-mail: ndiulge...@imx.fr Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Leon Rosenberg wrote: The latest version of tomcat is 6.0.20 and its about one month old. http://tomcat.apache.org/download-60.cgi#6.0.20 enjoy :-) Leon On Wed, Jun 24, 2009 at 10:06 AM, Niki Diulgerovndiulge...@imx.fr wrote: Hello there, recently I'm reading in the security news channels that there are discovered multiple vulnerabilities in tomcat and almost all versions are affected. For example these news from today: http://www.linuxsecurity.com/content/view/149201?rdf On the other side, I can see that the latest version of tomcat is 5.5.27 and the package is created in 2008 (06-Sep). Are there any fixes, or some new version comes soon? Does someone know something about this. -- Best regards, Nikolay Diulgerov Network Administrator - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: potential thread? and what should we do?
After doing some reading of the documentation I found that these bugs are fixed in the SVN repository. Also checking out the latest source I can see that it is revision (Checked out revision 787991) and tomcat is with version 5.5.28. Following the simple instructions on the site (http://tomcat.apache.org/tomcat-5.5-doc/building.html) anyone can build the latest release and get version with these bugs fixed. Best regards, Nikolay Diulgerov Network Administrator David kerber wrote: Niki Diulgerov wrote: Hello there, recently I'm reading in the security news channels that there are discovered multiple vulnerabilities in tomcat and almost all versions are affected. For example these news from today: http://www.linuxsecurity.com/content/view/149201?rdf On the other side, I can see that the latest version of tomcat is 5.5.27 and the package is created in 2008 (06-Sep). Are there any fixes, or some new version comes soon? Does someone know something about this. I asked this question a couple of weeks ago, and they said that the fix in the TC6 line is already done in 6.0.20, and the TC5.5 and TC4 lines will have this fixed in the not-too-distant future. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: potential thread? and what should we do?
Mark, I used the build.xml downloaded from here (http://tomcat.apache.org/tomcat-5.5-doc/build.xml). Looking at it I can see that it checks out http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x (probably the latest available revision). Please advice me does it contain the latest approved patches or also the latest applied (but still not approved) patches. Should I change something in the build.xml script or I should manually checkout from different location (or different revision but not the head one) The idea is to check out the latest 5.5.x version with approved bugfixes and to build tomcat, cause on tomcat.apache.org the binaries are from 2008. Best regards, Nikolay Diulgerov Network Administrator Mark Thomas wrote: Niki Diulgerov wrote: After doing some reading of the documentation I found that these bugs are fixed in the SVN repository. Also checking out the latest source I can see that it is revision (Checked out revision 787991) and tomcat is with version 5.5.28. Following the simple instructions on the site (http://tomcat.apache.org/tomcat-5.5-doc/building.html) anyone can build the latest release and get version with these bugs fixed. Just be aware that although what you download from svn today may call itself 5.5.28, there may be other changes made before 5.5.28 is tagged. If you want to work with the same source code as we used to build the release, you need to checkout the tag rather than trunk. Mark Best regards, Nikolay Diulgerov Network Administrator David kerber wrote: Niki Diulgerov wrote: Hello there, recently I'm reading in the security news channels that there are discovered multiple vulnerabilities in tomcat and almost all versions are affected. For example these news from today: http://www.linuxsecurity.com/content/view/149201?rdf On the other side, I can see that the latest version of tomcat is 5.5.27 and the package is created in 2008 (06-Sep). Are there any fixes, or some new version comes soon? Does someone know something about this. I asked this question a couple of weeks ago, and they said that the fix in the TC6 line is already done in 6.0.20, and the TC5.5 and TC4 lines will have this fixed in the not-too-distant future. D - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
request for advice Tomcat-weblogic
Hello there, I need an advice about how to transfer the settings in tomcat-users.xml to weblogic. And I hope someone is familiar with both and could help. For example, in tomcat-users.xml I have role rolename=configurator/ user username=tomcat password=tomcat roles=tomcat,admin,administrator,manager,configurator/ And in the application, there are some parts restricted like /management/* which needs user with the specified role to authenticate itself before get access (here is the example) security-constraint web-resource-collection web-resource-nameHTMLManger and Manager command/web-resource-name url-pattern/management/*/url-pattern /web-resource-collection auth-constraint !-- NOTE: This role is not present in the default users file -- role-nameconfigurator/role-name /auth-constraint /security-constraint Does someone know how to setup weblogic so I can get the same functionality like in tomcat. -- Best regards, Niki - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: request for advice Tomcat-weblogic
However, figured out how to do this, if someone face the same problem. Additional file should exists in the WEB-INF folder file name weblogic.xml example which will solve the problem described below: ?xml version='1.0' encoding='UTF-8'? weblogic-web-app xmlns=http://www.bea.com/ns/weblogic/90; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; security-role-assignment role-nameconfigurator/role-name principal-nameweblogic/principal-name /security-role-assignment /weblogic-web-app Best regards, Niki Niki Diulgerov wrote: Hello there, I need an advice about how to transfer the settings in tomcat-users.xml to weblogic. And I hope someone is familiar with both and could help. For example, in tomcat-users.xml I have role rolename=configurator/ user username=tomcat password=tomcat roles=tomcat,admin,administrator,manager,configurator/ And in the application, there are some parts restricted like /management/* which needs user with the specified role to authenticate itself before get access (here is the example) security-constraint web-resource-collection web-resource-nameHTMLManger and Manager command/web-resource-name url-pattern/management/*/url-pattern /web-resource-collection auth-constraint !-- NOTE: This role is not present in the default users file -- role-nameconfigurator/role-name /auth-constraint /security-constraint Does someone know how to setup weblogic so I can get the same functionality like in tomcat. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat-users.xml MD5 sum
hello There, I implemented aide monitoring on tomcat (and the webapps) yesterday and today faced a very strange problem. tomcat-users.xml seems the same file (it contents) but aide reports MD5 and SHA different checksums. is it possible that on restart apache tomcat to change (or recreate) tomcat-users.xml. It was restarted automatically in the morning. If YES ... some ideas how to prevent this behavior (I think about to make tomcat-users.xml to be owned by root). -- Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.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]
mod_jk 1.2.26 jk_mount
Hello there, I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64 The module works as intended except some strance gehaviour I have in my httpd.conf JkMount /app/*.jsp ajp13 JkMount /app/*.do ajp13 And this works OK but my application have a URLs like /app/resources/showPDFLetter?format=pdf Which was not described im JkMount and rejected I added JkMount /app/resources/* ajp13 but still the same error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found can this be because of the version of mod_jk ? -- Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk 1.2.26 jk_mount
web.xml is the default coming from tomcat 5.5.26 the strange thing is in mod_jk log file in the beginning it says [Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule '/app/*.jsp=ajp13' source 'JkMount' was added [Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule '/app/*.do=ajp13' source 'JkMount' was added [Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule '/app/resources/*=ajp13' source 'JkMoun t' was added But then ...when I try to access /resources/ShowPDF. it says [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_unmarshal_response::jk_ajp_common.c (671): Header[0] [Location] = [https://myserver.com/app/resou rces/showPDFLetter?format=pdf] [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_unmarshal_response::jk_ajp_common.c (671): Header[1] [Content-Type] = [text/html] [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_unmarshal_response::jk_ajp_common.c (671): Header[2] [Content-Length] = [0] [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): received from ajp13 pos=0 len=2 max=8192 [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_process_callback::jk_ajp_common.c (1661): AJP13 protocol: Reuse is OK [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (ajp13) resetting endpoint with sd = 20 [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] ajp_done::jk_ajp_common.c (2522): recycling connection pool slot=0 for worker ajp13 [Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] jk_handler::mod_jk.c (2348): Service finished with status=302 for worker=ajp13 [Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] map_uri_to_worker::jk_uri_worker_map.c (682): Attempting to map URI '/app/resources/showPDFLetter' f rom 2 maps [Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] find_match::jk_uri_worker_map.c (503): Attempting to map context URI '/app/*.jsp=ajp13' source 'JkMo unt' [Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] find_match::jk_uri_worker_map.c (503): Attempting to map context URI '/app/*.do=ajp13' source 'JkMou nt' [Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Brian Martin wrote: Can you attach your web.xml file... I'm new to this too but I think you need to have appropriate url filters setup -- I might be using the wrong terminology here.,.,. On Tue, Jun 03, 2008 at 05:22:06PM +0300, Niki Diulgerov wrote: It's not because of missing or insufficient rights. The connector just don't want to accept the rule JkMount /app/resources/* ajp13 and to redirect the request to tomcat and gives the error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found maybe the syntax for JkMount is changed in 1.2.26? Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Landon Fabbricino wrote: Could it be as simple as not having rights (permissions) to see the /app/resources directory or the showPDFLetter file ? Landon Fabbricino IT Applications Phone: 403.225.7515 Fax: 403.225.7604 [EMAIL PROTECTED] Niki Diulgerov [EMAIL PROTECTED] 6/3/2008 8:04:47 AM Hello there, I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64 The module works as intended except some strance gehaviour I have in my httpd.conf JkMount /app/*.jsp ajp13 JkMount /app/*.do ajp13 And this works OK but my application have a URLs like /app/resources/showPDFLetter?format=pdf Which was not described im JkMount and rejected I added JkMount /app/resources/* ajp13 but still the same error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found can this be because of the version of mod_jk ? - 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 1.2.26 jk_mount
My fault... I have JkMount in my httpd.conf and JkMount in my ssl.conf which is responcible for the SSL connections... and I added JkMount /app/resources/* ajp13 only in httpd.conf and not in ssl.conf And was stupid enough to not try http connection (would see thet it works) but was only trying HTTPS. Now it is OK. Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Rainer Jung wrote: Niki Diulgerov wrote: It's not because of missing or insufficient rights. The connector just don't want to accept the rule JkMount /app/resources/* ajp13 and to redirect the request to tomcat and gives the error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found maybe the syntax for JkMount is changed in 1.2.26? No, no change. Version is fine. Maybe your request goes into a vhost and you didn't put the JkMount into the same vhost? When starting up with debug log level, you can see the parsing of all the JkMounts, so your /app/resources/* should show up there. Query strings do not matter. Maybe a typo? Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Regards, Rainer Landon Fabbricino wrote: Could it be as simple as not having rights (permissions) to see the /app/resources directory or the showPDFLetter file ? Landon Fabbricino IT Applications Phone: 403.225.7515 Fax: 403.225.7604 [EMAIL PROTECTED] Niki Diulgerov [EMAIL PROTECTED] 6/3/2008 8:04:47 AM Hello there, I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64 The module works as intended except some strance gehaviour I have in my httpd.conf JkMount /app/*.jsp ajp13 JkMount /app/*.do ajp13 And this works OK but my application have a URLs like /app/resources/showPDFLetter?format=pdf Which was not described im JkMount and rejected I added JkMount /app/resources/* ajp13 but still the same error [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found can this be because of the version of mod_jk ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26+sun jdk1.5.0.15 linux for 64 bit architecture problems
I'm completely lost Seems can't start RHEL5.1x64 and tomcat. I tried with sun java JDK 1.5x32 and 1.5x64 and for test with only RJE 1.5 x64 no success at all ... when I try to start some of the JSP 2.0 examples the same error appears HTTP Status 404 - Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available *type* Status report *message* _Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available_ *description* _The requested resource (Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available) is not available._ Apache Tomcat/5.5.26 And I'm sure that I'm using the right java to start tomcat here is the process 3784 tty2 Sl 0:06 /usr/local/jdk1.5.0_15/bin/java -server -Xms256m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -Dlogs.root=/opt/logs -Dwas.install.root=/opt -Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath :/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start here is my setenv.sh JAVA_OPTS=-server -Xms256m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m CATALINA_OPTS=-Dlogs.root=/opt/logs -Dwas.install.root=/opt JAVA_HOME=/usr/local/jdk1.5.0_15 #ENCODING=utf-8 Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Caldarale, Charles R wrote: From: Niki Diulgerov [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.26+sun jdk1.5.0.15 linux for 64 bit architecture problems CATALINA_OPTS=-Dlogs.root=/opt/logs -Dwas.install.root=/opt Those system properties are not used by Tomcat; are they for a webapp you've deployed? JAVA_HOME=/jdk1.5.0_15/jre Your JAVA_HOME setting is wrong - it should be just /jdk1.5.0_15 (although that's an unusual place to install the JDK - it's typically in something like /usr/local/jdkversion). Are you sure you're using the desired JDK? Have you set the PATH properly? What does java -version display? Are these examples supposed to work with 5.5 tomcat and the version of sun java which I'm using? Yes. Is this connected with the x64 architecture which I have. Probably not, if the JDK is properly installed. Can it be something with the fact that on the java sun build which I downloaded it is written amd64 and my CPU is Intel? No, the AMD64 architecture is what market pressure forced Intel to implement for its EM64T chips (now known as Intel 64, just to provoke confusion with the despised IA-64). It's also known as x86-64, which is what AMD originally called it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.26+sun jdk1.5.0.15 linux for 64 bit architecture problems
Found the f...problem. Maybe noone will have it but just in case I will explain what was wrong. I'm using MC (midnight commander) to extract tomcat archive. and MC says something that catalina.sh and other target files already exist even that they are not there. And by default I'm giving overwrite all targets. The result is this very strange behaviour of tomcat. Now I just did tar xvfz tomcat_archive.tar.gz and everything works as intended. Seems MC does something wrong while extracting the archive. Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Niki Diulgerov wrote: I'm completely lost Seems can't start RHEL5.1x64 and tomcat. I tried with sun java JDK 1.5x32 and 1.5x64 and for test with only RJE 1.5 x64 no success at all ... when I try to start some of the JSP 2.0 examples the same error appears HTTP Status 404 - Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available *type* Status report *message* _Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available_ *description* _The requested resource (Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available) is not available._ Apache Tomcat/5.5.26 And I'm sure that I'm using the right java to start tomcat here is the process 3784 tty2 Sl 0:06 /usr/local/jdk1.5.0_15/bin/java -server -Xms256m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -Dlogs.root=/opt/logs -Dwas.install.root=/opt -Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath :/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start here is my setenv.sh JAVA_OPTS=-server -Xms256m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m CATALINA_OPTS=-Dlogs.root=/opt/logs -Dwas.install.root=/opt JAVA_HOME=/usr/local/jdk1.5.0_15 #ENCODING=utf-8 Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Caldarale, Charles R wrote: From: Niki Diulgerov [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.26+sun jdk1.5.0.15 linux for 64 bit architecture problems CATALINA_OPTS=-Dlogs.root=/opt/logs -Dwas.install.root=/opt Those system properties are not used by Tomcat; are they for a webapp you've deployed? JAVA_HOME=/jdk1.5.0_15/jre Your JAVA_HOME setting is wrong - it should be just /jdk1.5.0_15 (although that's an unusual place to install the JDK - it's typically in something like /usr/local/jdkversion). Are you sure you're using the desired JDK? Have you set the PATH properly? What does java -version display? Are these examples supposed to work with 5.5 tomcat and the version of sun java which I'm using? Yes. Is this connected with the x64 architecture which I have. Probably not, if the JDK is properly installed. Can it be something with the fact that on the java sun build which I downloaded it is written amd64 and my CPU is Intel? No, the AMD64 architecture is what market pressure forced Intel to implement for its EM64T chips (now known as Intel 64, just to provoke confusion with the despised IA-64). It's also known as x86-64, which is what AMD originally called it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.26+sun jdk1.5.0.15 linux for 64 bit architecture problems
Hello there It is very strange for me. I just installed a brand new machine with Red Hat 5.1x64 on dell power edge 860. I downloaded jdk-1.5.0.15-linux-amd64 from sun. Downloaded tomcat 5.5.26. Installed both. I have in setenv.sh JAVA_OPTS=-server -Xms256m -Xmx512m -XX:PermSize=512m -XX:MaxPermSize=512m CATALINA_OPTS=-Dlogs.root=/opt/logs -Dwas.install.root=/opt JAVA_HOME=/jdk1.5.0_15/jre I can see the welcome screen of tomcat on port 8080 can enter the manager with the appropriate user and pass but When I try to start some of the JSP2.0 examples (they come by default with tomcat) an error appears: (the strange thing is that most of the JSP 1.2 examples work) When I try to start Basic Arithmetic example here is the result in the browser HTTP Status 404 - Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available *type* Status report *message* _Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available_ *description* _The requested resource (Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is not available) is not available._ Apache Tomcat/5.5.26 Here is the result in the localhost.2008-05-17.log May 17, 2008 6:52:34 PM org.apache.catalina.core.StandardWrapperValve invoke INFO: Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is currently unavailable May 17, 2008 7:04:11 PM org.apache.catalina.core.StandardWrapperValve invoke INFO: Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is currently unavailable May 17, 2008 7:05:44 PM org.apache.catalina.core.StandardWrapperValve invoke INFO: Servlet org.apache.jsp.jsp2.el.basic_002darithmetic_jsp is currently unavailable WHEN I TRY ANOTHER EXAMPLE... BASIC COMPARISON ...HERE IS THE RESULT IN LOCALHOST FILE SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: [EMAIL PROTECTED] org.apache.jsp.jsp2.el.basic_002dcomparisons_jsp java.lang.ClassNotFoundException: org.apache.jsp.jsp2.el.basic_002dcomparisons_jsp at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) May 17, 2008 7:07:31 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Allocate exception for servlet org.apache.jsp.jsp2.el.basic_002dcomparisons_jsp java.lang.ClassNotFoundException: org.apache.jsp.jsp2.el.basic_002dcomparisons_jsp at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at
RemoteAddrValve
Hello there, Using tomcat 5.5.25 + jdk1.5.0_13 By default /tomcat/conf/Catalina/localhost/manager.xml looks like ?xml version=1.0 encoding=UTF-8? Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context I'm changing it to: ?xml version=1.0 encoding=UTF-8? Context path=/manager docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false Valve classname=org.apache.catalina.valves.RemoteAddrValve allow=192.9.202.231/ !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context But no success to implement IP restriction for /manager here is the error: SEVERE: Parse error in context.xml for /manager java.lang.NullPointerException at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2726) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2752) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1279) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:782) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:722) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:987) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3984) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Nov 28, 2007 6:50:49 PM org.apache.catalina.startup.ContextConfig
Re: RemoteAddrValve
Probably wrong? but I saw almost the same example here http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html so cant understand what's wrong ...I'm using completely fresh installation of 5.5.25 whthout any changes except these mentioned here Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Propes, Barry L wrote: probably that path attribute is wrong, correct? Not needed on 5x? -Original Message- From: Niki Diulgerov [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 10:57 AM To: Tomcat Users List Subject: RemoteAddrValve Hello there, Using tomcat 5.5.25 + jdk1.5.0_13 By default /tomcat/conf/Catalina/localhost/manager.xml looks like ?xml version=1.0 encoding=UTF-8? Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context I'm changing it to: ?xml version=1.0 encoding=UTF-8? Context path=/manager docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false Valve classname=org.apache.catalina.valves.RemoteAddrValve allow=192.9.202.231/ !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context But no success to implement IP restriction for /manager here is the error: SEVERE: Parse error in context.xml for /manager java.lang.NullPointerException at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2726) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2752) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1279) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:782) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:722) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:987) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5071) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3984) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
Re: RemoteAddrValve
OK with this version of manager.xml it works perfect: The difference is in the way IP is written and in the fact that allow starts on new row ?xml version=1.0 encoding=UTF-8? Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false Valve className=org.apache.catalina.valves.RemoteAddrValve allow=192\.9\.202\.231/ ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: RemoteAddrValve Propes, Barry L wrote: probably that path attribute is wrong, correct? Not needed on 5x? Yes, it's necessary, since the OP isn't dropping a WAR anywhere, but installing a context.xml file. Nope, the path attribute is not allowed, and must be removed. The path is derived from the name of the file the Context element is in. Note that the OP is not installing a context.xml file, he's modifying the one in conf/Catalina/localhost/manager.xml. However the erroneous path attribute is not likely the source of the NPE. One possible cause is extraneous control characters in the file, such as the ordering prefix some editors like to throw in at the beginning when editing Unicode. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isapi_redirect+IIS+tomcat basic authentication
For all who will face this problem disable integrated windows authentication in Authentication and access control options Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Niki Diulgerov wrote: Another strange thing which I just discovered is that in mozilla firefox (connecting to IIS) if I press cancel on the first window asking for user and pass... another one appears with header Enter username and password for Tomcat Manager Application at http://192.9.202.22:8081 and when I put the username and pass there... it works. In internet explorer (version 7 ) after pressing cancel there is no second window asking for user and pass Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Niki Diulgerov wrote: Something strange is that the header of the window asking for authentication through IIS is: Enter username and password for at http://192.9.202.10:8081 And the window which appears when I connect directly to tomcat : Enter username and password for Tomcat Manager Application at http://192.9.202.22:8060 (8081 is the port on which IIS works and 8060 is the port where tomcat waits for HTTP requests) Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Niki Diulgerov wrote: Here is the log from isapi_redirect setup with DEBUG level I'm trying to access the TOMCAT MANAGER link from the default tomcat page (with the appropriate user and pass) when I'm trying from IIS it just shows again and again the window for user and pass. When I'm trying to do the same directly on 8080 it works OK. In both cases there is nothing in catalina.out that someone tries to access /manager (I'm using default tomcat installation with additionally assigned romes manager and some more for the tomcat user) [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c (1569): AJP13 protocol: Reuse is OK [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_isapi_plugin.c (1528): service() returned OK [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c (2441): recycling connection pool slot=0 for worker client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1199): Filter started [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1266): Virtual Host redirection of /192.9.202.10:8081/manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (597): Attempting to map URI '/192.9.202.10:8081/manager/html' from 1 maps [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (609): Attempting to map context URI '/*=client' source 'uriworkermap' [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (624): Found a wildchar match '/*=client' [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1286): check if [/manager/html] is points to the web-inf directory [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1303): [/manager/html] is a servlet url - should redirect to client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1345): fowarding escaped URI [/manager/html] [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (2241): Service protocol=HTTP/1.1 method=GET host=192.9.202.231 addr=192.9.202.231 name=192.9.202.10 port=8081 auth= user= uri=/manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_worker.c (115): found a worker client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1513): got a worker for name client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (2498): acquired connection pool slot=0 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (551): ajp marshaling done [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (1935): processing client with 2 retries [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): sending to ajp13 pos=4 len=456 max=8192 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 12 34 01 C4 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4..HTTP/1.1 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 001000 00 0D 2F 6D 61 6E 61 67 65 72 2F 68 74 6D 6C - .../manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 002000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31 - ...192.9.202.231 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 003000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31 - ...192.9.202.231 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911
Re: Killing tomcat java process, Windows
Here is the procedure. I installed the second tomcat using this command: tomcat5.exe //IS//ApacheTomcat2 --DisplayName=Apache Tomcat 5 2 --Install=C:/Program Files/Apache Software Foundation/Tomcat 5.5 2/bin/tomcat5.exe --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop Because in this line we named the new tomcat service as ApacheTomcat2. We have to rename the tomcat5w.exe process to ApacheTomcat2w.exe, because we called it like this, when we start the service it looks for the ServiceNamew.exe. After renaming you run the new ApacheTomcat2w.exe and insert all the settings from your firstly installed tomcat. Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com raghav wrote: Hey i need small information from you. please it is very urgent for me. can you tell me the procedure for creating the multiple instances for tomcat? plaese my mail id is [EMAIL PROTECTED] THanks, RAghavender jimpo wrote: I run two separate tomcat 6 instances on my development environment. Once I have redeployed the application enough times, the tomcat java.exe freezes and has to be shutdown using control-c. shutdown.bat does not work most of the times. I start the tomcat processes with startup.bat, they are not windows services. I know, one path is to try and fix the redeployment problem, but let's not go there in this thread I would like to create a .bat script which shuts down the frozen tomcat java.exe processes (and calls startup.bat scripts). How could I accomplish this in Windows? In unix I would have plenty of tools (ps/grep/kill/etc), but can this be done in Windows? The process name alone is not enough to identify the tomcat processes, as there are several java.exe processes running. What about running the instances as windows services, can those be killed / started again more easily?
isapi_redirect+IIS+tomcat basic authentication
Hello there, I'm trying to setup IIS6 + apache_tomcat running on different machine. I read alot on internet and succeeded to implement this but now (maybe very simple) problem appeared. if I set in uriworker.maps /*=client where client is my worker and open the site ... default tomcat home page appears but when I try to open MANAGER link the separate window where I have to put the username and password appears again and again even that I'm writing the correct user and password. It seems to be some problem with the basic authentication implemented in tomcat. any application works fine but the basic authentication not. Someone solved such problem ? -- Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isapi_redirect+IIS+tomcat basic authentication
Yes it works when I connect directly to tomcat Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Rainer Jung wrote: Niki Diulgerov wrote: Hello there, I'm trying to setup IIS6 + apache_tomcat running on different machine. I read alot on internet and succeeded to implement this but now (maybe very simple) problem appeared. if I set in uriworker.maps /*=client where client is my worker and open the site ... default tomcat home page appears but when I try to open MANAGER link the separate window where I have to put the username and password appears again and again even that I'm writing the correct user and password. It seems to be some problem with the basic authentication implemented in tomcat. any application works fine but the basic authentication not. Someone solved such problem ? Does it work, when you connect directly to the tomcat http port (by default 8080)? If no, it doesn't have to do with IIS, but with your user and group setup. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isapi_redirect+IIS+tomcat basic authentication
] jk_ajp_common.c (1058): 05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Tue Nov 20 19:12:09.660 2007] [5120:3520] [debug] jk_ajp_common.c (1569): AJP13 protocol: Reuse is OK [Tue Nov 20 19:12:09.660 2007] [5120:3520] [debug] jk_isapi_plugin.c (1528): service() returned OK Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Rainer Jung wrote: Niki Diulgerov wrote: Yes it works when I connect directly to tomcat Best regards, Activate an access log in tomcat and check, if you are really talking to the right instance. Even if access gets denied, one access log line should show up. What's the header text of the basic authentication box, that asks for the credentials? What do you get in the log file, if you increase the log level of the isapi redirector to debug? It should contain the information, if the request actually gets forwarded to tomcat. You might want to post the log lines resulting from an attempt. Please replace credentials contained in the log file by XXX before posting :) Regards, Rainer Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Rainer Jung wrote: Niki Diulgerov wrote: Hello there, I'm trying to setup IIS6 + apache_tomcat running on different machine. I read alot on internet and succeeded to implement this but now (maybe very simple) problem appeared. if I set in uriworker.maps /*=client where client is my worker and open the site ... default tomcat home page appears but when I try to open MANAGER link the separate window where I have to put the username and password appears again and again even that I'm writing the correct user and password. It seems to be some problem with the basic authentication implemented in tomcat. any application works fine but the basic authentication not. Someone solved such problem ? Does it work, when you connect directly to the tomcat http port (by default 8080)? If no, it doesn't have to do with IIS, but with your user and group setup. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isapi_redirect+IIS+tomcat basic authentication
Something strange is that the header of the window asking for authentication through IIS is: Enter username and password for at http://192.9.202.10:8081 And the window which appears when I connect directly to tomcat : Enter username and password for Tomcat Manager Application at http://192.9.202.22:8060 (8081 is the port on which IIS works and 8060 is the port where tomcat waits for HTTP requests) Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Niki Diulgerov wrote: Here is the log from isapi_redirect setup with DEBUG level I'm trying to access the TOMCAT MANAGER link from the default tomcat page (with the appropriate user and pass) when I'm trying from IIS it just shows again and again the window for user and pass. When I'm trying to do the same directly on 8080 it works OK. In both cases there is nothing in catalina.out that someone tries to access /manager (I'm using default tomcat installation with additionally assigned romes manager and some more for the tomcat user) [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c (1569): AJP13 protocol: Reuse is OK [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_isapi_plugin.c (1528): service() returned OK [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c (2441): recycling connection pool slot=0 for worker client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1199): Filter started [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1266): Virtual Host redirection of /192.9.202.10:8081/manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (597): Attempting to map URI '/192.9.202.10:8081/manager/html' from 1 maps [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (609): Attempting to map context URI '/*=client' source 'uriworkermap' [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (624): Found a wildchar match '/*=client' [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1286): check if [/manager/html] is points to the web-inf directory [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1303): [/manager/html] is a servlet url - should redirect to client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1345): fowarding escaped URI [/manager/html] [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (2241): Service protocol=HTTP/1.1 method=GET host=192.9.202.231 addr=192.9.202.231 name=192.9.202.10 port=8081 auth= user= uri=/manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_worker.c (115): found a worker client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1513): got a worker for name client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (2498): acquired connection pool slot=0 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (551): ajp marshaling done [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (1935): processing client with 2 retries [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): sending to ajp13 pos=4 len=456 max=8192 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 12 34 01 C4 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4..HTTP/1.1 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 001000 00 0D 2F 6D 61 6E 61 67 65 72 2F 68 74 6D 6C - .../manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 002000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31 - ...192.9.202.231 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 003000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31 - ...192.9.202.231 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 004000 00 0C 31 39 32 2E 39 2E 32 30 32 2E 31 30 00 - ...192.9.202.10. [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 00501F 91 00 00 0A A0 06 00 0A 6B 65 65 70 2D 61 6C - .keep-al [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 006069 76 65 00 00 0A 6B 65 65 70 2D 61 6C 69 76 65 - ive...keep-alive [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 007000 00 03 33 30 30 00 A0 01 00 63 74 65 78 74 2F - ...300ctext/ [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 008078 6D 6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F - xml,application/ [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 009078 6D 6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F - xml,application/ [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 00a078 68 74 6D 6C 2B 78 6D 6C 2C 74 65 78 74 2F 68
Re: isapi_redirect+IIS+tomcat basic authentication
Another strange thing which I just discovered is that in mozilla firefox (connecting to IIS) if I press cancel on the first window asking for user and pass... another one appears with header Enter username and password for Tomcat Manager Application at http://192.9.202.22:8081 and when I put the username and pass there... it works. In internet explorer (version 7 ) after pressing cancel there is no second window asking for user and pass Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Niki Diulgerov wrote: Something strange is that the header of the window asking for authentication through IIS is: Enter username and password for at http://192.9.202.10:8081 And the window which appears when I connect directly to tomcat : Enter username and password for Tomcat Manager Application at http://192.9.202.22:8060 (8081 is the port on which IIS works and 8060 is the port where tomcat waits for HTTP requests) Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Niki Diulgerov wrote: Here is the log from isapi_redirect setup with DEBUG level I'm trying to access the TOMCAT MANAGER link from the default tomcat page (with the appropriate user and pass) when I'm trying from IIS it just shows again and again the window for user and pass. When I'm trying to do the same directly on 8080 it works OK. In both cases there is nothing in catalina.out that someone tries to access /manager (I'm using default tomcat installation with additionally assigned romes manager and some more for the tomcat user) [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c (1569): AJP13 protocol: Reuse is OK [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_isapi_plugin.c (1528): service() returned OK [Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c (2441): recycling connection pool slot=0 for worker client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1199): Filter started [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1266): Virtual Host redirection of /192.9.202.10:8081/manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (597): Attempting to map URI '/192.9.202.10:8081/manager/html' from 1 maps [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (609): Attempting to map context URI '/*=client' source 'uriworkermap' [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c (624): Found a wildchar match '/*=client' [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1286): check if [/manager/html] is points to the web-inf directory [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1303): [/manager/html] is a servlet url - should redirect to client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1345): fowarding escaped URI [/manager/html] [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (2241): Service protocol=HTTP/1.1 method=GET host=192.9.202.231 addr=192.9.202.231 name=192.9.202.10 port=8081 auth= user= uri=/manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_worker.c (115): found a worker client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c (1513): got a worker for name client [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (2498): acquired connection pool slot=0 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (551): ajp marshaling done [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (1935): processing client with 2 retries [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): sending to ajp13 pos=4 len=456 max=8192 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 12 34 01 C4 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4..HTTP/1.1 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 001000 00 0D 2F 6D 61 6E 61 67 65 72 2F 68 74 6D 6C - .../manager/html [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 002000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31 - ...192.9.202.231 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 003000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31 - ...192.9.202.231 [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 004000 00 0C 31 39 32 2E 39 2E 32 30 32 2E 31 30 00 - ...192.9.202.10. [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 00501F 91 00 00 0A A0 06 00 0A 6B 65 65 70 2D 61 6C - .keep-al [Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c (911): 006069 76 65 00 00
IIS + tomcat running on different machine (linux or aix)
Hello there, I was wonder if someone succeeded to implement this? I can find many HOWTOs in internet describing how to setup IIS 4,5,6 + tomcat but all are about IIS and tomcat running on the same machine. Any link or advice will be appreciated. -- Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: clustering mode in apache tomcat 5.5.25
I used the Complex cluster configuration from this link http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html There is such element mcastBindAddress=127.0.0.1 I just changed the IP to be equal with the IP of my interface eth0 which on the first server is 192.9.202.21 and on the second server 192.9.202.166 On both servers there are no firewalls and eth0 interfaces are set with MULTICAST mode Today I also did route add -host 228.0.0.4 dev eth0 now 228.0.0.4 (which is the multicast address from the example) is pingable. But still this message in catalina.out WARNING: Error receiving mcast package (errorCounter=10). Try Recovery! java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:712) at org.apache.catalina.cluster.mcast.McastServiceImpl.receive(McastServiceImpl.java:238) at org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java:330) Nov 16, 2007 11:38:30 AM org.apache.catalina.cluster.mcast.McastServiceImpl$RecoveryThread run INFO: Cluster membership, running recovery thread, multicasting is not functional. Nov 16, 2007 11:38:30 AM org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run WARNING: Sender Thread ends with errorCounter=0. Nov 16, 2007 11:38:31 AM org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread run WARNING: Receiver Thread ends with errorCounter=1. Nov 16, 2007 11:38:32 AM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting multihome multicast interface to:/192.9.202.21 Nov 16, 2007 11:38:32 AM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 1000 Nov 16, 2007 11:38:32 AM org.apache.catalina.cluster.mcast.McastServiceImpl$RecoveryThread run INFO: Membership recovery was successful. Nov 16, 2007 11:38:34 AM org.apache.catalina.cluster.deploy.WarWatcher check INFO: check cluster wars at /extranet/tomcat/war-listen Nov 16, 2007 11:38:52 AM org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread run WARNING: Error receiving mcast package (errorCounter=10). Try Recovery! java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:712) at org.apache.catalina.cluster.mcast.McastServiceImpl.receive(McastServiceImpl.java:238) at org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java: || Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Clifford Bryant wrote: I don't think that you need to mcastBindAddr in the Cluster tag. The default Cluster tag doesn't have an mcastBindAddr attribute defined. You can try setting the tcpListenAddr to the IP address of each machine. -Original Message- From: Niki Diulgerov [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 12:19 PM To: Tomcat Users List Subject: Re: clustering mode in apache tomcat 5.5.25 Thank you very much for the help. Indeed I figured out that distributable / have to be in web.xml I was not changing multicast address... it is 228.0.0.4 But I changed multicast bind address on the first machine which have IP address 192.9.202.166 I set mcastBindAddress=192.9.202.166 and on the second with IP 192.9.202.21 I set mcastBindAddress=192.9.202.21 So the idea was the broadcast address to bind to the appropriate interface (one of the machines have more than one ) Both machines and their interfaces are set with multicasting eth0 Link encap:Ethernet HWaddr 00:03:25:2B:05:8C inet addr:192.9.202.21 Bcast:192.9.202.255 Mask:255.255.255.0 inet6 addr: fe80::203:25ff:fe2b:58c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:66929626 errors:0 dropped:48 overruns:0 frame:0 TX packets:70048545 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1201688058 (1.1 GiB) TX bytes:3733631693 (3.4 GiB) Base address:0x5000 Memory:dd48-dd4a I dont know why to add route to 239.255.0.1 as it doesnt belong to any of my networks Please help Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Clifford Bryant wrote: You should be able to just uncomment the Cluster tag in the Tomcat /conf/server.xml file. Then, open the ports, and do 1-3 below, and set up multicast. You need
clustering mode in apache tomcat 5.5.25
Hello friends, I read a lot in internet, connected to #tomcat irc channel but still no help (except one user in irc who told me in this mailing list there are very nice people). So my problem is that I'm trying to use 2 tomcats in clustering mode. I installed standard tomcat 5.5.25 downloaded from the official site. The operating systems are RHEL4 and Open SuSE10.2 I have setenv.sh JAVA_OPTS=-server -Xms512m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError CATALINA_OPTS=-Dlogs.root=/extranet/logs -Dwas.install.root=/extranet JAVA_HOME=/jdk1.5.0_13 ENCODING=utf-8 Java version jdk1.5.0_13 (I tried with java 1.4 and the compat package for tomcat 5.5.25 but still the same) I changed only server.xml file on both machines. Here is how it looks like: Server port=8011 shutdown=SHUTDOWN GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connectorport=9012 protocol=AJP/1.3 / Connector port=9013 maxThreads=100 minSpareThreads=4 maxSpareThreads=4 / Enginename=Catalina defaultHost=localhost jvmRoute=node01 Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className=org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=127.0.0.1 mcastClusterDomain=d10 mcastPort=45564 mcastFrequency=1000 mcastDropTime=3 recoveryCounter=10 recoveryEnabled=true recoverySleepTime=5000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=9015 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue recoverTimeout=5000 recoverCounter=6 doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; primaryIndicator=true / Valve className=org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true / ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener
Re: clustering mode in apache tomcat 5.5.25
Thank you very much for the help. Indeed I figured out that distributable / have to be in web.xml I was not changing multicast address... it is 228.0.0.4 But I changed multicast bind address on the first machine which have IP address 192.9.202.166 I set mcastBindAddress=192.9.202.166 and on the second with IP 192.9.202.21 I set mcastBindAddress=192.9.202.21 So the idea was the broadcast address to bind to the appropriate interface (one of the machines have more than one ) Both machines and their interfaces are set with multicasting eth0 Link encap:Ethernet HWaddr 00:03:25:2B:05:8C inet addr:192.9.202.21 Bcast:192.9.202.255 Mask:255.255.255.0 inet6 addr: fe80::203:25ff:fe2b:58c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:66929626 errors:0 dropped:48 overruns:0 frame:0 TX packets:70048545 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1201688058 (1.1 GiB) TX bytes:3733631693 (3.4 GiB) Base address:0x5000 Memory:dd48-dd4a I dont know why to add route to 239.255.0.1 as it doesnt belong to any of my networks Please help Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.com Clifford Bryant wrote: You should be able to just uncomment the Cluster tag in the Tomcat /conf/server.xml file. Then, open the ports, and do 1-3 below, and set up multicast. You need to enable multicast on your network. You need to do 1-3 on both machines. Set the multicast address back to what it was, 228.0.0.4. The multicast address is needed for the multiple machines to communicate and share session information. The multicast address is a broadcast address. It is a single address. All servers on the network will listen for it. You put the distributable/ tag in the web.xml of the applications that want to be clustered. Run these commands as root. 1. You will need to open the multicast port 45564 for UDP, and the TCP listen port 4001 for TCP. 2. The network interfaces should be enabled for multicast. ifconfig eth0 multicast 3. Create a multicast route for each network interface. route add -host 239.255.0.1 dev eth0 You can check if multicast is working with, ping 239.255.0.1 You should get multiple responses back. -Original Message- From: Niki Diulgerov [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 11:08 AM To: users@tomcat.apache.org Subject: clustering mode in apache tomcat 5.5.25 Hello friends, I read a lot in internet, connected to #tomcat irc channel but still no help (except one user in irc who told me in this mailing list there are very nice people). So my problem is that I'm trying to use 2 tomcats in clustering mode. I installed standard tomcat 5.5.25 downloaded from the official site. The operating systems are RHEL4 and Open SuSE10.2 I have setenv.sh JAVA_OPTS=-server -Xms512m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError CATALINA_OPTS=-Dlogs.root=/extranet/logs -Dwas.install.root=/extranet JAVA_HOME=/jdk1.5.0_13 ENCODING=utf-8 Java version jdk1.5.0_13 (I tried with java 1.4 and the compat package for tomcat 5.5.25 but still the same) I changed only server.xml file on both machines. Here is how it looks like: Server port=8011 shutdown=SHUTDOWN GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connectorport=9012 protocol=AJP/1.3 / Connector port=9013 maxThreads=100 minSpareThreads=4 maxSpareThreads=4 / Enginename=Catalina defaultHost=localhost jvmRoute=node01 Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className=org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false