RE: Configuring mod_jk2/jk2 Via The JMX Console
the Remote JMX jk2 config is possible with this jk2.properties file configuration snipped With this configuration all JK2 Beans are reflect to the JMX MBeans (Domain apache). Access the MBeans with http://localhost:9000. (Ignore the xsl mx4j error at console) Tomcat is definitely doing more with your described configuration than it was (there are MBeanServer lines in catalina.out that were not there before now), but I do not think that it is working as it should yet. First, I am a bit confused, because it appears that I am setting up the connector to listen at port 9050 with the line mx.httpPort=9050 yet you tell me to use http://localhost:9000/; for MBean access. Is this just a typo? Furthermore, a netstat indicates that nothing is listening on either port 9000 or port 9050 after Tomcat starts, so is it even working? Any ideas what could be going wrong? Would my log file, netstat output, or jk2.properties file be of any help in determining what is wrong? Another oddity is that something is listening on port 8005 after I start Tomcat with this configuration, but I can't browse to it with a web browser. Second, after I get that working, is the 90?0 port number the port number for the console (a web app of some kind) or is that just an HTTP connector for the MBean Server? Is it both? Thanks for all of your help. Jimmy ** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring mod_jk2/jk2 Via The JMX Console
Hello Jimmy, I have more then one Tomcat controlled with HTTP JMX Adaptor on my system. Sorry, for the Typo. You must changed the mx.httpPort=9000 . This is the default MX4J HTTP Adpator Port. You have made a copy from mx4j.tools.jar to $catalina.hom/bin and changed your setclasspath Skript ? Please, send your log file output for more analyse steps. Which OS, Tomcat and JVM you are used? The port 8005 is the default Tomcat shutdown Port. Send at localhost your shutdown keyword and tomcat made a controlled shutdown. regards Peter . Wilson Jimmy - jiwils schrieb: the Remote JMX jk2 config is possible with this jk2.properties file configuration snipped With this configuration all JK2 Beans are reflect to the JMX MBeans (Domain apache). Access the MBeans with http://localhost:9000. (Ignore the xsl mx4j error at console) Tomcat is definitely doing more with your described configuration than it was (there are MBeanServer lines in catalina.out that were not there before now), but I do not think that it is working as it should yet. First, I am a bit confused, because it appears that I am setting up the connector to listen at port 9050 with the line mx.httpPort=9050 yet you tell me to use http://localhost:9000/; for MBean access. Is this just a typo? Furthermore, a netstat indicates that nothing is listening on either port 9000 or port 9050 after Tomcat starts, so is it even working? Any ideas what could be going wrong? Would my log file, netstat output, or jk2.properties file be of any help in determining what is wrong? Another oddity is that something is listening on port 8005 after I start Tomcat with this configuration, but I can't browse to it with a web browser. Second, after I get that working, is the 90?0 port number the port number for the console (a web app of some kind) or is that just an HTTP connector for the MBean Server? Is it both? Thanks for all of your help. Jimmy ** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring mod_jk2/jk2 Via The JMX Console
You have made a copy from mx4j.tools.jar to $catalina.hom/bin and changed your setclasspath Skript ? Please, send your log file output for more analyze steps. While I was waiting on your response, I found out more information. My catalina.out file contains information that indicates that the HTTPAdapter class could not be loaded even though mx4j-tools.jar is in the classpath. Apparently, it boils down to the version of MX4J that I have. I downloaded MX4J 2.0.1. The full class name for the HTTPAdapter class is mx4j.tools.adapter.http.HTTPAdapter in this version. The full class name that Tomcat/JK2 is looking for is mx4j.adapter.http.HTTPAdapter. Which version of MX4J contains the HTTPAdapter class packaged this way? I intend to try the 2.0.0 release (and the others after that until it works), but is there an official version that I should be using with Tomcat/JK2? Jimmy ** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring mod_jk2/jk2 Via The JMX Console
Furthermore, what are the interfaces of the JMX bean proxies that are mentioned? Are they standard, dynamic/model, or open mbeans? Is there a good page out there that details what the interfaces of the mentioned MBean proxies look like? Does anyone configure mod_jk2/jk2 in this manner? If so, can you show me a sample client? What I really want to do is update workers2.properties from a remote location. Basically, I have some JBoss/Tomcat servers clustered, and as one comes up/goes down, I would like to be able to programmatically update mod_jk2's workers and URI mappings. It seems like the Tomcat JK2 JMX proxies are the way to go about this. Is what I want to do even possible? Jimmy -- James Jimmy Wilson Software Developer, Acxiom Corporation ** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring mod_jk2/jk2 Via The JMX Console
Hello Jimmy, the Remote JMX jk2 config is possible with this jk2.properties file === conf/jk2.properties handler.list=modjk,mx # Überschreibt den StandardPort des Channel-Sockets channelSocket.port=8009 # Apache Status modjk.webServerHost=localhost modjk.webServerPort=80 modjk.statusPath=/jkstatus # 5 sec #modjk.updateInterval=5000 #modjk.user= #modjk.pass= # JMX with MX4J mx.enabled=true mx.httpPort=9050 mx.httpHost=localhost #mx.jrmpPort=1099 #mx.jrmpHost=localhost # Don't register request at # JMX statistic (fix memory leak) # see http://issues.apache.org/bugzilla/show_bug.cgi?id=28321 # (william barker comment) request.registerRequests=false end jk2.properties Testet with Tomcat 5.0.25 MX4J 1.1.1. You must install the mx4j-tools.jar $CATALINA-HOME//bin and add the jar to Tomcat System Classpath via $CATALINA-HOME/bin/setclasspath.bat set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%BASEDIR%\bin\mx4j-tools.jar With this configuration all JK2 Beans are reflect to the JMX MBeans (Domain apache). Access the MBeans with http://localhost:9000. (Ignore the xsl mx4j error at console) -- This flat JMX configuration is a security risk... Regards Peter Wilson Jimmy - jiwils schrieb: Furthermore, what are the interfaces of the JMX bean proxies that are mentioned? Are they standard, dynamic/model, or open mbeans? Is there a good page out there that details what the interfaces of the mentioned MBean proxies look like? Does anyone configure mod_jk2/jk2 in this manner? If so, can you show me a sample client? What I really want to do is update workers2.properties from a remote location. Basically, I have some JBoss/Tomcat servers clustered, and as one comes up/goes down, I would like to be able to programmatically update mod_jk2's workers and URI mappings. It seems like the Tomcat JK2 JMX proxies are the way to go about this. Is what I want to do even possible? Jimmy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring mod_jk2
But that doesn't say how to set the workers file Patrick GIRY wrote: You can found any information on the jk2.properties on the http://localhost:8080/tomcat-docs/jk2/jk2/configtc.html when you have installed your tomcat. --- [EMAIL PROTECTED] a écrit : Where is the jk2.properties file documented? On Thu, 12 Dec 2002, Bill Barker wrote: ApacheConfig is for use with mod_jk 1.x. It doesn't work with jk2. With jk2, you only need the 'LoadModule' statement in httpd.conf. The rest of the configuration is handled by the 'jk2.properties' file. Joseph Shraibman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have in my server.xml: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk2.so / ... which generated: ## Auto generated on Thu Dec 12 16:58:06 EST 2002## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so /IfModule JkWorkersFile /local/tomcat/conf/jk/workers.properties JkLogFile /local/tomcat/logs/mod_jk.log JkLogLevel emerg == end file The problem is that if I include that file in my httpd.conf I get: Starting apache2: /usr/local/apache2/bin/apache2 Syntax error on line 3 of /local/tomcat/conf/mod_jk.conf: Can't locate API module structure `jk_module' in file /usr/local/apache2/modules/mod_jk2.so: /usr/local/apache2/modules/mod_jk2.so: undefined symbol: jk_module If I change my mod_jk.conf to look like: IfModule !mod_jk.c # LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so LoadModule jk2_module /usr/local/apache2/modules/mod_jk2.so /IfModule ..etc. I get: Starting apache2: /usr/local/apache2/bin/apache2 Syntax error on line 7 of /local/tomcat/conf/mod_jk.conf: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This is apache 2.0.43 on linux with tomcat 4.1.12 and mod_jk2 2.0.2 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = A+ Patrick GIRY e-mail : [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Joseph Shraibman [EMAIL PROTECTED] Increase signal to noise ratio. http://xis.xtenit.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuring mod_jk2
Noel J. Bergman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ApacheConfig is for use with mod_jk 1.x. It doesn't work with jk2. With jk2, you only need the 'LoadModule' statement in httpd.conf. The rest of the configuration is handled by the 'jk2.properties' file. My understanding, although I suppose I should look at the CVS for the current information, is that the jk2.properties file could be eliminated in favor of JkSet commands in httpd.conf. Out of date info? jk2.properties and JkSet can be used interchangeably (although, without looking at the source, I believe that the jk2.properties overrides the JkSet when they both set the same options). AFAIK, the Jk2 developers have no intention of deprecating either configuration method. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuring mod_jk2
You can found any information on the jk2.properties on the http://localhost:8080/tomcat-docs/jk2/jk2/configtc.html when you have installed your tomcat. --- [EMAIL PROTECTED] a écrit : Where is the jk2.properties file documented? On Thu, 12 Dec 2002, Bill Barker wrote: ApacheConfig is for use with mod_jk 1.x. It doesn't work with jk2. With jk2, you only need the 'LoadModule' statement in httpd.conf. The rest of the configuration is handled by the 'jk2.properties' file. Joseph Shraibman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have in my server.xml: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk2.so / ... which generated: ## Auto generated on Thu Dec 12 16:58:06 EST 2002## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so /IfModule JkWorkersFile /local/tomcat/conf/jk/workers.properties JkLogFile /local/tomcat/logs/mod_jk.log JkLogLevel emerg == end file The problem is that if I include that file in my httpd.conf I get: Starting apache2: /usr/local/apache2/bin/apache2 Syntax error on line 3 of /local/tomcat/conf/mod_jk.conf: Can't locate API module structure `jk_module' in file /usr/local/apache2/modules/mod_jk2.so: /usr/local/apache2/modules/mod_jk2.so: undefined symbol: jk_module If I change my mod_jk.conf to look like: IfModule !mod_jk.c # LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so LoadModule jk2_module /usr/local/apache2/modules/mod_jk2.so /IfModule ..etc. I get: Starting apache2: /usr/local/apache2/bin/apache2 Syntax error on line 7 of /local/tomcat/conf/mod_jk.conf: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This is apache 2.0.43 on linux with tomcat 4.1.12 and mod_jk2 2.0.2 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = A+ Patrick GIRY e-mail : [EMAIL PROTECTED] ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuring mod_jk2
Where is the jk2.properties file documented? On Thu, 12 Dec 2002, Bill Barker wrote: ApacheConfig is for use with mod_jk 1.x. It doesn't work with jk2. With jk2, you only need the 'LoadModule' statement in httpd.conf. The rest of the configuration is handled by the 'jk2.properties' file. Joseph Shraibman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have in my server.xml: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk2.so / ... which generated: ## Auto generated on Thu Dec 12 16:58:06 EST 2002## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so /IfModule JkWorkersFile /local/tomcat/conf/jk/workers.properties JkLogFile /local/tomcat/logs/mod_jk.log JkLogLevel emerg == end file The problem is that if I include that file in my httpd.conf I get: Starting apache2: /usr/local/apache2/bin/apache2 Syntax error on line 3 of /local/tomcat/conf/mod_jk.conf: Can't locate API module structure `jk_module' in file /usr/local/apache2/modules/mod_jk2.so: /usr/local/apache2/modules/mod_jk2.so: undefined symbol: jk_module If I change my mod_jk.conf to look like: IfModule !mod_jk.c # LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so LoadModule jk2_module /usr/local/apache2/modules/mod_jk2.so /IfModule ..etc. I get: Starting apache2: /usr/local/apache2/bin/apache2 Syntax error on line 7 of /local/tomcat/conf/mod_jk.conf: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This is apache 2.0.43 on linux with tomcat 4.1.12 and mod_jk2 2.0.2 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuring mod_jk2
Hello Joseph, Yeah, that is a problem. That line should be output as a relative path, but I've never been able to figure out how to set up the aut-generation in the Listener to do that for me without messing other stuff up. What I do is auto-generate once, make a copy and modify that line to be relative such as... LoadModule jk_module modules/mod_jk2.so Note, I haven't tried this on Linux, only on Windows where I have: LoadModule jk_module modules/mod_jk.dll Jake Thursday, December 12, 2002, 4:14:05 PM, you wrote: JS I have in my server.xml: JS Listener className=org.apache.ajp.tomcat4.config.ApacheConfig JS modJk=/usr/local/apache2/modules/mod_jk2.so / JS ... which generated: JS ## Auto generated on Thu Dec 12 16:58:06 EST 2002## JS IfModule !mod_jk.c JSLoadModule jk_module /usr/local/apache2/modules/mod_jk2.so JS /IfModule JS JkWorkersFile /local/tomcat/conf/jk/workers.properties JS JkLogFile /local/tomcat/logs/mod_jk.log JS JkLogLevel emerg JS == end file JS The problem is that if I include that file in my httpd.conf I get: JS Starting apache2: /usr/local/apache2/bin/apache2 JS Syntax error on line 3 of /local/tomcat/conf/mod_jk.conf: JS Can't locate API module structure `jk_module' in file JS /usr/local/apache2/modules/mod_jk2.so: /usr/local/apache2/modules/mod_jk2.so: undefined JS symbol: jk_module JS If I change my mod_jk.conf to look like: JS IfModule !mod_jk.c JS # LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so JSLoadModule jk2_module /usr/local/apache2/modules/mod_jk2.so JS /IfModule JS ..etc. JS I get: JS Starting apache2: /usr/local/apache2/bin/apache2 JS Syntax error on line 7 of /local/tomcat/conf/mod_jk.conf: JS Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included JS in the server configuration JS This is apache 2.0.43 on linux with tomcat 4.1.12 and mod_jk2 2.0.2 JS -- JS To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] JS For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuring mod_jk2
ApacheConfig is for use with mod_jk 1.x. It doesn't work with jk2. With jk2, you only need the 'LoadModule' statement in httpd.conf. The rest of the configuration is handled by the 'jk2.properties' file. Joseph Shraibman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have in my server.xml: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk2.so / ... which generated: ## Auto generated on Thu Dec 12 16:58:06 EST 2002## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so /IfModule JkWorkersFile /local/tomcat/conf/jk/workers.properties JkLogFile /local/tomcat/logs/mod_jk.log JkLogLevel emerg == end file The problem is that if I include that file in my httpd.conf I get: Starting apache2: /usr/local/apache2/bin/apache2 Syntax error on line 3 of /local/tomcat/conf/mod_jk.conf: Can't locate API module structure `jk_module' in file /usr/local/apache2/modules/mod_jk2.so: /usr/local/apache2/modules/mod_jk2.so: undefined symbol: jk_module If I change my mod_jk.conf to look like: IfModule !mod_jk.c # LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so LoadModule jk2_module /usr/local/apache2/modules/mod_jk2.so /IfModule ..etc. I get: Starting apache2: /usr/local/apache2/bin/apache2 Syntax error on line 7 of /local/tomcat/conf/mod_jk.conf: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This is apache 2.0.43 on linux with tomcat 4.1.12 and mod_jk2 2.0.2 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuring mod_jk2
ApacheConfig is for use with mod_jk 1.x. It doesn't work with jk2. With jk2, you only need the 'LoadModule' statement in httpd.conf. The rest of the configuration is handled by the 'jk2.properties' file. My understanding, although I suppose I should look at the CVS for the current information, is that the jk2.properties file could be eliminated in favor of JkSet commands in httpd.conf. Out of date info? --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuring mod_jk2
Jacob Kjome wrote: Hello Joseph, Yeah, that is a problem. That line should be output as a relative path, but I've never been able to figure out how to set up the aut-generation in the Listener to do that for me without messing other stuff up. What I do is auto-generate once, make a copy and modify that line to be relative such as... LoadModule jk_module modules/mod_jk2.so No, that wasn't the problem. The problem with that line was that jk_module should have been jk2_module. The absolute path worked fine. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]