Re: pagecatalog and servicestatus

2011-11-02 Thread Chris Collins
RemoteHost=0:0:0:0:0:0:0:1%0

C
On Nov 1, 2011, at 10:19 PM, Steve Eynon wrote:

 Cool!
 
 But I'm also interested in your remote host ('cos I use an embedded
 Jetty to!). Could you try adding this to one of your pages (not
 checked for syntax):
 
 @Inject
 private Request request;
 
 void setupRender() {
System.err.println(RemoteHost=+request.getRemoteHost());
 }
 
 Cheers,
 
 Steve.
 
 
 
 On 2 November 2011 13:09, Chris Collins chris...@me.com wrote:
 Well I take that request and up the ante.  Rather than doing what you asked 
 (cause I didn't know how todo it :-}).  I changed my request from 
 http://localhost/. to http://127.0.0.1/ and it worked
 
 
 On Nov 1, 2011, at 10:01 PM, Steve Eynon wrote:
 
 Having said that
 
 http://svn.apache.org/viewvc?view=revisionrevision=1183162
 and
 http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.java?view=markuppathrev=1183162
 
 gives
 
 public class LocalhostOnly implements WhitelistAnalyzer {
public boolean isRequestOnWhitelist(Request request) {
String remoteHost = request.getRemoteHost();
return remoteHost.equals(localhost) || 
 remoteHost.equals(127.0.0.1);
}
 }
 
 Could you print out your request.remoteHost from one your pages and
 check it's either localhost or 127.0.0.1?
 
 Steve.
 
 On 2 November 2011 12:57, Steve Eynon steve.ey...@alienfactory.co.uk 
 wrote:
 (Oh and I didn't mean to leave my last response hanging - only I'm not
 in a position to look at T5.3 code right now, so unfortunately I can't
 give much more than a few pointers...)
 
 Steve.
 
 On 2 November 2011 12:52, Chris Collins chris...@me.com wrote:
 Just to add to this (which I am sure points to the fact I am doing 
 something really stupid) I want to give a bit of a background and a 
 validation (or an attempt at a validation).
 
 My process embeds jetty and adds the tapestry filter through web.xml (but 
 I am not using a standard tomcat or jetty runner).
 
 I have a few of my own T5 pages that render fine though they are pretty 
 basic (components and pages).
 
 just to take my code out of the equation I took recent project Barry 
 Books posted for twitter-bootstrap earlier this week.  I added to his 
 little project's web.xml:
 
   context-param
param-nametapestry.production-mode/param-name
param-valuefalse/param-value
/context-param
 
 Then I tried the demo and this particular path:
 
 http://localhost:8080/tapestry-bootstrap/servicestatus
 
 not much exciting happened.
 
 Thanks for your help and sorry this is probably described in large bold 
 text on some main page under read this first :-}
 
 Best
 
 C
 
 On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:
 
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
 PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 
 package-info: org.apache.tapestry5.corelib.pages.package-info
 
 
 dont know if all these are supposed to be addressable in a meaningful 
 way.
 package-info blows a classformaterror
 propertyeditblocks gives me div/div
 propertydisplayblocks gives me a runtimeexception because a file coudlnt 
 be found during render time
 pagecatalog gives me a 404
 servicestatus gives me a 404
 
 
 
 
 On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:
 
 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:
 
 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 
 Do you see the pages listed?
 
 Steve.
 
 
 
 
 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.
 
 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):
 
 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .
 
 
 I have a page I test to see if this property is set:
 
   @Inject
   @Symbol(SymbolConstants.PRODUCTION_MODE)
   @Property(write = false)
   private boolean productionMode;
 
 .
 
 t:if test=productionMode
   bProduction Mode/b
   p:else
   bNot production mode still/b
   /p:else
   /t:if
 
 
 it says it is in production mode or not (it says not production mode).
 
 Further I have in a test page something that forces the exception 
 reporting:
 
 void onActionFromFail ()
   {
   throw new RuntimeException(Failure inside action event 
 handler.);
   }
 
 It blows a lovely exception report page (I love it).
 
 C
 
 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:
 
 The pages are invisible when not in development mode, so the most
 likely case 

Re: pagecatalog and servicestatus

2011-11-02 Thread Steve Eynon
Thanks - that looks like an IPv6 loopback address.

http://en.wikipedia.org/wiki/Localhost

In that case, I'm not sure if T5 should be adding more whitelist addresses...?

Steve.


On 2 November 2011 14:19, Chris Collins chris...@me.com wrote:
 0:0:0:0:0:0:0:1%0

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



Re: pagecatalog and servicestatus

