Return-Path: X-Original-To: apmail-tapestry-users-archive@www.apache.org Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C897F99FA for ; Wed, 2 Nov 2011 05:09:31 +0000 (UTC) Received: (qmail 76333 invoked by uid 500); 2 Nov 2011 05:09:31 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 76309 invoked by uid 500); 2 Nov 2011 05:09:30 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 76301 invoked by uid 99); 2 Nov 2011 05:09:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 05:09:30 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chrisxyz@me.com designates 17.148.16.97 as permitted sender) Received: from [17.148.16.97] (HELO asmtpout022.mac.com) (17.148.16.97) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 05:09:23 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [192.168.1.106] ([76.126.249.112]) by asmtp022.mac.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0LU000AGGOZ1AU70@asmtp022.mac.com> for users@tapestry.apache.org; Tue, 01 Nov 2011 22:09:02 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.211,0.0.0000 definitions=2011-11-02_01:2011-11-01,2011-11-02,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=2 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1111010345 Subject: Re: pagecatalog and servicestatus From: Chris Collins In-reply-to: Date: Tue, 01 Nov 2011 22:09:00 -0700 Message-id: References: <23253436-F4D9-4C18-868C-EC0E1F92043E@me.com> To: Tapestry users X-Mailer: Apple Mail (2.1251.1) X-Virus-Checked: Checked by ClamAV on apache.org 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=revision&revision=1183162 > and > http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.java?view=markup&pathrev=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 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 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: >>> >>> >>> tapestry.production-mode >>> false >>> >>> >>> 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 "
" >>>> 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 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; >>>>>> >>>>>> ..... >>>>>> >>>>>> >>>>>> Production Mode >>>>>> >>>>>> Not production mode still >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 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 >>>>>>> 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:/ >>>>>>> >>>>>>> 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-unsubscribe@tapestry.apache.org >>>>>>>> For additional commands, e-mail: users-help@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-unsubscribe@tapestry.apache.org >>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org >>>>>>> >>>>>> >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org >>>>>> >>>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>>>> For additional commands, e-mail: users-help@tapestry.apache.org >>>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>>> For additional commands, e-mail: users-help@tapestry.apache.org >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>> For additional commands, e-mail: users-help@tapestry.apache.org >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org > For additional commands, e-mail: users-help@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org