Re: AW: apache-tomcat
That article is for using mod_webapp as the connector between Tomcat 4 and Apache. I wouldn't necessarily consider that a best practice. I have found mod_jk 1.2 a better solution for my needs. With mod_jk 1.2 I use the Apache mod_jk config directive JkAutoAlias. This automatically maps Apache to serve static files for all web contexts. Or you could do it individualu with yhe apache Alias directive. The only docs I see for JkAutoAlias are in the jakarta-tomcat-connectors CVS repository in file jk/doc/mod_jk-howto.html. Regards, Glenn [EMAIL PROTECTED] wrote: Hi Tal, never done it myself but here is a best practices Making Tomcat Work with Apache: http://dcb.sun.com/practices/howtos/tomcat_apache.jsp Hope that helps, Carsten -Ursprüngliche Nachricht- Von: Adar Wesley [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 26. August 2002 15:14 An: 'Tomcat Users List' Betreff: apache-tomcat Hi Group ! I have a tomcat connected to apache. I would like to use apache for static content and tomcat for dynamic. Any ideas how to do that ? Any references ? Tal Moshaiov Log-On [EMAIL PROTECTED] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Apache+Tomcat+mod_jk
Thanks for the reply, I did define the jvmRoute, but that didn't solve the problem. Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost debug=0 My form is looking like that: FORM action=/servlet/myservlet method=POST ... I don't use cookies, anyhow can cookies solve the routing problem to stick with the tomcat I started the session with? Thanks Chris Ralph Einfeldt wrote: Did you define a unique jvmroute for each in server.xml ? Engine jvmRoute=tomcat1 ... Engine jvmRoute=tomcat2 ... Have you encoded the action for the form(s) ? Otherwise you will have problems if cookies are diabled. -Ursprüngliche Nachricht- Von: Christoph Fischer [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 13. August 2002 17:19 An: [EMAIL PROTECTED] Betreff: Apache+Tomcat+mod_jk I'm using apache connected to two tomcat's via mod_jk and ajp13. My webpages sends some formular-data to tomcat which generates a new html-form. The problem is that when sending the new html-form back, apache redericts it to the second server. Apache is switching back and forth between the two tomcats after each reply. -- 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: AW: Apache-tomcat integration
Yes you can define two connectors as long as they are listening on different ports. I have both the AJP as well the the WARP connector enabled. RS Ralph Einfeldt ralph.einfeldt@uptTo: Tomcat Users List ime-isc.de [EMAIL PROTECTED] cc: 08/01/02 10:21 AM Subject: AW: Apache-tomcat integration Please respond to Tomcat Users List I think you can define more than one connector in server.xml (but I havn't tried it). But i tend to strip the configuration down to the minimal set, so it's easier to find problems. Especially if you search an error every error message and config entry that doesn't exist is one cause less for confusion. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Turner, John [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 17:01 An: 'Tomcat Users List' Betreff: RE: Apache-tomcat integration I'm using mod_jk in my setup, and I didn't disable the WARP connector. It's still enabled, and everything seems to be working. Can only one connector be defined at a time in server.xml? John Turner [EMAIL PROTECTED] -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 10:48 AM To: Tomcat Users List Subject: AW: Apache-tomcat integration The fir error message comes because you didn't disable the warp connector. If 8080 doesn't responds it because it uses port 8180. (See the log message for the HttpConnector) If all is running you should diable the HttpConnector. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Thomas Cherry [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 16:28 An: [EMAIL PROTECTED] Betreff: Re: Apache-tomcat integration Apache runs just fine and I find it on the port I expect however tomcat does not run as I expect. http://my.host.com:8080/examples dose not respond. Apache_log.date.txt: 2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at snip/ 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP addresses 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread snip/ -- 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] -- 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: AW: Apache Tomcat/4.01 - HTTP Status 500 - Internal Server Error
Thanks. But why after refresh the page, it wil work OK? Thanks Junying Du -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: Apache, tomcat and mod_jk
are you sure the mod_jk.so is build with apache 1.3.14 on your system? perhaps try to remove it and rebuild it with apache apsx command A known issue. The mod_jk was compiled under an EAPI apache (mod_ssl) and you use that on a standard apache distrib Regards. Ps: Linux users could take a look at : ftp://ftp.falsehope.com/home/gomez/ where they could find apache-mod_ssl, tomcat and tomcat-mod RPMs ready to use for Redhat 6.x or Redhat 7.x via rebuild of source RPM