You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jonas Eriksson <jo...@netstuff.se> on 2003/03/27 23:04:30 UTC

MOD JK2

I'm useing jk2 

My apache 2.043 does not send my  jsp requests to tomcat when the file name is something
other than .jsp

I have looked in the manual but I only find how to fix that with mod_jk and not for jk2.
Please help me!

 

RE: MOD JK2

Posted by Quinton McCombs <qm...@nequalsone.com>.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

Sorry, can't offer any help with load balancing...

> -----Original Message-----
> From: Kevin.Hartig@Sun.COM [mailto:Kevin.Hartig@Sun.COM] 
> Sent: Thursday, March 27, 2003 10:01 PM
> To: Tomcat Users List
> Subject: Re: MOD JK2
> 
> 
> Are the names and usage of the parameters used in the 
> workers2.properties file documented somewhere?
> In particular, I'm trying to set up load balancing between multiple 
> instance of Tomcat.
> 
> 
> 
> Quinton McCombs wrote:
> 
> >>>>My apache 2.043 does not send my  jsp requests to tomcat when the 
> >>>>file name is something other than .jsp
> >>>>        
> >>>>
> >
> >What sort of request is it not processing?  Servlets 
> perhaps?  I had to 
> >put the full path to the servlet for it to work.  Example: 
> >[uri:/scarab/*]
> >
> >If you try something like [uri:/scarab/servlet/*] to pass only the 
> >servlet requests, it does not seem to work.
> >
> >You can also use JKUriSet in httpd.conf.
> ><Location "/scarab/servlet">
> >  JKUriSet worker ajp13:localhost:8009
> ></Location>
> >
> >
> >The above config can be used instead of [uri:/scarab/servlet] in 
> >workers2.properties.  This will cause only the servlet 
> requests to be 
> >passed to tomcat while leaving everything else to Apache.
> >
> >
> >  
> >
> >>-----Original Message-----
> >>From: Jonas Eriksson [mailto:jonas2@webkonsulterna.com]
> >>Sent: Thursday, March 27, 2003 8:31 PM
> >>To: Tomcat Users List; qmccombs@nequalsone.com
> >>Subject: Re: MOD JK2
> >>
> >>
> >>Well rigt now i'm using mod warp to get it to work at all. 
> But i need 
> >>to get jk2 to work...
> >>
> >>It looks like this:
> >>
> >>[shm]
> >>file=/usr/local/logs/shm.file
> >>size=1048576
> >>
> >>[channel.socket:localhost:8009]
> >>port=8009
> >>host=127.0.0.1
> >>
> >>[channel.un:/usr/local/tomcat/work/jk2.socket]
> >>tomcatId=localhost:8009
> >>debug=0
> >>
> >>[ajp13:localhost:8009]
> >>#channel=channel.un:/usr/local/tomcat/work/jk2.socket
> >>channel=channel.socket:localhost:8009
> >>
> >>[status:status]
> >>
> >>[uri:/*.jsp]
> >>worker=ajp13:localhost:8009
> >>#worker=ajp13:/usr/local/tomcat/work/jk2.socket
> >>
> >>[uri:/manager/*]
> >>worker=ajp13:localhost:8009
> >>
> >>[uri:/*/servlets/]
> >>worker=ajp13:localhost:8009
> >>
> >>[uri:/status/*]
> >>worker=status:status
> >>
> >>----- Original Message -----
> >>From: "Quinton McCombs" <qm...@nequalsone.com>
> >>To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> >>Sent: Thursday, March 27, 2003 11:13 PM
> >>Subject: RE: MOD JK2
> >>
> >>
> >>    
> >>
> >>>What do you have in workers2.properties?
> >>>
> >>>
> >>>--------------------------------------------
> >>>Quinton McCombs
> >>>NequalsOne - HealthCare marketing tools
> >>>      
> >>>
> >>mailto:qmccombs@NequalsOne.com
> >>    
> >>
> >>>http://www.NequalsOne.com
> >>>
> >>>      
> >>>
> >>>>-----Original Message-----
> >>>>From: Jonas Eriksson [mailto:jonas@netstuff.se]
> >>>>Sent: Thursday, March 27, 2003 4:05 PM
> >>>>To: Tomcat Users List
> >>>>Subject: MOD JK2
> >>>>
> >>>>
> >>>>I'm useing jk2
> >>>>
> >>>>My apache 2.043 does not send my  jsp requests to tomcat when the 
> >>>>file name is something other than .jsp
> >>>>
> >>>>I have looked in the manual but I only find how to fix that with 
> >>>>mod_jk and not for jk2. Please help me!
> >>>>
> >>>> 
> >>>>
> >>>>        
> >>>>
> >>>
> >>>      
> >>>
> >>------------------------------------------------------------
> ---------
> >>    
> >>
> >>>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
> >
> >  
> >
> 
> 
> ---------------------------------------------------------------------
> 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

Posted by Kevin Hartig <Ke...@Sun.COM>.
Are the names and usage of the parameters used in the 
workers2.properties file documented somewhere?
In particular, I'm trying to set up load balancing between multiple 
instance of Tomcat.



Quinton McCombs wrote:

>>>>My apache 2.043 does not send my  jsp requests to tomcat when
>>>>the file name is something other than .jsp
>>>>        
>>>>
>
>What sort of request is it not processing?  Servlets perhaps?  I had to
>put the full path to the servlet for it to work.  Example:
>[uri:/scarab/*]
>
>If you try something like [uri:/scarab/servlet/*] to pass only the
>servlet requests, it does not seem to work.
>
>You can also use JKUriSet in httpd.conf.
><Location "/scarab/servlet">
>  JKUriSet worker ajp13:localhost:8009
></Location>
>
>
>The above config can be used instead of [uri:/scarab/servlet] in
>workers2.properties.  This will cause only the servlet requests to be
>passed to tomcat while leaving everything else to Apache.
>
>
>  
>
>>-----Original Message-----
>>From: Jonas Eriksson [mailto:jonas2@webkonsulterna.com] 
>>Sent: Thursday, March 27, 2003 8:31 PM
>>To: Tomcat Users List; qmccombs@nequalsone.com
>>Subject: Re: MOD JK2
>>
>>
>>Well rigt now i'm using mod warp to get it to work at all.
>>But i need to get jk2 to work...
>>
>>It looks like this:
>>
>>[shm]
>>file=/usr/local/logs/shm.file
>>size=1048576
>>
>>[channel.socket:localhost:8009]
>>port=8009
>>host=127.0.0.1
>>
>>[channel.un:/usr/local/tomcat/work/jk2.socket]
>>tomcatId=localhost:8009
>>debug=0
>>
>>[ajp13:localhost:8009] 
>>#channel=channel.un:/usr/local/tomcat/work/jk2.socket
>>channel=channel.socket:localhost:8009
>>
>>[status:status]
>>
>>[uri:/*.jsp]
>>worker=ajp13:localhost:8009 
>>#worker=ajp13:/usr/local/tomcat/work/jk2.socket
>>
>>[uri:/manager/*]
>>worker=ajp13:localhost:8009
>>
>>[uri:/*/servlets/]
>>worker=ajp13:localhost:8009
>>
>>[uri:/status/*]
>>worker=status:status
>>
>>----- Original Message ----- 
>>From: "Quinton McCombs" <qm...@nequalsone.com>
>>To: "'Tomcat Users List'" <to...@jakarta.apache.org>
>>Sent: Thursday, March 27, 2003 11:13 PM
>>Subject: RE: MOD JK2
>>
>>
>>    
>>
>>>What do you have in workers2.properties?
>>>
>>>
>>>--------------------------------------------
>>>Quinton McCombs
>>>NequalsOne - HealthCare marketing tools 
>>>      
>>>
>>mailto:qmccombs@NequalsOne.com
>>    
>>
>>>http://www.NequalsOne.com 
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: Jonas Eriksson [mailto:jonas@netstuff.se]
>>>>Sent: Thursday, March 27, 2003 4:05 PM
>>>>To: Tomcat Users List
>>>>Subject: MOD JK2
>>>>
>>>>
>>>>I'm useing jk2
>>>>
>>>>My apache 2.043 does not send my  jsp requests to tomcat when
>>>>the file name is something other than .jsp
>>>>
>>>>I have looked in the manual but I only find how to fix that
>>>>with mod_jk and not for jk2. Please help me!
>>>>
>>>> 
>>>>
>>>>        
>>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>    
>>
>>>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
>
>  
>


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


SV: MOD JK2

Posted by Jonas Eriksson <jo...@webkonsulterna.com>.
That sucks, because then I have to change my httpd.conf for every
virtual host and that is a log and every of them uses diffret servlets,
and I can't not just forward everything to Tomcat either.

I'am looking for something like this to mod_jk2 that I saw mod_jk was
supporting "JkOptions +ForwardURIEscaped". It should forward everything
that Apache didn't found locally.


>What sort of request is it not processing?  Servlets perhaps?  I had to
>put the full path to the servlet for it to work.  Example:
>[uri:/scarab/*]
>
>If you try something like [uri:/scarab/servlet/*] to pass only the
>servlet requests, it does not seem to work.
>
>You can also use JKUriSet in httpd.conf.
><Location "/scarab/servlet">
>  JKUriSet worker ajp13:localhost:8009
></Location>
>
>
>The above config can be used instead of [uri:/scarab/servlet] in
>workers2.properties.  This will cause only the servlet requests to be
>passed to tomcat while leaving everything else to Apache.



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


RE: MOD JK2

Posted by Quinton McCombs <qm...@nequalsone.com>.
> > > My apache 2.043 does not send my  jsp requests to tomcat when
> > > the file name is something other than .jsp

What sort of request is it not processing?  Servlets perhaps?  I had to
put the full path to the servlet for it to work.  Example:
[uri:/scarab/*]

If you try something like [uri:/scarab/servlet/*] to pass only the
servlet requests, it does not seem to work.

You can also use JKUriSet in httpd.conf.
<Location "/scarab/servlet">
  JKUriSet worker ajp13:localhost:8009
</Location>


The above config can be used instead of [uri:/scarab/servlet] in
workers2.properties.  This will cause only the servlet requests to be
passed to tomcat while leaving everything else to Apache.


> -----Original Message-----
> From: Jonas Eriksson [mailto:jonas2@webkonsulterna.com] 
> Sent: Thursday, March 27, 2003 8:31 PM
> To: Tomcat Users List; qmccombs@nequalsone.com
> Subject: Re: MOD JK2
> 
> 
> Well rigt now i'm using mod warp to get it to work at all.
> But i need to get jk2 to work...
> 
> It looks like this:
> 
> [shm]
> file=/usr/local/logs/shm.file
> size=1048576
> 
> [channel.socket:localhost:8009]
> port=8009
> host=127.0.0.1
> 
> [channel.un:/usr/local/tomcat/work/jk2.socket]
> tomcatId=localhost:8009
> debug=0
> 
> [ajp13:localhost:8009] 
> #channel=channel.un:/usr/local/tomcat/work/jk2.socket
> channel=channel.socket:localhost:8009
> 
> [status:status]
> 
> [uri:/*.jsp]
> worker=ajp13:localhost:8009 
> #worker=ajp13:/usr/local/tomcat/work/jk2.socket
> 
> [uri:/manager/*]
> worker=ajp13:localhost:8009
> 
> [uri:/*/servlets/]
> worker=ajp13:localhost:8009
> 
> [uri:/status/*]
> worker=status:status
> 
> ----- Original Message ----- 
> From: "Quinton McCombs" <qm...@nequalsone.com>
> To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> Sent: Thursday, March 27, 2003 11:13 PM
> Subject: RE: MOD JK2
> 
> 
> > What do you have in workers2.properties?
> > 
> > 
> > --------------------------------------------
> > Quinton McCombs
> > NequalsOne - HealthCare marketing tools 
> mailto:qmccombs@NequalsOne.com
> > http://www.NequalsOne.com 
> > 
> 
> > > -----Original Message-----
> > > From: Jonas Eriksson [mailto:jonas@netstuff.se]
> > > Sent: Thursday, March 27, 2003 4:05 PM
> > > To: Tomcat Users List
> > > Subject: MOD JK2
> > > 
> > > 
> > > I'm useing jk2
> > > 
> > > My apache 2.043 does not send my  jsp requests to tomcat when
> > > the file name is something other than .jsp
> > > 
> > > I have looked in the manual but I only find how to fix that
> > > with mod_jk and not for jk2. Please help me!
> > > 
> > >  
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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

Posted by Jonas Eriksson <jo...@webkonsulterna.com>.
Well rigt now i'm using mod warp to get it to work at all.
But i need to get jk2 to work...

It looks like this:

[shm]
file=/usr/local/logs/shm.file
size=1048576

[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

[channel.un:/usr/local/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

[ajp13:localhost:8009]
#channel=channel.un:/usr/local/tomcat/work/jk2.socket
channel=channel.socket:localhost:8009

[status:status]

[uri:/*.jsp]
worker=ajp13:localhost:8009
#worker=ajp13:/usr/local/tomcat/work/jk2.socket

[uri:/manager/*]
worker=ajp13:localhost:8009

[uri:/*/servlets/]
worker=ajp13:localhost:8009