2011-11-02 Thread Tony Nelson
For what it's worth, I seem to be having the same problem.  I assumed it was 
something in my authentication filter redirecting the browser back to my Index 
page, until I happened to read this ( 
http://tapestry.apache.org/error-page-recipe.html ) yesterday:

An issue with an application that has a root Index page is that any invalid 
path, which would normally generate a 404 error, is instead routed to the Index 
page (because the invalid path looks like page's activation context).

I see PageCatalog and ServiceStatus as well..

[INFO] TapestryModule.ComponentClassResolver Available pages (106):
 (blank): 
com.starpoint.instihire.pages.Index
 ExceptionReport: 
org.apache.tapestry5.corelib.pages.ExceptionReport
   Index: 
com.starpoint.instihire.pages.Index
  Logout: 
com.starpoint.instihire.pages.Logout
 PageCatalog: 
org.apache.tapestry5.corelib.pages.PageCatalog
   PropertyDisplayBlocks: 
org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
  PropertyEditBlocks: 
org.apache.tapestry5.corelib.pages.PropertyEditBlocks
   ServiceStatus: 
org.apache.tapestry5.corelib.pages.ServiceStatus

Tony

On Nov 2, 2011, at 12:52 AM, Chris Collins wrote:

 Just to add to this (which I am sure points to the fact I am doing something 
 really stupid) I want to give a bit of a background and a validation (or an 
 attempt at a validation).
 
 My process embeds jetty and adds the tapestry filter through web.xml (but I 
 am not using a standard tomcat or jetty runner).
 
 I have a few of my own T5 pages that render fine though they are pretty basic 
 (components and pages).
 
 just to take my code out of the equation I took recent project Barry Books 
 posted for twitter-bootstrap earlier this week.  I added to his little 
 project's web.xml:
 
   context-param
param-nametapestry.production-mode/param-name
param-valuefalse/param-value
/context-param
 
 Then I tried the demo and this particular path:
 
 http://localhost:8080/tapestry-bootstrap/servicestatus
 
 not much exciting happened. 
 
 Thanks for your help and sorry this is probably described in large bold text 
 on some main page under read this first :-}
 
 Best
 
 C
 
 On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:
 
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
 PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 
 package-info: org.apache.tapestry5.corelib.pages.package-info
 
 
 dont know if all these are supposed to be addressable in a meaningful way.  
 package-info blows a classformaterror
 propertyeditblocks gives me div/div
 propertydisplayblocks gives me a runtimeexception because a file coudlnt be 
 found during render time
 pagecatalog gives me a 404
 servicestatus gives me a 404
 
 
 
 
 On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:
 
 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:
 
 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 
 Do you see the pages listed?
 
 Steve.
 
 
 
 
 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.
 
 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):
 
 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .
 
 
 I have a page I test to see if this property is set:
 
  @Inject
  @Symbol(SymbolConstants.PRODUCTION_MODE)
  @Property(write = false)
  private boolean productionMode;
 
 .
 
 t:if test=productionMode
  bProduction Mode/b
  p:else
  bNot production mode still/b
  /p:else
  /t:if
 
 
 it says it is in production mode or not (it says not production mode).
 
 Further I have in a test page something that forces the exception 
 reporting:
 
 void onActionFromFail ()
  {
  throw new RuntimeException(Failure inside action event handler.);
  }
 
 It blows a lovely exception report page (I love it).
 
 C
 
 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:
 
 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.
 
 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.
 
 I am trying out 5.3-rc-1.
 
 I am trying to get either the pagecatalog or 

Re: pagecatalog and servicestatus

2011-11-02 Thread Steve Eynon
Yeah, the index page / activation context thing could either be a
blessing or a curse! (So far always a blessing in my apps - phew!) I
always have a difficult time generating 404s with a T5 app.

To get your pagecatalog up, I would suggest finding out what your
remoteHost address is (as per last post) and contributing it to the
Whitelist configuration.

Steve.


