You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by stakys <st...@punktas.lt> on 2003/05/21 17:05:09 UTC

mod_jk2 error

When i set JkMount */*.jsp ajp13 or /test/* ajp13 or smth i got this error
starting apache:

Invalid command 'JkMount', perhaps mis-spelled or defined by a module not
included in the server configuration

What's wrong? How to solve this?


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 error

Posted by John Turner <to...@johnturner.com>.
Have you looked at any of the docs?  Did you look at the FAQ link I 
included?

John

On Wed, 21 May 2003 19:14:13 +0300, stakys <st...@punktas.lt> wrote:

> Hmmz ok then... So how must look the command alternative for mod_jk2 not 
> for
> mod_jk like here:
> JkMount /examples ajp13
> JkMount /examples/* ajp13
> And how'ill mount tomcat webapp for my virtual host? Without JkMount?
> ----- Original Message -----
> From: "John Turner" <to...@johnturner.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Wednesday, May 21, 2003 7:03 PM
> Subject: Re: mod_jk2 error
>
>
>>
>> OK, you can't do that.
>>
>> You're loading mod_jk2.so, but then you are telling Apache to "JkMount".
>> JkMount only works with mod_jk.so.
>>
>> Either delete JkMount and substitute the appropriate mod_jk2 
>> configuration
>> directives (like JkUriSet), or unload mod_jk2.so and load mod_jk.so.
>> You've got half of each, you need to pick one.
>>
>> http://tomcatfaq.sourceforge.net/apache.html
>>
>> John
>>
>> On Wed, 21 May 2003 18:46:48 +0300, stakys <st...@punktas.lt> wrote:
>>
>> > I got this:
>> > LoadModule jk2_module libexec/apache2/mod_jk2.so
>> > <IfModule mod_jk2.c>
>> > JkSet config:file /usr/local/etc/apache2/workers2.properties
>> > </IfModule>
>> >
>> > And then this:
>> >
>> > <VirtualHost 193.219.5.10>
>> > ServerName judo.lt
>> > ServerAlias www
>> > ServerAdmin stakys@punktas.lt
>> > DocumentRoot /isp/domains/judo.lt/hosts/www/webapps/ROOT
>> > ErrorLog /isp/domains/judo.lt/hosts/www/logs/error.log
>> > CustomLog /isp/domains/judo.lt/hosts/www/logs/access.log common
>> > JkMount /examples ajp13
>> > JkMount /examples/* ajp13
>> > Alias /kdk "/isp/domains/judo.lt/hosts/www/htdocs/kdk"
>> >
>> > <Directory "/isp/domains/judo.lt/hosts/www/htdocs/kdk">
>> > Options Indexes MultiViews
>> > AllowOverride None
>> > Order allow,deny
>> > Allow from all
>> > </Directory>
>> >
>> > </VirtualHost>
>> >
>> > And in my workers2.properties i got this:
>> >
>> > [logger.apache2]
>> > level=DEBUG
>> >
>> > [config:]
>> > file=${serverRoot}/etc/apache2/workers2.properties
>> > debug=0
>> > debugEnv=0
>> >
>> > [shm]
>> > file=/var/log/shm.file
>> > size=1048576
>> >
>> > # Example socket channel, override port and host.
>> > [channel.socket:localhost:8009]
>> > port=8009
>> > host=judo.lt
>> >
>> > # define the worker
>> > [ajp13:localhost:8009]
>> > channel=channel.socket:localhost:8009
>> >
>> > # Uri mapping
>> > [uri:/examples/*.jsp]
>> > worker=ajp13:localhost:8009
>> >
>> > jk2.properties looks like this:
>> > handler.list=channelSocket,request
>> > channelSocket.port=8009
>> > channelSocket.address=judo.lt
>> > channelUnix.file=${jkHome}/work/jk2.socket
>> > shm.file=${jkHome}/work/jk2.shm
>> > channelJni.disabled = 0
>> > apr.jniModeSo=/usr/local/libexec/apache2/mod_jk2.so
>> > apr.jniModeSo=inprocess
>> >
>> > And i got server.xml like in the how-to from here:
>> > http://jakarta.apache.org/tomcat/tomcat-4.1- 
>> doc/jk2/jk2/vhosthowto.html
>> > ----- Original Message -----
>> > From: "Matt Koss" <m....@open.ac.uk>
>> > To: "Tomcat Users List" <to...@jakarta.apache.org>; "stakys"
>> > <st...@punktas.lt>
>> > Sent: Wednesday, May 21, 2003 6:28 PM
>> > Subject: Re: mod_jk2 error
>> >
>> >
>> >>
>> >> You have to add "ajp13" after each URL:
>> >>
>> >> JkMount /examples ajp13
>> >> JkMount /examples/* ajp13
>> >>
>> >> Are you sure that you have the following somewhere above those lines 
>> ?
> :
>> >>
>> >> LoadModule jk_module path-to-your-file
>> >> JkWorkersFile path-to-your-file
>> >>
>> >> etc.
>> >>
>> >>
>> >> On Wednesday 21 May 2003 4:23 pm, stakys wrote:
>> >> > Didn't help i made in my virtualhost smth like this
>> >> > JkMount /examples ajp13
>> >> > JkMount /examples/*
>> >> > But i got the same error when starting:
>> >> >
>> >> > Syntax error on line 978 of /usr/local/etc/apache2/httpd.conf:
>> >> > Invalid command 'JkMount', perhaps mis-spelled or defined by a 
>> module
>> > not
>> >> > included in the server configuration
>> >> >
>> >> > ----- Original Message -----
>> >> > From: "Matt Koss" <m....@open.ac.uk>
>> >> > To: "Tomcat Users List" <to...@jakarta.apache.org>
>> >> > Sent: Wednesday, May 21, 2003 6:11 PM
>> >> > Subject: Re: mod_jk2 error
>> >> >
>> >> > > On Wednesday 21 May 2003 4:05 pm, stakys wrote:
>> >> > > > When i set JkMount */*.jsp ajp13 or /test/* ajp13 or smth i got
>> >> this
>> >> >
>> >> > error
>> >> >
>> >> > > > starting apache:
>> >> > > >
>> >> > > > Invalid command 'JkMount', perhaps mis-spelled or defined by a
>> > module
>> >> >
>> >> > not
>> >> >
>> >> > > > included in the server configuration
>> >> > > >
>> >> > > > What's wrong? How to solve this?
>> >> > >
>> >> > > Remove * from the beginning of the URL Like this :
>> >> > >
>> >> > > JkMount /*.jsp ajp13
>> >> > > JkMount /test/* ajp13
>> >> > >
>> >> > >
>> >> ---------------------------------------------------------------------
>> >> > > > To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
>> >> > > > For additional commands, e-mail: tomcat-user-
>> >> help@jakarta.apache.org
>> >> > >
>> >> > > --
>> >> > > Matt Koss
>> >> > > Knowledge Media Institute
>> >> > > Open University
>> >> > > tel: +44 1908 659399
>> >> > >
>> >> >
>> ---------------------------------------------------------------------
>> >>
>> >>
>> >> > > To unsubscribe, e-mail: tomcat-user- 
>> unsubscribe@jakarta.apache.org
>> >> > > For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>> >> >
>> >> > -------------------------------------------------------------------- 
>>
>>
>> -
>> >> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> >> > For additional commands, e-mail: tomcat-user- 
>> help@jakarta.apache.org
>> >>
>> >> --
>> >> Matt Koss
>> >> Knowledge Media Institute
>> >> Open University
>> >> tel: +44 1908 659399
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>> >
>> >
>>
>>
>>
>> --
>> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 error

Posted by stakys <st...@punktas.lt>.
Hmmz ok then... So how must look the command alternative for mod_jk2 not for
mod_jk like here:
 JkMount /examples ajp13
JkMount /examples/* ajp13
And how'ill mount tomcat webapp for my virtual host? Without JkMount?
----- Original Message -----
From: "John Turner" <to...@johnturner.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, May 21, 2003 7:03 PM
Subject: Re: mod_jk2 error


>
> OK, you can't do that.
>
> You're loading mod_jk2.so, but then you are telling Apache to "JkMount".
> JkMount only works with mod_jk.so.
>
> Either delete JkMount and substitute the appropriate mod_jk2 configuration
> directives (like JkUriSet), or unload mod_jk2.so and load mod_jk.so.
> You've got half of each, you need to pick one.
>
> http://tomcatfaq.sourceforge.net/apache.html
>
> John
>
> On Wed, 21 May 2003 18:46:48 +0300, stakys <st...@punktas.lt> wrote:
>
> > I got this:
> > LoadModule jk2_module libexec/apache2/mod_jk2.so
> > <IfModule mod_jk2.c>
> > JkSet config:file /usr/local/etc/apache2/workers2.properties
> > </IfModule>
> >
> > And then this:
> >
> > <VirtualHost 193.219.5.10>
> > ServerName judo.lt
> > ServerAlias www
> > ServerAdmin stakys@punktas.lt
> > DocumentRoot /isp/domains/judo.lt/hosts/www/webapps/ROOT
> > ErrorLog /isp/domains/judo.lt/hosts/www/logs/error.log
> > CustomLog /isp/domains/judo.lt/hosts/www/logs/access.log common
> > JkMount /examples ajp13
> > JkMount /examples/* ajp13
> > Alias /kdk "/isp/domains/judo.lt/hosts/www/htdocs/kdk"
> >
> > <Directory "/isp/domains/judo.lt/hosts/www/htdocs/kdk">
> > Options Indexes MultiViews
> > AllowOverride None
> > Order allow,deny
> > Allow from all
> > </Directory>
> >
> > </VirtualHost>
> >
> > And in my workers2.properties i got this:
> >
> > [logger.apache2]
> > level=DEBUG
> >
> > [config:]
> > file=${serverRoot}/etc/apache2/workers2.properties
> > debug=0
> > debugEnv=0
> >
> > [shm]
> > file=/var/log/shm.file
> > size=1048576
> >
> > # Example socket channel, override port and host.
> > [channel.socket:localhost:8009]
> > port=8009
> > host=judo.lt
> >
> > # define the worker
> > [ajp13:localhost:8009]
> > channel=channel.socket:localhost:8009
> >
> > # Uri mapping
> > [uri:/examples/*.jsp]
> > worker=ajp13:localhost:8009
> >
> > jk2.properties looks like this:
> > handler.list=channelSocket,request
> > channelSocket.port=8009
> > channelSocket.address=judo.lt
> > channelUnix.file=${jkHome}/work/jk2.socket
> > shm.file=${jkHome}/work/jk2.shm
> > channelJni.disabled = 0
> > apr.jniModeSo=/usr/local/libexec/apache2/mod_jk2.so
> > apr.jniModeSo=inprocess
> >
> > And i got server.xml like in the how-to from here:
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
> > ----- Original Message -----
> > From: "Matt Koss" <m....@open.ac.uk>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>; "stakys"
> > <st...@punktas.lt>
> > Sent: Wednesday, May 21, 2003 6:28 PM
> > Subject: Re: mod_jk2 error
> >
> >
> >>
> >> You have to add "ajp13" after each URL:
> >>
> >> JkMount /examples ajp13
> >> JkMount /examples/* ajp13
> >>
> >> Are you sure that you have the following somewhere above those lines ?
:
> >>
> >> LoadModule jk_module path-to-your-file
> >> JkWorkersFile path-to-your-file
> >>
> >> etc.
> >>
> >>
> >> On Wednesday 21 May 2003 4:23 pm, stakys wrote:
> >> > Didn't help i made in my virtualhost smth like this
> >> > JkMount /examples ajp13
> >> > JkMount /examples/*
> >> > But i got the same error when starting:
> >> >
> >> > Syntax error on line 978 of /usr/local/etc/apache2/httpd.conf:
> >> > Invalid command 'JkMount', perhaps mis-spelled or defined by a module
> > not
> >> > included in the server configuration
> >> >
> >> > ----- Original Message -----
> >> > From: "Matt Koss" <m....@open.ac.uk>
> >> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> >> > Sent: Wednesday, May 21, 2003 6:11 PM
> >> > Subject: Re: mod_jk2 error
> >> >
> >> > > On Wednesday 21 May 2003 4:05 pm, stakys wrote:
> >> > > > When i set JkMount */*.jsp ajp13 or /test/* ajp13 or smth i got
> >> this
> >> >
> >> > error
> >> >
> >> > > > starting apache:
> >> > > >
> >> > > > Invalid command 'JkMount', perhaps mis-spelled or defined by a
> > module
> >> >
> >> > not
> >> >
> >> > > > included in the server configuration
> >> > > >
> >> > > > What's wrong? How to solve this?
> >> > >
> >> > > Remove * from the beginning of the URL Like this :
> >> > >
> >> > > JkMount /*.jsp ajp13
> >> > > JkMount /test/* ajp13
> >> > >
> >> > >
> >> ---------------------------------------------------------------------
> >> > > > To unsubscribe, e-mail:
tomcat-user-unsubscribe@jakarta.apache.org
> >> > > > For additional commands, e-mail: tomcat-user-
> >> help@jakarta.apache.org
> >> > >
> >> > > --
> >> > > Matt Koss
> >> > > Knowledge Media Institute
> >> > > Open University
> >> > > tel: +44 1908 659399
> >> > >
> >> >
> ---------------------------------------------------------------------
> >>
> >>
> >> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> > > For additional commands, e-mail:
tomcat-user-help@jakarta.apache.org
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >> --
> >> Matt Koss
> >> Knowledge Media Institute
> >> Open University
> >> tel: +44 1908 659399
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 error

Posted by John Turner <to...@johnturner.com>.
OK, you can't do that.

You're loading mod_jk2.so, but then you are telling Apache to "JkMount".  
JkMount only works with mod_jk.so.

Either delete JkMount and substitute the appropriate mod_jk2 configuration 
directives (like JkUriSet), or unload mod_jk2.so and load mod_jk.so.  
You've got half of each, you need to pick one.

http://tomcatfaq.sourceforge.net/apache.html

John

On Wed, 21 May 2003 18:46:48 +0300, stakys <st...@punktas.lt> wrote:

> I got this:
> LoadModule jk2_module libexec/apache2/mod_jk2.so
> <IfModule mod_jk2.c>
> JkSet config:file /usr/local/etc/apache2/workers2.properties
> </IfModule>
>
> And then this:
>
> <VirtualHost 193.219.5.10>
> ServerName judo.lt
> ServerAlias www
> ServerAdmin stakys@punktas.lt
> DocumentRoot /isp/domains/judo.lt/hosts/www/webapps/ROOT
> ErrorLog /isp/domains/judo.lt/hosts/www/logs/error.log
> CustomLog /isp/domains/judo.lt/hosts/www/logs/access.log common
> JkMount /examples ajp13
> JkMount /examples/* ajp13
> Alias /kdk "/isp/domains/judo.lt/hosts/www/htdocs/kdk"
>
> <Directory "/isp/domains/judo.lt/hosts/www/htdocs/kdk">
> Options Indexes MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> </VirtualHost>
>
> And in my workers2.properties i got this:
>
> [logger.apache2]
> level=DEBUG
>
> [config:]
> file=${serverRoot}/etc/apache2/workers2.properties
> debug=0
> debugEnv=0
>
> [shm]
> file=/var/log/shm.file
> size=1048576
>
> # Example socket channel, override port and host.
> [channel.socket:localhost:8009]
> port=8009
> host=judo.lt
>
> # define the worker
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
>
> # Uri mapping
> [uri:/examples/*.jsp]
> worker=ajp13:localhost:8009
>
> jk2.properties looks like this:
> handler.list=channelSocket,request
> channelSocket.port=8009
> channelSocket.address=judo.lt
> channelUnix.file=${jkHome}/work/jk2.socket
> shm.file=${jkHome}/work/jk2.shm
> channelJni.disabled = 0
> apr.jniModeSo=/usr/local/libexec/apache2/mod_jk2.so
> apr.jniModeSo=inprocess
>
> And i got server.xml like in the how-to from here:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
> ----- Original Message -----
> From: "Matt Koss" <m....@open.ac.uk>
> To: "Tomcat Users List" <to...@jakarta.apache.org>; "stakys"
> <st...@punktas.lt>
> Sent: Wednesday, May 21, 2003 6:28 PM
> Subject: Re: mod_jk2 error
>
>
>>
>> You have to add "ajp13" after each URL:
>>
>> JkMount /examples ajp13
>> JkMount /examples/* ajp13
>>
>> Are you sure that you have the following somewhere above those lines ? :
>>
>> LoadModule jk_module path-to-your-file
>> JkWorkersFile path-to-your-file
>>
>> etc.
>>
>>
>> On Wednesday 21 May 2003 4:23 pm, stakys wrote:
>> > Didn't help i made in my virtualhost smth like this
>> > JkMount /examples ajp13
>> > JkMount /examples/*
>> > But i got the same error when starting:
>> >
>> > Syntax error on line 978 of /usr/local/etc/apache2/httpd.conf:
>> > Invalid command 'JkMount', perhaps mis-spelled or defined by a module
> not
>> > included in the server configuration
>> >
>> > ----- Original Message -----
>> > From: "Matt Koss" <m....@open.ac.uk>
>> > To: "Tomcat Users List" <to...@jakarta.apache.org>
>> > Sent: Wednesday, May 21, 2003 6:11 PM
>> > Subject: Re: mod_jk2 error
>> >
>> > > On Wednesday 21 May 2003 4:05 pm, stakys wrote:
>> > > > When i set JkMount */*.jsp ajp13 or /test/* ajp13 or smth i got 
>> this
>> >
>> > error
>> >
>> > > > starting apache:
>> > > >
>> > > > Invalid command 'JkMount', perhaps mis-spelled or defined by a
> module
>> >
>> > not
>> >
>> > > > included in the server configuration
>> > > >
>> > > > What's wrong? How to solve this?
>> > >
>> > > Remove * from the beginning of the URL Like this :
>> > >
>> > > JkMount /*.jsp ajp13
>> > > JkMount /test/* ajp13
>> > >
>> > >
>> ---------------------------------------------------------------------
>> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> > > > For additional commands, e-mail: tomcat-user- 
>> help@jakarta.apache.org
>> > >
>> > > --
>> > > Matt Koss
>> > > Knowledge Media Institute
>> > > Open University
>> > > tel: +44 1908 659399
>> > >
>> > > --------------------------------------------------------------------- 
>>
>>
>> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>> --
>> Matt Koss
>> Knowledge Media Institute
>> Open University
>> tel: +44 1908 659399
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 error

Posted by Mark Eggers <it...@yahoo.com>.
If you are truly using mod_jk2 (as per LoadModule and
workers2.properties), then JkMount is not the
directive you need to use in order to access the
Tomcat-served information.

If you want to keep this in httpd.conf, use something
like the following:

<LocationMatch /examples/*.jsp>
   Options Indexes FollowSymlinks MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
   JkUriSet worker ajp13:localhost:8009
</LocationMatch>

<LocationMatch /examples/servket/*>
   Options Indexes FollowSymlinks MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
   JkUriSet worker ajp13:localhost:8009
</LocationMatch>

Alias /examples /location-of-tomcat-examples/

You'll need to remove the Uri mapping statement in
workers2.properties.

You're currently using Uri mapping in the
workers2.properties file.  This is probably the
easiest way to start.

According to your workers2.properties file, you
already have:

# Uri mapping
[uri:/examples/*.jsp]
worker=ajp13:localhost:8009

You will need another Uri mapping for the servlet
examples, such as:

# Uri mapping
[uri:/examples/servlet/*]
worker=ajp13:localhost:8009

If you put the above two entries in your
workers2.properties file, then you do not need the
<LocationMatch> </LocationMatch> directives in
httpd.conf.

However you will STILL need the Alias directive, so
that Apache knows where to read the static pages from.

On a purely naming convention, mixing localhost
(127.0.0.1) and judo.lt is probably not a good idea. 
If this is truly on the same machine, then set
host=127.0.0.1.  If the Tomcat instance is on a remote
machine, then don't name the channel localhost.

Looking at your jk2.properties file, it appears that
you're attempting to mix jni in-process and socket
connections between Tomcat and Apache.  While you can
configure both at the same time, it's easier to just
set up a single type of connection.

The socket connection is really simple to set up. 
I've included my jk2.properties file below.

#
# Socket configuration
#
handler.list=request,container,channelSocket

#
# channel configuration
#
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10

Actually, since the channel configuration portion is
all standard, you could omit it.  However, it's
probably good to have in case you decide to change the
entry.

HTH

/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 error

Posted by stakys <st...@punktas.lt>.
I got this:
LoadModule jk2_module libexec/apache2/mod_jk2.so
<IfModule mod_jk2.c>
  JkSet config:file /usr/local/etc/apache2/workers2.properties
</IfModule>

And then this:

<VirtualHost 193.219.5.10>
    ServerName judo.lt
    ServerAlias www
    ServerAdmin stakys@punktas.lt
    DocumentRoot /isp/domains/judo.lt/hosts/www/webapps/ROOT
        ErrorLog /isp/domains/judo.lt/hosts/www/logs/error.log
        CustomLog /isp/domains/judo.lt/hosts/www/logs/access.log common
    JkMount /examples ajp13
    JkMount /examples/* ajp13
Alias /kdk "/isp/domains/judo.lt/hosts/www/htdocs/kdk"

<Directory "/isp/domains/judo.lt/hosts/www/htdocs/kdk">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

</VirtualHost>

And in my workers2.properties i got this:

[logger.apache2]
level=DEBUG

[config:]
file=${serverRoot}/etc/apache2/workers2.properties
debug=0
debugEnv=0

[shm]
file=/var/log/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=judo.lt

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/examples/*.jsp]
worker=ajp13:localhost:8009

jk2.properties looks like this:
handler.list=channelSocket,request
channelSocket.port=8009
channelSocket.address=judo.lt
channelUnix.file=${jkHome}/work/jk2.socket
shm.file=${jkHome}/work/jk2.shm
channelJni.disabled = 0
apr.jniModeSo=/usr/local/libexec/apache2/mod_jk2.so
apr.jniModeSo=inprocess

And i got server.xml like in the how-to from here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
----- Original Message -----
From: "Matt Koss" <m....@open.ac.uk>
To: "Tomcat Users List" <to...@jakarta.apache.org>; "stakys"
<st...@punktas.lt>
Sent: Wednesday, May 21, 2003 6:28 PM
Subject: Re: mod_jk2 error


>
> You have to add "ajp13" after each URL:
>
> JkMount /examples ajp13
> JkMount /examples/* ajp13
>
> Are you sure that you have the following somewhere above those lines ? :
>
> LoadModule jk_module path-to-your-file
> JkWorkersFile path-to-your-file
>
> etc.
>
>
> On Wednesday 21 May 2003 4:23 pm, stakys wrote:
> > Didn't help i made in my virtualhost smth like this
> > JkMount /examples ajp13
> > JkMount /examples/*
> > But i got the same error when starting:
> >
> > Syntax error on line 978 of /usr/local/etc/apache2/httpd.conf:
> > Invalid command 'JkMount', perhaps mis-spelled or defined by a module
not
> > included in the server configuration
> >
> > ----- Original Message -----
> > From: "Matt Koss" <m....@open.ac.uk>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Wednesday, May 21, 2003 6:11 PM
> > Subject: Re: mod_jk2 error
> >
> > > On Wednesday 21 May 2003 4:05 pm, stakys wrote:
> > > > When i set JkMount */*.jsp ajp13 or /test/* ajp13 or smth i got this
> >
> > error
> >
> > > > starting apache:
> > > >
> > > > Invalid command 'JkMount', perhaps mis-spelled or defined by a
module
> >
> > not
> >
> > > > included in the server configuration
> > > >
> > > > What's wrong? How to solve this?
> > >
> > > Remove * from the beginning of the URL Like this :
> > >
> > > JkMount /*.jsp ajp13
> > > JkMount /test/* ajp13
> > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > > --
> > > Matt Koss
> > > Knowledge Media Institute
> > > Open University
> > > tel: +44 1908 659399
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> --
> Matt Koss
> Knowledge Media Institute
> Open University
> tel: +44 1908 659399
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 error

Posted by Matt Koss <m....@open.ac.uk>.
You have to add "ajp13" after each URL:

JkMount /examples ajp13
JkMount /examples/* ajp13

Are you sure that you have the following somewhere above those lines ? :

LoadModule jk_module path-to-your-file
JkWorkersFile path-to-your-file

etc.


On Wednesday 21 May 2003 4:23 pm, stakys wrote:
> Didn't help i made in my virtualhost smth like this
> JkMount /examples ajp13
> JkMount /examples/*
> But i got the same error when starting:
>
> Syntax error on line 978 of /usr/local/etc/apache2/httpd.conf:
> Invalid command 'JkMount', perhaps mis-spelled or defined by a module not
> included in the server configuration
>
> ----- Original Message -----
> From: "Matt Koss" <m....@open.ac.uk>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Wednesday, May 21, 2003 6:11 PM
> Subject: Re: mod_jk2 error
>
> > On Wednesday 21 May 2003 4:05 pm, stakys wrote:
> > > When i set JkMount */*.jsp ajp13 or /test/* ajp13 or smth i got this
>
> error
>
> > > starting apache:
> > >
> > > Invalid command 'JkMount', perhaps mis-spelled or defined by a module
>
> not
>
> > > included in the server configuration
> > >
> > > What's wrong? How to solve this?
> >
> > Remove * from the beginning of the URL Like this :
> >
> > JkMount /*.jsp ajp13
> > JkMount /test/* ajp13
> >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> > --
> > Matt Koss
> > Knowledge Media Institute
> > Open University
> > tel: +44 1908 659399
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

-- 
Matt Koss
Knowledge Media Institute
Open University
tel: +44 1908 659399

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 error

Posted by stakys <st...@punktas.lt>.
Didn't help i made in my virtualhost smth like this
JkMount /examples ajp13
JkMount /examples/*
But i got the same error when starting:

Syntax error on line 978 of /usr/local/etc/apache2/httpd.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module not
included in the server configuration

----- Original Message -----
From: "Matt Koss" <m....@open.ac.uk>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, May 21, 2003 6:11 PM
Subject: Re: mod_jk2 error


> On Wednesday 21 May 2003 4:05 pm, stakys wrote:
> > When i set JkMount */*.jsp ajp13 or /test/* ajp13 or smth i got this
error
> > starting apache:
> >
> > Invalid command 'JkMount', perhaps mis-spelled or defined by a module
not
> > included in the server configuration
> >
> > What's wrong? How to solve this?
>
> Remove * from the beginning of the URL Like this :
>
> JkMount /*.jsp ajp13
> JkMount /test/* ajp13
>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> --
> Matt Koss
> Knowledge Media Institute
> Open University
> tel: +44 1908 659399
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk2 error

Posted by Matt Koss <m....@open.ac.uk>.
On Wednesday 21 May 2003 4:05 pm, stakys wrote:
> When i set JkMount */*.jsp ajp13 or /test/* ajp13 or smth i got this error
> starting apache:
>
> Invalid command 'JkMount', perhaps mis-spelled or defined by a module not
> included in the server configuration
>
> What's wrong? How to solve this?

Remove * from the beginning of the URL Like this :

JkMount /*.jsp ajp13
JkMount /test/* ajp13

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

-- 
Matt Koss
Knowledge Media Institute
Open University
tel: +44 1908 659399

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org