Configuring Apache 2.0.43 and Tomcat 4.1 on Windows 2000
I'm having some problems making Apache call Tomcat for it's servlet calls, and was hoping someone could help me: My environment: 1) Apache HTTPD 2.0.43 2) Tomcat 4.1 3) mod_jk.dll has been copied into the C:\Apache\Apache2\modules\ directory 4) httpd.conf, (in C:\Apache\Apache2\conf,) has these lines appended to it: # Load mod_jk module LoadModule jk_module modules/mod_jk.dll # Declare the module for IfModule directive AddModule mod_jk.c # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel info # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T # Send everything for context /examples to worker named worker1 (ajp13) JkMount /examples/* worker1 5) workers.properties, (in C:\Apache\Apache2\conf,) contains: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=locahost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 THE PROBLEM: When attempting to run apache, after starting up Tomcat first, I get the error message: C:\Apache\Apache2\binapache Syntax error on line 988 of C:/Apache/Apache2/conf/httpd.conf: Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration What's wrong here? Line 988 maps to the AddModule mod_jk.c command. Have I failed to edit this line properly? Do I also need to make changes to Tomcat's .conf files to enable apache to call it as a child process/thread? What am I missing? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuring Apache 2.0.43 and Tomcat 4.1 on Windows 2000
There is no AddModule in Apache2. All you have to do is LoadModule. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuring Apache 2.0.43 and Tomcat 4.1 on Windows 2000
First of all, Josh, thanks -- That at least got Apache started. The problem now is that when I attempt to use apache as the go-between for serving up servlets and jsp's from tomcat it still can't seem to instantiate a worker thread: Calling the URL: http://localhost:80/examples/servlet/HelloWorldExample results in a 500 Internal Server Error Page, and the mod_jk log reports: [Mon Dec 02 14:03:06 2002] [jk_ajp_common.c (1245)]: ERROR: can't resolve tomcat address locahost [Mon Dec 02 14:03:06 2002] [jk_ajp_common.c (1247)]: ERROR: invalid host and port locahost 8009 [Mon Dec 02 14:03:06 2002] [jk_worker.c (174)]: wc_create_worker validate failed for worker1 [Mon Dec 02 14:03:06 2002] [jk_worker.c (244)]: build_worker_map failed to create workerworker1 Is there anything I need to do to the Tomcat installation to instruct it to start listening at port 8009? My environment is available on previous threads. -Original Message- From: Fenlason, Josh [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 1:52 PM To: Tomcat Users List Subject: RE: Configuring Apache 2.0.43 and Tomcat 4.1 on Windows 2000 There is no AddModule in Apache2. All you have to do is LoadModule. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuring Apache 2.0.43 and Tomcat 4.1 on Windows 2000
Replace locahost with localhost. John -Original Message- From: Johnson, Garrett [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 2:13 PM To: 'Tomcat Users List' Subject: RE: Configuring Apache 2.0.43 and Tomcat 4.1 on Windows 2000 First of all, Josh, thanks -- That at least got Apache started. The problem now is that when I attempt to use apache as the go-between for serving up servlets and jsp's from tomcat it still can't seem to instantiate a worker thread: Calling the URL: http://localhost:80/examples/servlet/HelloWorldExample results in a 500 Internal Server Error Page, and the mod_jk log reports: [Mon Dec 02 14:03:06 2002] [jk_ajp_common.c (1245)]: ERROR: can't resolve tomcat address locahost [Mon Dec 02 14:03:06 2002] [jk_ajp_common.c (1247)]: ERROR: invalid host and port locahost 8009 [Mon Dec 02 14:03:06 2002] [jk_worker.c (174)]: wc_create_worker validate failed for worker1 [Mon Dec 02 14:03:06 2002] [jk_worker.c (244)]: build_worker_map failed to create workerworker1 Is there anything I need to do to the Tomcat installation to instruct it to start listening at port 8009? My environment is available on previous threads. -Original Message- From: Fenlason, Josh [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 1:52 PM To: Tomcat Users List Subject: RE: Configuring Apache 2.0.43 and Tomcat 4.1 on Windows 2000 There is no AddModule in Apache2. All you have to do is LoadModule. -- 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]