On 2 November 2011 21:57, Tony Nelson tnel...@starpoint.com wrote:
 For what it's worth, I seem to be having the same problem.  I assumed it was 
 something in my authentication filter redirecting the browser back to my 
 Index page, until I happened to read this ( 
 http://tapestry.apache.org/error-page-recipe.html ) yesterday:

 An issue with an application that has a root Index page is that any invalid 
 path, which would normally generate a 404 error, is instead routed to the 
 Index page (because the invalid path looks like page's activation context).

 I see PageCatalog and ServiceStatus as well..

 [INFO] TapestryModule.ComponentClassResolver Available pages (106):
                                         (blank): 
 com.starpoint.instihire.pages.Index
                                 ExceptionReport: 
 org.apache.tapestry5.corelib.pages.ExceptionReport
                                           Index: 
 com.starpoint.instihire.pages.Index
                                          Logout: 
 com.starpoint.instihire.pages.Logout
                                     PageCatalog: 
 org.apache.tapestry5.corelib.pages.PageCatalog
                           PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
                              PropertyEditBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyEditBlocks
                                   ServiceStatus: 
 org.apache.tapestry5.corelib.pages.ServiceStatus

 Tony

 On Nov 2, 2011, at 12:52 AM, Chris Collins wrote:

 Just to add to this (which I am sure points to the fact I am doing something 
 really stupid) I want to give a bit of a background and a validation (or an 
 attempt at a validation).

 My process embeds jetty and adds the tapestry filter through web.xml (but I 
 am not using a standard tomcat or jetty runner).

 I have a few of my own T5 pages that render fine though they are pretty 
 basic (components and pages).

 just to take my code out of the equation I took recent project Barry Books 
 posted for twitter-bootstrap earlier this week.  I added to his little 
 project's web.xml:

   context-param
        param-nametapestry.production-mode/param-name
        param-valuefalse/param-value
    /context-param

 Then I tried the demo and this particular path:

 http://localhost:8080/tapestry-bootstrap/servicestatus

 not much exciting happened.

 Thanks for your help and sorry this is probably described in large bold text 
 on some main page under read this first :-}

 Best

 C

 On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:

 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
 PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus

 package-info: org.apache.tapestry5.corelib.pages.package-info


 dont know if all these are supposed to be addressable in a meaningful way.
 package-info blows a classformaterror
 propertyeditblocks gives me div/div
 propertydisplayblocks gives me a runtimeexception because a file coudlnt be 
 found during render time
 pagecatalog gives me a 404
 servicestatus gives me a 404




 On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:

 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:

 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog

 Do you see the pages listed?

 Steve.




 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.

 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):

 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .


 I have a page I test to see if this property is set:

  @Inject
  @Symbol(SymbolConstants.PRODUCTION_MODE)
  @Property(write = false)
  private boolean productionMode;

 .

 t:if test=productionMode
          bProduction Mode/b
          p:else
              bNot production mode still/b
          /p:else
      /t:if


 it says it is in production mode or not (it says not production mode).

 Further I have in a test page something that forces the exception 
 reporting:

 void onActionFromFail ()
  {
      throw new RuntimeException(Failure inside action event handler.);
  }

 It blows a lovely exception report page (I love it).

 C

 On Nov 1, 2011, at 4:26 PM, 

Re: pagecatalog and servicestatus

2011-11-02 Thread Howard Lewis Ship
Just commit a fix for this to 5.3 and 5.4.

On Wed, Nov 2, 2011 at 7:19 AM, Thiago H. de Paula Figueiredo
thiag...@gmail.com wrote:
 On Wed, 02 Nov 2011 02:52:08 -0200, Chris Collins chris...@me.com wrote:

 http://localhost:8080/tapestry-bootstrap/servicestatus

 Try running the app as the root one please, just in case.

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
 instructor
 Owner, Ars Machina Tecnologia da Informação Ltda.
 http://www.arsmachina.com.br

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





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: pagecatalog and servicestatus

2011-11-01 Thread Howard Lewis Ship
The pages are invisible when not in development mode, so the most
likely case is that you are not actually running in development mode.

On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.

 I am trying out 5.3-rc-1.

 I am trying to get either the pagecatalog or servicestatus pages such:

 http://localhost:myport/page

By default, the pages are only accessible from localhost.  This should
work ... but possibly something else is going on. What is your dev
environment (OS, etc.)?


 I can render any of my pages but neither of these pages seem to be found.  I 
 am running in developer mode.  Any clues on my stupidity?

I'd phrase it as Any idea what I'm missing.  There's a lot going on
in Tapestry (almost, too much) , and in all the tiers of client web
browser and HTTP between you and it, so don't jump to the conclusion
that it's you ... or that it's Tapestry.



 Best

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





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
I dont think that is the case.  I had already verified that exception reporting 
was working.

I programmatically set tapestry.production-mode=false in one of my AppModule's 
(I didnt do it via the web.xml):


configuration.add(SymbolConstants.PRODUCTION_MODE, false);
.


I have a page I test to see if this property is set:

@Inject
@Symbol(SymbolConstants.PRODUCTION_MODE)
@Property(write = false)
private boolean productionMode;

.

t:if test=productionMode
bProduction Mode/b
p:else
bNot production mode still/b
/p:else
/t:if


it says it is in production mode or not (it says not production mode).

Further I have in a test page something that forces the exception reporting:

void onActionFromFail ()
{
throw new RuntimeException(Failure inside action event handler.);
}

It blows a lovely exception report page (I love it).

C

On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:

 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.
 
 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.
 
 I am trying out 5.3-rc-1.
 
 I am trying to get either the pagecatalog or servicestatus pages such:
 
 http://localhost:myport/page
 
 By default, the pages are only accessible from localhost.  This should
 work ... but possibly something else is going on. What is your dev
 environment (OS, etc.)?
 
 
 I can render any of my pages but neither of these pages seem to be found.  I 
 am running in developer mode.  Any clues on my stupidity?
 
 I'd phrase it as Any idea what I'm missing.  There's a lot going on
 in Tapestry (almost, too much) , and in all the tiers of client web
 browser and HTTP between you and it, so don't jump to the conclusion
 that it's you ... or that it's Tapestry.
 
 
 
 Best
 
 C
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 
 
 -- 
 Howard M. Lewis Ship
 
 Creator of Apache Tapestry
 
 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!
 
 (971) 678-5210
 http://howardlewisship.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


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



