You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Niki Diulgerov <nd...@imx.fr> on 2008/06/03 16:04:47 UTC

mod_jk 1.2.26 jk_mount

Hello there,
I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64
The module works as intended except some strance gehaviour

I have in my httpd.conf
JkMount /app/*.jsp ajp13
JkMount /app/*.do ajp13

And this works OK
but my application have a URLs like
/app/resources/showPDFLetter?format=pdf

Which was not described im JkMount and rejected

I added
JkMount /app/resources/* ajp13
but still the same error

[Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
jk_map_to_storage::mod_jk.c (3211): no match for 
/app/resources/showPDFLetter found

can this be because of the version of mod_jk ?


-- 
Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: ndiulgerov@imx.fr
Telephone : +33 4 89 87 77 77
Fax :       +33 4 89 87 77 00
Web: http://www.codix-france.com




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod_jk 1.2.26 jk_mount

Posted by Niki Diulgerov <nd...@imx.fr>.
web.xml is the default coming from tomcat 5.5.26

the strange thing is in mod_jk log file

in the beginning it says

[Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule 
'/app/*.jsp=ajp13' source 'JkMount' was
 added
[Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule 
'/app/*.do=ajp13' source 'JkMount' was
added
[Tue Jun 03 17:32:40.640 2008] [22746:2934367456] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule 
'/app/resources/*=ajp13' source 'JkMoun
t' was added


But then ...when I try to access /resources/ShowPDF.....      it says

[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (671): Header[0] [Location] = 
[https://myserver.com/app/resou
rces/showPDFLetter?format=pdf]
[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (671): Header[1] [Content-Type] 
= [text/html]
[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (671): Header[2] 
[Content-Length] = [0]
[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
ajp_connection_tcp_get_message::jk_ajp_common.c (1117): received from 
ajp13 pos=0 len=2 max=8192
[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 0000    05 01 00 
00 00 00 00 00 00 00 00 00
00 00 00 00  - ................
[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
ajp_process_callback::jk_ajp_common.c (1661): AJP13 protocol: Reuse is OK
[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
ajp_reset_endpoint::jk_ajp_common.c (691): (ajp13) resetting endpoint 
with sd = 20
[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
ajp_done::jk_ajp_common.c (2522): recycling connection pool slot=0 for 
worker ajp13
[Tue Jun 03 17:34:08.211 2008] [22749:2934367456] [debug] 
jk_handler::mod_jk.c (2348): Service finished with status=302 for 
worker=ajp13
[Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (682): Attempting to map URI 
'/app/resources/showPDFLetter' f
rom 2 maps
[Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] 
find_match::jk_uri_worker_map.c (503): Attempting to map context URI 
'/app/*.jsp=ajp13' source 'JkMo
unt'
[Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] 
find_match::jk_uri_worker_map.c (503): Attempting to map context URI 
'/app/*.do=ajp13' source 'JkMou
nt'
[Tue Jun 03 17:34:08.241 2008] [22750:2934367456] [debug] 
jk_map_to_storage::mod_jk.c (3211): no match for 
/app/resources/showPDFLetter found



Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: ndiulgerov@imx.fr
Telephone : +33 4 89 87 77 77
Fax :       +33 4 89 87 77 00
Web: http://www.codix-france.com




Brian Martin wrote:
> Can you attach your web.xml file... I'm new to this too but I think you need to
> have appropriate url filters setup -- I might be using the wrong terminology
> here.,.,.
>
>
> On Tue, Jun 03, 2008 at 05:22:06PM +0300, Niki Diulgerov wrote:
>   
>> It's not because of missing or insufficient rights.
>> The connector just don't want to accept the rule
>>
>> JkMount /app/resources/* ajp13
>>
>> and to redirect the request to tomcat and gives the error
>>
>> [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
>> jk_map_to_storage::mod_jk.c (3211): no match for 
>> /app/resources/showPDFLetter found
>>
>>
>>
>> maybe the syntax for JkMount is changed in 1.2.26?
>>
>>
>>
>> Best regards,
>>
>> Nikolay Diulgerov
>> Network Administrator
>> E-mail: ndiulgerov@imx.fr
>> Telephone : +33 4 89 87 77 77
>> Fax :       +33 4 89 87 77 00
>> Web: http://www.codix-france.com
>>
>>
>>
>>
>> Landon Fabbricino wrote:
>>     
>>> Could it be as simple as not having rights (permissions) to see the 
>>> /app/resources directory or the showPDFLetter file ?
>>>
>>> Landon Fabbricino
>>> IT Applications
>>>
>>> Phone: 403.225.7515
>>> Fax: 403.225.7604
>>> lfabbric@agrium.com
>>>
>>>  
>>>       
>>>>>> Niki Diulgerov <nd...@imx.fr> 6/3/2008 8:04:47 AM >>>
>>>>>>        
>>>>>>             
>>> Hello there,
>>> I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64
>>> The module works as intended except some strance gehaviour
>>>
>>> I have in my httpd.conf
>>> JkMount /app/*.jsp ajp13
>>> JkMount /app/*.do ajp13
>>>
>>> And this works OK
>>> but my application have a URLs like
>>> /app/resources/showPDFLetter?format=pdf
>>>
>>> Which was not described im JkMount and rejected
>>>
>>> I added
>>> JkMount /app/resources/* ajp13
>>> but still the same error
>>>
>>> [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
>>> jk_map_to_storage::mod_jk.c (3211): no match for 
>>> /app/resources/showPDFLetter found
>>>
>>> can this be because of the version of mod_jk ?
>>>
>>>
>>>  
>>>       
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   

Re: Re: mod_jk 1.2.26 jk_mount

Posted by Brian Martin <th...@gmail.com>.
Can you attach your web.xml file... I'm new to this too but I think you need to
have appropriate url filters setup -- I might be using the wrong terminology
here.,.,.


On Tue, Jun 03, 2008 at 05:22:06PM +0300, Niki Diulgerov wrote:
> It's not because of missing or insufficient rights.
> The connector just don't want to accept the rule
> 
> JkMount /app/resources/* ajp13
> 
> and to redirect the request to tomcat and gives the error
> 
> [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
> jk_map_to_storage::mod_jk.c (3211): no match for 
> /app/resources/showPDFLetter found
> 
> 
> 
> maybe the syntax for JkMount is changed in 1.2.26?
> 
> 
> 
> Best regards,
> 
> Nikolay Diulgerov
> Network Administrator
> E-mail: ndiulgerov@imx.fr
> Telephone : +33 4 89 87 77 77
> Fax :       +33 4 89 87 77 00
> Web: http://www.codix-france.com
> 
> 
> 
> 
> Landon Fabbricino wrote:
> >Could it be as simple as not having rights (permissions) to see the 
> >/app/resources directory or the showPDFLetter file ?
> >
> >Landon Fabbricino
> >IT Applications
> >
> >Phone: 403.225.7515
> >Fax: 403.225.7604
> >lfabbric@agrium.com
> >
> >  
> >>>>Niki Diulgerov <nd...@imx.fr> 6/3/2008 8:04:47 AM >>>
> >>>>        
> >Hello there,
> >I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64
> >The module works as intended except some strance gehaviour
> >
> >I have in my httpd.conf
> >JkMount /app/*.jsp ajp13
> >JkMount /app/*.do ajp13
> >
> >And this works OK
> >but my application have a URLs like
> >/app/resources/showPDFLetter?format=pdf
> >
> >Which was not described im JkMount and rejected
> >
> >I added
> >JkMount /app/resources/* ajp13
> >but still the same error
> >
> >[Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
> >jk_map_to_storage::mod_jk.c (3211): no match for 
> >/app/resources/showPDFLetter found
> >
> >can this be because of the version of mod_jk ?
> >
> >
> >  

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod_jk 1.2.26 jk_mount

Posted by Niki Diulgerov <nd...@imx.fr>.
My fault...
I have JkMount in my httpd.conf
and JkMount in my ssl.conf which is responcible for the SSL connections...
and I added
JkMount /app/resources/* ajp13
only in httpd.conf and not in ssl.conf

And was stupid enough to not try http connection (would see thet it 
works) but was only trying HTTPS.

Now it is OK.



Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: ndiulgerov@imx.fr
Telephone : +33 4 89 87 77 77
Fax :       +33 4 89 87 77 00
Web: http://www.codix-france.com




Rainer Jung wrote:
> Niki Diulgerov wrote:
>> It's not because of missing or insufficient rights.
>> The connector just don't want to accept the rule
>>
>> JkMount /app/resources/* ajp13
>>
>> and to redirect the request to tomcat and gives the error
>>
>> [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
>> jk_map_to_storage::mod_jk.c (3211): no match for 
>> /app/resources/showPDFLetter found
>>
>>
>>
>> maybe the syntax for JkMount is changed in 1.2.26?
>
> No, no change. Version is fine.
>
> Maybe your request goes into a vhost and you didn't put the JkMount 
> into the same vhost? When starting up with debug log level, you can 
> see the parsing of all the JkMounts, so your "/app/resources/*" should 
> show up there. Query strings do not matter. Maybe a typo?
>
>> Best regards,
>>
>> Nikolay Diulgerov
>> Network Administrator
>> E-mail: ndiulgerov@imx.fr
>> Telephone : +33 4 89 87 77 77
>> Fax :       +33 4 89 87 77 00
>> Web: http://www.codix-france.com
>
>
> Regards,
>
> Rainer
>
>
>> Landon Fabbricino wrote:
>>> Could it be as simple as not having rights (permissions) to see the 
>>> /app/resources directory or the showPDFLetter file ?
>>>
>>> Landon Fabbricino
>>> IT Applications
>>>
>>> Phone: 403.225.7515
>>> Fax: 403.225.7604
>>> lfabbric@agrium.com
>>>
>>>  
>>>>>> Niki Diulgerov <nd...@imx.fr> 6/3/2008 8:04:47 AM >>>
>>>>>>         
>>> Hello there,
>>> I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64
>>> The module works as intended except some strance gehaviour
>>>
>>> I have in my httpd.conf
>>> JkMount /app/*.jsp ajp13
>>> JkMount /app/*.do ajp13
>>>
>>> And this works OK
>>> but my application have a URLs like
>>> /app/resources/showPDFLetter?format=pdf
>>>
>>> Which was not described im JkMount and rejected
>>>
>>> I added
>>> JkMount /app/resources/* ajp13
>>> but still the same error
>>>
>>> [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
>>> jk_map_to_storage::mod_jk.c (3211): no match for 
>>> /app/resources/showPDFLetter found
>>>
>>> can this be because of the version of mod_jk ?
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod_jk 1.2.26 jk_mount

Posted by Rainer Jung <ra...@kippdata.de>.
Niki Diulgerov wrote:
> It's not because of missing or insufficient rights.
> The connector just don't want to accept the rule
> 
> JkMount /app/resources/* ajp13
> 
> and to redirect the request to tomcat and gives the error
> 
> [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
> jk_map_to_storage::mod_jk.c (3211): no match for 
> /app/resources/showPDFLetter found
> 
> 
> 
> maybe the syntax for JkMount is changed in 1.2.26?

No, no change. Version is fine.

Maybe your request goes into a vhost and you didn't put the JkMount into 
the same vhost? When starting up with debug log level, you can see the 
parsing of all the JkMounts, so your "/app/resources/*" should show up 
there. Query strings do not matter. Maybe a typo?

> Best regards,
> 
> Nikolay Diulgerov
> Network Administrator
> E-mail: ndiulgerov@imx.fr
> Telephone : +33 4 89 87 77 77
> Fax :       +33 4 89 87 77 00
> Web: http://www.codix-france.com


Regards,

Rainer


> Landon Fabbricino wrote:
>> Could it be as simple as not having rights (permissions) to see the 
>> /app/resources directory or the showPDFLetter file ?
>>
>> Landon Fabbricino
>> IT Applications
>>
>> Phone: 403.225.7515
>> Fax: 403.225.7604
>> lfabbric@agrium.com
>>
>>  
>>>>> Niki Diulgerov <nd...@imx.fr> 6/3/2008 8:04:47 AM >>>
>>>>>         
>> Hello there,
>> I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64
>> The module works as intended except some strance gehaviour
>>
>> I have in my httpd.conf
>> JkMount /app/*.jsp ajp13
>> JkMount /app/*.do ajp13
>>
>> And this works OK
>> but my application have a URLs like
>> /app/resources/showPDFLetter?format=pdf
>>
>> Which was not described im JkMount and rejected
>>
>> I added
>> JkMount /app/resources/* ajp13
>> but still the same error
>>
>> [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
>> jk_map_to_storage::mod_jk.c (3211): no match for 
>> /app/resources/showPDFLetter found
>>
>> can this be because of the version of mod_jk ?

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod_jk 1.2.26 jk_mount

Posted by Niki Diulgerov <nd...@imx.fr>.
It's not because of missing or insufficient rights.
The connector just don't want to accept the rule

JkMount /app/resources/* ajp13

and to redirect the request to tomcat and gives the error

[Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] jk_map_to_storage::mod_jk.c (3211): no match for /app/resources/showPDFLetter found



maybe the syntax for JkMount is changed in 1.2.26?



Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: ndiulgerov@imx.fr
Telephone : +33 4 89 87 77 77
Fax :       +33 4 89 87 77 00
Web: http://www.codix-france.com




Landon Fabbricino wrote:
> Could it be as simple as not having rights (permissions) to see the /app/resources directory or the showPDFLetter file ?
>
> Landon Fabbricino
> IT Applications
>
> Phone: 403.225.7515
> Fax: 403.225.7604
> lfabbric@agrium.com
>
>   
>>>> Niki Diulgerov <nd...@imx.fr> 6/3/2008 8:04:47 AM >>>
>>>>         
> Hello there,
> I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64
> The module works as intended except some strance gehaviour
>
> I have in my httpd.conf
> JkMount /app/*.jsp ajp13
> JkMount /app/*.do ajp13
>
> And this works OK
> but my application have a URLs like
> /app/resources/showPDFLetter?format=pdf
>
> Which was not described im JkMount and rejected
>
> I added
> JkMount /app/resources/* ajp13
> but still the same error
>
> [Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
> jk_map_to_storage::mod_jk.c (3211): no match for 
> /app/resources/showPDFLetter found
>
> can this be because of the version of mod_jk ?
>
>
>   

Re: mod_jk 1.2.26 jk_mount

Posted by Landon Fabbricino <LF...@agrium.com>.
Could it be as simple as not having rights (permissions) to see the /app/resources directory or the showPDFLetter file ?

Landon Fabbricino
IT Applications

Phone: 403.225.7515
Fax: 403.225.7604
lfabbric@agrium.com

>>> Niki Diulgerov <nd...@imx.fr> 6/3/2008 8:04:47 AM >>>
Hello there,
I compiled the mod_jk 1.2.26 from the source for Red hat 5.1x64
The module works as intended except some strance gehaviour

I have in my httpd.conf
JkMount /app/*.jsp ajp13
JkMount /app/*.do ajp13

And this works OK
but my application have a URLs like
/app/resources/showPDFLetter?format=pdf

Which was not described im JkMount and rejected

I added
JkMount /app/resources/* ajp13
but still the same error

[Tue Jun 03 17:04:23.021 2008] [22353:2934367456] [debug] 
jk_map_to_storage::mod_jk.c (3211): no match for 
/app/resources/showPDFLetter found

can this be because of the version of mod_jk ?


-- 
Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: ndiulgerov@imx.fr 
Telephone : +33 4 89 87 77 77
Fax :       +33 4 89 87 77 00
Web: http://www.codix-france.com 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org 
For additional commands, e-mail: users-help@tomcat.apache.org 


IMPORTANT NOTICE ! 
This E-Mail transmission and any accompanying attachments may contain confidential information intended only for the use of the individual or entity named above. Any dissemination, distribution, copying or action taken in reliance on the contents of this E-Mail by anyone other than the intended recipient is strictly prohibited and is not intended to, in anyway, waive privilege or confidentiality. If you have received this E-Mail in error please immediately delete it and notify sender at the above E-Mail address.  
Agrium uses state of the art anti-virus technology on all incoming and outgoing E-Mail. We encourage and promote the use of safe E-Mail management practices and recommend you check this, and all other E-Mail and attachments you receive for the presence of viruses. The sender and Agrium accept no liability for any damage caused by a virus or otherwise by the transmittal of this E-Mail. 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org