[uri:/status/*]
worker=status:status

----- Original Message ----- 
From: "Quinton McCombs" <qm...@nequalsone.com>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Thursday, March 27, 2003 11:13 PM
Subject: RE: MOD JK2


> What do you have in workers2.properties?
> 
> 
> --------------------------------------------
> Quinton McCombs
> NequalsOne - HealthCare marketing tools
> mailto:qmccombs@NequalsOne.com
> http://www.NequalsOne.com 
> 
> > -----Original Message-----
> > From: Jonas Eriksson [mailto:jonas@netstuff.se] 
> > Sent: Thursday, March 27, 2003 4:05 PM
> > To: Tomcat Users List
> > Subject: MOD JK2
> > 
> > 
> > I'm useing jk2 
> > 
> > My apache 2.043 does not send my  jsp requests to tomcat when 
> > the file name is something other than .jsp
> > 
> > I have looked in the manual but I only find how to fix that 
> > with mod_jk and not for jk2. Please help me!
> > 
> >  
> > 
> 
> 
> ---------------------------------------------------------------------
> 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

Posted by Quinton McCombs <qm...@nequalsone.com>.
What do you have in workers2.properties?


--------------------------------------------
Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:qmccombs@NequalsOne.com
http://www.NequalsOne.com 

> -----Original Message-----
> From: Jonas Eriksson [mailto:jonas@netstuff.se] 
> Sent: Thursday, March 27, 2003 4:05 PM
> To: Tomcat Users List
> Subject: MOD JK2
> 
> 
> I'm useing jk2 
> 
> My apache 2.043 does not send my  jsp requests to tomcat when 
> the file name is something other than .jsp
> 
> I have looked in the manual but I only find how to fix that 
> with mod_jk and not for jk2. Please help me!
> 
>  
> 


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