Re: how to connect tomcat with apache running on different m/c
dear scott thanks for giving me the direction to work on i have been able to run them on separate m/c 's i am including the workers.properties files for u to have a look at ( just the changed part ) # # workers.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # workers.tomcat_home=f:\jakarta-tomcat-3.2.3 # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # workers.java_home=e:\jdk1.3 - # # Defining a worker named ajp12 and of type ajp12 # Note that the name and the type do not have to match. # worker.ajp12.port=8007 worker.ajp12.host=10.5.3.124 (ip of tomcat m/c ) worker.ajp12.type=ajp12 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.ajp12.lbfactor=1 # #-- DEFAULT ajp13 WORKER DEFINITION -- #- # # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13.port=8009 worker.ajp13.host=10.5.3.124 ( ip of tomcat m/c) worker.ajp13.type=ajp13 # -- as far as server.xml is concerned i havent made any change specific for this . thanks once again Atif --- Scott Jones [EMAIL PROTECTED] wrote: Hi Atif, Yeah, it's very confusing because 99% of people run tomcat and apache on the same machines so worker.properties is included along with tomcat. The copy of it that you have on your tomcat machine will not do anything. i have been able to connect the two How are you sure? but the html/gif pages are served properly Where do you have those? Are they on the apache machine or the tomcat machine (they should be on the apache machine). Just make sure that your tomcat machine has a correct server.xml file (with connector(s) on the ports that your worker(s) on the apache machine will try to use). If you send copies of your worker.properties, server.xml, and httpd.conf, I'll be able to help you a little bit more. Cheers, Scott On 07 Sep 2001 08:02:15 +0100, atif umar wrote: hi, thanks for mailing but i didnt fully understand what u meant do i have to set workers.properties file on the m/c wehich has apoache runnig on it bcos workers.properties file actualy is in the /tomcat/conf directory i have been able to connect the two but still whenever i try to call a servlet/jsp from apache which is placed in the /tomcat/examples then i get this error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.20 Server at localhost Port 80 but the html/gif pages are served properly kindly suggest what to do now ? thanks --- Scott Jones [EMAIL PROTECTED] wrote: You need to set up server.xml on the machine that will be running tomcat so that it'll be listening on whatever port. For example: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/\ Parameter name=port value=8009/ /Connector Then you need to set up a worker.properties file ON THE APACHE box. This isn't very clear in the documentation (I figured it out yesterday. :)). Since my apache machine doesn't have tomcat on it, I just made a directory in /etc/tomcat/conf and stuck my worker.properties file there. It'll need to look something like this: # you can name these workers whatever you want, just make sure you match # it below in the worker.[worker name].port, etc definitions worker.list=worker1 # make sure this matches the port number you used in your server.xml in # the other machine worker.worker1.port=8009 # this is the IP address or host name of your tomcat machine worker.worker1.host=192.168.1.31 worker.worker1.type=ajp13 # I think that the lbfactor will be optional for you -- I actually have # tomcat running two instances and then use a load balancer worker to # use both. #worker.worker1.lbfactor=1 worker.worker1.cachesize=10 Then you'll need to set up your httpd.conf to use mod_jk and redirect the the appropriate things to your tomcat machine. For example: LoadModule jk_module modules/mod_jk-eapi.so AddModule mod_jk.c JkWorkersFile
Re: how to connect tomcat with apache running on different m/c
hi, thanks for mailing but i didnt fully understand what u meant do i have to set workers.properties file on the m/c wehich has apoache runnig on it bcos workers.properties file actualy is in the /tomcat/conf directory i have been able to connect the two but still whenever i try to call a servlet/jsp from apache which is placed in the /tomcat/examples then i get this error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.20 Server at localhost Port 80 but the html/gif pages are served properly kindly suggest what to do now ? thanks --- Scott Jones [EMAIL PROTECTED] wrote: You need to set up server.xml on the machine that will be running tomcat so that it'll be listening on whatever port. For example: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/\ Parameter name=port value=8009/ /Connector Then you need to set up a worker.properties file ON THE APACHE box. This isn't very clear in the documentation (I figured it out yesterday. :)). Since my apache machine doesn't have tomcat on it, I just made a directory in /etc/tomcat/conf and stuck my worker.properties file there. It'll need to look something like this: # you can name these workers whatever you want, just make sure you match # it below in the worker.[worker name].port, etc definitions worker.list=worker1 # make sure this matches the port number you used in your server.xml in # the other machine worker.worker1.port=8009 # this is the IP address or host name of your tomcat machine worker.worker1.host=192.168.1.31 worker.worker1.type=ajp13 # I think that the lbfactor will be optional for you -- I actually have # tomcat running two instances and then use a load balancer worker to # use both. #worker.worker1.lbfactor=1 worker.worker1.cachesize=10 Then you'll need to set up your httpd.conf to use mod_jk and redirect the the appropriate things to your tomcat machine. For example: LoadModule jk_module modules/mod_jk-eapi.so AddModule mod_jk.c JkWorkersFile /etc/tomcat/conf/workers.properties JkLogFile /var/log/mod_jk.log JkLogLevel error # use the worker name that you defined in worker.properties # if you decide to use a load balancing worker, then send things # to the load balacing worker, and it'll figure out which instance # to send it to. JkMount /*.jsp worker1 That should do it. Good luck! :) Cheers, Scott On 05 Sep 2001 11:21:12 +0100, atif umar wrote: hi , guess this is a very dumb question but i am having some problems in running tomcat and apache on different m/c's i guess that i have to make some changes in the 1) server.xml 2) worker.properties and in httpd.conf could any one tell me exactly what changes i have to make this configuration used to work fine when both were on same m/c the configuration of my m/c's are - win98 - apache 1.3.20 - tomcat 3.2.3 pls do reply as i know this being easy might not interest many but still any suggestions will be very helpful to me thanks in advance Do You Yahoo!? Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com Do You Yahoo!? Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com
how to connect tomcat with apache running on different m/c
hi , guess this is a very dumb question but i am having some problems in running tomcat and apache on different m/c's i guess that i have to make some changes in the 1) server.xml 2) worker.properties and in httpd.conf could any one tell me exactly what changes i have to make this configuration used to work fine when both were on same m/c the configuration of my m/c's are - win98 - apache 1.3.20 - tomcat 3.2.3 pls do reply as i know this being easy might not interest many but still any suggestions will be very helpful to me thanks in advance Do You Yahoo!? Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com
how to connect tomcat with apache running on different m/c
hi, guessthis is a very dumb question but me being new to tomcat/apache am unable to sort it out pls tell me what changes do i have to make i guess i'll have to modify server.xml (tomcat) and httpd.conf (apache) but what are the exact changes pls tell i have been able to run this configuration on the same m/c i am using tomcat 3.2.3 and apache 1.3.20 pls help me out thanks in advance Do You Yahoo!? Send a newsletter, share photos files, conduct polls, organize chat events. Visit http://in/ groups.yahoo.com
jk_module loading problem
hi, i am trying to integrate tomcat3.2.3 with Apache2.0=20 for earlier version of Apache i used to Load the jk_module but now when have done so in the httpd.conf file i get an error Syntax error on line 866 of f:/apache2.0/conf/httpd.conf: API module structure `jk_module' in file f:/apache2.0/modules/mod_jk.dll is garbled - perhaps this is not an Apache module DSO? I am unable to find out what this error implies and how to correct it pls Help __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: jk_module loading problem
yes thats is what the problem is i tried to build the mod_jk.dll from the source code as all the mod_jk.dll available in the binaries of different tomcat versions were not working at first it was cribbing about some header cfile called http_conf_globals.h i searched for that file and then put it there but then also i got the following errors can any body tell me where from can i download a mod_jk.dll which will work fine for Apache2.0 or even the source to build from thanks in advance Configuration: modjk - Win32 Debug Compiling... mod_jk.c C:\Windows\Desktop\Nagesh\mod_jk.c(94) : error C2061: syntax error : identifier 'jk_module' C:\Windows\Desktop\Nagesh\mod_jk.c(94) : error C2059: syntax error : ';' C:\Windows\Desktop\Nagesh\mod_jk.c(158) : warning C4013: 'ap_psprintf' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(158) : warning C4047: '=' : 'const char *' differs in levels of indirection from 'int ' C:\Windows\Desktop\Nagesh\mod_jk.c(162) : warning C4013: 'ap_pstrdup' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(162) : warning C4047: 'initializing' : 'char *' differs in levels of indirection from 'int ' C:\Windows\Desktop\Nagesh\mod_jk.c(166) : warning C4013: 'ap_table_set' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(179) : warning C4013: 'ap_table_add' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(183) : warning C4013: 'ap_send_http_header' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(222) : error C2065: 'BUFF' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(222) : error C2065: 'bf' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(222) : error C2039: 'client' : is not a member of 'conn_rec' c:\windows\desktop\nagesh\httpd.h(830) : see declaration of 'conn_rec' C:\Windows\Desktop\Nagesh\mod_jk.c(223) : error C2065: 'ap_size_t' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(223) : error C2146: syntax error : missing ';' before identifier 'w' C:\Windows\Desktop\Nagesh\mod_jk.c(223) : error C2065: 'w' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(223) : error C2146: syntax error : missing ';' before identifier 'l' C:\Windows\Desktop\Nagesh\mod_jk.c(224) : error C2146: syntax error : missing ';' before identifier 'r' C:\Windows\Desktop\Nagesh\mod_jk.c(224) : error C2065: 'r' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(233) : warning C4013: 'ap_bwrite' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(241) : warning C4013: 'ap_bflush' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(267) : warning C4013: 'ap_pvsprintf' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(267) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int ' C:\Windows\Desktop\Nagesh\mod_jk.c(281) : warning C4013: 'ap_table_get' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(309) : error C2198: 'ap_get_remote_host' : too few actual parameters C:\Windows\Desktop\Nagesh\mod_jk.c(316) : warning C4090: '=' : different 'const' qualifiers C:\Windows\Desktop\Nagesh\mod_jk.c(338) : warning C4013: 'ap_table_elts' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(339) : error C2065: 'ap_array_header_t' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(339) : error C2065: 't' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(339) : error C2106: '=' : left operand must be l-value C:\Windows\Desktop\Nagesh\mod_jk.c(340) : error C2223: left of '-nelts' must point to struct/union C:\Windows\Desktop\Nagesh\mod_jk.c(342) : error C2065: 'ap_table_entry_t' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(342) : error C2065: 'elts' : undeclared identifier C:\Windows\Desktop\Nagesh\mod_jk.c(342) : error C2059: syntax error : ')' C:\Windows\Desktop\Nagesh\mod_jk.c(343) : error C2223: left of '-nelts' must point to struct/union C:\Windows\Desktop\Nagesh\mod_jk.c(344) : warning C4013: 'ap_palloc' undefined; assuming extern returning int C:\Windows\Desktop\Nagesh\mod_jk.c(344) : error C2223: left of '-nelts' must point to struct/union C:\Windows\Desktop\Nagesh\mod_jk.c(344) : warning C4047: '=' : 'char ** ' differs in levels of indirection from 'int ' C:\Windows\Desktop\Nagesh\mod_jk.c(345) : error C2223: left of '-nelts' must point to struct/union C:\Windows\Desktop\Nagesh\mod_jk.c(345) : warning C4047: '=' : 'char ** ' differs in levels of indirection from 'int ' C:\Windows\Desktop\Nagesh\mod_jk.c(346) : error C2223: left of '-nelts' must point to struct/union C:\Windows\Desktop\Nagesh\mod_jk.c(347) : error C2109: subscript requires array or pointer type C:\Windows\Desktop\Nagesh\mod_jk.c(347) : error C2224: left of '.key' must have struct/union type C:\Windows\Desktop\Nagesh\mod_jk.c(347) : warning C4047:
Re : classpath problem
hi, perhaps there is some problem in ur path setting i just set my path to null and i begun to get the same error as u have got so what u do is that set path=%path%;C:\jdk1.3\bin and regarding that out of space environment u just increase the memory size to maximum that is 4096 it will work just let me know if u still have any problem my address is [EMAIL PROTECTED] __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/