Re: pagecatalog and servicestatus

2011-11-01 Thread Steve Eynon
When you start up T5 it lists all the available page class files with
their corresponding URLs, e.g:

ComponentClassResolver - Available pages:
ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog

Do you see the pages listed?

Steve.




On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.

 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):

 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .


 I have a page I test to see if this property is set:

    @Inject
    @Symbol(SymbolConstants.PRODUCTION_MODE)
    @Property(write = false)
    private boolean productionMode;

 .

 t:if test=productionMode
            bProduction Mode/b
            p:else
                bNot production mode still/b
            /p:else
        /t:if


 it says it is in production mode or not (it says not production mode).

 Further I have in a test page something that forces the exception reporting:

 void onActionFromFail ()
    {
        throw new RuntimeException(Failure inside action event handler.);
    }

 It blows a lovely exception report page (I love it).

 C

 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:

 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.

 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.

 I am trying out 5.3-rc-1.

 I am trying to get either the pagecatalog or servicestatus pages such:

 http://localhost:myport/page

 By default, the pages are only accessible from localhost.  This should
 work ... but possibly something else is going on. What is your dev
 environment (OS, etc.)?


 I can render any of my pages but neither of these pages seem to be found.  
 I am running in developer mode.  Any clues on my stupidity?

 I'd phrase it as Any idea what I'm missing.  There's a lot going on
 in Tapestry (almost, too much) , and in all the tiers of client web
 browser and HTTP between you and it, so don't jump to the conclusion
 that it's you ... or that it's Tapestry.



 Best

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





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry

 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!

 (971) 678-5210
 http://howardlewisship.com

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



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



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



Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
PropertyDisplayBlocks: org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus

package-info: org.apache.tapestry5.corelib.pages.package-info


dont know if all these are supposed to be addressable in a meaningful way.  
package-info blows a classformaterror
propertyeditblocks gives me div/div
propertydisplayblocks gives me a runtimeexception because a file coudlnt be 
found during render time
pagecatalog gives me a 404
servicestatus gives me a 404




On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:

 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:
 
 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 
 Do you see the pages listed?
 
 Steve.
 
 
 
 
 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.
 
 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):
 
 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .
 
 
 I have a page I test to see if this property is set:
 
@Inject
@Symbol(SymbolConstants.PRODUCTION_MODE)
@Property(write = false)
private boolean productionMode;
 
 .
 
 t:if test=productionMode
bProduction Mode/b
p:else
bNot production mode still/b
/p:else
/t:if
 
 
 it says it is in production mode or not (it says not production mode).
 
 Further I have in a test page something that forces the exception reporting:
 
 void onActionFromFail ()
{
throw new RuntimeException(Failure inside action event handler.);
}
 
 It blows a lovely exception report page (I love it).
 
 C
 
 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:
 
 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.
 
 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.
 
 I am trying out 5.3-rc-1.
 
 I am trying to get either the pagecatalog or servicestatus pages such:
 
 http://localhost:myport/page
 
 By default, the pages are only accessible from localhost.  This should
 work ... but possibly something else is going on. What is your dev
 environment (OS, etc.)?
 
 
 I can render any of my pages but neither of these pages seem to be found.  
 I am running in developer mode.  Any clues on my stupidity?
 
 I'd phrase it as Any idea what I'm missing.  There's a lot going on
 in Tapestry (almost, too much) , and in all the tiers of client web
 browser and HTTP between you and it, so don't jump to the conclusion
 that it's you ... or that it's Tapestry.
 
 
 
 Best
 
 C
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 
 
 --
 Howard M. Lewis Ship
 
 Creator of Apache Tapestry
 
 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!
 
 (971) 678-5210
 http://howardlewisship.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


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



Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
Just to add to this (which I am sure points to the fact I am doing something 
really stupid) I want to give a bit of a background and a validation (or an 
attempt at a validation).

My process embeds jetty and adds the tapestry filter through web.xml (but I am 
not using a standard tomcat or jetty runner).

I have a few of my own T5 pages that render fine though they are pretty basic 
(components and pages).

just to take my code out of the equation I took recent project Barry Books 
posted for twitter-bootstrap earlier this week.  I added to his little 
project's web.xml:

   context-param
param-nametapestry.production-mode/param-name
param-valuefalse/param-value
/context-param

Then I tried the demo and this particular path:

http://localhost:8080/tapestry-bootstrap/servicestatus

not much exciting happened. 

Thanks for your help and sorry this is probably described in large bold text on 
some main page under read this first :-}

Best

C

