hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksej <alek...@ivs.lt>
Subject Can't run Tapestry after adding my own SymbolSource
Date Thu, 13 Jul 2006 13:26:35 GMT
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)
    
$ServletRequestServicer_10c6807c532.service($ServletRequestServicer_10c6807c532.java)
    
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123)
    org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:79)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
--------------
Interesting that when I first made everything it drop me such or like 
this exception but
when I changed before="*" on after="*" in SymbolSource contribution 
everything start working OK
( and I was very happy at this moment ). But later, after some 
modifications in other part of applications
I got that exception again but now playing with before or after doesn't 
help. Anyway I want to  understand
how does it work, not just make it working. The only difference between 
first  and last code editions
is that when it worked i used symbol from configuration.properties in 
one service, and later decided to
insert it into another service too, and thats it. Here are some parts of 
my code:

Thats how my contribution looks like:
<contribution configuration-id="hivemind.SymbolSources">
   <source name="ivs.cross.configuration" after="*" 
class="ivs.cross.ConfigurationSymbolSource" />
</contribution>
and here is implementation of symbol source ( everything is as in Shing 
tutorial ):
public class ConfigurationSymbolSource implements SymbolSource
{
    private ResourceBundle messages;
    public ConfigurationSymbolSource() throws Exception
    {
        Locale currentLocale= Locale.getDefault();
        messages= ResourceBundle.getBundle( "configuration", 
currentLocale );
    }
    public String valueForSymbol( String name )
    {
        return messages.getString( name );
    }
}


Mime
View raw message