mod_jk configuration
Hello all, i am using Tomcat 4.1.3x, mod_jk 1.x and Apache 1.3.x. I have read all the documentation available on apache.org, but i think i have not understood some principles of JK. Problem: I have java.domain.tld pointing to the root-directory of Tomcat. The default tomcat site appears. I guess my installations are ok. I want to have myotherdomain.tld pointing to a specific webapp. I have a worker (the same as the java.domain.tld Domain), but where must i declare which context is to use? In my vhosts i have: virtual host ... JkMount /* ajp13 -- My worker /virtual host ... In my workers.properties there is nothing about an context. Documentation told me nothin about tags to declare. Btw, i installed my app with the war-deploy feat. Maybe this is important. Any help is appreciated- thank you for reading. Regards Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk configuration
One way to do this is to declare a host in your server.xml instance The server.xml will need to contain an entry within the engine like Host name=myotherdomain.tld appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=YOUR_PREFIX. suffix=.txt timestamp=true/ !-- this takes all requests to myotherdomain.tld and associates them to the context , may need to play with this-- Context path= docBase=/path/to/your/appDir/or/war_file crossContext=false debug=10 reloadable=false trusted=false /Context !-- ** the deva application context ** -- /Host And in your httpd.conf virtual host ... servername myotherdomain.tld JkMount /* ajp13 -- My worker /virtual host ... This seems to work in our configuration to handle this type of operation. Have Fun... Colby C. Meyer [EMAIL PROTECTED] [EMAIL PROTECTED] 06/22/2005 01:31 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject mod_jk configuration Hello all, i am using Tomcat 4.1.3x, mod_jk 1.x and Apache 1.3.x. I have read all the documentation available on apache.org, but i think i have not understood some principles of JK. Problem: I have java.domain.tld pointing to the root-directory of Tomcat. The default tomcat site appears. I guess my installations are ok. I want to have myotherdomain.tld pointing to a specific webapp. I have a worker (the same as the java.domain.tld Domain), but where must i declare which context is to use? In my vhosts i have: virtual host ... JkMount /* ajp13 -- My worker /virtual host ... In my workers.properties there is nothing about an context. Documentation told me nothin about tags to declare. Btw, i installed my app with the war-deploy feat. Maybe this is important. Any help is appreciated- thank you for reading. Regards Chris - 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]
mod_jk configuration question
Hi all, Is it possible to define two AJP13 connectors both listening at different ports and different addresses. These two addresses have different Host elements. Config Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8005 minProcessors=5 maxProcessors=75 acceptCount=10 debug=5 192.168.4.1/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8006 minProcessors=5 maxProcessors=75 acceptCount=10 debug=5 address=192.168.4.2/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Host name=192.168.4.1 debug=0 appBase=192.168.4.1 unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Host name=192.168.4.2 debug=0 appBase=192.168.4.2 unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Both connectors should connect to respective hosts context. When I tested this all JSP requests are going to the localhost. rgds Anto Paul -- To strive,to seek,to find and not to yield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk configuration question
You need to separate these into different Service elements in server.xml, each with the corresponding Connector and Host. Charlie -Original Message- From: Anto Paul [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 10:01 AM To: Tomcat Users List Subject: mod_jk configuration question Hi all, Is it possible to define two AJP13 connectors both listening at different ports and different addresses. These two addresses have different Host elements. Config Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8005 minProcessors=5 maxProcessors=75 acceptCount=10 debug=5 192.168.4.1/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8006 minProcessors=5 maxProcessors=75 acceptCount=10 debug=5 address=192.168.4.2/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Host name=192.168.4.1 debug=0 appBase=192.168.4.1 unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Host name=192.168.4.2 debug=0 appBase=192.168.4.2 unpackWARs=true autoDeploy=true Context path= docBase=ROOT debug=0/ /Host Both connectors should connect to respective hosts context. When I tested this all JSP requests are going to the localhost. rgds Anto Paul -- To strive,to seek,to find and not to yield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
server.xml mod_jk Configuration
The following is from my server.xml. This connector is communicating with mod_jk and then to an apache instance. Do I need maxKeepAliveRequests set to a value? Does it matter. Is the value I have for connectionUploadTimout too high? Would increasing the buffer size help me with performance? Would it have any shortcomings? Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=10 bufferSize=2048 compression=off connectionLinger=-1 connectionTimeout=0 connectionUploadTimeout=30 debug=0 disableUploadTimeout=false enableLookups=true maxKeepAliveRequests=400 maxProcessors=1000 minProcessors=50 address=192.168.0.4 port=8009 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler proxyPort=0 redirectPort=8443 scheme=http secure=false serverSocketTimeout=0 tcpNoDelay=true tomcatAuthentication=true useBodyEncodingForURI=true useURIValidationHack=false Thanx
Re: server.xml mod_jk Configuration
All three of these attributes are for the HTTP/1.1 Connector. The JK Connector will simply (and quietly) ignore them. Emre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The following is from my server.xml. This connector is communicating with mod_jk and then to an apache instance. Do I need maxKeepAliveRequests set to a value? Does it matter. Is the value I have for connectionUploadTimout too high? Would increasing the buffer size help me with performance? Would it have any shortcomings? Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=10 bufferSize=2048 compression=off connectionLinger=-1 connectionTimeout=0 connectionUploadTimeout=30 debug=0 disableUploadTimeout=false enableLookups=true maxKeepAliveRequests=400 maxProcessors=1000 minProcessors=50 address=192.168.0.4 port=8009 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler proxyPort=0 redirectPort=8443 scheme=http secure=false serverSocketTimeout=0 tcpNoDelay=true tomcatAuthentication=true useBodyEncodingForURI=true useURIValidationHack=false Thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 mod_jk Configuration
Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? It is just a re-packaging, nothing more. TC 5 doesn't contain the o.a.ajp.** packages. 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? Listener className=org.apache.jk.config.ApacheConfig ... / Everything else is the same. 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Not yet (As another thread has pointed out, I'm not the best doc writer :). The TC 4 docs are still vaild, once you change the package name however. Also, ApacheConfig doesn't work with mod_jk2: It is only for mod_jk. Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/arc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED] - 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: Tomcat 5.0 mod_jk Configuration
Attn: Bill Barker Dear usergroup, In my httpd.conf I have added my jk module sucessfully but my syntax complains when I declair my workers file as follows. LoadModule jk2_module modules/mod_jk.dll # # Configure mod_jk - sytax error apparently # JkWorkersFile conf/workers.properties #JkLogFile logs/mod_jk.log #JkLogLevel info The sytax error is: C:\Program Files\Apache Group\Apache2\binapache.exe -t Syntax error on line 140 of C:/Program Files/Apache Group/Apache2/conf/httpd.con f: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This use to work I am assuming with mod_jk however now it does not. I am using the guide located here: http://raibledesigns.com/tomcat/ Thank you in advance, /brennon Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? It is just a re-packaging, nothing more. TC 5 doesn't contain the o.a.ajp.** packages. 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? Listener className=org.apache.jk.config.ApacheConfig ... / Everything else is the same. 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Not yet (As another thread has pointed out, I'm not the best doc writer :). The TC 4 docs are still vaild, once you change the package name however. Also, ApacheConfig doesn't work with mod_jk2: It is only for mod_jk. Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/a rc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 mod_jk Configuration
hmm, you are using mod_jk2 and the syntax seems to be for mod_jk filip -Original Message- From: Brennon Obst [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 4:58 PM To: 'Tomcat Users List' Subject: RE: Tomcat 5.0 mod_jk Configuration Attn: Bill Barker Dear usergroup, In my httpd.conf I have added my jk module sucessfully but my syntax complains when I declair my workers file as follows. LoadModule jk2_module modules/mod_jk.dll # # Configure mod_jk - sytax error apparently # JkWorkersFile conf/workers.properties #JkLogFile logs/mod_jk.log #JkLogLevel info The sytax error is: C:\Program Files\Apache Group\Apache2\binapache.exe -t Syntax error on line 140 of C:/Program Files/Apache Group/Apache2/conf/httpd.con f: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This use to work I am assuming with mod_jk however now it does not. I am using the guide located here: http://raibledesigns.com/tomcat/ Thank you in advance, /brennon Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? It is just a re-packaging, nothing more. TC 5 doesn't contain the o.a.ajp.** packages. 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? Listener className=org.apache.jk.config.ApacheConfig ... / Everything else is the same. 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Not yet (As another thread has pointed out, I'm not the best doc writer :). The TC 4 docs are still vaild, once you change the package name however. Also, ApacheConfig doesn't work with mod_jk2: It is only for mod_jk. Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/a rc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED] - 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] - 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: Tomcat 5.0 mod_jk Configuration
Yes I cant seem to find any documentation for mod_jk2-2.0.43. I also can not find the mod_jk-2.0.43 so that is why I am using jk2. There is a bug in jk that is fixed in jk2 with virtual hosts and I require this fix. Please advise, /Brennon -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, 22 January 2004 11:09 AM To: Tomcat Users List Subject: RE: Tomcat 5.0 mod_jk Configuration hmm, you are using mod_jk2 and the syntax seems to be for mod_jk filip -Original Message- From: Brennon Obst [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 4:58 PM To: 'Tomcat Users List' Subject: RE: Tomcat 5.0 mod_jk Configuration Attn: Bill Barker Dear usergroup, In my httpd.conf I have added my jk module sucessfully but my syntax complains when I declair my workers file as follows. LoadModule jk2_module modules/mod_jk.dll # # Configure mod_jk - sytax error apparently # JkWorkersFile conf/workers.properties #JkLogFile logs/mod_jk.log #JkLogLevel info The sytax error is: C:\Program Files\Apache Group\Apache2\binapache.exe -t Syntax error on line 140 of C:/Program Files/Apache Group/Apache2/conf/httpd.con f: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This use to work I am assuming with mod_jk however now it does not. I am using the guide located here: http://raibledesigns.com/tomcat/ Thank you in advance, /brennon Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? It is just a re-packaging, nothing more. TC 5 doesn't contain the o.a.ajp.** packages. 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? Listener className=org.apache.jk.config.ApacheConfig ... / Everything else is the same. 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Not yet (As another thread has pointed out, I'm not the best doc writer :). The TC 4 docs are still vaild, once you change the package name however. Also, ApacheConfig doesn't work with mod_jk2: It is only for mod_jk. Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/a rc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED] - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 mod_jk Configuration
Dear usergroup, When I use Listener className=org.apache.jk.config.ApacheConfig ... / instead of the Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so (notice ...ajp.tomcat4.config...)? I get the following error: 22/01/2004 11:31:39 org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:891) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:756) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java :252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U nknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:512) at org.apache.catalina.startup.Catalina.start(Catalina.java:570) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394) 22/01/2004 11:31:39 org.apache.catalina.startup.Catalina start It looks like that line will not work, what else can I do for Tomcat 5.0 ? Why is there no documentation for tomcat 5.0 server.xml and jk2? This project(Tomcat) is being less and less supported by ISP's and I cant even get servlets hosted anymore, that is why I am setting up a server myself. This community requires up do date documentation on JK2 and Tomcat 5.0. If you know who to forward this to, please help this documentation make its way to the public. Regards, /Brennon Obst Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? It is just a re-packaging, nothing more. TC 5 doesn't contain the o.a.ajp.** packages. 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? Listener className=org.apache.jk.config.ApacheConfig ... / Everything else is the same. 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Not yet (As another thread has pointed out, I'm not the best doc writer :). The TC 4 docs are still vaild, once you change the package name however. Also, ApacheConfig doesn't work with mod_jk2: It is only for mod_jk. Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/a rc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon
Re: Tomcat 5.0 mod_jk Configuration
Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear usergroup, When I use Listener className=org.apache.jk.config.ApacheConfig ... / instead of the Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so (notice ...ajp.tomcat4.config...)? You need TC 5.0.18 to get ApacheConfig back. I get the following error: 22/01/2004 11:31:39 org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:891) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:756) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java :252) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U nknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:512) at org.apache.catalina.startup.Catalina.start(Catalina.java:570) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394) 22/01/2004 11:31:39 org.apache.catalina.startup.Catalina start It looks like that line will not work, what else can I do for Tomcat 5.0 ? Why is there no documentation for tomcat 5.0 server.xml and jk2? This project(Tomcat) is being less and less supported by ISP's and I cant even get servlets hosted anymore, that is why I am setting up a server myself. This community requires up do date documentation on JK2 and Tomcat 5.0. If you know who to forward this to, please help this documentation make its way to the public. This is the place to forward this to ;-). Tomcat is an O/S project, and as such depends on it's community to do the work such as writing documentation. Regards, /Brennon Obst Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? It is just a re-packaging, nothing more. TC 5 doesn't contain the o.a.ajp.** packages. 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? Listener className=org.apache.jk.config.ApacheConfig ... / Everything else is the same. 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Not yet (As another thread has pointed out, I'm not the best doc writer :). The TC 4 docs are still vaild, once you change the package name however. Also, ApacheConfig doesn't work with mod_jk2: It is only for mod_jk. Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/a rc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply
Re: Tomcat 5.0 mod_jk Configuration
It seems that the Jk2 syntax is: JkSet config.file /path/to/apache/conf/workers2.properties Of course, the syntax of workers2.properties is different from Jk1's workers.properties. I don't really use Jk2, so I can't comment much on what you need. You could try the docs ;-), or (better) search the archives for one of the many posted examples of a working file. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Attn: Bill Barker Dear usergroup, In my httpd.conf I have added my jk module sucessfully but my syntax complains when I declair my workers file as follows. LoadModule jk2_module modules/mod_jk.dll # # Configure mod_jk - sytax error apparently # JkWorkersFile conf/workers.properties #JkLogFile logs/mod_jk.log #JkLogLevel info The sytax error is: C:\Program Files\Apache Group\Apache2\binapache.exe -t Syntax error on line 140 of C:/Program Files/Apache Group/Apache2/conf/httpd.con f: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This use to work I am assuming with mod_jk however now it does not. I am using the guide located here: http://raibledesigns.com/tomcat/ Thank you in advance, /brennon Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? It is just a re-packaging, nothing more. TC 5 doesn't contain the o.a.ajp.** packages. 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? Listener className=org.apache.jk.config.ApacheConfig ... / Everything else is the same. 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Not yet (As another thread has pointed out, I'm not the best doc writer :). The TC 4 docs are still vaild, once you change the package name however. Also, ApacheConfig doesn't work with mod_jk2: It is only for mod_jk. Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/a rc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 mod_jk Configuration
I've been asking for an example or a working 4.1.29 or 5.0.16 workers2.properties file for a couple weeks now. Somewhere between 4.1.0 and 4.1.29, the workers2.properties file syntax has changed. I can get Apache 2.0.48 to talk to Tomcat 4.1.0 in-process, via mod_jk2.dll (2.0.43), on W2K without issue. Apache 2.0.48 doesn't work with Tomcat 4.1.29 using the same 4.1.0 workers2.properties file... -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker Sent: Wednesday, January 21, 2004 7:57 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration It seems that the Jk2 syntax is: JkSet config.file /path/to/apache/conf/workers2.properties Of course, the syntax of workers2.properties is different from Jk1's workers.properties. I don't really use Jk2, so I can't comment much on what you need. You could try the docs ;-), or (better) search the archives for one of the many posted examples of a working file. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Attn: Bill Barker Dear usergroup, In my httpd.conf I have added my jk module sucessfully but my syntax complains when I declair my workers file as follows. LoadModule jk2_module modules/mod_jk.dll # # Configure mod_jk - sytax error apparently # JkWorkersFile conf/workers.properties #JkLogFile logs/mod_jk.log #JkLogLevel info The sytax error is: C:\Program Files\Apache Group\Apache2\binapache.exe -t Syntax error on line 140 of C:/Program Files/Apache Group/Apache2/conf/httpd.con f: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration This use to work I am assuming with mod_jk however now it does not. I am using the guide located here: http://raibledesigns.com/tomcat/ Thank you in advance, /brennon Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? It is just a re-packaging, nothing more. TC 5 doesn't contain the o.a.ajp.** packages. 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? Listener className=org.apache.jk.config.ApacheConfig ... / Everything else is the same. 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Not yet (As another thread has pointed out, I'm not the best doc writer :). The TC 4 docs are still vaild, once you change the package name however. Also, ApacheConfig doesn't work with mod_jk2: It is only for mod_jk. Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/a rc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED] - 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] - 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]
Tomcat 5.0 mod_jk Configuration
Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/archive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED]
Re: Tomcat 5.0 mod_jk Configuration
As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/archive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 mod_jk Configuration
Thank you for the reply, Could you please clairify a few points. 1. Is the new home available for web access? 2. For Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...)? 3. Is there a new version of the how-to for jk2/Apache2/tomcat5.0 ? Thank you in advance, Brennon Obst -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Wednesday, 21 January 2004 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0 mod_jk Configuration As of 5.0.18, ApacheConfig and friends have moved to their new home in the org.apache.jk.config package. With 5.0.18, there is no change in the functionality. It may be extended on future releases. Brennon Obst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat 5.0 mod_jk Configuration by James Thornton [EMAIL PROTECTED] PROTECTED] Dec http://www.talkaboutprogramming.com/group/comp.lang.java.programmer/arc hive /2003-12-31.html 31, 2003 at 12:34 AM What in tomcat 5.0's configuration for mod_jk differs from how you would do it for tomcat 4.x? Is this documented anywhere? In the tomcat 4.x server.xml, I had: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Is this the same for tomcat 5? (notice ...ajp.tomcat4.config...) I tried simply changing it to ...ajp.tomcat5.config... to no avail. Thanks. I have posted this exact same thing and also do not have any avenues yet. Can anyone help us out here? thank you in advance, Brennon Obst Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846- [EMAIL PROTECTED] - 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]
Customizing '500 Internal Server Error' when Tomcat is down in mod_jk configuration
In an Apache - mod_jk - Tomcat configuration we have Tomcat occasionally going down. We then get the Internal Server Error message. It would be very useful for our support staff to have a more explicit message. Can this be done? Thanks Thierry
RE: Customizing '500 Internal Server Error' when Tomcat is down in mod_jk configuration
ErrorDocument directive in apache's httpd.conf for 500 But there is 1 more interesting issue here. While TC is completely down u get 500 by mod_jk and apache can easyly handle it. You can easily set up an error page handlers per web-application in its web.xml. The interesting part is when the TC is actually up, but it still havent loaded the requested context. Then the user gets a HTTP error issued by TC. How that can be handled? Any suggestions any1? -Original Message- From: Thierry Thelliez [mailto:[EMAIL PROTECTED] Sent: 13 2004 . 03:14 To: [EMAIL PROTECTED] Subject: Customizing '500 Internal Server Error' when Tomcat is down in mod_jk configuration In an Apache - mod_jk - Tomcat configuration we have Tomcat occasionally going down. We then get the Internal Server Error message. It would be very useful for our support staff to have a more explicit message. Can this be done? Thanks Thierry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache-tomcat via mod_jk configuration
Are you sure you meant httpd1? The daemon script on my site is httpd. The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if there's any difference, but there may be. I'm also confused as you apparently didn't copy your configuration into this post, you just copied most of the contents of my web page into it. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote: Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized for tomcat 4, I still have some questions... I will first explain the desired setup, then I will show what I have. If you gracious folks can help me set this up, I will GLADLY set up a complete HOW-TO replicating the solution on my website for all the world to see. you knows you probably get a lot of questions about this. My hope is to guide the user by the hand step by step for this complex process. I have been using Tomcat 3 for a long time with mod_jk and have been very happy, but I now need the newer features of Tomcat 4. Here's the setup (everywhere hereafter, I've replaced the actual domain names with domainname for privacy...just know that everytime you see that, its actually a domain name, and ignore the brackets Redhat Linux 9 httpd-2.0.48 / usr/loca/apache2 Java JDK 1.4.2_03 ---/usr/lcoal/java Tomcat 5.0.16 Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat mod_jk /usr/lcoal/src/mod_jk my question is there is httpd in linux 9 and postgresql and i installed apache and tomcat and psotgresql i added the httpd1 and tomcat in sbin/chkconfig --add httpd1 amd tomcatd by using the configuration given in http://daydream.stanford.edu/tomcat/install_web_services.html site fullythen i started the catalina_home /bin/startup.sh which was started in command line but i am not able to get test page in Browser it tells that connection refused i start by using httpd1 and tomcatd it shows that unreconized service please help to solve the problem as soon as possible Thakning You Dhayalan.G # Configure Environment Variables Edit and add the lines below to /etc/profile Make sure you logout and login for this to take effect. If you're in XWindow you might need to quit out of XWindow and exit primary shell. Then login again and start XWindow again (startx). It's really good to get this straight from the beginning. JAVA_HOME=/usr/local/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:. Now add the PATH JAVA_HOME CATALINA_HOME CLASSPATH if any aren't in the export line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH This will output your environment variables env Install JAVA mkdir /usr/local/java cd /usr/local/java sh j2sdk-1_4_2-linux-i586.bin The jdk directory is then extracted mv j2sdk-1.4.2 /usr/local/java ln -s j2sdk1.4.2 java Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one. Install Jakarta TOMCAT tar xvfz jakarta-tomcat-4.1.27.tar.gz mv jakarta-tomcat-4.1.27 /usr/local/ cd /usr/local ln -s jakarta-tomcat-4.1.27 tomcat Install Jakarta ANT tar xvfz jakarta-ant-1.5.4 mv jakarta-ant-1.5.4 /usr/local cd /usr/local ln -s jakarta-ant-1.5.4 ant ln -s /usr/local/ant/bin/ant /usr/local/bin/ant Install OPENSSL tar xvfz openssl-0.9.7c.tar.gz mv openssl-0.9.7c /usr/local/src/ cd /usr/local/src/ ln -s /usr/local/openssl-0.9.7c openssl cd openssl-0.9.7c ./config make make test make install #This will install in /usr/local/ssl Install APACHE tar xvfz httpd-2.0.47.tar.Z cd httpd-2.0.47 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \ --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy make make install #(places in /usr/local/apache2) Build/Install MOD_JK Connector Build mod_jk cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native ./buildconf.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs make cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct
RE: [SPAM] Re: Apache-tomcat via mod_jk configuration
Thats fine Rethat hava its own httpd that why i added in services httpd1 in /sbib/chkconfig and tomcatd but it tells that unregaconized service . what can i do that for Can i delete httpd i can start in terminal $CATALINA/bin/startup.sh but i am not able to do service httpd1 start and service tomcatd start which gives unregconzied services pls help me resolve the problem Thaking You Dhayalan Original Message Subject: [SPAM] Re: Apache-tomcat via mod_jk configuration From: Oscar Carrillo [EMAIL PROTECTED] Date: Wed, December 17, 2003 11:42 pm To: Tomcat Users List [EMAIL PROTECTED] Are you sure you meant httpd1? The daemon script on my site is httpd. The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if there's any difference, but there may be. I'm also confused as you apparently didn't copy your configuration into this post, you just copied most of the contents of my web page into it. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote: Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized for tomcat 4, I still have some questions... I will first explain the desired setup, then I will show what I have. If you gracious folks can help me set this up, I will GLADLY set up a complete HOW-TO replicating the solution on my website for all the world to see. you knows you probably get a lot of questions about this. My hope is to guide the user by the hand step by step for this complex process. I have been using Tomcat 3 for a long time with mod_jk and have been very happy, but I now need the newer features of Tomcat 4. Here's the setup (everywhere hereafter, I've replaced the actual domain names with domainname for privacy...just know that everytime you see that, its actually a domain name, and ignore the brackets Redhat Linux 9 httpd-2.0.48 / usr/loca/apache2 Java JDK 1.4.2_03 ---/usr/lcoal/java Tomcat 5.0.16 Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat mod_jk /usr/lcoal/src/mod_jk my question is there is httpd in linux 9 and postgresql and i installed apache and tomcat and psotgresql i added the httpd1 and tomcat in sbin/chkconfig --add httpd1 amd tomcatd by using the configuration given in http://daydream.stanford.edu/tomcat/install_web_services.html site fullythen i started the catalina_home /bin/startup.sh which was started in command line but i am not able to get test page in Browser it tells that connection refused i start by using httpd1 and tomcatd it shows that unreconized service please help to solve the problem as soon as possible Thakning You Dhayalan.G # Configure Environment Variables Edit and add the lines below to /etc/profile Make sure you logout and login for this to take effect. If you're in XWindow you might need to quit out of XWindow and exit primary shell. Then login again and start XWindow again (startx). It's really good to get this straight from the beginning. JAVA_HOME=/usr/local/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:. Now add the PATH JAVA_HOME CATALINA_HOME CLASSPATH if any aren't in the export line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH This will output your environment variables env Install JAVA mkdir /usr/local/java cd /usr/local/java sh j2sdk-1_4_2-linux-i586.bin The jdk directory is then extracted mv j2sdk-1.4.2 /usr/local/java ln -s j2sdk1.4.2 java Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one. Install Jakarta TOMCAT tar xvfz jakarta-tomcat-4.1.27.tar.gz mv jakarta-tomcat-4.1.27 /usr/local/ cd /usr/local ln -s jakarta-tomcat-4.1.27 tomcat Install Jakarta ANT tar xvfz jakarta-ant-1.5.4 mv jakarta-ant-1.5.4 /usr/local cd /usr/local ln -s jakarta-ant-1.5.4 ant ln -s /usr/local/ant/bin/ant /usr/local/bin/ant Install OPENSSL tar xvfz openssl
Apache-tomcat via mod_jk configuration
Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized for tomcat 4, I still have some questions... I will first explain the desired setup, then I will show what I have. If you gracious folks can help me set this up, I will GLADLY set up a complete HOW-TO replicating the solution on my website for all the world to see. you knows you probably get a lot of questions about this. My hope is to guide the user by the hand step by step for this complex process. I have been using Tomcat 3 for a long time with mod_jk and have been very happy, but I now need the newer features of Tomcat 4. Here's the setup (everywhere hereafter, I've replaced the actual domain names with domainname for privacy...just know that everytime you see that, its actually a domain name, and ignore the brackets Redhat Linux 9 httpd-2.0.48 / usr/loca/apache2 Java JDK 1.4.2_03 ---/usr/lcoal/java Tomcat 5.0.16 Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat mod_jk /usr/lcoal/src/mod_jk my question is there is httpd in linux 9 and postgresql and i installed apache and tomcat and psotgresql i added the httpd1 and tomcat in sbin/chkconfig --add httpd1 amd tomcatd by using the configuration given in http://daydream.stanford.edu/tomcat/install_web_services.html site fullythen i started the catalina_home /bin/startup.sh which was started in command line but i am not able to get test page in Browser it tells that connection refused i start by using httpd1 and tomcatd it shows that unreconized service please help to solve the problem as soon as possible Thakning You Dhayalan.G # Configure Environment Variables Edit and add the lines below to /etc/profile Make sure you logout and login for this to take effect. If you're in XWindow you might need to quit out of XWindow and exit primary shell. Then login again and start XWindow again (startx). It's really good to get this straight from the beginning. JAVA_HOME=/usr/local/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:. Now add the PATH JAVA_HOME CATALINA_HOME CLASSPATH if any aren't in the export line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH This will output your environment variables env Install JAVA mkdir /usr/local/java cd /usr/local/java sh j2sdk-1_4_2-linux-i586.bin The jdk directory is then extracted mv j2sdk-1.4.2 /usr/local/java ln -s j2sdk1.4.2 java Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one. Install Jakarta TOMCAT tar xvfz jakarta-tomcat-4.1.27.tar.gz mv jakarta-tomcat-4.1.27 /usr/local/ cd /usr/local ln -s jakarta-tomcat-4.1.27 tomcat Install Jakarta ANT tar xvfz jakarta-ant-1.5.4 mv jakarta-ant-1.5.4 /usr/local cd /usr/local ln -s jakarta-ant-1.5.4 ant ln -s /usr/local/ant/bin/ant /usr/local/bin/ant Install OPENSSL tar xvfz openssl-0.9.7c.tar.gz mv openssl-0.9.7c /usr/local/src/ cd /usr/local/src/ ln -s /usr/local/openssl-0.9.7c openssl cd openssl-0.9.7c ./config make make test make install #This will install in /usr/local/ssl Install APACHE tar xvfz httpd-2.0.47.tar.Z cd httpd-2.0.47 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \ --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy make make install #(places in /usr/local/apache2) Build/Install MOD_JK Connector Build mod_jk cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native ./buildconf.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs make cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct location Configure Apache for mod_jk I put these lines in http.conf just before NameVirtualHost IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule Configure APACHE/NON-SSL 1. mkdir /usr/local/http_nonsecure * #Look for similar lines. * #Make sure you have lines that say this in conf/http.conf: * Listen myhost.mydomain:80 * #Same with this line: * #Make sure you do this line because it will listen * #and try to do http on the https port as well. * ServerName myhost.mydomain:80
mod_jk configuration
Hello, I have successfully integrated tomcat (4.0.6) with apache (1.3.26) on linux and I am able to access a single virtual host (e.g. myapplication) located in the tomcat/webapps/myapplication directory using a url like that: http://www.mydomain.com/myapplication/index.jsp However I would like to be able to access the files in that directory without using the path /myapplication. I have been playing around with the configuration files but I have not been able to alter the configuration according to my needs. Does anybody know if this is possible? Thanks in advance. Andreas PS: The relevant sections of httpd.conf and server.xml are listed below. http.conf # VirtualHost *:80 ServerName meinfotoalbum. ServerAlias www.meinfotoalbum.com DocumentRoot /usr/local/tomcat/mywebapps/meinfoto Directory /usr/local/tomcat/mywebapps/meinfoto/ DirectoryIndex index.htm index.html Options Indexes FollowSymLinks /Directory #mod_jk link to tomcat JkMount / ajp13 JkMount /* ajp13 #prohibit access of WEB-INF Location /WEB-INF/ AllowOverride None deny from all /Location #prohibit access of META-INF Location /META-INF/ AllowOverride None deny from all /Location /VirtualHost server.xml Host name=meinfotoalbum.com debug=0 appBase=mywebapps unpackWARs=true Aliaswww.meinfotoalbum.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=meinfotoalbum_log. suffix=.txt timestamp=true / Context path= docBase=meinfoto debug=0 reloadable=false/ Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / /Host -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Question regarding mod_jk configuration
I have built mod_jk according to John Turner's howto for Tomcat 4, apache 2 and redhat. The only difference is that I am using the Turbine Dev Kit, not a vanilla tomcat install. Anyway, I get the plugin installed and /server-info/ shows mod_jk loaded. John states in the howto that tomcat creates the mod_jk.conf file, but mine does not when it starts. Does anyone have any idea where I would look to find out why? I have downloaded the mod_jk.conf that John has on his site so that I have one and I have edited it to match my configuration. I can access the /examples and /newapp/servlet/newapp (the default turbine app) fine from localhost:8080, but I cannot access them from apache on port 80. (A clarification: when I access /examples, I get the apache directory listing, but it looks a lot different from what I see when I access localhost:8080/examples. Looking in the examples directory I see: [polaris:/home/apache/tdk/examples]# find . -print . ./actions ./actions/TestGlobalCache.java ./scheduledjobs ./scheduledjobs/DefaultScheduledJob.java ./WebMacro.properties so I guess that the Turbine folks nuter the Tomcat example. If not, please correct me.) So, in summary, my questions are (1) why isn't mod_jk.conf being generated automagically as John's HowTo states and (2) why am I getting 404 errors when I attempt to access the Turbine default app via apache at /newapp/servlet/newapp/ Below are my httpd.conf, server.xml and (finally) mod_jk.conf Thanks! Kent Start httpd.conf # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /home/apache will be interpreted by the # server as /home/apache/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot /home/apache # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_winnt.c IfModule !mpm_netware.c #LockFile logs/accept.lock /IfModule /IfModule # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_netware.c IfModule !perchild.c #ScoreBoardFile logs/apache_runtime_status /IfModule /IfModule # # PidFile: The file in which the server should record its process # identification number when it starts. # IfModule !mpm_netware.c PidFile logs/httpd.pid /IfModule # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to Off to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum
RE: Question regarding mod_jk configuration
The last time I saw my name that many times at once in print, I was getting yelled at. :) Your Listener elements look fine, and they are in the right place. Can you take a couple of minutes and try it with a vanilla Tomcat install? The binary install takes about 5 minutes to setup on Redhat...it would tell you right away if it was a tomcat vs. Turbine/Tomcat thing, or something deeper. John -Original Message- From: Kent Perrier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: Question regarding mod_jk configuration I have built mod_jk according to John Turner's howto for Tomcat 4, apache 2 and redhat. The only difference is that I am using the Turbine Dev Kit, not a vanilla tomcat install. Anyway, I get the plugin installed and /server-info/ shows mod_jk loaded. John states in the howto that tomcat creates the mod_jk.conf file, but mine does not when it starts. Does anyone have any idea where I would look to find out why? I have downloaded the mod_jk.conf that John has on his site so that I have one and I have edited it to match my configuration. I can access the /examples and /newapp/servlet/newapp (the default turbine app) fine from localhost:8080, but I cannot access them from apache on port 80. (A clarification: when I access /examples, I get the apache directory listing, but it looks a lot different from what I see when I access localhost:8080/examples. Looking in the examples directory I see: [polaris:/home/apache/tdk/examples]# find . -print . ./actions ./actions/TestGlobalCache.java ./scheduledjobs ./scheduledjobs/DefaultScheduledJob.java ./WebMacro.properties so I guess that the Turbine folks nuter the Tomcat example. If not, please correct me.) So, in summary, my questions are (1) why isn't mod_jk.conf being generated automagically as John's HowTo states and (2) why am I getting 404 errors when I attempt to access the Turbine default app via apache at /newapp/servlet/newapp/ Below are my httpd.conf, server.xml and (finally) mod_jk.conf Thanks! Kent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Question regarding mod_jk configuration
On Tue, Sep 17, 2002 at 02:41:36PM -0400, Turner, John wrote: The last time I saw my name that many times at once in print, I was getting yelled at. :) Your Listener elements look fine, and they are in the right place. Can you take a couple of minutes and try it with a vanilla Tomcat install? The binary install takes about 5 minutes to setup on Redhat...it would tell you right away if it was a tomcat vs. Turbine/Tomcat thing, or something deeper. Well, I downloaded Tomcat4.0.4 (since this is what I think TDK 2.1 uses), copied my httpd.conf for my turbine instance for use with tomcat (changing the paths to point to tomcat, not turbine of course) and everything works fine through apache. Even the mod_jk.conf file is created. I guess I will go over to the turbine list and bug them now unless someone here has an idea on what is going on. Kent John -Original Message- From: Kent Perrier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: Question regarding mod_jk configuration I have built mod_jk according to John Turner's howto for Tomcat 4, apache 2 and redhat. The only difference is that I am using the Turbine Dev Kit, not a vanilla tomcat install. Anyway, I get the plugin installed and /server-info/ shows mod_jk loaded. John states in the howto that tomcat creates the mod_jk.conf file, but mine does not when it starts. Does anyone have any idea where I would look to find out why? I have downloaded the mod_jk.conf that John has on his site so that I have one and I have edited it to match my configuration. I can access the /examples and /newapp/servlet/newapp (the default turbine app) fine from localhost:8080, but I cannot access them from apache on port 80. (A clarification: when I access /examples, I get the apache directory listing, but it looks a lot different from what I see when I access localhost:8080/examples. Looking in the examples directory I see: [polaris:/home/apache/tdk/examples]# find . -print . ./actions ./actions/TestGlobalCache.java ./scheduledjobs ./scheduledjobs/DefaultScheduledJob.java ./WebMacro.properties so I guess that the Turbine folks nuter the Tomcat example. If not, please correct me.) So, in summary, my questions are (1) why isn't mod_jk.conf being generated automagically as John's HowTo states and (2) why am I getting 404 errors when I attempt to access the Turbine default app via apache at /newapp/servlet/newapp/ Below are my httpd.conf, server.xml and (finally) mod_jk.conf Thanks! Kent -- 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: mod_jk configuration Amost there !!
On Wed, 26 Jun 2002, abhishek srivastava wrote: Hello All, After two days of continious battle with tomcat with apache and having spent numerours hours of RTFM of mod_jk build and config manual I am almost there. When I type in http://localhost/tomcat/examples I get the following message - Apache Tomcat/4.0.4 - HTTP Status 404 - /tomcat/examples type Status report message /tomcat/examples description The requested resource (/tomcat/examples) is not available. --- So this means that the call does go to the tomcat from apache web server therefore the mod_jk.so is working!! but then why doesn't it find the tomcat examples page?? when I type http://localhost:8080/examples then everything works file. The problem is that the way you have it set up, and with the URL above, tomcat is looking for a context name tomcat (and for something to match exmaples in that context). I suggest changing your JkMount below to JkMount /examples/* ajp13 you may also need JkMount /examples ajp13 and using the URL http://localhost/examples You'll have to add similar JkMount's for all the contexts you have. I have the following entry in my httpd.conf :- LoadModule jk_module libexec/mod_jk.so Include /apps/tomcat4.0.4/conf/auto/mod_jk.conf JkMount /tomcat/* ajp13 In my conf/jk/workers.properties I have the following enteries workers.tomcat_home=/apps/tomcat4.0.4 workers.java_home=/usr/java/j2sdk1.4.0 ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 In server.xml I have following enteries :- Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / ApacheConfig / Please help me !!! regards, Abhishek. PS: Once thought occurs to me. When I search mod_jk problems with google. there are so many people on numerous mailing lists that have faced the same problem!!. Why doesn't apache give a combined download? One installable which will install both tomcat and apache and do all the config iteself. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Mod_jk Configuration
Mandrake 7.2 I want to compile mod_jk to hook Apache tomcat together and I'm having no luck. Anybody have any good URL's with instructions on how to Compile mod_jk? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Mod_jk Configuration
Try this article for help with mod_jk: http://www.ubeans.com/tomcat/index.html BTW - Now Tangosol Coherence 1.1.3 includes out-of-the-box support for HTTP session replication for Tomcat 4. Drop in two JAR files, change one line of configuration (http://www.tangosol.com/faq-coherence.jsp#tomcat4), and Tomcat 4 is clustered! It supports both sticky and stateless load balancing and is compatible with Apache load balancing (mod_jk). Download a free eval from http://www.tangosol.com/products-clustering.jsp. Development licenses are free, and come with full source for the Tomcat 4 module. Peace, - Cameron Purdy Tangosol Inc. http://www.tangosol.com/ - Tangosol Coherence: Clustered Coherent Cache for J2EE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Mod_jk Configuration Mandrake 7.2 I want to compile mod_jk to hook Apache tomcat together and I'm having no luck. Anybody have any good URL's with instructions on how to Compile mod_jk? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache/Tomcat/mod_jk configuration problem?
Hello I too am experiencing extreme difficulty in sitting up Apache/Tomcat. Neither the default mod_jserve or the configuration for Mod_jk/ajp12 default or ajp13 configuration works as per the various suggestions presented on the listing. Everything works directly via Tomcat:port 8080 but not via Apache. I have three different types of applications: Servlet, JSP, Applet. 1. The servlet applications is just one class and works in Apache and Tomcat with no problems. 2. The JSP and Applet application works in Tomcat but not via Apache. The JSP applications is an Oracle Jdeveloper applications with various libraries and relevant tags files etc. The applet application is a fully containe applet with various classes and libraries in its application directory. It loads via Apache but is unable to find its required assocaited files. Apache is somehow not communicating with Tomcat about where the files are or visa versa. I have a feeling it is about mapping of directories or something simple but then again I am a newbie. Judging from this list everyone is having similar problems with apache/mod_jk. Included are my various configurations files. I would appreciate if someone can can point out what I need to fix. I am using Apache 1.3.14 , Tomcat 3.2.1 and JRE 1.3 and Windows 2000 with service pack 1. I am calling mod_jk.conf.mine from appache http.conf Many thanks ** Any unauthorized use and interception of this e-mail is illegal. If this e-mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. This e-mail does not give rise to any binding legal obligations upon the City of Cape Town unless the City of Cape Town subsequently confirms the content in writing non-electronically. This e-mail may be confidential, legally privileged or otherwise protected by law. Unauthorised disclosure or copying of any or all of it may be unlawful. If you receive this e-mail in error please notify the sender and delete the message ** workers.properties ### # Auto generated configuration. Dated: Tue Feb 13 09:53:10 GMT+02:00 2001 ### # # The following line instructs Apache to load the jk module # LoadModule jk_module modules/mod_jk.dll JkWorkersFile "C:/jakarta-tomcat/conf/workers.properties" JkLogFile "C:/jakarta-tomcat/logs/mod_jk.log" # # Log level to be used by mod_jk # JkLogLevel error ### # SSL configuration # # # By default mod_jk is configured to collect SSL information from # the apache environment and send it to the Tomcat workers. The # problem is that there are many SSL solutions for Apache and as # a result the environment variable names may change. # # The following (commented out) JK related SSL configureation # can be used to customize mod_jk's SSL behaviour. # # Should mod_jk send SSL information to Tomact (default is On) # JkExtractSSL Off # # What is the indicator for SSL (default is HTTPS) # JkHTTPSIndicator HTTPS # # What is the indicator for SSL session (default is SSL_SESSION_ID) # JkSESSIONIndicator SSL_SESSION_ID # # What is the indicator for client SSL cipher suit (default is SSL_CIPHER) # JkCIPHERIndicator SSL_CIPHER # # What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT) # JkCERTSIndicator SSL_CLIENT_CERT # # # ### # # Root context mounts for Tomcat # JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 # # Auto configuration for the /examples context starts. # # # The following line makes apache aware of the location of the /examples context # Alias /examples "C:/jakarta-tomcat/webapps/examples" Options Indexes FollowSymLinks # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 # # The following line prohibits users from directly accessing WEB-INF # AllowOverride None deny from all # # Use Directory too. On Windows, Location doesn't work unless case matches # AllowOverride None deny from all # # The following line prohibits users from directly accessing META-INF # AllowOverride None deny from all # # Use Directory too. On Windows, Location doesn't work unless case matches # AllowOverride None deny from all ### # Auto configuration for the /examples context ends.
R: Apache/Tomcat/mod_jk configuration problem?
I have the same problem, as I stated in some help requests. I have same experience with Linux, Java and Apache too, so I tried also to follow dumbly the instructions in the famousmod_jk.howto (how don't?...;-) ).It sounds like mod_jk is not even trying to contact apache, as I cannot see no communication on port 8007/8009. I have two options: - I made a silly, low level mistake (but I'm not alone, as I can see on the list: maybe instructions allow misunderstandings) - There is something about communication that does not work under some conditions (just to say, I am also using Mandrake 7.2 and kernel 2.4.0) Since I can see various discussion threads in the list related to this problem, should us all join this thread, so we can avoid communication garbling? - Original Message - From: Ganasen Gounden To: [EMAIL PROTECTED] Sent: Saturday, February 17, 2001 11:47 AM Subject: Apache/Tomcat/mod_jk configuration problem? HelloI too am experiencing extreme difficulty in sitting up Apache/Tomcat. Neither the default mod_jserve or the configuration for Mod_jk/ajp12 default or ajp13 configuration works as per the various suggestions presented on the listing. Everything works directly via Tomcat:port 8080 but not via Apache.I have three different types of applications: Servlet, JSP, Applet.1. The servlet applications is just one class and works in Apache and Tomcat with no problems.2. The JSP and Applet application works in Tomcat but not via Apache. The JSP applications is an Oracle Jdeveloper applications with various libraries and relevant tags files etc. The applet application is a fully containe applet with various classes and libraries in its application directory. It loads via Apache but is unable to find its required assocaited files. Apache is somehow not communicating with Tomcat about where the files are or visa versa. I have a feeling it is about mapping of directories or something simple but then again I am a newbie.Judging from this list everyone is having similar problems with apache/mod_jk. Included are my various configurations files. I would appreciate if someone cancan point out what I need to fix.I am using Apache 1.3.14 , Tomcat 3.2.1 and JRE 1.3 and Windows 2000 with service pack 1.I am calling mod_jk.conf.mine from appache http.confMany thanks**Any unauthorized use and interception of this e-mail is illegal.If this e-mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. This e-mail does not give rise to any binding legal obligations upon theCity of Cape Town unless the City of Cape Town subsequentlyconfirms the content in writing non-electronically. This e-mailmay be confidential, legally privileged or otherwise protectedby law. Unauthorised disclosure or copying of any or all of itmay be unlawful. If you receive this e-mail in error please notifythe sender and delete the message** -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, email: [EMAIL PROTECTED]
Re: R: Apache/Tomcat/mod_jk configuration problem?
JIM RUDNICKI, Where are you.?? Pl. help to solve this problem .I think Jim Rudnicki [EMAIL PROTECTED] may help to solve this configuration problem between aoache+tocat+modjk?.I request all others in the list to REQUEST him for solving this problem. R K JHA At 12:17 17/02/01 +0100, you wrote: mod_jk is not even trying to contact apache, as I cannot see no communication on port 8007/8009. I have two options: - I made a silly, low level mistake (but I'm not alone, as I can see on the list: maybe instructions allow misunderstandings) - There is something about communication that does not work under some conditions (just to say, I am also using Mandrake 7.2 and kernel 2.4.0) Since I can see various discussion threads in the list related to this problem, should us all join this thread, so we can avoid communication garbling? - Original Message -From:GanasenGoundenTo: [EMAIL PROTECTED]Sent: Saturday, February 17, 2001 11:47 AM Subject: Apache/Tomcat/mod_jkconfiguration problem? Hello I too am experiencing extreme difficulty insitting up Apache/Tomcat. Neither the default mod_jserve or the configurationfor Mod_jk/ajp12 default or ajp13 configuration works as per the varioussuggestions presented on the listing. Everything works directly viaTomcat:port 8080 but not via Apache. I have three different types ofapplications: Servlet, JSP, Applet. 1. The servlet applications is justone class and works in Apache and Tomcat with no problems. 2. The JSP andApplet application works in Tomcat but not via Apache. The JSP applications is an Oracle Jdeveloper applications with variouslibraries and relevant tags files etc. The appletapplication is a fully containe applet with various classes and libraries inits application directory. It loads via Apache but isunable to find its required assocaited files. Apache is somehownot communicating with Tomcat about where the files are or visa versa. I havea feeling it is about mapping of directories or something simple but thenagain I am a newbie. Judging from this list everyone is having similarproblems with apache/mod_jk. Included are my various configurations files. Iwould appreciate if someone can can point out what I need to fix. Iam using Apache 1.3.14 , Tomcat 3.2.1 and JRE 1.3 and Windows 2000 withservice pack 1. I am calling mod_jk.conf.mine from appachehttp.conf Manythanks ** Anyunauthorized use and interception of this e-mail is illegal. If this e-mailis not intended for you, you may not copy, This e-mail does not give rise to any bindinglegal obligations upon the City of Cape Town unless the City of Cape Townsubsequently Thise-mail may be confidential, legally privileged or otherwise protected Unauthorised disclosure or copying of any or all of it may beunlawful. If you receive this e-mail in error please notify the sender anddelete themessage ** - Tounsubscribe, e-mail: [EMAIL PROTECTED] Foradditional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
mod_jserv vs. mod_jk (configuration questions for workers.properties)
I have been browsing through the documentation and have hit a wall. I want to run Apache and Tomcat on separate machines. More than that I want to load balance my Tomcat application servers. I have done this in the past using mod_jserv to talk to jserv servers and it worked pretty well. From what I have gathered I want to use mod_jk with ajp v1.3. I understand everything in the mod_jk.conf-auto and the workers.properties except... the workers.properties file defines tomcat specific variables (i.e. workers.tomcat_home, workers.java_home, classpaths etc...). How can I define tomcat internals from an apache machine that doesn't have tomcat installed? What do I need to define within the workers.properties to have my apache machines connect to the tomcat machines. Do I have to install tomcat on all of the machines? What about a jdk? Has anybody done this? Can somebody help me with this config? Thanks in advance, -Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jserv vs. mod_jk (configuration questions for workers.propert ies)
Title: RE: mod_jserv vs. mod_jk (configuration questions for workers.propert ies) Hey Max, We've (almost) got the same setup: Multiple Apache boxes (LVSed) and multiple Tomcat boxes in a load balanced setup (via mod_jk) All of out Tomcat boxes are identical, so we set the 'home' type attributes of the worker.properties file to where they are on the _Tomcat_ machines. Our Apache boxes just have Apache on them (no jdk etc) It seems to be working fine.. Hope that helped. mk Michael R. Kuz Developer Service Intelligence (403) 261-5000 ext. 363 [EMAIL PROTECTED] -Original Message- From: Max Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 12:50 PM To: '[EMAIL PROTECTED]' Subject: mod_jserv vs. mod_jk (configuration questions for workers.propert ies) I have been browsing through the documentation and have hit a wall. I want to run Apache and Tomcat on separate machines. More than that I want to load balance my Tomcat application servers. I have done this in the past using mod_jserv to talk to jserv servers and it worked pretty well. From what I have gathered I want to use mod_jk with ajp v1.3. I understand everything in the mod_jk.conf-auto and the workers.properties except... the workers.properties file defines tomcat specific variables (i.e. workers.tomcat_home, workers.java_home, classpaths etc...). How can I define tomcat internals from an apache machine that doesn't have tomcat installed? What do I need to define within the workers.properties to have my apache machines connect to the tomcat machines. Do I have to install tomcat on all of the machines? What about a jdk? Has anybody done this? Can somebody help me with this config? Thanks in advance, -Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jserv vs. mod_jk (configuration questions for workers.pro pert ies)
Title: RE: mod_jserv vs. mod_jk (configuration questions for workers.propert ies) Wait... So you copied the workers.properties file from the tomcat machine and put it onto the apache servers. The apache servers have the mod_jk, no java, no tomcat and everything works? So even though the workers.properties file has classpaths and everything else the proxy connection works. Thanks, mc -Original Message-From: Michael Kuz [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 10, 2001 12:34 PMTo: '[EMAIL PROTECTED]'Subject: RE: mod_jserv vs. mod_jk (configuration questions for workers.pro pert ies) Hey Max, We've (almost) got the same setup: Multiple Apache boxes (LVSed) and multiple Tomcat boxes in a load balanced setup (via mod_jk) All of out Tomcat boxes are identical, so we set the 'home' type attributes of the worker.properties file to where they are on the _Tomcat_ machines. Our Apache boxes just have Apache on them (no jdk etc) It seems to be working fine.. Hope that helped. mk Michael R. Kuz Developer Service Intelligence (403) 261-5000 ext. 363 [EMAIL PROTECTED] -Original Message- From: Max Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 12:50 PM To: '[EMAIL PROTECTED]' Subject: mod_jserv vs. mod_jk (configuration questions for workers.propert ies)I have been browsing through the documentation and have hit a wall. I want to run Apache and Tomcat on separate machines. More than that I want to load balance my Tomcat application servers. I have done this in the past using mod_jserv to talk to jserv servers and it worked pretty well. From what I have gathered I want to use mod_jk with ajp v1.3. I understand everything in the mod_jk.conf-auto and the workers.properties except... the workers.properties file defines tomcat specific variables (i.e. workers.tomcat_home, workers.java_home, classpaths etc...). How can I define tomcat internals from an apache machine that doesn't have tomcat installed? What do I need to define within the workers.properties to have my apache machines connect to the tomcat machines. Do I have to install tomcat on all of the machines? What about a jdk? Has anybody done this? Can somebody help me with this config? Thanks in advance, -Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat - mod_jk - Configuration : Need some help please
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi folks, Okay, I'm kind of new to this java stuff, so please bear with me. I think I have it almost done but have reached a stumbling block which I cannot resolve by searching through the archives. I'm sure its a simple one, but It's got me stumped. FOR--- Solaris 2.6 Apache 1.3.12 Tomcat 3.2 mod_jk JDK 1.3 I have my apache set up to use virtual hosts. I have the tomcat set up pretty much stock, with the exception that I added ajp13(i'm not using it in my apache configuration though) and I commented out the /examples, /admin, etc. now all i have in my server.xml file for context is Context path="/java" docBase ="/export/home/cci/public_html/java" croseContext="true" debug="0" reloadable="true" /Context then in my httpd.conf file i have VirtualHost 111.111.111.111 ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/cci/public_html ServerName my.domain.com DirectoryIndex index.cgi index.pl index.html index.shtml Directory /export/home/cci/public_html Options All /Directory Directory /export/home/cci/public_html/cgi-bin Options All /Directory AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /export/home/cci/public_html/logs/error_log TransferLog /export/home/cci/public_html/logs/access_log Directory "/export/home/cci/public_html/java" Options Indexes FollowSymLinks /Directory # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /java/servlet/* ajp12 JkMount /java/*.jsp ajp12 # # The following line prohibits users from directly accessing WEB-INF # Location "/java/WEB-INF/" AllowOverride None deny from all /Location # # The following line prohibits users from directly accessing META-INF # Location "/java/META-INF/" AllowOverride None deny from all /Location /VirtualHost If I http to my virtualhost:8080 the stock tomcat screen comes up. If I http to my virtualhost:8080/java then I get the directory index of the /export/home/cci/public_html/java(as I would expect). I have created a quick jsp to test my setup which just does the basic html tags and then does a % out.println("test") % if I go to http://my.domain.com/java i get the same directory listing as I would expect. the problem is that when i click on test.jsp, i get the following output.(for either the servername:8080/java or the virtual host). Error: 500 Location: /java/test.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at
RE: Tomcat - mod_jk - Configuration : Need some help please
You need to have tools.jar (in the JDK/lib dir) in your classpath for Tomcat, since it uses javac to complile the JSPs. Good luck. -MC -Original Message- From: Bill Long [mailto:[EMAIL PROTECTED]] Sent: Monday, December 04, 2000 4:02 PM To: [EMAIL PROTECTED] Subject: Tomcat - mod_jk - Configuration : Need some help please *This message was transferred with a trial version of CommuniGate(tm) Pro* Hi folks, Okay, I'm kind of new to this java stuff, so please bear with me. I think I have it almost done but have reached a stumbling block which I cannot resolve by searching through the archives. I'm sure its a simple one, but It's got me stumped. FOR--- Solaris 2.6 Apache 1.3.12 Tomcat 3.2 mod_jk JDK 1.3 I have my apache set up to use virtual hosts. I have the tomcat set up pretty much stock, with the exception that I added ajp13(i'm not using it in my apache configuration though) and I commented out the /examples, /admin, etc. now all i have in my server.xml file for context is Context path="/java" docBase ="/export/home/cci/public_html/java" croseContext="true" debug="0" reloadable="true" /Context then in my httpd.conf file i have VirtualHost 111.111.111.111 ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/cci/public_html ServerName my.domain.com DirectoryIndex index.cgi index.pl index.html index.shtml Directory /export/home/cci/public_html Options All /Directory Directory /export/home/cci/public_html/cgi-bin Options All /Directory AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /export/home/cci/public_html/logs/error_log TransferLog /export/home/cci/public_html/logs/access_log Directory "/export/home/cci/public_html/java" Options Indexes FollowSymLinks /Directory # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /java/servlet/* ajp12 JkMount /java/*.jsp ajp12 # # The following line prohibits users from directly accessing WEB-INF # Location "/java/WEB-INF/" AllowOverride None deny from all /Location # # The following line prohibits users from directly accessing META-INF # Location "/java/META-INF/" AllowOverride None deny from all /Location /VirtualHost If I http to my virtualhost:8080 the stock tomcat screen comes up. If I http to my virtualhost:8080/java then I get the directory index of the /export/home/cci/public_html/java(as I would expect). I have created a quick jsp to test my setup which just does the basic html tags and then does a % out.println("test") % if I go to http://my.domain.com/java i get the same directory listing as I would expect. the problem is that when i click on test.jsp, i get the following output.(for either the servername:8080/java or the virtual host). Error: 500 Location: /java/test.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.ja