Other than path names, the major differences between your set up and mine is that you use SSL, and I don't, and you have a lot more modules loaded than I do (in addition to mod_jk). But I don't see those differences as having anything to do with why yours works and mine doesn't. For one thing, this installation of Apache is on my development workstation, and I just installed it to test the tomcat connection. So, it doesn't need to be a fully functional web server. At least, not yet.
Also, I removed the comments from my conf file so I can find things :)
I have tried it both ways---with an include statement pointing to mod_jk.conf in tomcat/conf/auto, and with statements inside httpd.conf. Same results.
I have also experimented with a variety of permissions on both files and directories.
My configuration files are attached.
Thanks.
Jerry
Denise Mangano wrote:
Jerry -
My config is now working with the files that I had posted. Did you notice
any major differences between those and yours?
I had also gotten this same Apache error message at one point as well. But
it just sort of "went away" when I put the JkMount statements right into
httpd.conf and made a different workers.properties file than the one that
was posted on the HOW-TO. Here are the contents of my workers.properties
file. With this properties file I use worker1 instead of ajp13 in the
JkMount statements: (For example JkMount /examples/* worker1)
worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost
worker.worker1.port=8009
On a side note, my workers.properties has 644 permissions (-rw-r--r--).
Would you post your files and error logs? I am sure someone in here would
take a look... I can also look just to see any major differences against
mine..
Denise
-----Original Message-----
From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 4:31 PM
To: Tomcat Users List
Subject: Re: mod_jk---still trying, getting closer
Yes, good idea about the symbolic links. I have done now so---sym links for both apache and tomcat.
I have also moved all mod_jk configs into httpd.conf.
And I'm still getting the same results---catalina.out says Jk is okay, apache works, tomcat works (with servlets) but the apache error_log says "error while opening the workers, jk will not work." And sure enough, no servlets through Apache.
Jerry
Milt Epstein wrote:
On Tue, 24 Dec 2002, Jerry Ford wrote:<mailto:[EMAIL PROTECTED]>
Ooops, sorry, I was using shorthand in showing the directory gtree; actual name of the directory is the full jakarta-tomcat-4.1.12-LE-jdk14; same for apache, it's acutally apache_1.3.27 (whew, guess I need to change those anyway, that's a lot of typing!!! :) I just untarred them and kept the default names.FWIW, you still might want to create a symbolic link tomcat (under
webserver) that points to jakarta-tomcat-4.1.12-LE-jdk14. This might not fix your problem here, but it could save you some hassle if/when you upgrade to new versions.
PELOQUIN,JEFFREY (HP-Boise,ex1) wrote:
Jerry,
The confusion as to the name arises from your printour of your directory structure
drwxrwxr-x...usr/there is no jakarta-tomcat-4.12.12-LE-jdk14 mentioned which implies there is a mismatch of names
drwxrwxr-x......local/
drwxrwxr-x.........webserver/
drwxrwxr-x............apache/
drwxrwxr-x............tomcat/ drwxrwxr-x...............conf/
drwxrwxr-x..................jk/
-rw-rw-r-x.....................workers.properties
-----Original Message-----
From: Jerry Ford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 12:49 PM
To: Tomcat Users List
Subject: Re: mod_jk---still trying, getting closer
Justin:
My bad. I didn't copy and paste, I retyped the JkLogFile reference. In the config, it correctly says mod_jk.log.
I don't understand what would be accomplished by changing "jakarta-tomcat-4.12.12-LE-jdk14" to simply "tomcat". The name of the directory is the full name, as it was created when I untarred Tomcat. If I change the reference in the configs to "tomcat" and change the name of the directory to "tomcat" how is that any different?
As for auto-conf, you are right. I think I will do as you suggest and move everything into httpd.
Jerry
Justin L. Spies wrote:
Jerry,<mailto:[EMAIL PROTECTED]>
I've never used the auto/mod_jk stuff, so I can't comment on that. What is weird to me though, is the line that reads: JkLogFile
"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pro
perties"
That leads me to believe that mod_jk is configured to overwrite the workers.properties file with the mod_jk log. I would have expected to see the lines: JkWorkersFile
"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pro
perties"
JKLogFile
"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/mod_jk.log"
Changing those as suggested by Jeffrey (I agree with him on these changes), they would like this: JkWorkersFile
"/usr/local/webserver/apache/tomcat/conf/jk/workers.properties"
JKLogFile "/usr/local/webserver/apache/tomcat/conf/jk/mod_jk.log"
If I were in your shoes, I think that I would try to get mod_jk working without the auto configuration. Once I had that working, I would then focus on the autoconfig. I don't know about you, but in my experience, when I try to get everything working in the first run, I usually miss something and have to take a step back and start with the basics. That's just me though.
Sincerely,
Pantek Incorporated
Justin L. Spies
URI: http://www.pantek.com
Ph 440.519.1802
Fax 440.248.5274
Cell 440.336.3317
-----Original Message-----
From: Jerry Ford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 12:42 PM
To: tomcat-user
Subject: mod_jk---still trying, getting closer
Thanks to some examples of working configs provided by several people here, I am making progress in getting Apache 1.3.27 and Tomcat 4.1.12 to
work together through mod_jk, but it still isn't working yet.
Tomcat and Apache run fine independently:
http://localhost opens Apache's index.html http://localhost:8080 opens Tomcat's index and servlet examples work fine. http://localhost/examples/servlets opens the servlets index, but servlets themselves don't work (generate an Apache port 80 Internal Server error)
I see in the catalina.out logfile that Tomcat is now able to start Jk (this is new for me---one key element was specifying an absolute path to
mod_jk.so):
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
Dec 24, 2002 9:13:48 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 24, 2002 9:13:48 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on tcp port 8009
Dec 24, 2002 9:13:48 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/179
config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.prop
erties
But the Apache error_log says Apache can't open the workers.properties
file:
[Tue Dec 24 09:13:59 2002] [error] (2)No such file or directory: Error while opening the workers, jk will not work
[Tue Dec 24 09:13:59 2002] [error] (2)No such file or directory: Error while opening the workers, jk will not work
[Tue Dec 24 09:13:59 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Tue Dec 24 09:13:59 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)
Worker file is identified as follows, in the auto/mod_jk.conf file:
JkLogFile "/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers
.pro
perties"
I know some have recommended that the contents of mod_jk.conf be hardwired into httpd.conf, but auto/mod_jk.conf seems to be working fine
in every other respect, so I am inclined to continue using it. Still, I did put the log file directive in httpd.conf just to see of it would make a difference. It did not.
The directory tree is set up as follows:
drwxrwxr-x...usr/
drwxrwxr-x......local/
drwxrwxr-x.........webserver/
drwxrwxr-x............apache/
drwxrwxr-x............tomcat/ drwxrwxr-x...............conf/
drwxrwxr-x..................jk/
-rw-rw-r-x.....................workers.properties
Ownership of the apache tree was changed from root:root to jford:jford; so I changed it back to root:root and tried it, and I still get the errors (so I changed it back to jford:jford).
Any suggestions?
Thanks.
Jerry
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail:
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]>Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
--
To unsubscribe, e-mail:
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]>
## ## httpd.conf -- Apache HTTP server configuration file ## ServerType standalone ServerRoot "/usr/local/webserver/apache" PidFile /usr/local/webserver/apache/logs/httpd.pid ScoreBoardFile /usr/local/webserver/apache/logs/httpd.scoreboard Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 0
LoadModule userdir_module libexec/mod_userdir.so LoadModule jk_module libexec/mod_jk.so # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO] ClearModuleList AddModule mod_env.c AddModule mod_log_config.c AddModule mod_mime.c AddModule mod_negotiation.c AddModule mod_status.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c AddModule mod_userdir.c AddModule mod_alias.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_jk.c ### Section 2: 'Main' server configuration Port 80 User nobody Group nobody ServerAdmin [EMAIL PROTECTED] ServerName gizmo.routescience.com DocumentRoot "/usr/local/webserver/apache/htdocs" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "/usr/local/webserver/apache/htdocs"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir public_html </IfModule> <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory> <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml </IfModule> AccessFileName .htaccess <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> UseCanonicalName On <IfModule mod_mime.c> TypesConfig /usr/local/webserver/apache/conf/mime.types </IfModule> DefaultType text/plain <IfModule mod_mime_magic.c> MIMEMagicFile /usr/local/webserver/apache/conf/magic </IfModule> HostnameLookups Off ErrorLog /usr/local/webserver/apache/logs/error_log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /usr/local/webserver/apache/logs/access_log common ServerSignature On <IfModule mod_alias.c> Alias /icons/ "/usr/local/webserver/apache/icons/" <Directory "/usr/local/webserver/apache/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Alias /manual/ "/usr/local/webserver/apache/htdocs/manual/" <Directory "/usr/local/webserver/apache/htdocs/manual"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ "/usr/local/webserver/apache/cgi-bin/" <Directory "/usr/local/webserver/apache/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_autoindex.c> IndexOptions FancyIndexing AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif ReadmeName README HeaderName HEADER IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t </IfModule> <IfModule mod_mime.c> AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .ee AddLanguage fr .fr AddLanguage de .de AddLanguage el .el AddLanguage he .he AddCharset ISO-8859-8 .iso8859-8 AddLanguage it .it AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage kr .kr AddCharset ISO-2022-KR .iso-kr AddLanguage nn .nn AddLanguage no .no AddLanguage pl .po AddCharset ISO-8859-2 .iso-pl AddLanguage pt .pt AddLanguage pt-br .pt-br AddLanguage ltz .lu AddLanguage ca .ca AddLanguage es .es AddLanguage sv .sv AddLanguage cz .cz AddLanguage ru .ru AddLanguage zh-tw .tw AddLanguage tw .tw AddCharset Big5 .Big5 .big5 AddCharset WINDOWS-1251 .cp-1251 AddCharset CP866 .cp866 AddCharset ISO-8859-5 .iso-ru AddCharset KOI8-R .koi8-r AddCharset UCS-2 .ucs2 AddCharset UCS-4 .ucs4 AddCharset UTF-8 .utf8 <IfModule mod_negotiation.c> LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw </IfModule> AddType application/x-tar .tgz AddType image/x-icon .ico </IfModule> <IfModule mod_setenvif.c> BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 </IfModule> JkWorkersFile "/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.properties" JkLogFile "/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/logs/mod_jk.log" JkLogLevel debug <VirtualHost localhost> ServerName localhost #################### localhost:/manager #################### # Static files Alias /manager "/usr/local/webserver/tomcat/webapps/../server/webapps/manager" <Directory "/usr/local/webserver/tomcat/webapps/../server/webapps/manager"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/manager/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/manager/META-INF/*"> AllowOverride None deny from all </Location> JkMount /manager/* ajp.13 JkMount /manager/html/* ajp.13 JkMount /manager/*.jsp ajp.13 #################### localhost:/examples #################### # Static files Alias /examples "/usr/local/webserver/tomcat/webapps/examples" <Directory "/usr/local/webserver/tomcat/webapps/examples"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/examples/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/examples/META-INF/*"> AllowOverride None deny from all </Location> JkMount /examples/jsp/security/protected/j_security_check ajp.13 JkMount /examples/CompressionTest ajp.13 JkMount /examples/SendMailServlet ajp.13 JkMount /examples/servletToJsp ajp.13 JkMount /examples/snoop ajp.13 JkMount /examples/*.jsp ajp.13 JkMount /examples/servlet/* ajp.13 #################### localhost:/j_tools #################### # Static files Alias /j_tools "/usr/local/webserver/tomcat/webapps/j_tools" <Directory "/usr/local/webserver/tomcat/webapps/j_tools"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/j_tools/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/j_tools/META-INF/*"> AllowOverride None deny from all </Location> JkMount /j_tools/servlet/HelloWorld ajp.13 JkMount /j_tools/*.jsp ajp.13 #################### localhost:/tomcat-docs #################### # Static files Alias /tomcat-docs "/usr/local/webserver/tomcat/webapps/tomcat-docs" <Directory "/usr/local/webserver/tomcat/webapps/tomcat-docs"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/tomcat-docs/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/tomcat-docs/META-INF/*"> AllowOverride None deny from all </Location> JkMount /tomcat-docs/*.jsp ajp.13 #################### localhost:/webdav #################### # Static files Alias /webdav "/usr/local/webserver/tomcat/webapps/webdav" <Directory "/usr/local/webserver/tomcat/webapps/webdav"> Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/webdav/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/webdav/META-INF/*"> AllowOverride None deny from all </Location> JkMount /webdav/*.jsp ajp.13 #################### localhost:/admin #################### # Static files Alias /admin "/usr/local/webserver/tomcat/webapps/../server/webapps/admin" <Directory "/usr/local/webserver/tomcat/webapps/../server/webapps/admin"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/admin/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/admin/META-INF/*"> AllowOverride None deny from all </Location> JkMount /admin/j_security_check ajp.13 JkMount /admin/*.do ajp.13 JkMount /admin/*.jsp ajp.13 </VirtualHost>
ps=/ workers.tomcat_home="/usr/local/webserver/tomcat" workers.java_home="/usr/java/j2sdk1.4.0" worker.list=ajp.13 worker.ajp.13.port=8009 worker.ajp.13.host=localhost worker.ajp.13.type=ajp.13
<Server port="8005" shutdown="SHUTDOWN" debug="0"> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk="/usr/local/webserver/apache/libexec/mod_jk.so" jkDebug="debug" workersConfig="/usr/local/webserver/tomcat/conf/jk/workers.properties" jkLog="/usr/local/webserver/tomcat/logs/mod_jk.log"/> <Service name="Tomcat-Standalone"> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000" useURIValidationHack="false" /> <!-- <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009" minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/> --> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debut="0" connectionTimeout="0" useURIValidationHack="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> <Engine name="Standalone" defaultHost="localhost" debug="0"> <Valve className="org.apache.catalina.valves.RequestDumperValve"/> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.MemoryRealm" /> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" forwardAll="false"/> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common"/> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/> <Context path="" docBase="ROOT" debug="0"/> </Host> </Engine> </Service> </Server>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>