You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by jellevangompel <je...@gmail.com> on 2012/04/11 19:55:07 UTC
Problem using ZoneUpdater Mixin and Apache Proxy
Hi all,
I'm having some strange behaviour using the ZoneUpdater Mixin from Jumpstart
( http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent ) in
combination with an Apache Proxy.
I have created following test setup (simple input field that should update a
zone on each "keyup" event):
.tml file:
http://tapestry.1045711.n5.nabble.com/file/n5633615/Screen_Shot_2012-04-11_at_19.44.19.png
.java file:
http://tapestry.1045711.n5.nabble.com/file/n5633615/Screen_Shot_2012-04-11_at_19.43.53.png
When I test the application on my jetty server (port 8080), the application
works as expected:
0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:23:01 +0000] "POST
/app/test.testinput:testevent?param=a HTTP/1.1" 200 190
"http://localhost:8080/app/test"
0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:23:05 +0000] "POST
/app/test.testinput:testevent?param=az HTTP/1.1" 200 192
"http://localhost:8080/app/test"
0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:23:05 +0000] "POST
/app/test.testinput:testevent?param=aze HTTP/1.1" 200 190
"http://localhost:8080/app/test"
However, when I test the application with an Apache server (port 8888) and
proxy to the jetty server, I get following output:
0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:24:11 +0000] "OPTIONS
/app/test.testinput:testevent?param=a HTTP/1.1" 302 0
"http://localhost:8888/app/test"
0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:24:12 +0000] "OPTIONS
/app/test.testinput:testevent?param=az HTTP/1.1" 302 0
"http://localhost:8888/app/test"
0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:24:12 +0000] "OPTIONS
/app/test.testinput:testevent?param=aze HTTP/1.1" 302 0
"http://localhost:8888/app/test"
Tapestry displays following error on my screen:
Ajax failure: Status 0 for
http://localhost:8080/app/test.testinput:testevent?param=a: null
Communication with the server failed: null
This is a snippet from my Apache configuration:
<Proxy *>
AddDefaultCharset Off
DefaultType None
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
Does anyone have any idea what causes the ajax error? And why do th
etapestry output show a HTTP OPTIONS call instead of a HTTP GET call?
Regards,
Jelle Van Gompel
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-using-ZoneUpdater-Mixin-and-Apache-Proxy-tp5633615p5633615.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Problem using ZoneUpdater Mixin and Apache Proxy
Posted by jellevangompel <je...@gmail.com>.
Hello Geoff,
I added the following to my apache config:
ProxyPreserveHost On
ProxyVia On
This fixed the problem with the ZoneUpdater.
Thanks a lot!
Regards,
Jelle
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-using-ZoneUpdater-Mixin-and-Apache-Proxy-tp5633615p5635362.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Problem using ZoneUpdater Mixin and Apache Proxy
Posted by Geoff Callender <ge...@gmail.com>.
Very strange. If it's any encouragement, the JumpStart demo site is served through Apache Proxy, so it is possible.
Do you have this:
ProxyPreserveHost On
ProxyVia On
Also, although I doubt it's the problem, add "retry", e.g.
ProxyPass / http://localhost:8080/ retry=5
ProxyPassReverse / http://localhost:8080/ retry=5
Cheers,
Geoff
On 12/04/2012, at 3:55 AM, jellevangompel wrote:
> Hi all,
>
>
> I'm having some strange behaviour using the ZoneUpdater Mixin from Jumpstart
> ( http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent
> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent ) in
> combination with an Apache Proxy.
>
> I have created following test setup (simple input field that should update a
> zone on each "keyup" event):
>
> .tml file:
> http://tapestry.1045711.n5.nabble.com/file/n5633615/Screen_Shot_2012-04-11_at_19.44.19.png
>
> .java file:
> http://tapestry.1045711.n5.nabble.com/file/n5633615/Screen_Shot_2012-04-11_at_19.43.53.png
>
>
> When I test the application on my jetty server (port 8080), the application
> works as expected:
>
> 0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:23:01 +0000] "POST
> /app/test.testinput:testevent?param=a HTTP/1.1" 200 190
> "http://localhost:8080/app/test"
> 0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:23:05 +0000] "POST
> /app/test.testinput:testevent?param=az HTTP/1.1" 200 192
> "http://localhost:8080/app/test"
> 0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:23:05 +0000] "POST
> /app/test.testinput:testevent?param=aze HTTP/1.1" 200 190
> "http://localhost:8080/app/test"
>
>
> However, when I test the application with an Apache server (port 8888) and
> proxy to the jetty server, I get following output:
>
> 0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:24:11 +0000] "OPTIONS
> /app/test.testinput:testevent?param=a HTTP/1.1" 302 0
> "http://localhost:8888/app/test"
> 0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:24:12 +0000] "OPTIONS
> /app/test.testinput:testevent?param=az HTTP/1.1" 302 0
> "http://localhost:8888/app/test"
> 0:0:0:0:0:0:0:1%0 - - [11/Apr/2012:17:24:12 +0000] "OPTIONS
> /app/test.testinput:testevent?param=aze HTTP/1.1" 302 0
> "http://localhost:8888/app/test"
>
>
> Tapestry displays following error on my screen:
> Ajax failure: Status 0 for
> http://localhost:8080/app/test.testinput:testevent?param=a: null
> Communication with the server failed: null
>
> This is a snippet from my Apache configuration:
> <Proxy *>
> AddDefaultCharset Off
> DefaultType None
> Order deny,allow
> Allow from all
> </Proxy>
>
>
> ProxyPass / http://localhost:8080/
> ProxyPassReverse / http://localhost:8080/
>
>
> Does anyone have any idea what causes the ajax error? And why do th
> etapestry output show a HTTP OPTIONS call instead of a HTTP GET call?
>
> Regards,
> Jelle Van Gompel
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-using-ZoneUpdater-Mixin-and-Apache-Proxy-tp5633615p5633615.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org