On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:

 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
 PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 
 package-info: org.apache.tapestry5.corelib.pages.package-info
 
 
 dont know if all these are supposed to be addressable in a meaningful way.  
 package-info blows a classformaterror
 propertyeditblocks gives me div/div
 propertydisplayblocks gives me a runtimeexception because a file coudlnt be 
 found during render time
 pagecatalog gives me a 404
 servicestatus gives me a 404
 
 
 
 
 On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:
 
 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:
 
 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 
 Do you see the pages listed?
 
 Steve.
 
 
 
 
 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.
 
 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):
 
 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .
 
 
 I have a page I test to see if this property is set:
 
   @Inject
   @Symbol(SymbolConstants.PRODUCTION_MODE)
   @Property(write = false)
   private boolean productionMode;
 
 .
 
 t:if test=productionMode
   bProduction Mode/b
   p:else
   bNot production mode still/b
   /p:else
   /t:if
 
 
 it says it is in production mode or not (it says not production mode).
 
 Further I have in a test page something that forces the exception reporting:
 
 void onActionFromFail ()
   {
   throw new RuntimeException(Failure inside action event handler.);
   }
 
 It blows a lovely exception report page (I love it).
 
 C
 
 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:
 
 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.
 
 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.
 
 I am trying out 5.3-rc-1.
 
 I am trying to get either the pagecatalog or servicestatus pages such:
 
 http://localhost:myport/page
 
 By default, the pages are only accessible from localhost.  This should
 work ... but possibly something else is going on. What is your dev
 environment (OS, etc.)?
 
 
 I can render any of my pages but neither of these pages seem to be found. 
  I am running in developer mode.  Any clues on my stupidity?
 
 I'd phrase it as Any idea what I'm missing.  There's a lot going on
 in Tapestry (almost, too much) , and in all the tiers of client web
 browser and HTTP between you and it, so don't jump to the conclusion
 that it's you ... or that it's Tapestry.
 
 
 
 Best
 
 C
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 
 
 --
 Howard M. Lewis Ship
 
 Creator of Apache Tapestry
 
 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!
 
 (971) 678-5210
 http://howardlewisship.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: 

Re: pagecatalog and servicestatus

2011-11-01 Thread Steve Eynon
package-info is just JavaDocs (interesting that it makes it through as
a bonified page class!)
propertyeditblocks  propertydisplayblocks aren't meant to be hit
directly, they're a holding ground for blocks that are displayed by
the Grid and BeanEditor

pagecatalog  servicestatus should be rendered.

As you can hit the other pages I believe the problem is something to
do with this:

Tapestry should include a @WhitelistOnly page annotation
https://issues.apache.org/jira/browse/TAP5-1696

Desc:
PageCatalog and ServiceStatus should be protected with this page.

As the above only recently got shipped with T5.3.

Steve.


On 2 November 2011 12:24, Chris Collins chris...@me.com wrote:
 package-info

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



Re: pagecatalog and servicestatus

2011-11-01 Thread Steve Eynon
(Oh and I didn't mean to leave my last response hanging - only I'm not
in a position to look at T5.3 code right now, so unfortunately I can't
give much more than a few pointers...)

Steve.

On 2 November 2011 12:52, Chris Collins chris...@me.com wrote:
 Just to add to this (which I am sure points to the fact I am doing something 
 really stupid) I want to give a bit of a background and a validation (or an 
 attempt at a validation).

 My process embeds jetty and adds the tapestry filter through web.xml (but I 
 am not using a standard tomcat or jetty runner).

 I have a few of my own T5 pages that render fine though they are pretty basic 
 (components and pages).

 just to take my code out of the equation I took recent project Barry Books 
 posted for twitter-bootstrap earlier this week.  I added to his little 
 project's web.xml:

   context-param
        param-nametapestry.production-mode/param-name
        param-valuefalse/param-value
    /context-param

 Then I tried the demo and this particular path:

 http://localhost:8080/tapestry-bootstrap/servicestatus

 not much exciting happened.

 Thanks for your help and sorry this is probably described in large bold text 
 on some main page under read this first :-}

 Best

 C

 On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:

 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
 PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus

 package-info: org.apache.tapestry5.corelib.pages.package-info


 dont know if all these are supposed to be addressable in a meaningful way.
 package-info blows a classformaterror
 propertyeditblocks gives me div/div
 propertydisplayblocks gives me a runtimeexception because a file coudlnt be 
 found during render time
 pagecatalog gives me a 404
 servicestatus gives me a 404




 On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:

 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:

 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog

 Do you see the pages listed?

 Steve.




 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.

 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):

 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .


 I have a page I test to see if this property is set:

   @Inject
   @Symbol(SymbolConstants.PRODUCTION_MODE)
   @Property(write = false)
   private boolean productionMode;

 .

 t:if test=productionMode
           bProduction Mode/b
           p:else
               bNot production mode still/b
           /p:else
       /t:if


 it says it is in production mode or not (it says not production mode).

 Further I have in a test page something that forces the exception 
 reporting:

 void onActionFromFail ()
   {
       throw new RuntimeException(Failure inside action event handler.);
   }

 It blows a lovely exception report page (I love it).

 C

 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:

 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.

 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.

 I am trying out 5.3-rc-1.

 I am trying to get either the pagecatalog or servicestatus pages such:

 http://localhost:myport/page

 By default, the pages are only accessible from localhost.  This should
 work ... but possibly something else is going on. What is your dev
 environment (OS, etc.)?


 I can render any of my pages but neither of these pages seem to be 
 found.  I am running in developer mode.  Any clues on my stupidity?

 I'd phrase it as Any idea what I'm missing.  There's a lot going on
 in Tapestry (almost, too much) , and in all the tiers of client web
 browser and HTTP between you and it, so don't jump to the conclusion
 that it's you ... or that it's Tapestry.



 Best

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





 --
 Howard M. Lewis Ship

 Creator of Apache Tapestry

 The source for Tapestry training, mentoring and support. Contact me to
 learn how I can get you up and productive in Tapestry fast!

 (971) 678-5210
 http://howardlewisship.com

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

Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
Not a problem.  But I am sure its my fault :-}

