JK2 not working with virtual hosts

2003-03-12 Thread Reinhard Moosauer
Hello List,

I tried the binary mod_jk2-1.3-eapi.so from 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.0/
with apache 1.3 and virtual hosts.

In short: absolutely no luck. 
I read all available docs (which seen quite current) and enabled debugging in 
workers2.properties, but I diddn't get the uri-maps right.
He didn't decode the host-part of the uri:-entries.

Example:
[uri:www.myhost.com/servlet/*]
was decoded to:
uri=/servlet/*
host=www.myhost.com/servlet/*

Weird! Even when I omit the host-part it doesn't find the map when I start a 
request.
I tried several combinations:
[uri:www.myhost.com]
[uri:www.myhost.com:80/servlet/*]
[uri:www.myhost.com:/servlet/*]
[uri:/servlet/*]

I read the source (from tomcat-4.1.18), and I found that the version must be 
different (wrong source line numbers)
But the source seems to be ok. Did I use a broken version?
Where can I find more current binary versions?
Building it seems painful, when I look to the configure script.

Any hint is greatly appreciated.

regards,

Reinhard

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



Re: JK2 not working with virtual hosts

2003-03-12 Thread Reinhard Moosauer

Additional information:
Without virtual host I got the request mapped. But no answer but
a segmentation fault .. child ..  in apache's error_log



thanks,


Am Mittwoch, 12. März 2003 16:43 schrieb Reinhard Moosauer:
 Hello List,

 I tried the binary mod_jk2-1.3-eapi.so from
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0
.0/ with apache 1.3 and virtual hosts.

 In short: absolutely no luck.
 I read all available docs (which seen quite current) and enabled debugging
 in workers2.properties, but I diddn't get the uri-maps right.
 He didn't decode the host-part of the uri:-entries.

 Example:
 [uri:www.myhost.com/servlet/*]
 was decoded to:
 uri=/servlet/*
 host=www.myhost.com/servlet/*

 Weird! Even when I omit the host-part it doesn't find the map when I start
 a request.
 I tried several combinations:
 [uri:www.myhost.com]
 [uri:www.myhost.com:80/servlet/*]
 [uri:www.myhost.com:/servlet/*]
 [uri:/servlet/*]

 I read the source (from tomcat-4.1.18), and I found that the version must
 be different (wrong source line numbers)
 But the source seems to be ok. Did I use a broken version?
 Where can I find more current binary versions?
 Building it seems painful, when I look to the configure script.

 Any hint is greatly appreciated.

 regards,

 Reinhard

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


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



Re: JK2 not working with virtual hosts

2003-03-12 Thread Costin Manolache
Reinhard Moosauer wrote:

 
 Additional information:
 Without virtual host I got the request mapped. But no answer but
 a segmentation fault .. child ..  in apache's error_log

Can you send a stack trace ?

I'm checking the hosts problem.

Costin


 
 
 
 thanks,
 
 
 Am Mittwoch, 12. März 2003 16:43 schrieb Reinhard Moosauer:
 Hello List,

 I tried the binary mod_jk2-1.3-eapi.so from

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0
.0/ with apache 1.3 and virtual hosts.

 In short: absolutely no luck.
 I read all available docs (which seen quite current) and enabled
 debugging in workers2.properties, but I diddn't get the uri-maps right.
 He didn't decode the host-part of the uri:-entries.

 Example:
 [uri:www.myhost.com/servlet/*]
 was decoded to:
 uri=/servlet/*
 host=www.myhost.com/servlet/*

 Weird! Even when I omit the host-part it doesn't find the map when I
 start a request.
 I tried several combinations:
 [uri:www.myhost.com]
 [uri:www.myhost.com:80/servlet/*]
 [uri:www.myhost.com:/servlet/*]
 [uri:/servlet/*]

 I read the source (from tomcat-4.1.18), and I found that the version must
 be different (wrong source line numbers)
 But the source seems to be ok. Did I use a broken version?
 Where can I find more current binary versions?
 Building it seems painful, when I look to the configure script.

 Any hint is greatly appreciated.

 regards,

 Reinhard

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



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



RE: JK2 not working with virtual hosts

2003-03-12 Thread Mladen Turk


 -Original Message-
 From: Reinhard Moosauer [mailto:[EMAIL PROTECTED] 
 
 Additional information:
 Without virtual host I got the request mapped. But no answer 
 but a segmentation fault .. child ..  in apache's error_log
 
 
  I tried the binary mod_jk2-1.3-eapi.so from  
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk
2/release/
v2.0
.0/ with apache 1.3 and virtual hosts.


Could you try with 2.0.2. The 2.0.0 and (partially) 2.0.1 versions has
some problems with the Virtual host,
so you should use the 2.0.2.

MT.


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



Re: JK2 not working with virtual hosts

2003-03-12 Thread Reinhard Moosauer
Hello,

Am Mittwoch, 12. März 2003 19:56 schrieb Costin Manolache:
 Reinhard Moosauer wrote:
  Additional information:
  Without virtual host I got the request mapped. But no answer but
  a segmentation fault .. child ..  in apache's error_log

 Can you send a stack trace ?


see below a ltrace on the apache thread. Don't know how to get a stack trace.

 I'm checking the hosts problem.


Now I am using the 2.0.1-binary from jakarta's server. The logs say that 
virtual hosts are decoded now properly.
2.0.0 seems completely broken with virtual hosts.

How to go on?

many, many thanks for your help.

regards,

Reinhard
 Costin

  thanks,
 
  Am Mittwoch, 12. März 2003 16:43 schrieb Reinhard Moosauer:
  Hello List,
 
  I tried the binary mod_jk2-1.3-eapi.so from

 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0

 .0/ with apache 1.3 and virtual hosts.
 
  In short: absolutely no luck.
  I read all available docs (which seen quite current) and enabled
  debugging in workers2.properties, but I diddn't get the uri-maps right.
  He didn't decode the host-part of the uri:-entries.
 
  Example:
  [uri:www.myhost.com/servlet/*]
  was decoded to:
  uri=/servlet/*
  host=www.myhost.com/servlet/*
 
  Weird! Even when I omit the host-part it doesn't find the map when I
  start a request.
  I tried several combinations:
  [uri:www.myhost.com]
  [uri:www.myhost.com:80/servlet/*]
  [uri:www.myhost.com:/servlet/*]
  [uri:/servlet/*]
 
  I read the source (from tomcat-4.1.18), and I found that the version
  must be different (wrong source line numbers)
  But the source seems to be ok. Did I use a broken version?
  Where can I find more current binary versions?
  Building it seems painful, when I look to the configure script.
 
  Any hint is greatly appreciated.
 
  regards,
 
  Reinhard
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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

# ltrace -f -p 23462
...
...
strlen(GET /jkstatus HTTP/1.1)  = 22
memcpy(0x080f6ea8, GET /jkstatus HTTP/1.1, 23)  = 0x080f6ea8
strlen(/jkstatus)   = 9
memcpy(0x080f6ed8, /jkstatus, 10)   = 0x080f6ed8
memcpy(0x080f6ee8, /jkstatus, 9)= 0x080f6ee8
strlen(HTTP/1.1)= 8
memcpy(0x080f6ef8, HTTP/1.1, 9) = 0x080f6ef8
sscanf(0x080f6ef8, 0x0807da24, 0xbfffd068, 0xbfffd064, 0xbfffd060) = 2
memset(0x080f6f20, '\000', 400)   = 0x080f6f20
memcpy(0x080f70b0, Connection: Keep-Alive, 23)  = 0x080f70b0
strchr(Connection: Keep-Alive, ':') = : Keep-Alive
memcpy(0x080f70c8, User-Agent: Mozilla/5.0 (compati..., 59) = 0x080f70c8
strchr(User-Agent: Mozilla/5.0 (compati..., ':') = : Mozilla/5.0 
(compatible; Konqu...
memcpy(0x080f7108, Pragma: no-cache, 17)= 0x080f7108
strchr(Pragma: no-cache, ':')   = : no-cache
memcpy(0x080f7120, Cache-control: no-cache, 24) = 0x080f7120
strchr(Cache-control: no-cache, ':')= : no-cache
memcpy(0x080f7138, Accept: text/*, image/jpeg, imag..., 52) = 0x080f7138
strchr(Accept: text/*, image/jpeg, imag..., ':') = : text/*, image/jpeg, 
image/png,...
memcpy(0x080f7170, Accept-Encoding: x-gzip, x-defla..., 60) = 0x080f7170
strchr(Accept-Encoding: x-gzip, x-defla..., ':') = : x-gzip, x-deflate, 
gzip, defla...
memcpy(0x080f71b0, Accept-Charset: iso-8859-15, utf..., 50) = 0x080f71b0
strchr(Accept-Charset: iso-8859-15, utf..., ':') = : iso-8859-15, 
utf-8;q=0.5, *;q=...
memcpy(0x080f71e8, Accept-Language: de, en, 24) = 0x080f71e8
strchr(Accept-Language: de, en, ':')= : de, en
memcpy(0x080f7200, Host: m1b.home.priv, 20) = 0x080f7200
strchr(Host: m1b.home.priv, ':')= : m1b.home.priv
qsort(0xbfffb820, 9, 12, 0x08051a30 unfinished ...
strcasecmp(Connection, User-Agent)= -18
strcasecmp(Pragma, Cache-control) = 13
strcasecmp(Connection, Cache-control) = 14
strcasecmp(Connection, Pragma)= -13
strcasecmp(User-Agent, Pragma)= 5
strcasecmp(Accept, Accept-Encoding)   = -45
strcasecmp(Accept-Language, Host) = -7
strcasecmp(Accept-Charset, Accept-Language)   = -9
strcasecmp(Accept, Accept-Charset)= -45
strcasecmp(Accept-Encoding, Accept-Charset)   = 2
strcasecmp(Accept-Encoding, Accept-Language)  = -7
strcasecmp(Cache-control, Accept) = 2
strcasecmp(Cache-control, Accept-Charset) = 2
strcasecmp(Cache-control, Accept-Encoding)= 2
strcasecmp(Cache-control, Accept-Language)= 2
strcasecmp(Cache-control, Host)   = -5
strcasecmp(Connection, Host)  = -5
strcasecmp(Pragma, Host)  = 8
... qsort resumed )  

Re: JK2 not working with virtual hosts

2003-03-12 Thread Reinhard Moosauer
Hi,

yes. But where to get a binary for 2.0.2 and apache13? 
(I should have asked earlier this time)

Reinhard


Am Mittwoch, 12. März 2003 20:58 schrieb Mladen Turk:
  -Original Message-
  From: Reinhard Moosauer [mailto:[EMAIL PROTECTED]
 
  Additional information:
  Without virtual host I got the request mapped. But no answer
  but a segmentation fault .. child ..  in apache's error_log
 
   I tried the binary mod_jk2-1.3-eapi.so from
  http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk

 2/release/

 v2.0
 .0/ with apache 1.3 and virtual hosts.

 Could you try with 2.0.2. The 2.0.0 and (partially) 2.0.1 versions has
 some problems with the Virtual host,
 so you should use the 2.0.2.

 MT.


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


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