RE: Configuring Apache tomcat
I need help to configure jakarta-tomcat to send a high volume of packet sockets trhought a servlet application. It should send aprox 5000 sockets in a short time Can someone recommend me a configuration of maxThreads etc, at the web.xml file. I think what you are looking for is an application to excercise your Tomcat setup. Try looking at Apache JMeter, which is a good all round testing tool. As for the recommendation of settings, this is something that you are going to have to find out for yourself. Since your test is to only over 15 minutes, then it should be easy for you to setup a set of benchmarks, adjusting values each time to observe the 'cause-n-effect'. The key thing to this sort of testing, is changing only one variable at a time. And remember, this is only ever going to be a general performance tune for that given application. As soon as you move to another servlet or JSP page, you will have to start the profiling all over again. Hope this helps, alan -- Alan Williamson, Technology Evangelist SpikeSource Inc. Daily OS News @ http://compiledby.spikesource.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Apache tomcat
Hi all, I'm new at the list, my name is Raul. I need help to configure jakarta-tomcat to send a high volume of packet sockets trhought a servlet application. The server is dual processor Intel 3.4Ghz 4 Gb RAM. It should send aprox 5000 sockets in a short time (About 15 minutes max) Can someone recommend me a configuration of maxThreads etc, at the web.xml file. Thanks on advance Raúl.
Error in configuring Apache - Tomcat on AIX 4.3
Dear Sir/Madam, We are facing problem in configuring Apache-Tomcat on AIX 4.3. Could you please help us out? Our JSP/Servlets based web-application will be deployed in following environment - --- (In all cases, we have directly used available 'binaries' from sites.) # OS - IBM AIX 4.3, # JDK - 1.3_06 for IBM AIX 4.3, # Apache - 1.3.26 for IBM AIX 4.3, # Tomcat - 3.2.3, # mod_jk - for AIX 4.3 - We downloaded it from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0 /bin/aix/ mod_jk-1.2.0+1-encap-rs6000-aix4.3.3.tar.gz. Please note that this is the only version for AIX under jk / jk2. The readme.html says - Apache JK 1.2.0 for AIX: You'll find here binaries for Apache 1.3 with SSL. This mod_jk Encap was built from the jakarta-tomcat-connectors-jk-1.2.0-src distribution using IBM JDK 1.3 and the apache-1.3.26+1 Encap (which was built for EAPI). It is also mentioned under http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0 / that Apache JK 1.2.0 version can be used with Tomcat 3.3.x, 4.0.x and 4.1.x But http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/doc/ says that - JK offers a lot of different and flexible communications between a Web Server and the Tomcat Servlet Engine and could be used today with all of the ASF Tomcat Engines, 3.2.x, 3.3.x, 4.0.x, 4.1.x and 5.x So, we are not sure if we are using a proper version of mod_jk.so as we are using Tomcat 3.2.3. Now, coming to the steps that we followed - - We carried out the entire process after logging in as root. 1. After installing and configuring httpd.conf, Apache is running fine independently. (APACHE_HOME - usr/local/apache) 2. After installing and configuring, Tomcat is running fine independently. (TOMCAT_HOME - usr/tomcat) After starting Tomcat for the first time, it generated mod_jk.conf-auto, which contains following statement on line 8 - LoadModule jk_module libexec/mod_jk.so 3. Then to establish communication between Apache Tomcat, we decided to use auto configuration. We included following statement in httpd.conf file in the end - Include /tomcat/conf/mod_jk.conf-auto Then we untared the (mod_jk-1.2.0+1-encap-rs6000-aix4.3.3.tar) file in a temporary directory. This action extracted a directory - mod_jk-1.2.0+1. From this directory, we have only picked up mod_jk.so file from /libexec folder and copied it to our usr/local/apache/libexec/ directory on the Server. We have not picked up any other file from the untared files, though there are many. (e.g. encapinfo, mod_jk.conf, workers,). We also executed postinstall file as a last resort without knowing much about it, but the following error still continues. (Please note that in case of Linux, we get just one mod_jk.so file. But here for AIX4.3, there seem to be some other files as mentioned above. And if at all anything is to be picked up/configured additionally, we have not found any documentation. 4. When we restart Apache now, it gives following error - -- # ./apachectl start Syntax error on line 8 of /usr/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: No such file or directory ./apachectl start: httpd could not be started -- We have checked read/write/execute rights to the mod_jk.so file, and they are proper. httpd.conf also contains LoadModule statements for loading other .so files in /usr/local/apache/libexec. These statements get executed. But LoadModule jk_module libexec/mod_jk.so statement gives in mod_jk.conf-auto throws error. Someone also suggested that we do the symbolic linking using following command - ln -s /usr/lib/apache libexec But we could not follow it. We don't have 'lib' directory under 'usr' directory. Please guide us to eliminate the error. No suggestion so far seems to be working. Thanks and regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem configuring Apache + Tomcat 4.0.1
Hi, I'm trying to move from a configuration where everything is being served by tomcat to a configuration where apache is serving the static content and tomcat the dynamic content (using servlets). I think I'm almost there: authentication is working (using a JDBCRealm in tomcat) and the index.html is redirecting a new user to the servlet (http://domain/servlet/Admas). Unfortunatly, after the authentication is approved apache/tomcat returns a 404 message: /Admas is not found. Probably I have some directory misconfigured, but I can't find where. I must say that this is my first configuration, so I think I just misunderstand one or more of the parameters. I think I have set the context path incorrect, but I've tried several possibilities, but none of them worked. Any hints would be appreciated!! Here is my configuration: *** Directory tree *** /opt/jakarta/webapps/admas /opt/jakarta/webapps/admas/index.html /opt/jakarta/webapps/admas/servlet /opt/jakarta/webapps/admas/servlet/WEB-INF /opt/jakarta/webapps/admas/servlet/WEB-INF/web.xml /opt/jakarta/webapps/admas/servlet/WEB-INF/classes (empty) /opt/jakarta/webapps/admas/servlet/WEB-INF/lib (jars containing servlet code and some other stuff) *** part of httpd.conf *** WebAppConnection conn_admas_http warp localhost:8006 VirtualHost 192.168.44.2 ServerName admas.lokaal DocumentRoot /opt/jakarta/webapps/admas ErrorLog /var/log/httpd/admas_error_log CustomLog /var/log/httpd/admas_access_log combined WebAppDeploy servlet conn_admas_http /servlet Location /servlet/WEB-INF Options None AllowOverride None order deny,allow deny from all /Location /VirtualHost *** part of server.xml *** Service name=Admas-HTTP Connector className = org.apache.catalina.connector.warp.WarpConnector port=8006 minProcessors=3 maxProcessors=30 scheme=http secure=false enableLookups=true appBase=webapps acceptCount=10 debug=99/ Engine className = org.apache.catalina.connector.warp.WarpEngine name=Admas-HTTP debug=99 Logger className = org.apache.catalina.logger.FileLogger prefix=admas_http_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost/admas connectionName=x connectionPassword= userTable=user userNameCol=login userCredCol=password userRoleTable=userrole roleNameCol=role digest=MD5 / Host className = org.apache.catalina.connector.warp.WarpHost name=admas.lokaal debug=99 appBase=webapps/admas unpackWARs=false Context path = servlet docBase= webapps/admas/servlet reloadable=true debug=99 / /Host /Engine /Service *** web.xml *** ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-nameAdmas/servlet-name servlet-classcom.vdgeijn.admas.servlet.Admas/servlet-class /servlet servlet servlet-nameauth/servlet-name servlet-classAuthServlet/servlet-class /servlet security-constraint web-resource-collection web-resource-nameAdmas/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameAdmas/realm-name /login-config /web-app -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: (ANTON)Configuring apache + tomcat on separate machines
Hello Anton Brazhnyk Thanks for putting up the example I have tried to follow the example but I am still getting errors can you please please put up a more comprehensive answer. I know alot of people are trying to set this up so it would help us all. An example of your httpd and all the other files in full will really really help. Thanxs in advance and also thanxs for sharing the solution Amran
Re: Configuring apache + tomcat on separate machines
DOESEN'T ANYONE KNOW HOW TO DO THIS? SURELY SOMEONE MUST KNOW!
RE: Configuring apache + tomcat on separate machines
if any one hasnt done it , well the question is can this be done ?? at all , someone can surely reply for that atleast!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: Re: Configuring apache + tomcat on separate machines DOESEN'T ANYONE KNOW HOW TO DO THIS? SURELY SOMEONE MUST KNOW! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Configuring apache + tomcat on separate machines
Would think it would have to be possible. since they communicate via ajp protocol, you just need to specify something other than localhost on the tomcat side I would think. the ajp stuff has default ports of something like 8007 and 8009. Sharanya Vemu wrote: if any one hasnt done it , well the question is can this be done ?? at all , someone can surely reply for that atleast!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: Re: Configuring apache + tomcat on separate machines DOESEN'T ANYONE KNOW HOW TO DO THIS? SURELY SOMEONE MUST KNOW! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Configuring apache + tomcat on separate machines
how would the apache server know on which IP address the tomcat is running? from the tomcat side it is fine, but how about the communication from apache to tomcat... -Original Message- From: Keith Simpson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:14 PM To: Tomcat Users List Subject: Re: Configuring apache + tomcat on separate machines Would think it would have to be possible. since they communicate via ajp protocol, you just need to specify something other than localhost on the tomcat side I would think. the ajp stuff has default ports of something like 8007 and 8009. Sharanya Vemu wrote: if any one hasnt done it , well the question is can this be done ?? at all , someone can surely reply for that atleast!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: Re: Configuring apache + tomcat on separate machines DOESEN'T ANYONE KNOW HOW TO DO THIS? SURELY SOMEONE MUST KNOW! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Configuring apache + tomcat on separate machines
Try workers.properties file - that is read by the mod_jk module (via the include directive in the httpd.conf) I think and has host settings for ajp connectors. As I said, never done it, but gotta work somehow! Eswar.K wrote: how would the apache server know on which IP address the tomcat is running? from the tomcat side it is fine, but how about the communication from apache to tomcat... -Original Message- From: Keith Simpson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:14 PM To: Tomcat Users List Subject: Re: Configuring apache + tomcat on separate machines Would think it would have to be possible. since they communicate via ajp protocol, you just need to specify something other than localhost on the tomcat side I would think. the ajp stuff has default ports of something like 8007 and 8009. Sharanya Vemu wrote: if any one hasnt done it , well the question is can this be done ?? at all , someone can surely reply for that atleast!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: Re: Configuring apache + tomcat on separate machines DOESEN'T ANYONE KNOW HOW TO DO THIS? SURELY SOMEONE MUST KNOW! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Configuring apache + tomcat on separate machines
Hi, I've done it. Its easy if you read docs carefully. I did it with both mod_webapp and mod_jk. (RedHat 7/Apache 1.3.20 + Win2k/Tomcat 4.0.2) All the steps are pretty straitforward except maybe workers.properties. Here is mine: ps=/ worker.list=AJP13 worker.AJP13.port=8009 worker.AJP13.host=192.168.3.20 worker.AJP13.type=ajp13 worker.AJP13.lbfactor=1 in httpd.conf you have to LoadModule mod_jk.so and add something like following (end of file is working for me) JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile logs/ajp.log JkLogLevel error JkMountCopy on JkMount /tests/* AJP13 JkMount /tests AJP13 JkMount /manager/* AJP13 JkMount /manager AJP13 JkMount /tomcat-docs/* AJP13 JkMount /tomcat-docs AJP13 Hope it helps. -Original Message- From: Sharanya Vemu [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 6:28 PM To: Tomcat Users List Subject: RE: Configuring apache + tomcat on separate machines if any one hasnt done it , well the question is can this be done ?? at all , someone can surely reply for that atleast!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: Re: Configuring apache + tomcat on separate machines DOESEN'T ANYONE KNOW HOW TO DO THIS? SURELY SOMEONE MUST KNOW! Anton -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Configuring apache + tomcat on separate machines
Hi I have a problem with setting up Apache and Tomcat on separate machines. It works fine on one machine. So far I have mapped my drive to the second machine which is windows with tomcat. I have edited httpd and appended the following to the end-: Include e:/j3t/tomcat/conf/tomcat.conf But I get a misconfiguration error when I try to get a jsp page. I dont know whats wrong can anyone shed any light. With an example, most appreciated. I have searched the whole of the web and posted so many questions on the java developers community and jguru but no one seems to have a clue. I would be most happy if anyone can help. thanxs alot
RE: Configuring apache + tomcat on separate machines
Hi amran i'm looking for something similar to , i'm using two linux boxes if you get any clue on how to do it please do let me know thx in advance Sharanya -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:37 PM To: [EMAIL PROTECTED] Subject: Configuring apache + tomcat on separate machines Hi I have a problem with setting up Apache and Tomcat on separate machines. It works fine on one machine. So far I have mapped my drive to the second machine which is windows with tomcat. I have edited httpd and appended the following to the end-: Include e:/j3t/tomcat/conf/tomcat.conf But I get a misconfiguration error when I try to get a jsp page. I dont know whats wrong can anyone shed any light. With an example, most appreciated. I have searched the whole of the web and posted so many questions on the java developers community and jguru but no one seems to have a clue. I would be most happy if anyone can help. thanxs alot -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Configuring apache+tomcat on separate macines
Hi Hi Sharanya I am able to configure on one machine but that is for windows. I want to be able to configure for Linux(Apache installed) and Windows(Tomcat installed with JBoss installed later on). If I do get any info I will pass it on. If you get any insight into the problem then plz pass on info. Thanxs alot
Re: Configuring apache + tomcat on separate machines
call me crazy, but I think there must be something you need to do on the tomcat side to indicate another host for apache. Maybe in the ajp connector in server.xml, or maybe in the tomcat.conf? Probably someone who has actually done this will chime in. I'd look for anything that says localhost in the tomcat configuration. and, btw, mapping the tomcat.conf is OK, but why not just copy it to the apache host? Sharanya Vemu wrote: Hi amran i'm looking for something similar to , i'm using two linux boxes if you get any clue on how to do it please do let me know thx in advance Sharanya -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:37 PM To: [EMAIL PROTECTED] Subject: Configuring apache + tomcat on separate machines Hi I have a problem with setting up Apache and Tomcat on separate machines. It works fine on one machine. So far I have mapped my drive to the second machine which is windows with tomcat. I have edited httpd and appended the following to the end-: Include e:/j3t/tomcat/conf/tomcat.conf But I get a misconfiguration error when I try to get a jsp page. I dont know whats wrong can anyone shed any light. With an example, most appreciated. I have searched the whole of the web and posted so many questions on the java developers community and jguru but no one seems to have a clue. I would be most happy if anyone can help. thanxs alot -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Configuring apache+tomcat on separate macines
definitely amran i'll do that Regards Sharanya -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 4:04 PM To: [EMAIL PROTECTED] Subject: RE: Configuring apache+tomcat on separate macines Hi Hi Sharanya I am able to configure on one machine but that is for windows. I want to be able to configure for Linux(Apache installed) and Windows(Tomcat installed with JBoss installed later on). If I do get any info I will pass it on. If you get any insight into the problem then plz pass on info. Thanxs alot -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Configuring apache + tomcat on separate machines
Yes I was thinking of configuring the mod_jk file. But mapping the network seems to be an easier option(I think). Coz when I use the Linux and Windows NT machine I will use SAMBA to map the Windows drive. Well this is my strategy so far.
RE: Configuring apache/tomcat with mod_jk on different hosts
This probably is a BUG with tomcat. It should not return 404, coz' the servlet is there. You will get the same message even if u call the servlet from normal java code and not applet. URL url = new URL(http://whatever.com/servlet/SomeServlet;) URLConnection huc = url.openConnection(); huc.setUseCaches(false); huc.setDoInput(true); // huc.setDoOutput(true); //OutputStream os = huc.getOutputStream(); InputStream is = huc.getInputStream(); This will work but if u uncomment the 2 lines above , it returns 404 Error. Perhaps it has something to do with the post method in the servlet, do u have a doPost method in the servlet ? Shuklix -Original Message- From: Deniz Demir [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 2:26 PM To: [EMAIL PROTECTED] Subject: URL socket connection to servlet Hi, I have replaced my apache-jserv server with apache-tomcat. In this case my applet cannot open URL socket connection to my servlet that loads the applet. The code in the applet is as follows: // Get the server URL String urlString = http://; + getDocumentBase().getHost() + /servlet/LoginServlet; java.net.URL url = new java.net.URL(urlString); System.out.println(- url: + url.toString()); // Attempt to connect to the host java.net.URLConnection con = url.openConnection(); System.out.println(connection opened...); And the error message from Java Console of Internet Explorer is as follows: ( www.yfas.com.tr:80//servlet/LoginServlet this address is shown in netscape as it is in the address bar, that is: www.yfas.com.tr/servlet/LoginServlet ) - url: http://www.yfas.com.tr/servlet/LoginServlet connection opened... java.io.FileNotFoundException: www.yfas.com.tr:80//servlet/LoginServlet at com/ms/net/wininet/http/HttpInputStream.connect at com/ms/net/wininet/http/HttpInputStream.init at com/ms/net/wininet/http/HttpURLConnection.createInputStream at com/ms/net/wininet/WininetURLConnection.getInputStream at com/ms/net/wininet/http/HttpPostBufferStream.close at java/io/FilterOutputStream.close at LoginApplet.validateUser at LoginApplet.handleEvent at java/awt/Component.postEvent at java/awt/Component.postEvent at java/awt/Component.dispatchEventImpl at java/awt/Component.dispatchEvent at java/awt/EventDispatchThread.run is there any solution for this problem? Deniz...
Configuring apache/tomcat with mod_jk on different hosts
Hello If apache and tomcat are running on 2 different hosts, how do I perform the configuration if I'm using mod_jk ? For e.g. should I place the workers.properties file on apache side or tomcat side ? For mod_jserv I know that I can use ApJServDefaultHost and ApJServDefaultPort directives. Thanks Regards Raymond
RE: Problems while configuring Apache-Tomcat on Linux
I noticed there are two files if you go to download the binary version of this module on the following site. http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38 6/ mod_jk.so and mod_jserv_tomcat.so Does anyone know what the difference (if any) is between these two? Thanks -Original Message- From: Gustavo Muoz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 12:35 AM To: [EMAIL PROTECTED] Subject: RE: Problems while configuring Apache-Tomcat on Linux Hi JServ is an old version. Try mod_jk it is better solution. My two cents, Gustavo. -Original Message- From: Kavita Jotwani [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 11:15 PM To: '[EMAIL PROTECTED]' Subject: Problems while configuring Apache-Tomcat on Linux For configuring Apache-Tomcat to work together on Linux, I downloaded the file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and placed it in the /usr/local/apache/libexec/ directory. The tomcat-apache.conf that was generated on starting tomcat was also renamed to tomcat.conf and the same was included in the apache's httpd.conf. I had to update this tomcat.conf file to change the first line to "LoadModule jserv_module libexec/mod_jserv_tomcat.so" instead of "LoadModule jserv_module libexec/mod_jserv.so" On restarting tomcat, it works fine. When we restart Apache, it gives the following error - [root@linuxwd libexec]# /usr/local/apache/bin/apachectl start Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf: API module structure `jserv_module' in file /usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started Can anybody provide assistance in the same? Also, the same thing works fine for NT. I have tried the same with mod_jserv.dll on NT. It is working fine. Thanks and regards Kavita
RE: Problems while configuring Apache-Tomcat on Linux
The differences are discussed in the Tomcat documentation online at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html basically, mod_jk is newer and replaces mod_jserv and allows integration with various web servers including Apache, iPlanet, and IIS Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. Nick Butler nickb@interactivepTo: "'[EMAIL PROTECTED]'" ortal.com [EMAIL PROTECTED] cc: 03/27/2001 08:03 AMSubject: RE: Problems while configuring Apache-Tomcat on Linux Please respond to tomcat-user I noticed there are two files if you go to download the binary version of this module on the following site. http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38 6/ mod_jk.so and mod_jserv_tomcat.so Does anyone know what the difference (if any) is between these two? Thanks -Original Message- From: Gustavo Muoz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 12:35 AM To: [EMAIL PROTECTED] Subject: RE: Problems while configuring Apache-Tomcat on Linux Hi JServ is an old version. Try mod_jk it is better solution. My two cents, Gustavo. -Original Message- From: Kavita Jotwani [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 11:15 PM To: '[EMAIL PROTECTED]' Subject: Problems while configuring Apache-Tomcat on Linux For configuring Apache-Tomcat to work together on Linux, I downloaded the file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and placed it in the /usr/local/apache/libexec/ directory. The tomcat-apache.conf that was generated on starting tomcat was also renamed to tomcat.conf and the same was included in the apache's httpd.conf. I had to update this tomcat.conf file to change the first line to "LoadModule jserv_module libexec/mod_jserv_tomcat.so" instead of "LoadModule jserv_module libexec/mod_jserv.so" On restarting tomcat, it works fine. When we restart Apache, it gives the following error - [root@linuxwd libexec]# /usr/local/apache/bin/apachectl start Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf: API module structure `jserv_module' in file /usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started Can anybody provide assistance in the same? Also, the same thing works fine for NT. I have tried the same with mod_jserv.dll on NT. It is working fine. Thanks and regards Kavita
Problems while configuring Apache-Tomcat on Linux
For configuring Apache-Tomcat to work together on Linux, I downloaded the file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and placed it in the /usr/local/apache/libexec/ directory. The tomcat-apache.conf that was generated on starting tomcat was also renamed to tomcat.conf and the same was included in the apache's httpd.conf. I had to update this tomcat.conf file to change the first line to "LoadModule jserv_module libexec/mod_jserv_tomcat.so" instead of "LoadModule jserv_module libexec/mod_jserv.so" On restarting tomcat, it works fine. When we restart Apache, it gives the following error - [root@linuxwd libexec]# /usr/local/apache/bin/apachectl start Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf: API module structure `jserv_module' in file /usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started Can anybody provide assistance in the same? Also, the same thing works fine for NT. I have tried the same with mod_jserv.dll on NT. It is working fine. Thanks and regards Kavita
RE: Problems while configuring Apache-Tomcat on Linux
Hi JServ is an old version. Try mod_jk it is better solution. My two cents, Gustavo. -Original Message- From: Kavita Jotwani [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 11:15 PM To: '[EMAIL PROTECTED]' Subject: Problems while configuring Apache-Tomcat on Linux For configuring Apache-Tomcat to work together on Linux, I downloaded the file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and placed it in the /usr/local/apache/libexec/ directory. The tomcat-apache.conf that was generated on starting tomcat was also renamed to tomcat.conf and the same was included in the apache's httpd.conf. I had to update this tomcat.conf file to change the first line to "LoadModule jserv_module libexec/mod_jserv_tomcat.so" instead of "LoadModule jserv_module libexec/mod_jserv.so" On restarting tomcat, it works fine. When we restart Apache, it gives the following error - [root@linuxwd libexec]# /usr/local/apache/bin/apachectl start Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf: API module structure `jserv_module' in file /usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started Can anybody provide assistance in the same? Also, the same thing works fine for NT. I have tried the same with mod_jserv.dll on NT. It is working fine. Thanks and regards Kavita
Re: Problems while configuring Apache-Tomcat on Linux
Hi, Maybe you should get the source of the module and compile it yourself. regards, Kenneth Westelinck From: Kavita Jotwani [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: Problems while configuring Apache-Tomcat on Linux Date: Tue, 27 Mar 2001 10:45:23 +0530 For configuring Apache-Tomcat to work together on Linux, I downloaded the file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and placed it in the /usr/local/apache/libexec/ directory. The tomcat-apache.conf that was generated on starting tomcat was also renamed to tomcat.conf and the same was included in the apache's httpd.conf. I had to update this tomcat.conf file to change the first line to "LoadModule jserv_module libexec/mod_jserv_tomcat.so" instead of "LoadModule jserv_module libexec/mod_jserv.so" On restarting tomcat, it works fine. When we restart Apache, it gives the following error - [root@linuxwd libexec]# /usr/local/apache/bin/apachectl start Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf: API module structure `jserv_module' in file /usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started Can anybody provide assistance in the same? Also, the same thing works fine for NT. I have tried the same with mod_jserv.dll on NT. It is working fine. Thanks and regards Kavita _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Problems while configuring Apache-Tomcat on Linux
Kavita, I had a problem with mod_jserv.so at first as well. I had to compile mod_jserv my self. Once I did everything worked perfectly. Good luck, Sam At 3/26/2001 09:15 PM, you wrote: For configuring Apache-Tomcat to work together on Linux, I downloaded the file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and placed it in the /usr/local/apache/libexec/ directory. The tomcat-apache.conf that was generated on starting tomcat was also renamed to tomcat.conf and the same was included in the apache's httpd.conf. I had to update this tomcat.conf file to change the first line to "LoadModule jserv_module libexec/mod_jserv_tomcat.so" instead of "LoadModule jserv_module libexec/mod_jserv.so" On restarting tomcat, it works fine. When we restart Apache, it gives the following error - [root@linuxwd libexec]# /usr/local/apache/bin/apachectl start Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf: API module structure `jserv_module' in file /usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started