Return-Path: Delivered-To: apmail-hivemind-user-archive@www.apache.org Received: (qmail 68741 invoked from network); 14 Jul 2006 11:48:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jul 2006 11:48:22 -0000 Received: (qmail 4018 invoked by uid 500); 14 Jul 2006 11:48:21 -0000 Delivered-To: apmail-hivemind-user-archive@hivemind.apache.org Received: (qmail 3910 invoked by uid 500); 14 Jul 2006 11:48:21 -0000 Mailing-List: contact user-help@hivemind.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hivemind.apache.org Delivered-To: mailing list user@hivemind.apache.org Received: (qmail 3901 invoked by uid 99); 14 Jul 2006 11:48:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jul 2006 04:48:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.14.176.14] (HELO klaipeda.balt.net) (195.14.176.14) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jul 2006 04:48:19 -0700 Received: (qmail 11394 invoked from network); 14 Jul 2006 11:47:56 -0000 Received: from unknown (HELO ?192.168.0.103?) (195.14.170.178) by klaipeda.balt.net with SMTP; 14 Jul 2006 11:47:56 -0000 Message-ID: <44B785E6.5060004@ivs.lt> Date: Fri, 14 Jul 2006 14:54:14 +0300 From: Aleksej User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: user@hivemind.apache.org Subject: Re: Can't run Tapestry after adding my own SymbolSource References: <20060714110247.34881.qmail@web52405.mail.yahoo.com> In-Reply-To: <20060714110247.34881.qmail@web52405.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Without my symbolsource contribution everything works fine. Adding my symbol source I need to add "org.apache.tapestry.template-encoding" contribution. Without it I got exception. Shing Hing Man wrote: > I am afraid I can not determine the cause of the > problem. > Not sure if it is a bug or the way I setup symbol > source is wrong. > > > My question : How come if you do not put in > configuration-id="hivemind.SymbolSources"> > > it does not complain about the missing value > for org.apache.tapestry.template-encoding ? > > > I have looked at the Tapestry framework module > descriptor tapestry.props.xml, where > all the property source (symbol source) are set up. > But I am still lost. > > Shing > > --- Aleksej wrote: > > >> Thanks Shing, that help! >> But I don't understand, is it some sort of BUG or >> just incorrect usage >> of symbols? >> If second, then what was wrong? >> >> Shing Hing Man wrote: >> >>> Instead of setting >>> org.apache.tapestry.template-encoding >>> >>> in .application, you can try to set it >>> in hivemodule.xml : >>> >>> >> configuration-id="hivemind.FactoryDefaults"> >>> >> symbol="org.apache.tapestry.template-encoding" >>> value="ISO-8859-1"/> >>> >>> >>> Shing >>> >>> --- Shing Hing Man wrote: >>> >>> >>> >>>> After some debugging in Eclipse, >>>> the after="*" in >>>> >>>> >>> >> after="*" >> >>>> class="ivs.cross.ConfigurationSymbolSource" /> >>>> >>>> >>>> has the right affect. >>>> The above symbolsource is appended at the end. >>>> Somehow, when HiveMind tries to look up the value >>>> for >>>> the >>>> key= org.apache.tapestry.template-encoding, it >>>> can not find it in all the property sources >>>> >> (symbol >> >>>> sources). >>>> >>>> But the error disappear if I explicitly specify >>>> org.apache.tapestry.template-encoding, in >>>> .application : >>>> >>>> >>> >> key="org.apache.tapestry.template-encoding"> >> >>>> ISO-8859-1 >>>> >>>> >>>> >>>> >>>> I do not whether the above fix would have side >>>> effects. >>>> >>>> Shing >>>> --- Shing Hing Man wrote: >>>> >>>> >>>> >>>>> I have replicated the exception you have. The >>>>> >>>>> >>>> cause >>>> >>>> >>>>> seems to be >>>>> HiveMind tries to use your custom SymbolSource >>>>> ConfigurationSymbolSource to >>>>> get the value for >>>>> key=org.apache.tapestry.template-encoding. >>>>> >>>>> I would have thought by specifing after=* in >>>>> >>>>> >>>> >> after="*" >> >>>>> class="ivs.cross.ConfigurationSymbolSource" /> >>>>> >>>>> >>>>> Hivemind would try to search in other symbol >>>>> sources >>>>> first. >>>>> I will look into in, but no promises that I can >>>>> >>>>> >>>> come >>>> >>>> >>>>> up with a solution. >>>>> >>>>> If you press for time, you can use James' >>>>> suggestion. >>>>> >>>>> Shing >>>>> >>>>> >>>>> --- Aleksej wrote: >>>>> >>>>> >>>>> >>>>>> I got such exception: >>>>>> Unable to instantiate component >>>>>> >>>>>> >>>>> framework:Exception: >>>>> >>>>> >>>>>> Can't find resource >>>>>> for bundle java.util.PropertyResourceBundle, >>>>>> >> key >> >>>>>> >>>>>> org.apache.tapestry.template-encoding >>>>>> >>>>>> >>>>>> >>>>>> > org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:60) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicer_10c6807c53f.service($ServletRequestServicer_10c6807c53f.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicer_10c6807c53e.service($ServletRequestServicer_10c6807c53e.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicerFilter_10c6807c53b.service($ServletRequestServicerFilter_10c6807c53b.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicerFilter_10c6807c53a.service($ServletRequestServicerFilter_10c6807c53a.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicer_10c6807c540.service($ServletRequestServicer_10c6807c540.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicerFilter_10c6807c539.service($ServletRequestServicerFilter_10c6807c539.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicerFilter_10c6807c538.service($ServletRequestServicerFilter_10c6807c538.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicer_10c6807c540.service($ServletRequestServicer_10c6807c540.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicerFilter_10c6807c53d.service($ServletRequestServicerFilter_10c6807c53d.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicerFilter_10c6807c53c.service($ServletRequestServicerFilter_10c6807c53c.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicer_10c6807c540.service($ServletRequestServicer_10c6807c540.java) > >>> >>> >>>>>> >>>>>> >>>>>> >>>>>> > $ServletRequestServicer_10c6807c533.service($ServletRequestServicer_10c6807c533.java) > > === message truncated === > > > Home page : > http://uk.geocities.com/matmsh/index.html > > > > ___________________________________________________________ > Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html > > >