C
On Nov 1, 2011, at 9:53 PM, Steve Eynon wrote:

 package-info is just JavaDocs (interesting that it makes it through as
 a bonified page class!)
 propertyeditblocks  propertydisplayblocks aren't meant to be hit
 directly, they're a holding ground for blocks that are displayed by
 the Grid and BeanEditor
 
 pagecatalog  servicestatus should be rendered.
 
 As you can hit the other pages I believe the problem is something to
 do with this:
 
 Tapestry should include a @WhitelistOnly page annotation
 https://issues.apache.org/jira/browse/TAP5-1696
 
 Desc:
 PageCatalog and ServiceStatus should be protected with this page.
 
 As the above only recently got shipped with T5.3.
 
 Steve.
 
 
 On 2 November 2011 12:24, Chris Collins chris...@me.com wrote:
 package-info
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


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



Re: pagecatalog and servicestatus

2011-11-01 Thread Steve Eynon
Having said that

http://svn.apache.org/viewvc?view=revisionrevision=1183162
and
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.java?view=markuppathrev=1183162

gives

public class LocalhostOnly implements WhitelistAnalyzer {
public boolean isRequestOnWhitelist(Request request) {
String remoteHost = request.getRemoteHost();
return remoteHost.equals(localhost) || remoteHost.equals(127.0.0.1);
}
}

Could you print out your request.remoteHost from one your pages and
check it's either localhost or 127.0.0.1?

Steve.

