You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Trieu, Danny" <DT...@ebuilt.com> on 2001/08/20 11:17:40 UTC

RE: What is Titles? and what gonna happens to template tag in th efurture?

Ted,

Thank you for answering my question.  I found Tiles to be very interesting.
However, I have a few question regarding Tiles, that I hope you can help me
with or point me to some sources that I can get my answer from.  

My question is I wrote a simple Tiles jsp, and verything work fine till I
introduced the Definition feature of Tiles and I got this exception:  

javax.servlet.ServletException: Can't get definitions factory from context.

This happens the same when I tried to deploy and run the 3 sample apps the
bundled with the distribution I downloaded.  I am run
tomcat4.0b07+Struts1.0+Tiles

I emailed Cedric Dumoulin Cedric Dumoulin (cedric@apache.org) but haven't
heard form him.  Please let me know of any list or people that I can ask
question related to Tiles.

Thanks,

danny

ps. here is the stacktrace:

javax.servlet.ServletException: Can't get definitions factory from context.
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:452)
        at
org.apache.jsp._0002fcommon_0002fbasicPage_jsp._jspService(_0002fcommon_0002
fbasicPage_jsp.java:127)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1000)
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
)
        at java.lang.Thread.run(Thread.java:484)

Root Cause:

javax.servlet.jsp.JspException: Can't get definitions factory from context.
        at
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.jav
a:589)
        at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:442
)
        at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:399)
        at
org.apache.jsp._0002fcommon_0002fbasicPage_jsp._jspService(_0002fcommon_0002
fbasicPage_jsp.java:65)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1000)
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
)
        at java.lang.Thread.run(Thread.java:484)

-----Original Message-----
From: Ted Husted [mailto:husted@apache.org]
Sent: Sunday, August 19, 2001 7:18 AM
To: struts-user@jakarta.apache.org
Subject: Re: What is Titles? and what gonna happens to template tag in
thefurture?


The Tiles tablib can be used as a drop-in replace for the template
taglib. You can even continue to use the template: prefix if you want.
All the changes can be made in the web.xml, and existing JSPs would not
need to be changed. At some point, the template taglib would be moved to
the contrib area and not bundled with the distribution. Whether packages
like Tiles and ValidatorForm will be part of the core Struts download,
or available as seperate downloads, hasn't been decided. We are trying
to balance keeping the framework light against making more functionality
available.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


"Trieu, Danny" wrote:
> 
> Robert,
> 
> Thanks you for your reply.  Do you know if there is any change or
> enhancement to the template tag in the future release?
> 
> danny
> 
> -----Original Message-----
> From: Robert Taylor [mailto:rtaylor@mulework.com]
> Sent: Friday, August 17, 2001 11:05 AM
> To: struts-user@jakarta.apache.org
> Subject: RE: What is Titles? and what gonna happens to template tag in
> the furture?
> 
> http://www.lifl.fr/~dumoulin/tiles/
> 
> HTH,
> 
> robert
> 
> -----Original Message-----
> From: Trieu, Danny [mailto:DTrieu@ebuilt.com]
> Sent: Friday, August 17, 2001 1:45 PM
> To: 'struts-user@jakarta.apache.org'
> Subject: What is Titles? and what gonna happens to template tag in the
> furture?
> 
> any link where I can read more about Titles?
> 
> Thanks,
> 
> danny