Re: HTTPS enabled Application

2014-01-15 Thread Christian Köberl
I think the whole thing is not Tapestry related - I guess it's some
misconfiguration in your load-balancer, Apache httpd or Tomcat.

The browser is redirected to a HTTP-protocol URL on a HTTPS port (e.g.
"http://demo-ccbo.gecko.aw.atos.net:443/";). So somewhere in your
config - i guess Tomcat servlet.xml - there has to be something like
"HTTP port is 443".

Chris


2014/1/15 Dragan Sahpaski :
> Try putting this in web.xml to force the container to redirect to https. I
> have successfully used this couple of years ago but can't remember if I
> even knew then about the tapestry approach.
>
> 
>  
> Security
>  /*
> 
>  
> CONFIDENTIAL
>  
> 
>
> http://stackoverflow.com/questions/7790141/security-constraint-configuration-inside-web-xml-for-tomcat
>
> Cheers,
> Dragan Sahpaski
>
>
> On Wed, Jan 15, 2014 at 2:49 PM, Athneria, Mahendra <
> mahendra.athne...@atos.net> wrote:
>
>> I have checked the spelling, and it is fine.
>>
>> We are using Tapestry 5.1.0.5 version.  Does it work in Tapestry 5.1.0.5
>> version??
>>
>> -Original Message-
>> From: dragan.sahpas...@gmail.com [mailto:dragan.sahpas...@gmail.com] On
>> Behalf Of Dragan Sahpaski
>> Sent: Wednesday, January 15, 2014 6:29 PM
>> To: Tapestry users
>> Subject: Re: HTTPS enabled Application
>>
>> Look for a spelling mistake or use the @Contribute annotation. I don't
>> have ANY extra configuration for forcing ssl.
>>  @Contribute(MetaDataLocator.class)
>> public void contributeMetaDataLocator(MappedConfiguration
>> configuration)
>>  {
>> configuration.add(MetaDataConstants.SECURE_PAGE, true);  }
>>
>> Assuming tapestry 5.3.7 but as far as i remember it was the same in 5.2.
>>
>>
>> Cheers,
>> Dragan Sahpaski
>>
>>
>> On Wed, Jan 15, 2014 at 1:49 PM, Athneria, Mahendra <
>> mahendra.athne...@atos.net> wrote:
>>
>> > Hi Dragan,
>> >
>> > Thanks  for your reply. I have done the same thing. Below is the code
>> > from my appmodule.java file.
>> >
>> > public void contributeMetaDataLocator(
>> > MappedConfiguration
>> > configuration) {
>> > configuration.add(MetaDataConstants.SECURE_PAGE, "true");
>> > }
>> >
>> > Still facing the same issue :(
>> >
>> > Regards,
>> > Mahendra
>> >
>> > -Original Message-
>> > From: dragan.sahpas...@gmail.com [mailto:dragan.sahpas...@gmail.com]
>> > On Behalf Of Dragan Sahpaski
>> > Sent: Wednesday, January 15, 2014 6:14 PM
>> > To: Tapestry users
>> > Subject: Re: HTTPS enabled Application
>> >
>> > If you want to force https for ALL pages then the following is simpler
>> > then manually putting @Secure on each page.
>> >
>> > public void contributeMetaDataLocator(MappedConfiguration> > Object>
>> > configuration)
>> >  {
>> > configuration.add(MetaDataConstants.SECURE_PAGE, true);  }
>> >
>> > This is all very well documented here:
>> > http://tapestry.apache.org/https.html#HTTPS-SecuringMultiplePages
>> >
>> >
>> > Cheers,
>> > Dragan Sahpaski
>> >
>> >
>> > On Wed, Jan 15, 2014 at 1:12 PM, Dmitry Gusev > > >wrote:
>> >
>> > > What I suggest is to put @Secure annotation to your pages so that
>> > > your links to that pages started with https:// Also if you open
>> > > these pages with HTTP Tapestry will do automatic redirect to HTTPS
>> > >
>> > >
>> > >
>> > > On Wed, Jan 15, 2014 at 4:02 PM, Athneria, Mahendra <
>> > > mahendra.athne...@atos.net> wrote:
>> > >
>> > > > Hi Dmirty,
>> > > >
>> > > > Thanks for your reply. I have already made the full application
>> > > > secure by adding
>> > > > configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into
>> > appmodule.java.
>> > > >
>> > > > What you are suggesting is to make the one page secure.
>> > > >
>> > > > Regards,
>> > > > Mahendra
>> > > >
>> > > > -Original Message-
>> > > > From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com]
>> > > > Sent: Wednesday, January 15, 2014 5:20 PM
>> > > > To: Tapestry users
>> > > > Subject: Re: HTTP

Re: HTTPS enabled Application

2014-01-15 Thread Dragan Sahpaski
Try putting this in web.xml to force the container to redirect to https. I
have successfully used this couple of years ago but can't remember if I
even knew then about the tapestry approach.


 
Security
 /*

 
CONFIDENTIAL
 


http://stackoverflow.com/questions/7790141/security-constraint-configuration-inside-web-xml-for-tomcat

Cheers,
Dragan Sahpaski


On Wed, Jan 15, 2014 at 2:49 PM, Athneria, Mahendra <
mahendra.athne...@atos.net> wrote:

> I have checked the spelling, and it is fine.
>
> We are using Tapestry 5.1.0.5 version.  Does it work in Tapestry 5.1.0.5
> version??
>
> -Original Message-
> From: dragan.sahpas...@gmail.com [mailto:dragan.sahpas...@gmail.com] On
> Behalf Of Dragan Sahpaski
> Sent: Wednesday, January 15, 2014 6:29 PM
> To: Tapestry users
> Subject: Re: HTTPS enabled Application
>
> Look for a spelling mistake or use the @Contribute annotation. I don't
> have ANY extra configuration for forcing ssl.
>  @Contribute(MetaDataLocator.class)
> public void contributeMetaDataLocator(MappedConfiguration
> configuration)
>  {
> configuration.add(MetaDataConstants.SECURE_PAGE, true);  }
>
> Assuming tapestry 5.3.7 but as far as i remember it was the same in 5.2.
>
>
> Cheers,
> Dragan Sahpaski
>
>
> On Wed, Jan 15, 2014 at 1:49 PM, Athneria, Mahendra <
> mahendra.athne...@atos.net> wrote:
>
> > Hi Dragan,
> >
> > Thanks  for your reply. I have done the same thing. Below is the code
> > from my appmodule.java file.
> >
> > public void contributeMetaDataLocator(
> > MappedConfiguration
> > configuration) {
> > configuration.add(MetaDataConstants.SECURE_PAGE, "true");
> > }
> >
> > Still facing the same issue :(
> >
> > Regards,
> > Mahendra
> >
> > -Original Message-
> > From: dragan.sahpas...@gmail.com [mailto:dragan.sahpas...@gmail.com]
> > On Behalf Of Dragan Sahpaski
> > Sent: Wednesday, January 15, 2014 6:14 PM
> > To: Tapestry users
> > Subject: Re: HTTPS enabled Application
> >
> > If you want to force https for ALL pages then the following is simpler
> > then manually putting @Secure on each page.
> >
> > public void contributeMetaDataLocator(MappedConfiguration > Object>
> > configuration)
> >  {
> > configuration.add(MetaDataConstants.SECURE_PAGE, true);  }
> >
> > This is all very well documented here:
> > http://tapestry.apache.org/https.html#HTTPS-SecuringMultiplePages
> >
> >
> > Cheers,
> > Dragan Sahpaski
> >
> >
> > On Wed, Jan 15, 2014 at 1:12 PM, Dmitry Gusev  > >wrote:
> >
> > > What I suggest is to put @Secure annotation to your pages so that
> > > your links to that pages started with https:// Also if you open
> > > these pages with HTTP Tapestry will do automatic redirect to HTTPS
> > >
> > >
> > >
> > > On Wed, Jan 15, 2014 at 4:02 PM, Athneria, Mahendra <
> > > mahendra.athne...@atos.net> wrote:
> > >
> > > > Hi Dmirty,
> > > >
> > > > Thanks for your reply. I have already made the full application
> > > > secure by adding
> > > > configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into
> > appmodule.java.
> > > >
> > > > What you are suggesting is to make the one page secure.
> > > >
> > > > Regards,
> > > > Mahendra
> > > >
> > > > -Original Message-
> > > > From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com]
> > > > Sent: Wednesday, January 15, 2014 5:20 PM
> > > > To: Tapestry users
> > > > Subject: Re: HTTPS enabled Application
> > > >
> > > > Try putting @org.apache.tapestry5.annotations.Secure annotations
> > > > on your pages.
> > > >
> > > >
> > > > On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra <
> > > > mahendra.athne...@atos.net> wrote:
> > > >
> > > > >  Hi,
> > > > >
> > > > >
> > > > >
> > > > > I am facing issue related to HTTPS in tapestry. My tomcat server
> > > > > is HTTPS enabled. When I try to access the login page of my
> > > > > tapestry application I got below message.
> > > > >
> > > > >
> > > > > "Bad Request
> > > > >
> > > > > Your browser sent a req

RE: HTTPS enabled Application

2014-01-15 Thread Athneria, Mahendra
I have checked the spelling, and it is fine. 

We are using Tapestry 5.1.0.5 version.  Does it work in Tapestry 5.1.0.5 
version??

-Original Message-
From: dragan.sahpas...@gmail.com [mailto:dragan.sahpas...@gmail.com] On Behalf 
Of Dragan Sahpaski
Sent: Wednesday, January 15, 2014 6:29 PM
To: Tapestry users
Subject: Re: HTTPS enabled Application

Look for a spelling mistake or use the @Contribute annotation. I don't have ANY 
extra configuration for forcing ssl.
 @Contribute(MetaDataLocator.class)
public void contributeMetaDataLocator(MappedConfiguration
configuration)
 {
configuration.add(MetaDataConstants.SECURE_PAGE, true);  }

Assuming tapestry 5.3.7 but as far as i remember it was the same in 5.2.


Cheers,
Dragan Sahpaski


On Wed, Jan 15, 2014 at 1:49 PM, Athneria, Mahendra < 
mahendra.athne...@atos.net> wrote:

> Hi Dragan,
>
> Thanks  for your reply. I have done the same thing. Below is the code 
> from my appmodule.java file.
>
> public void contributeMetaDataLocator(
> MappedConfiguration 
> configuration) {
> configuration.add(MetaDataConstants.SECURE_PAGE, "true");
> }
>
> Still facing the same issue :(
>
> Regards,
> Mahendra
>
> -Original Message-
> From: dragan.sahpas...@gmail.com [mailto:dragan.sahpas...@gmail.com] 
> On Behalf Of Dragan Sahpaski
> Sent: Wednesday, January 15, 2014 6:14 PM
> To: Tapestry users
> Subject: Re: HTTPS enabled Application
>
> If you want to force https for ALL pages then the following is simpler 
> then manually putting @Secure on each page.
>
> public void contributeMetaDataLocator(MappedConfiguration Object>
> configuration)
>  {
> configuration.add(MetaDataConstants.SECURE_PAGE, true);  }
>
> This is all very well documented here:
> http://tapestry.apache.org/https.html#HTTPS-SecuringMultiplePages
>
>
> Cheers,
> Dragan Sahpaski
>
>
> On Wed, Jan 15, 2014 at 1:12 PM, Dmitry Gusev  >wrote:
>
> > What I suggest is to put @Secure annotation to your pages so that 
> > your links to that pages started with https:// Also if you open 
> > these pages with HTTP Tapestry will do automatic redirect to HTTPS
> >
> >
> >
> > On Wed, Jan 15, 2014 at 4:02 PM, Athneria, Mahendra < 
> > mahendra.athne...@atos.net> wrote:
> >
> > > Hi Dmirty,
> > >
> > > Thanks for your reply. I have already made the full application 
> > > secure by adding 
> > > configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into
> appmodule.java.
> > >
> > > What you are suggesting is to make the one page secure.
> > >
> > > Regards,
> > > Mahendra
> > >
> > > -Original Message-
> > > From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com]
> > > Sent: Wednesday, January 15, 2014 5:20 PM
> > > To: Tapestry users
> > > Subject: Re: HTTPS enabled Application
> > >
> > > Try putting @org.apache.tapestry5.annotations.Secure annotations 
> > > on your pages.
> > >
> > >
> > > On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra < 
> > > mahendra.athne...@atos.net> wrote:
> > >
> > > >  Hi,
> > > >
> > > >
> > > >
> > > > I am facing issue related to HTTPS in tapestry. My tomcat server 
> > > > is HTTPS enabled. When I try to access the login page of my 
> > > > tapestry application I got below message.
> > > >
> > > >
> > > > "Bad Request
> > > >
> > > > Your browser sent a request that this server could not understand.
> > > > Reason: You're speaking plain HTTP to an SSL-enabled server port.
> > > > Instead use the HTTPS scheme to access this URL, please.
> > > >
> > > > Hint:
> > > > *https://demo-ccbo.gecko.aw.atos.net/*<https://demo-ccbo.gecko.aw.
> > > > atos
> > > > .net/>
> > > >
> > > > "
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > My application is secured, I have configured below in 
> > > > appmodule.java
> > > >
> > > >
> > > >
> > > > "configuration.add(SymbolConstants.*SECURE_ENABLED*, "true")";
> > > >
> > > >
> > > >
> > > > Still all the pageLinks and actionLinks generating http request.
> > > >
> > > >
> > > >
> > > > Any idea guys why it is happening?
> > > >
> > > >
> > > >
> > > > Regards
> > > >
> > > > Mahendra
> > > >
> > >
> > >
> > >
> > > --
> > > Dmitry Gusev
> > >
> > > AnjLab Team
> > > http://anjlab.com
> > >
> > > --
> > > --
> > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
> >
>


Re: HTTPS enabled Application

2014-01-15 Thread Dragan Sahpaski
Look for a spelling mistake or use the @Contribute annotation. I don't have
ANY extra configuration for forcing ssl.
 @Contribute(MetaDataLocator.class)
public void contributeMetaDataLocator(MappedConfiguration
configuration)
 {
configuration.add(MetaDataConstants.SECURE_PAGE, true);
 }

Assuming tapestry 5.3.7 but as far as i remember it was the same in 5.2.


Cheers,
Dragan Sahpaski


On Wed, Jan 15, 2014 at 1:49 PM, Athneria, Mahendra <
mahendra.athne...@atos.net> wrote:

> Hi Dragan,
>
> Thanks  for your reply. I have done the same thing. Below is the code from
> my appmodule.java file.
>
> public void contributeMetaDataLocator(
> MappedConfiguration configuration)
> {
> configuration.add(MetaDataConstants.SECURE_PAGE, "true");
> }
>
> Still facing the same issue :(
>
> Regards,
> Mahendra
>
> -Original Message-
> From: dragan.sahpas...@gmail.com [mailto:dragan.sahpas...@gmail.com] On
> Behalf Of Dragan Sahpaski
> Sent: Wednesday, January 15, 2014 6:14 PM
> To: Tapestry users
> Subject: Re: HTTPS enabled Application
>
> If you want to force https for ALL pages then the following is simpler
> then manually putting @Secure on each page.
>
> public void contributeMetaDataLocator(MappedConfiguration
> configuration)
>  {
> configuration.add(MetaDataConstants.SECURE_PAGE, true);  }
>
> This is all very well documented here:
> http://tapestry.apache.org/https.html#HTTPS-SecuringMultiplePages
>
>
> Cheers,
> Dragan Sahpaski
>
>
> On Wed, Jan 15, 2014 at 1:12 PM, Dmitry Gusev  >wrote:
>
> > What I suggest is to put @Secure annotation to your pages so that your
> > links to that pages started with https:// Also if you open these pages
> > with HTTP Tapestry will do automatic redirect to HTTPS
> >
> >
> >
> > On Wed, Jan 15, 2014 at 4:02 PM, Athneria, Mahendra <
> > mahendra.athne...@atos.net> wrote:
> >
> > > Hi Dmirty,
> > >
> > > Thanks for your reply. I have already made the full application
> > > secure by adding
> > > configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into
> appmodule.java.
> > >
> > > What you are suggesting is to make the one page secure.
> > >
> > > Regards,
> > > Mahendra
> > >
> > > -Original Message-
> > > From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com]
> > > Sent: Wednesday, January 15, 2014 5:20 PM
> > > To: Tapestry users
> > > Subject: Re: HTTPS enabled Application
> > >
> > > Try putting @org.apache.tapestry5.annotations.Secure annotations on
> > > your pages.
> > >
> > >
> > > On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra <
> > > mahendra.athne...@atos.net> wrote:
> > >
> > > >  Hi,
> > > >
> > > >
> > > >
> > > > I am facing issue related to HTTPS in tapestry. My tomcat server
> > > > is HTTPS enabled. When I try to access the login page of my
> > > > tapestry application I got below message.
> > > >
> > > >
> > > > "Bad Request
> > > >
> > > > Your browser sent a request that this server could not understand.
> > > > Reason: You're speaking plain HTTP to an SSL-enabled server port.
> > > > Instead use the HTTPS scheme to access this URL, please.
> > > >
> > > > Hint:
> > > > *https://demo-ccbo.gecko.aw.atos.net/*<https://demo-ccbo.gecko.aw.
> > > > atos
> > > > .net/>
> > > >
> > > > "
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > My application is secured, I have configured below in
> > > > appmodule.java
> > > >
> > > >
> > > >
> > > > "configuration.add(SymbolConstants.*SECURE_ENABLED*, "true")";
> > > >
> > > >
> > > >
> > > > Still all the pageLinks and actionLinks generating http request.
> > > >
> > > >
> > > >
> > > > Any idea guys why it is happening?
> > > >
> > > >
> > > >
> > > > Regards
> > > >
> > > > Mahendra
> > > >
> > >
> > >
> > >
> > > --
> > > Dmitry Gusev
> > >
> > > AnjLab Team
> > > http://anjlab.com
> > >
> > > 
> > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
> >
>


RE: HTTPS enabled Application

2014-01-15 Thread Athneria, Mahendra
Hi Dragan,

Thanks  for your reply. I have done the same thing. Below is the code from my 
appmodule.java file.

public void contributeMetaDataLocator(
MappedConfiguration configuration) {
configuration.add(MetaDataConstants.SECURE_PAGE, "true");
}

Still facing the same issue :(

Regards,
Mahendra

-Original Message-
From: dragan.sahpas...@gmail.com [mailto:dragan.sahpas...@gmail.com] On Behalf 
Of Dragan Sahpaski
Sent: Wednesday, January 15, 2014 6:14 PM
To: Tapestry users
Subject: Re: HTTPS enabled Application

If you want to force https for ALL pages then the following is simpler then 
manually putting @Secure on each page.

public void contributeMetaDataLocator(MappedConfiguration
configuration)
 {
configuration.add(MetaDataConstants.SECURE_PAGE, true);  }

This is all very well documented here:
http://tapestry.apache.org/https.html#HTTPS-SecuringMultiplePages


Cheers,
Dragan Sahpaski


On Wed, Jan 15, 2014 at 1:12 PM, Dmitry Gusev wrote:

> What I suggest is to put @Secure annotation to your pages so that your 
> links to that pages started with https:// Also if you open these pages 
> with HTTP Tapestry will do automatic redirect to HTTPS
>
>
>
> On Wed, Jan 15, 2014 at 4:02 PM, Athneria, Mahendra < 
> mahendra.athne...@atos.net> wrote:
>
> > Hi Dmirty,
> >
> > Thanks for your reply. I have already made the full application 
> > secure by adding  
> > configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into 
> > appmodule.java.
> >
> > What you are suggesting is to make the one page secure.
> >
> > Regards,
> > Mahendra
> >
> > -Original Message-
> > From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com]
> > Sent: Wednesday, January 15, 2014 5:20 PM
> > To: Tapestry users
> > Subject: Re: HTTPS enabled Application
> >
> > Try putting @org.apache.tapestry5.annotations.Secure annotations on 
> > your pages.
> >
> >
> > On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra < 
> > mahendra.athne...@atos.net> wrote:
> >
> > >  Hi,
> > >
> > >
> > >
> > > I am facing issue related to HTTPS in tapestry. My tomcat server 
> > > is HTTPS enabled. When I try to access the login page of my 
> > > tapestry application I got below message.
> > >
> > >
> > > "Bad Request
> > >
> > > Your browser sent a request that this server could not understand.
> > > Reason: You're speaking plain HTTP to an SSL-enabled server port.
> > > Instead use the HTTPS scheme to access this URL, please.
> > >
> > > Hint:
> > > *https://demo-ccbo.gecko.aw.atos.net/*<https://demo-ccbo.gecko.aw.
> > > atos
> > > .net/>
> > >
> > > "
> > >
> > >
> > >
> > >
> > >
> > > My application is secured, I have configured below in 
> > > appmodule.java
> > >
> > >
> > >
> > > "configuration.add(SymbolConstants.*SECURE_ENABLED*, "true")";
> > >
> > >
> > >
> > > Still all the pageLinks and actionLinks generating http request.
> > >
> > >
> > >
> > > Any idea guys why it is happening?
> > >
> > >
> > >
> > > Regards
> > >
> > > Mahendra
> > >
> >
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
> >
> > 
> > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>


Re: HTTPS enabled Application

2014-01-15 Thread Dragan Sahpaski
If you want to force https for ALL pages then the following is simpler then
manually putting @Secure on each page.

public void contributeMetaDataLocator(MappedConfiguration
configuration)
 {
configuration.add(MetaDataConstants.SECURE_PAGE, true);
 }

This is all very well documented here:
http://tapestry.apache.org/https.html#HTTPS-SecuringMultiplePages


Cheers,
Dragan Sahpaski


On Wed, Jan 15, 2014 at 1:12 PM, Dmitry Gusev wrote:

> What I suggest is to put @Secure annotation to your pages so that your
> links to that pages started with https://
> Also if you open these pages with HTTP Tapestry will do automatic redirect
> to HTTPS
>
>
>
> On Wed, Jan 15, 2014 at 4:02 PM, Athneria, Mahendra <
> mahendra.athne...@atos.net> wrote:
>
> > Hi Dmirty,
> >
> > Thanks for your reply. I have already made the full application secure by
> > adding  configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into
> > appmodule.java.
> >
> > What you are suggesting is to make the one page secure.
> >
> > Regards,
> > Mahendra
> >
> > -Original Message-
> > From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com]
> > Sent: Wednesday, January 15, 2014 5:20 PM
> > To: Tapestry users
> > Subject: Re: HTTPS enabled Application
> >
> > Try putting @org.apache.tapestry5.annotations.Secure annotations on your
> > pages.
> >
> >
> > On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra <
> > mahendra.athne...@atos.net> wrote:
> >
> > >  Hi,
> > >
> > >
> > >
> > > I am facing issue related to HTTPS in tapestry. My tomcat server is
> > > HTTPS enabled. When I try to access the login page of my tapestry
> > > application I got below message.
> > >
> > >
> > > "Bad Request
> > >
> > > Your browser sent a request that this server could not understand.
> > > Reason: You're speaking plain HTTP to an SSL-enabled server port.
> > > Instead use the HTTPS scheme to access this URL, please.
> > >
> > > Hint:
> > > *https://demo-ccbo.gecko.aw.atos.net/*<https://demo-ccbo.gecko.aw.atos
> > > .net/>
> > >
> > > "
> > >
> > >
> > >
> > >
> > >
> > > My application is secured, I have configured below in appmodule.java
> > >
> > >
> > >
> > > "configuration.add(SymbolConstants.*SECURE_ENABLED*, "true")";
> > >
> > >
> > >
> > > Still all the pageLinks and actionLinks generating http request.
> > >
> > >
> > >
> > > Any idea guys why it is happening?
> > >
> > >
> > >
> > > Regards
> > >
> > > Mahendra
> > >
> >
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>


Re: HTTPS enabled Application

2014-01-15 Thread Dmitry Gusev
What I suggest is to put @Secure annotation to your pages so that your
links to that pages started with https://
Also if you open these pages with HTTP Tapestry will do automatic redirect
to HTTPS



On Wed, Jan 15, 2014 at 4:02 PM, Athneria, Mahendra <
mahendra.athne...@atos.net> wrote:

> Hi Dmirty,
>
> Thanks for your reply. I have already made the full application secure by
> adding  configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into
> appmodule.java.
>
> What you are suggesting is to make the one page secure.
>
> Regards,
> Mahendra
>
> -Original Message-
> From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com]
> Sent: Wednesday, January 15, 2014 5:20 PM
> To: Tapestry users
> Subject: Re: HTTPS enabled Application
>
> Try putting @org.apache.tapestry5.annotations.Secure annotations on your
> pages.
>
>
> On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra <
> mahendra.athne...@atos.net> wrote:
>
> >  Hi,
> >
> >
> >
> > I am facing issue related to HTTPS in tapestry. My tomcat server is
> > HTTPS enabled. When I try to access the login page of my tapestry
> > application I got below message.
> >
> >
> > "Bad Request
> >
> > Your browser sent a request that this server could not understand.
> > Reason: You're speaking plain HTTP to an SSL-enabled server port.
> > Instead use the HTTPS scheme to access this URL, please.
> >
> > Hint:
> > *https://demo-ccbo.gecko.aw.atos.net/*<https://demo-ccbo.gecko.aw.atos
> > .net/>
> >
> > "
> >
> >
> >
> >
> >
> > My application is secured, I have configured below in appmodule.java
> >
> >
> >
> > "configuration.add(SymbolConstants.*SECURE_ENABLED*, "true")";
> >
> >
> >
> > Still all the pageLinks and actionLinks generating http request.
> >
> >
> >
> > Any idea guys why it is happening?
> >
> >
> >
> > Regards
> >
> > Mahendra
> >
>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


RE: HTTPS enabled Application

2014-01-15 Thread Athneria, Mahendra
Hi Dmirty,

Thanks for your reply. I have already made the full application secure by 
adding  configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into 
appmodule.java.

What you are suggesting is to make the one page secure.

Regards,
Mahendra

-Original Message-
From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com] 
Sent: Wednesday, January 15, 2014 5:20 PM
To: Tapestry users
Subject: Re: HTTPS enabled Application

Try putting @org.apache.tapestry5.annotations.Secure annotations on your pages.


On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra < 
mahendra.athne...@atos.net> wrote:

>  Hi,
>
>
>
> I am facing issue related to HTTPS in tapestry. My tomcat server is 
> HTTPS enabled. When I try to access the login page of my tapestry 
> application I got below message.
>
>
> "Bad Request
>
> Your browser sent a request that this server could not understand.
> Reason: You're speaking plain HTTP to an SSL-enabled server port.
> Instead use the HTTPS scheme to access this URL, please.
>
> Hint: 
> *https://demo-ccbo.gecko.aw.atos.net/*<https://demo-ccbo.gecko.aw.atos
> .net/>
>
> "
>
>
>
>
>
> My application is secured, I have configured below in appmodule.java
>
>
>
> "configuration.add(SymbolConstants.*SECURE_ENABLED*, "true")";
>
>
>
> Still all the pageLinks and actionLinks generating http request.
>
>
>
> Any idea guys why it is happening?
>
>
>
> Regards
>
> Mahendra
>



--
Dmitry Gusev

AnjLab Team
http://anjlab.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: HTTPS enabled Application

2014-01-15 Thread Dmitry Gusev
Try putting @org.apache.tapestry5.annotations.Secure annotations on your
pages.


On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra <
mahendra.athne...@atos.net> wrote:

>  Hi,
>
>
>
> I am facing issue related to HTTPS in tapestry. My tomcat server is HTTPS
> enabled. When I try to access the login page of my tapestry application I
> got below message.
>
>
> “Bad Request
>
> Your browser sent a request that this server could not understand.
> Reason: You're speaking plain HTTP to an SSL-enabled server port.
> Instead use the HTTPS scheme to access this URL, please.
>
> Hint: 
> *https://demo-ccbo.gecko.aw.atos.net/*
>
> ”
>
>
>
>
>
> My application is secured, I have configured below in appmodule.java
>
>
>
> “configuration.add(SymbolConstants.*SECURE_ENABLED*, "true")”;
>
>
>
> Still all the pageLinks and actionLinks generating http request.
>
>
>
> Any idea guys why it is happening?
>
>
>
> Regards
>
> Mahendra
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


HTTPS enabled Application

2014-01-15 Thread Athneria, Mahendra
Hi,



I am facing issue related to HTTPS in tapestry. My tomcat server is HTTPS 
enabled. When I try to access the login page of my tapestry application I got 
below message.



"Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Hint: https://demo-ccbo.gecko.aw.atos.net/

"



[cid:image001.png@01CF120F.4230D660]



My application is secured, I have configured below in appmodule.java



"configuration.add(SymbolConstants.SECURE_ENABLED, "true")";



Still all the pageLinks and actionLinks generating http request.



Any idea guys why it is happening?



Regards

Mahendra