Hi,
I have developed a web application with tiles, using WASD and using built-in app server.
I'm getting this error...
Note: I'm using Tiles with JSF...
index.jsp
--------------
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="tiles" uri="/WEB-INF/lib/struts-tiles.tld"%>
<tiles:insert definition="mock-login" flush="false"/>
---------------------------------------------------------------------------------------------------------------------------------
tiles-defs.xml
-------------------
<definition name="master.base" path="/WEB-INF/layout/MasterLayout.jsp">
<put name="title" type="string" value="${title}" ></put>
<put name="header" value="/Header.jsp" />
<put name="contentheader" value="/Empty.jsp" />
<put name="content" value="/Empty.jsp" />
<put name="footer" value="/Footer.html" />
<put name="messages" value="/Empty.jsp" />
</definition>
<definition name="mock-login" extends="master.base">
<put name="title" type="string" value="Login"></put>
<put name="content" value="/TestEntry.html"/>
</definition>
---------------------------------------------------------------------------------------------------------------------------------------------------------------
TestEntry.html
--------------------------
<tr>
<td>
click me....
</td>
</tr>
---------------------------------------------------------------------------------------------------------------------------------
Error Log:
[4/14/08 12:15:26:816 IST] 20d37907 WebGroup E SRVE0026E: [Servlet Error]-[Can't get definitions factory from context.]: javax.servlet.jsp.JspException: Can't get definitions factory from context.
at org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:577)
at org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:476)
at org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:438)
at org.apache.jsp._index._jspService(_index.java:82)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
so I guess it's something related to the titles, Any help?