On 2 November 2011 12:57, Steve Eynon steve.ey...@alienfactory.co.uk wrote:
 (Oh and I didn't mean to leave my last response hanging - only I'm not
 in a position to look at T5.3 code right now, so unfortunately I can't
 give much more than a few pointers...)

 Steve.

 On 2 November 2011 12:52, Chris Collins chris...@me.com wrote:
 Just to add to this (which I am sure points to the fact I am doing something 
 really stupid) I want to give a bit of a background and a validation (or an 
 attempt at a validation).

 My process embeds jetty and adds the tapestry filter through web.xml (but I 
 am not using a standard tomcat or jetty runner).

 I have a few of my own T5 pages that render fine though they are pretty 
 basic (components and pages).

 just to take my code out of the equation I took recent project Barry Books 
 posted for twitter-bootstrap earlier this week.  I added to his little 
 project's web.xml:

   context-param
        param-nametapestry.production-mode/param-name
        param-valuefalse/param-value
    /context-param

 Then I tried the demo and this particular path:

 http://localhost:8080/tapestry-bootstrap/servicestatus

 not much exciting happened.

 Thanks for your help and sorry this is probably described in large bold text 
 on some main page under read this first :-}

 Best

 C

 On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:

 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
 PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus

 package-info: org.apache.tapestry5.corelib.pages.package-info


 dont know if all these are supposed to be addressable in a meaningful way.
 package-info blows a classformaterror
 propertyeditblocks gives me div/div
 propertydisplayblocks gives me a runtimeexception because a file coudlnt be 
 found during render time
 pagecatalog gives me a 404
 servicestatus gives me a 404




 On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:

 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:

 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog

 Do you see the pages listed?

 Steve.




 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.

 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):

 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .


 I have a page I test to see if this property is set:

   @Inject
   @Symbol(SymbolConstants.PRODUCTION_MODE)
   @Property(write = false)
   private boolean productionMode;

 .

 t:if test=productionMode
           bProduction Mode/b
           p:else
               bNot production mode still/b
           /p:else
       /t:if


 it says it is in production mode or not (it says not production mode).

 Further I have in a test page something that forces the exception 
 reporting:

 void onActionFromFail ()
   {
       throw new RuntimeException(Failure inside action event handler.);
   }

 It blows a lovely exception report page (I love it).

 C

 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:

 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.

 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.

 I am trying out 5.3-rc-1.

 I am trying to get either the pagecatalog or servicestatus pages such:

 http://localhost:myport/page

 By default, the pages are only accessible from localhost.  This should
 work ... but possibly something else is going on. What is your dev
 environment (OS, etc.)?


 I can render any of my pages but neither of these pages seem to be 
 found.  I am running in developer mode.  Any clues on my stupidity?

 I'd phrase it as Any idea what I'm missing.  There's a lot going on
 in Tapestry (almost, too much) , and in all the tiers of client web
 browser 

Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
Well I take that request and up the ante.  Rather than doing what you asked 
(cause I didn't know how todo it :-}).  I changed my request from 
http://localhost/. to http://127.0.0.1/ and it worked


On Nov 1, 2011, at 10:01 PM, Steve Eynon wrote:

 Having said that
 
 http://svn.apache.org/viewvc?view=revisionrevision=1183162
 and
 http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.java?view=markuppathrev=1183162
 
 gives
 
 public class LocalhostOnly implements WhitelistAnalyzer {
public boolean isRequestOnWhitelist(Request request) {
String remoteHost = request.getRemoteHost();
return remoteHost.equals(localhost) || 
 remoteHost.equals(127.0.0.1);
}
 }
 
 Could you print out your request.remoteHost from one your pages and
 check it's either localhost or 127.0.0.1?
 
 Steve.
 
 On 2 November 2011 12:57, Steve Eynon steve.ey...@alienfactory.co.uk wrote:
 (Oh and I didn't mean to leave my last response hanging - only I'm not
 in a position to look at T5.3 code right now, so unfortunately I can't
 give much more than a few pointers...)
 
 Steve.
 
 On 2 November 2011 12:52, Chris Collins chris...@me.com wrote:
 Just to add to this (which I am sure points to the fact I am doing 
 something really stupid) I want to give a bit of a background and a 
 validation (or an attempt at a validation).
 
 My process embeds jetty and adds the tapestry filter through web.xml (but I 
 am not using a standard tomcat or jetty runner).
 
 I have a few of my own T5 pages that render fine though they are pretty 
 basic (components and pages).
 
 just to take my code out of the equation I took recent project Barry Books 
 posted for twitter-bootstrap earlier this week.  I added to his little 
 project's web.xml:
 
   context-param
param-nametapestry.production-mode/param-name
param-valuefalse/param-value
/context-param
 
 Then I tried the demo and this particular path:
 
 http://localhost:8080/tapestry-bootstrap/servicestatus
 
 not much exciting happened.
 
 Thanks for your help and sorry this is probably described in large bold 
 text on some main page under read this first :-}
 
 Best
 
 C
 
 On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:
 
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
 PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 
 package-info: org.apache.tapestry5.corelib.pages.package-info
 
 
 dont know if all these are supposed to be addressable in a meaningful way.
 package-info blows a classformaterror
 propertyeditblocks gives me div/div
 propertydisplayblocks gives me a runtimeexception because a file coudlnt 
 be found during render time
 pagecatalog gives me a 404
 servicestatus gives me a 404
 
 
 
 
 On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:
 
 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:
 
 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 
 Do you see the pages listed?
 
 Steve.
 
 
 
 
 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.
 
 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):
 
 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .
 
 
 I have a page I test to see if this property is set:
 
   @Inject
   @Symbol(SymbolConstants.PRODUCTION_MODE)
   @Property(write = false)
   private boolean productionMode;
 
 .
 
 t:if test=productionMode
   bProduction Mode/b
   p:else
   bNot production mode still/b
   /p:else
   /t:if
 
 
 it says it is in production mode or not (it says not production mode).
 
 Further I have in a test page something that forces the exception 
 reporting:
 
 void onActionFromFail ()
   {
   throw new RuntimeException(Failure inside action event handler.);
   }
 
 It blows a lovely exception report page (I love it).
 
 C
 
 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:
 
 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.
 
 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice at T5 so apologize for what is surely a stupid question.
 
 I am trying out 5.3-rc-1.
 
 I am trying to get either the pagecatalog or servicestatus pages such:
 
 http://localhost:myport/page
 
 By default, the pages are only accessible from localhost.  This should
 work ... but possibly something else is going on. 

Re: pagecatalog and servicestatus

2011-11-01 Thread Steve Eynon
Cool!

But I'm also interested in your remote host ('cos I use an embedded
Jetty to!). Could you try adding this to one of your pages (not
checked for syntax):

@Inject
private Request request;

void setupRender() {
System.err.println(RemoteHost=+request.getRemoteHost());
}

Cheers,

Steve.



