Aha,

A typo on my side.

changed <IfModule mod_jk.so> into <IfModule mod_jk.c>
Now my error log file displays :

[Wed Jul 16 14:43:40 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_jk/1.2.2 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming normal operations

This looks good. At least to me.

Now I only can't access the requested pages.
If I do www.connecties.com:8080/Friss/ I get the correct index.html page.
If I do www.connecties.com/Friss/ I get a 404 doc. not found.


this is what it says in the error logfile:

[Wed Jul 16 14:44:02 2003] [error] [client 213.17.78.218] File does not exist: /home/sites/home/web/Friss/index.html

that's right because it's not there. It is located in my webapps dir inside tomcat.

Any idea's ?

Kind regards
Werner




On Wednesday, July 16, 2003, at 02:26 PM, Simon Pabst wrote:


Your JK Stuff in httpd.conf looks a bit wrong to me,
and the error means that workers.properties is either not found or not loaded,
try this:



httpd.conf:


#For Apache 1.x additional modules should be normally in apache/libexec dir, not in modules as in your config (unless you got Apache 2 now?)

<IfModule !mod_jk.c>
LoadModule jk_module /etc/httpd/modules/mod_jk.so
#On recent Apache you don't need the following line, but on yours you do propably
AddModule mod_jk.c
</IfModule>


# Dont' think IfModule works with mod_jk.so like in your config, you need mod_jk.c there
<IfModule mod_jk.c>
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /etc/httpd/logs/mod_jk.log
JkLogLevel info
...
</IfModule>



workers.properties:


workers.java_home=/path/to/java
ps=/

worker.list=ajp13
# Use localhost or IP-Address (if Tomcat is on remote machine) for the ajp13 connection host
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13




Also check your httpd.conf with
/path/to/httpd -t /path/to/httpd.conf
(you need the binary httpd for this, not the directory)
(does same as apachectl configtest)

That ioctl error looks bad, if it still persists then,
i would try to build Apache from source too, then mod_jk again


"Tomcat Users List" <[EMAIL PROTECTED]> schrieb am 16.07.03 09:30:29:

Gute Morgen Simon,


I've compiled the mod_jk myself. it was easy.
  But I still have problems.

I will so you what I have.

In httpd.conf :

LoadModule jk_module modules/mod_jk.so

# MY OWN STUFF HERE
<IfModule mod_jk.so>
  AddModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile     /etc/httpd/logs/mod_jk.log
  JkLogLevel    info
  JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
  JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
  JkRequestLogFormat     "%w %V %T"
</IfModule>

In workers.properties :

#Define 1 real worker using ajp13

worker.list=ajp13

#Set properties for worker1(ajp13)

worker.ajp13.type=ajp13
worker.ajp13.host=www.connecties.com
worker.ajp13.port=8009


In server.xml :


on a line after <Server portt="8005" ...... >

<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/etc/httpd/modules/mod_jk.so" />


on a line just after <Host name=www.connecties.com .....>


<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" forwardAll="false"  modJk="/etc/httpd/modules/mod_jk.so"
/>

And the last part of my server.xml is :

  <!-- Define an Apache-Connector Service -->
<!--
   <Service name="Tomcat-Apache">

     <Connector
className="org.apache.catalina.connector.warp.WarpConnector"
      port="8008" minProcessors="5" maxProcessors="75"
      enableLookups="true" appBase="webapps"
      acceptCount="10" debug="0"/>

     <Engine className="org.apache.catalina.connector.warp.WarpEngine"
      name="Apache" debug="0">

       <Logger className="org.apache.catalina.logger.FileLogger"
               prefix="apache_log." suffix=".txt"
               timestamp="true"/>

<Realm className="org.apache.catalina.realm.MemoryRealm" />

        <Host name="www.connecties.com" >
            <Context path=""
                  docBase="/home/sites/home/web"
                  crossContext="true"
                  debug="0"
                  reloadable="false"
                  trusted="false" >
            </Context>
         </Host>

</Engine>

</Service>


The output of the apache error log is :


[Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device:
Error while opening the workers, jk will not work

[Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device:
Error while opening the workers, jk will not work

[Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix)
mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1
FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming no
rmal operations
[Wed Jul 16 09:16:29 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)

This will probably say enough (for some). It tells me that jk will not
work. But I don't understand why.


Anybody ?


On Tuesday, July 15, 2003, at 11:29 PM, Simon Pabst wrote:

Seems you're not the only one with that problem on
Apache/mod_jk/Tomcat on a cobalt machine:
http://www.zeffie.com/cobalt/developers/0208/162839.html

Best is propably if you (or they if you don't have permissions to do
that) compile mod_jk on that machine
and don't use a downloaded binary.

How to do that:
http://list.cobalt.com/pipermail/cobalt-developers/2003-March/
038938.html

Good luck :-)


At 21:03 15.07.2003 +0200, you wrote:
HI,

I have hired a sun microsystems cobalt machine.
It comes pre configured with all kinds of internet software and a
special edition of redhat.
It is stripped on all sides to give maximum speed and maximum disk
space.

One of the settings is that you can't do anything with apache apart
from restarting it with the httpd command.
Or restarting the complete box..........

By now I'm trying to figure out if it is possible to have Apache2 on
it. But I am depending on the goodwill of my provider for it.

Some how I think that having Apache 2 solves some of my problems.

We'll see.


On Tuesday, July 15, 2003, at 06:58 PM, Simon Pabst wrote:


hmm ok,

the Apache you are using, did it come in a package or did you built
from source?
Apache 1.3.20 should have apachectl in the same directory as httpd
(i.e. /path/to/apache_1.3.20/bin/apachectl)


At 18:47 15.07.2003 +0200, you wrote:
Yes I tried to use it but to no avail.

unfortunately.

Regards
Werner van Mook


On Tuesday, July 15, 2003, at 06:38 PM, Simon Pabst wrote:


did you even try my suggestion?
http://www.mail-archive.com/[EMAIL PROTECTED]/
msg97619.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to