Hi,

I noticed that in my startup log I dont see the following line.

INFO: Publishing TilesContext for context:
org.apache.tiles.servlet.context.ServletTilesApplicationContext
Does this mean, that Tiles Container doesnt know which context to look at?
Please let me know.

Thanks,
Adi Saraf



On Thu, Aug 11, 2011 at 10:33 AM, Aditya Saraf <[email protected]> wrote:

> Antonio,
>
> I was not using the <tiles:setCurrentContainer> tag, because all calls to
> the definitions are within the same application context. However, I did put
> the <tiles:setCurrentContainer> tag in the problematic file above the
> <tiles:insertDefinition> tag and I got a different error.
>
> org.apache.tiles.impl.NoSuchContainerException: The container with the key
> 'null' cannot be found
> org.apache.tiles.jsp.context.JspUtil.setCurrentContainer(JspUtil.java:183)
>
> org.apache.tiles.jsp.taglib.definition.SetCurrentContainerTag.doTag(SetCurrentContainerTag.java:65)
>
> org.apache.jsp.index_jsp._jspx_meth_tiles_005fsetCurrentContainer_005f0(index_jsp.java:65)
> Why is the container key defaulting to be null? From documentation it says
> that if the containerKey attribute is not specified then the default
> containerKey is assumed.
>
> Thanks,
> Adi Saraf
>
>
> On Thu, Aug 11, 2011 at 10:20 AM, Antonio Petrelli <
> [email protected]> wrote:
>
>> 2011/8/11 Aditya Saraf <[email protected]>
>>
>> > Thanks for your prompt response. There are no indications in my Tomcat
>> > statup log. My logging properties are set to show only INFO, WARN and,
>> > SEVERE. What should the container reference point to? maybe my file
>> > structure is incorrect? Please let me know.
>> >
>>
>> There's a thing that I did not understand. Are the calls to definitions
>> (the
>> working one and the problematic one) in the same application, or different
>> applications?
>> I try to explain.
>> If they are in the same one, then the reason why the container is null is
>> because it is done explicitly by using <tiles:setCurrentContainer> tag in
>> JSP.
>> If they are in different ones, then probably it is a startup problem.
>>
>> Antonio
>>
>
>
>
> --
> Adi Saraf
>



-- 
Adi Saraf

Reply via email to