On 2 November 2011 13:09, Chris Collins chris...@me.com wrote:
 Well I take that request and up the ante.  Rather than doing what you asked 
 (cause I didn't know how todo it :-}).  I changed my request from 
 http://localhost/. to http://127.0.0.1/ and it worked


 On Nov 1, 2011, at 10:01 PM, Steve Eynon wrote:

 Having said that

 http://svn.apache.org/viewvc?view=revisionrevision=1183162
 and
 http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.java?view=markuppathrev=1183162

 gives

 public class LocalhostOnly implements WhitelistAnalyzer {
    public boolean isRequestOnWhitelist(Request request) {
        String remoteHost = request.getRemoteHost();
        return remoteHost.equals(localhost) || 
 remoteHost.equals(127.0.0.1);
    }
 }

 Could you print out your request.remoteHost from one your pages and
 check it's either localhost or 127.0.0.1?

 Steve.

 On 2 November 2011 12:57, Steve Eynon steve.ey...@alienfactory.co.uk wrote:
 (Oh and I didn't mean to leave my last response hanging - only I'm not
 in a position to look at T5.3 code right now, so unfortunately I can't
 give much more than a few pointers...)

 Steve.

 On 2 November 2011 12:52, Chris Collins chris...@me.com wrote:
 Just to add to this (which I am sure points to the fact I am doing 
 something really stupid) I want to give a bit of a background and a 
 validation (or an attempt at a validation).

 My process embeds jetty and adds the tapestry filter through web.xml (but 
 I am not using a standard tomcat or jetty runner).

 I have a few of my own T5 pages that render fine though they are pretty 
 basic (components and pages).

 just to take my code out of the equation I took recent project Barry Books 
 posted for twitter-bootstrap earlier this week.  I added to his little 
 project's web.xml:

   context-param
        param-nametapestry.production-mode/param-name
        param-valuefalse/param-value
    /context-param

 Then I tried the demo and this particular path:

 http://localhost:8080/tapestry-bootstrap/servicestatus

 not much exciting happened.

 Thanks for your help and sorry this is probably described in large bold 
 text on some main page under read this first :-}

 Best

 C

 On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:

 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
 PropertyDisplayBlocks: 
 org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
 PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus

 package-info: org.apache.tapestry5.corelib.pages.package-info


 dont know if all these are supposed to be addressable in a meaningful way.
 package-info blows a classformaterror
 propertyeditblocks gives me div/div
 propertydisplayblocks gives me a runtimeexception because a file coudlnt 
 be found during render time
 pagecatalog gives me a 404
 servicestatus gives me a 404




 On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:

 When you start up T5 it lists all the available page class files with
 their corresponding URLs, e.g:

 ComponentClassResolver - Available pages:
 ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
 PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog

 Do you see the pages listed?

 Steve.




 On 2 November 2011 11:21, Chris Collins chris...@me.com wrote:
 I dont think that is the case.  I had already verified that exception 
 reporting was working.

 I programmatically set tapestry.production-mode=false in one of my 
 AppModule's (I didnt do it via the web.xml):

 
 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
 .


 I have a page I test to see if this property is set:

   @Inject
   @Symbol(SymbolConstants.PRODUCTION_MODE)
   @Property(write = false)
   private boolean productionMode;

 .

 t:if test=productionMode
           bProduction Mode/b
           p:else
               bNot production mode still/b
           /p:else
       /t:if


 it says it is in production mode or not (it says not production mode).

 Further I have in a test page something that forces the exception 
 reporting:

 void onActionFromFail ()
   {
       throw new RuntimeException(Failure inside action event 
 handler.);
   }

 It blows a lovely exception report page (I love it).

 C

 On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:

 The pages are invisible when not in development mode, so the most
 likely case is that you are not actually running in development mode.

 On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
 chris_j_coll...@yahoo.com wrote:
 I am a novice 

Re: PageCatalog and ServiceStatus

2011-10-09 Thread TG
It is beta 9. Which jar file(s) is it in? I do not use Maven. Thanks.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/PageCatalog-and-ServiceStatus-tp4880131p4885211.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: PageCatalog and ServiceStatus

2011-10-09 Thread Steve Eynon
On 30 September 2011 04:16, Howard Lewis Ship hls...@gmail.com wrote:
 Meanwhile, beta-14 includes the PageCatalog, and beta-15 (building
 now) improves it by dealing better with pages that have problems.

Looks like you need at least beta-14.



On 9 October 2011 21:48, TG tapestry...@hotmail.com wrote:
 It is beta 9. Which jar file(s) is it in? I do not use Maven. Thanks.

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/PageCatalog-and-ServiceStatus-tp4880131p4885211.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

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



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



Re: PageCatalog and ServiceStatus

2011-10-07 Thread Howard Lewis Ship
They're on by default, but you need one of the later betas for PageCatalog.

Always, ALWAYS, include the exact version of Tapestry you are using in
any question about Tapestry.

On Fri, Oct 7, 2011 at 7:07 AM, TG tapestry...@hotmail.com wrote:
 I read somewhere that in Tapestry 5.3, I can hit /pagecatalog and
 /servicestatus to look at the memory usage etc. But when I hit the URL, it
 said not found.

 How do I configure to get these two functionalities?

 Thanks.

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/PageCatalog-and-ServiceStatus-tp4880131p4880131.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

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





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: PageCatalog and ServiceStatus

2011-10-07 Thread Thiago H. de Paula Figueiredo

On Fri, 07 Oct 2011 11:07:07 -0300, TG tapestry...@hotmail.com wrote:


I read somewhere that in Tapestry 5.3, I can hit /pagecatalog and
/servicestatus to look at the memory usage etc. But when I hit the URL,  
it said not found.


You need to have a very recent snapshot (I don't know if any alpha or beta  
version already includes it) and AFAIK you need to have production mode  
disabled.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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