You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Anton Veretennikov <an...@gmail.com> on 2009/07/16 17:25:38 UTC

Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

Hello, wicket users and developers,

This is a problem I can't work out myself, I need your help.

In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
works as expected.
But in production I try to hide application name (let's say,
AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.

Logs show that somehow application name bobs up when I create a link
with AjaxFormSubmitBehavior.
This can be seen from httpd logs (302 status):

xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET
/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
"http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0 (Windows;
U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"

And from catched calls using HttpFox:

GET	302	Redirect to:
http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::	http://sitename.com
/?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
(Status-Line)	HTTP/1.1 302 Moved Temporarily
GET	302	Redirect to:
http://sitename.com/?wicket:interface=:0:3:::	http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
(Status-Line)	HTTP/1.1 302 Found

How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
Other Ajax stuff seems working without problem.

Wicket is 1.4-rc7

--Tony

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

Posted by Anton Veretennikov <an...@gmail.com>.
Thank you, Igor and Russell,

As almost everything is working as expected with RewriteRule, why
AjaxFormSubmitBehavior is not working? I see that new additional
redirect appears in logs. Context name is added to URLs when they are
constructed in urlFor?
If so, is it technically possible to recognize it and [optionally with
some setting] remove context name from URLs being constructed inside
wicket itself?

-- Tony

On Fri, Jul 17, 2009 at 6:07 PM, Russell
Simpkins<ru...@hotmail.com> wrote:
>
> Actually,
> "If" you sub domain your apps, then they can all be ROOT.war e.g. app1.myhost.com vs myhost.com/app1 - look at doing virtual hosts in tomcat if interested.
> Russ
>
>> Date: Fri, 17 Jul 2009 13:29:35 +0800
>> Subject: Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server
>> From: anton.veretennikov@gmail.com
>> To: users@wicket.apache.org
>>
>> Igor, I have several applications working on one server. They can't
>> all be ROOT.war.
>>
>> -- Tony
>>
>> On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynberg<ig...@gmail.com> wrote:
>> > rename it to ROOT.war
>> >
>> > -igor
>> >
>> > On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov <
>> > anton.veretennikov@gmail.com> wrote:
>> >
>> >> Thank you, Igor, for your suggestion.
>> >>
>> >> I need full hiding of app name. Renaming still creates additional path
>> >> in url like http://sitename.com/AppName/
>> >>
>> >> May be there exists other way or my URL Rewriting is not correct:
>> >>
>> >> <VirtualHost *:80>
>> >>  ServerName www.sitename.com
>> >>  ServerAlias sitename.com
>> >>  ProxyPass / ajp://127.0.0.1:8009/AppName/
>> >>  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
>> >>  ProxyPassReverseCookieDomain    localhost  sitename.com
>> >>  ProxyPassReverseCookiePath /AppName /
>> >>  RewriteEngine  on
>> >>  RewriteRule    ^/AppName/(.*)$  /$1  [R]
>> >> </VirtualHost>
>> >>
>> >> -- Tony
>> >>
>> >> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg<ig...@gmail.com>
>> >> wrote:
>> >> > just rename your war to something else before deploying it.
>> >> >
>> >> > -igor
>> >> >
>> >> > On Thu, Jul 16, 2009 at 8:25 AM, Anton
>> >> > Veretennikov<an...@gmail.com> wrote:
>> >> >> Hello, wicket users and developers,
>> >> >>
>> >> >> This is a problem I can't work out myself, I need your help.
>> >> >>
>> >> >> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
>> >> >> works as expected.
>> >> >> But in production I try to hide application name (let's say,
>> >> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
>> >> >>
>> >> >> Logs show that somehow application name bobs up when I create a link
>> >> >> with AjaxFormSubmitBehavior.
>> >> >> This can be seen from httpd logs (302 status):
>> >> >>
>> >> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET
>> >> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
>> >> >> "http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0 (Windows;
>> >> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
>> >> >>
>> >> >> And from catched calls using HttpFox:
>> >> >>
>> >> >> GET     302     Redirect to:
>> >> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
>> >> http://sitename.com
>> >> >>
>> >> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
>> >> >> (Status-Line)   HTTP/1.1 302 Moved Temporarily
>> >> >> GET     302     Redirect to:
>> >> >> http://sitename.com/?wicket:interface=:0:3:::
>> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
>> >> >> (Status-Line)   HTTP/1.1 302 Found
>> >> >>
>> >> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
>> >> >> Other Ajax stuff seems working without problem.
>> >> >>
>> >> >> Wicket is 1.4-rc7
>> >> >>
>> >> >> --Tony
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> > For additional commands, e-mail: users-help@wicket.apache.org
>> >> >
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
> _________________________________________________________________
> Windows Live™ SkyDrive™: Get 25 GB of free online storage.
> http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

Posted by Russell Simpkins <ru...@hotmail.com>.
Actually,
"If" you sub domain your apps, then they can all be ROOT.war e.g. app1.myhost.com vs myhost.com/app1 - look at doing virtual hosts in tomcat if interested.
Russ

> Date: Fri, 17 Jul 2009 13:29:35 +0800
> Subject: Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server
> From: anton.veretennikov@gmail.com
> To: users@wicket.apache.org
> 
> Igor, I have several applications working on one server. They can't
> all be ROOT.war.
> 
> -- Tony
> 
> On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynberg<ig...@gmail.com> wrote:
> > rename it to ROOT.war
> >
> > -igor
> >
> > On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov <
> > anton.veretennikov@gmail.com> wrote:
> >
> >> Thank you, Igor, for your suggestion.
> >>
> >> I need full hiding of app name. Renaming still creates additional path
> >> in url like http://sitename.com/AppName/
> >>
> >> May be there exists other way or my URL Rewriting is not correct:
> >>
> >> <VirtualHost *:80>
> >>  ServerName www.sitename.com
> >>  ServerAlias sitename.com
> >>  ProxyPass / ajp://127.0.0.1:8009/AppName/
> >>  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
> >>  ProxyPassReverseCookieDomain    localhost  sitename.com
> >>  ProxyPassReverseCookiePath /AppName /
> >>  RewriteEngine  on
> >>  RewriteRule    ^/AppName/(.*)$  /$1  [R]
> >> </VirtualHost>
> >>
> >> -- Tony
> >>
> >> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg<ig...@gmail.com>
> >> wrote:
> >> > just rename your war to something else before deploying it.
> >> >
> >> > -igor
> >> >
> >> > On Thu, Jul 16, 2009 at 8:25 AM, Anton
> >> > Veretennikov<an...@gmail.com> wrote:
> >> >> Hello, wicket users and developers,
> >> >>
> >> >> This is a problem I can't work out myself, I need your help.
> >> >>
> >> >> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
> >> >> works as expected.
> >> >> But in production I try to hide application name (let's say,
> >> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
> >> >>
> >> >> Logs show that somehow application name bobs up when I create a link
> >> >> with AjaxFormSubmitBehavior.
> >> >> This can be seen from httpd logs (302 status):
> >> >>
> >> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET
> >> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
> >> >> "http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0 (Windows;
> >> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
> >> >>
> >> >> And from catched calls using HttpFox:
> >> >>
> >> >> GET     302     Redirect to:
> >> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> >> http://sitename.com
> >> >>
> >> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
> >> >> (Status-Line)   HTTP/1.1 302 Moved Temporarily
> >> >> GET     302     Redirect to:
> >> >> http://sitename.com/?wicket:interface=:0:3:::
> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> >> >> (Status-Line)   HTTP/1.1 302 Found
> >> >>
> >> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
> >> >> Other Ajax stuff seems working without problem.
> >> >>
> >> >> Wicket is 1.4-rc7
> >> >>
> >> >> --Tony
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> >> For additional commands, e-mail: users-help@wicket.apache.org
> >> >>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > For additional commands, e-mail: users-help@wicket.apache.org
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

Posted by Igor Vaynberg <ig...@gmail.com>.
well, thats how things work when you have multiple applications, they each
need their own context.

-igor

On Thu, Jul 16, 2009 at 10:29 PM, Anton Veretennikov <
anton.veretennikov@gmail.com> wrote:

> Igor, I have several applications working on one server. They can't
> all be ROOT.war.
>
> -- Tony
>
> On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynberg<ig...@gmail.com>
> wrote:
> > rename it to ROOT.war
> >
> > -igor
> >
> > On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov <
> > anton.veretennikov@gmail.com> wrote:
> >
> >> Thank you, Igor, for your suggestion.
> >>
> >> I need full hiding of app name. Renaming still creates additional path
> >> in url like http://sitename.com/AppName/
> >>
> >> May be there exists other way or my URL Rewriting is not correct:
> >>
> >> <VirtualHost *:80>
> >>  ServerName www.sitename.com
> >>  ServerAlias sitename.com
> >>  ProxyPass / ajp://127.0.0.1:8009/AppName/
> >>  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
> >>  ProxyPassReverseCookieDomain    localhost  sitename.com
> >>  ProxyPassReverseCookiePath /AppName /
> >>  RewriteEngine  on
> >>  RewriteRule    ^/AppName/(.*)$  /$1  [R]
> >> </VirtualHost>
> >>
> >> -- Tony
> >>
> >> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg<igor.vaynberg@gmail.com
> >
> >> wrote:
> >> > just rename your war to something else before deploying it.
> >> >
> >> > -igor
> >> >
> >> > On Thu, Jul 16, 2009 at 8:25 AM, Anton
> >> > Veretennikov<an...@gmail.com> wrote:
> >> >> Hello, wicket users and developers,
> >> >>
> >> >> This is a problem I can't work out myself, I need your help.
> >> >>
> >> >> In a local environment (direct calls to Tomcat)
> AjaxFormSubmitBehavior
> >> >> works as expected.
> >> >> But in production I try to hide application name (let's say,
> >> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
> >> >>
> >> >> Logs show that somehow application name bobs up when I create a link
> >> >> with AjaxFormSubmitBehavior.
> >> >> This can be seen from httpd logs (302 status):
> >> >>
> >> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET
> >> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
> >> >> "http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0
> (Windows;
> >> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
> >> >>
> >> >> And from catched calls using HttpFox:
> >> >>
> >> >> GET     302     Redirect to:
> >> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:
> ::
> >> http://sitename.com
> >> >>
> >>
> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
> >> >> (Status-Line)   HTTP/1.1 302 Moved Temporarily
> >> >> GET     302     Redirect to:
> >> >> http://sitename.com/?wicket:interface=:0:3:::
> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> >> >> (Status-Line)   HTTP/1.1 302 Found
> >> >>
> >> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
> >> >> Other Ajax stuff seems working without problem.
> >> >>
> >> >> Wicket is 1.4-rc7
> >> >>
> >> >> --Tony
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> >> For additional commands, e-mail: users-help@wicket.apache.org
> >> >>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > For additional commands, e-mail: users-help@wicket.apache.org
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

Posted by Anton Veretennikov <an...@gmail.com>.
Igor, I have several applications working on one server. They can't
all be ROOT.war.

-- Tony

On Fri, Jul 17, 2009 at 11:40 AM, Igor Vaynberg<ig...@gmail.com> wrote:
> rename it to ROOT.war
>
> -igor
>
> On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov <
> anton.veretennikov@gmail.com> wrote:
>
>> Thank you, Igor, for your suggestion.
>>
>> I need full hiding of app name. Renaming still creates additional path
>> in url like http://sitename.com/AppName/
>>
>> May be there exists other way or my URL Rewriting is not correct:
>>
>> <VirtualHost *:80>
>>  ServerName www.sitename.com
>>  ServerAlias sitename.com
>>  ProxyPass / ajp://127.0.0.1:8009/AppName/
>>  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
>>  ProxyPassReverseCookieDomain    localhost  sitename.com
>>  ProxyPassReverseCookiePath /AppName /
>>  RewriteEngine  on
>>  RewriteRule    ^/AppName/(.*)$  /$1  [R]
>> </VirtualHost>
>>
>> -- Tony
>>
>> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg<ig...@gmail.com>
>> wrote:
>> > just rename your war to something else before deploying it.
>> >
>> > -igor
>> >
>> > On Thu, Jul 16, 2009 at 8:25 AM, Anton
>> > Veretennikov<an...@gmail.com> wrote:
>> >> Hello, wicket users and developers,
>> >>
>> >> This is a problem I can't work out myself, I need your help.
>> >>
>> >> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
>> >> works as expected.
>> >> But in production I try to hide application name (let's say,
>> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
>> >>
>> >> Logs show that somehow application name bobs up when I create a link
>> >> with AjaxFormSubmitBehavior.
>> >> This can be seen from httpd logs (302 status):
>> >>
>> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET
>> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
>> >> "http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0 (Windows;
>> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
>> >>
>> >> And from catched calls using HttpFox:
>> >>
>> >> GET     302     Redirect to:
>> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
>> http://sitename.com
>> >>
>> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
>> >> (Status-Line)   HTTP/1.1 302 Moved Temporarily
>> >> GET     302     Redirect to:
>> >> http://sitename.com/?wicket:interface=:0:3:::
>> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
>> >> (Status-Line)   HTTP/1.1 302 Found
>> >>
>> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
>> >> Other Ajax stuff seems working without problem.
>> >>
>> >> Wicket is 1.4-rc7
>> >>
>> >> --Tony
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

Posted by Igor Vaynberg <ig...@gmail.com>.
rename it to ROOT.war

-igor

On Thu, Jul 16, 2009 at 7:00 PM, Anton Veretennikov <
anton.veretennikov@gmail.com> wrote:

> Thank you, Igor, for your suggestion.
>
> I need full hiding of app name. Renaming still creates additional path
> in url like http://sitename.com/AppName/
>
> May be there exists other way or my URL Rewriting is not correct:
>
> <VirtualHost *:80>
>  ServerName www.sitename.com
>  ServerAlias sitename.com
>  ProxyPass / ajp://127.0.0.1:8009/AppName/
>  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
>  ProxyPassReverseCookieDomain    localhost  sitename.com
>  ProxyPassReverseCookiePath /AppName /
>  RewriteEngine  on
>  RewriteRule    ^/AppName/(.*)$  /$1  [R]
> </VirtualHost>
>
> -- Tony
>
> On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg<ig...@gmail.com>
> wrote:
> > just rename your war to something else before deploying it.
> >
> > -igor
> >
> > On Thu, Jul 16, 2009 at 8:25 AM, Anton
> > Veretennikov<an...@gmail.com> wrote:
> >> Hello, wicket users and developers,
> >>
> >> This is a problem I can't work out myself, I need your help.
> >>
> >> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
> >> works as expected.
> >> But in production I try to hide application name (let's say,
> >> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
> >>
> >> Logs show that somehow application name bobs up when I create a link
> >> with AjaxFormSubmitBehavior.
> >> This can be seen from httpd logs (302 status):
> >>
> >> xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET
> >> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
> >> "http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0 (Windows;
> >> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
> >>
> >> And from catched calls using HttpFox:
> >>
> >> GET     302     Redirect to:
> >> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> http://sitename.com
> >>
> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
> >> (Status-Line)   HTTP/1.1 302 Moved Temporarily
> >> GET     302     Redirect to:
> >> http://sitename.com/?wicket:interface=:0:3:::
> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> >> (Status-Line)   HTTP/1.1 302 Found
> >>
> >> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
> >> Other Ajax stuff seems working without problem.
> >>
> >> Wicket is 1.4-rc7
> >>
> >> --Tony
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

Posted by Anton Veretennikov <an...@gmail.com>.
Thank you, Igor, for your suggestion.

I need full hiding of app name. Renaming still creates additional path
in url like http://sitename.com/AppName/

May be there exists other way or my URL Rewriting is not correct:

<VirtualHost *:80>
  ServerName www.sitename.com
  ServerAlias sitename.com
  ProxyPass / ajp://127.0.0.1:8009/AppName/
  ProxyPassReverse / ajp://127.0.0.1:8009/AppName/
  ProxyPassReverseCookieDomain    localhost  sitename.com
  ProxyPassReverseCookiePath /AppName /
  RewriteEngine  on
  RewriteRule    ^/AppName/(.*)$  /$1  [R]
</VirtualHost>

-- Tony

On Fri, Jul 17, 2009 at 12:15 AM, Igor Vaynberg<ig...@gmail.com> wrote:
> just rename your war to something else before deploying it.
>
> -igor
>
> On Thu, Jul 16, 2009 at 8:25 AM, Anton
> Veretennikov<an...@gmail.com> wrote:
>> Hello, wicket users and developers,
>>
>> This is a problem I can't work out myself, I need your help.
>>
>> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
>> works as expected.
>> But in production I try to hide application name (let's say,
>> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
>>
>> Logs show that somehow application name bobs up when I create a link
>> with AjaxFormSubmitBehavior.
>> This can be seen from httpd logs (302 status):
>>
>> xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET
>> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
>> "http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0 (Windows;
>> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
>>
>> And from catched calls using HttpFox:
>>
>> GET     302     Redirect to:
>> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::   http://sitename.com
>> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
>> (Status-Line)   HTTP/1.1 302 Moved Temporarily
>> GET     302     Redirect to:
>> http://sitename.com/?wicket:interface=:0:3:::   http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
>> (Status-Line)   HTTP/1.1 302 Found
>>
>> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
>> Other Ajax stuff seems working without problem.
>>
>> Wicket is 1.4-rc7
>>
>> --Tony
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

Posted by Igor Vaynberg <ig...@gmail.com>.
just rename your war to something else before deploying it.

-igor

On Thu, Jul 16, 2009 at 8:25 AM, Anton
Veretennikov<an...@gmail.com> wrote:
> Hello, wicket users and developers,
>
> This is a problem I can't work out myself, I need your help.
>
> In a local environment (direct calls to Tomcat) AjaxFormSubmitBehavior
> works as expected.
> But in production I try to hide application name (let's say,
> AppNamePay-1.0-SNAPSHOT) from URL using RewriteRule.
>
> Logs show that somehow application name bobs up when I create a link
> with AjaxFormSubmitBehavior.
> This can be seen from httpd logs (302 status):
>
> xx.22.151.6 - - [16/Jul/2009:14:14:30 +0000] "GET
> /AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:5::: HTTP/1.1" 302 312
> "http://sitename.com/?wicket:interface=:0:4:::" "Mozilla/5.0 (Windows;
> U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6"
>
> And from catched calls using HttpFox:
>
> GET     302     Redirect to:
> http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::   http://sitename.com
> /?wicket:interface=:0:outterDiv:leftPanel:content:updatableDiv:hidableDiv:electronicUpdatable:list:0:item:border:switch:buttons2:acceptSum:2:ILinkListener::
> (Status-Line)   HTTP/1.1 302 Moved Temporarily
> GET     302     Redirect to:
> http://sitename.com/?wicket:interface=:0:3:::   http://sitename.com/AppNamePay-1.0-SNAPSHOT/?wicket:interface=:0:3:::
> (Status-Line)   HTTP/1.1 302 Found
>
> How it could be that wicket knows about AppNamePay-1.0-SNAPSHOT?
> Other Ajax stuff seems working without problem.
>
> Wicket is 1.4-rc7
>
> --Tony
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org