Hi everybody! I hope you can help me, I've found some solutions in the web to this problem, but nothing worked for me. I use tiles for the layout and nothing else from struts. Tomcat 6.0.16 is the container.
I got this from the browser, when I browse to my application: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Can't get definitions factory from context. org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301) root cause javax.servlet.ServletException: javax.servlet.jsp.JspException: Can't get definitions factory from context. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779) org.apache.jsp.welcomeSite_jsp._jspService(welcomeSite_jsp.java:85) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301) root cause javax.servlet.jsp.JspException: Can't get definitions factory from context. org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:577) org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:476) org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:438) org.apache.jsp.welcomeSite_jsp._jspx_meth_tiles_005finsert_005f0(welcomeSite_jsp.java:194) org.apache.jsp.welcomeSite_jsp._jspx_meth_f_005fsubview_005f0(welcomeSite_jsp.java:161) org.apache.jsp.welcomeSite_jsp._jspx_meth_f_005fview_005f0(welcomeSite_jsp.java:117) org.apache.jsp.welcomeSite_jsp._jspService(welcomeSite_jsp.java:76) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs. ------------------------------------------------------------------------------------------------------------------------------- Here is the tree from my war-file, where you can see the libs I use: |-- META-INF | |-- MANIFEST.MF | `-- context.xml |-- WEB-INF | |-- classes | |-- faces-config.xml | |-- lib | | |-- antlr.jar | | |-- commons-beanutils-1.7.0.jar | | |-- commons-beanutils.jar | | |-- commons-codec-1.3.jar | | |-- commons-collections-2.1.jar | | |-- commons-collections-3.2.jar | | |-- commons-collections.jar | | |-- commons-digester-1.6.jar | | |-- commons-digester-1.8.jar | | |-- commons-digester.jar | | |-- commons-discovery-0.4.jar | | |-- commons-el.jar | | |-- commons-fileupload-1.0.jar | | |-- commons-logging-1.0.4.jar | | |-- commons-logging-1.1.1.jar | | |-- commons-logging.jar | | |-- commons-validator-1.3.1.jar | | |-- commons-validator.jar | | |-- jakarta-oro.jar | | |-- jsf-api.jar | | |-- jsf-impl.jar | | |-- jstl-1.2.jar | | |-- myfaces-api-1.2.5.jar | | |-- myfaces-commons-utils11-1.0.0.jar | | |-- myfaces-converters11-1.0.0.jar | | |-- myfaces-impl-1.2.5.jar | | |-- myfaces-shared-impl-3.0.5.jar | | |-- myfaces-validators11-1.0.0.jar | | |-- oro-2.0.8.jar | | |-- struts.jar | | |-- tomahawk12-1.1.8.jar | | `-- xml-apis-1.0.b2.jar | |-- sun-web.xml | |-- tiles-defs.xml | `-- web.xml |-- pages | |-- basic | | |-- header.jsp | | |-- main-navigation.jsp | | `-- top-navigation.jsp | |-- content | | `-- welcome.jsp | |-- sites | `-- tiles | `-- basic-layout.jsp `-- welcomeSite.jsp 9 directories, 44 files ------------------------------------------------------------------------------------------------------------------------------- This is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <!-- Context Parameters --> <!-- Tiles --> <context-param> <param-name>tiles-definitions</param-name> <param-value>/WEB-INF/tiles-def.xml</param-value> </context-param> <!-- other --> <context-param> <param-name>com.sun.faces.verifyObjects</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>com.sun.faces.validateXml</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> <context-param> <param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name> <param-value>false</param-value> </context-param> <!-- Settings for multiple faces-config files--> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value> /WEB-INF/faces-config.xml </param-value> </context-param> <context-param> <description> No vertical scroll on requests </description> <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>org.apache.myfaces.ERROR_HANDLING</param-name> <param-value>true</param-value> </context-param> <!-- MyFacesExtensionFilter needed for the Tree2 Tag --> <filter> <filter-name>MyFacesExtensionsFilter</filter-name> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter </filter-class> </filter> <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages --> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <servlet-name>Faces Servlet</servlet-name> </filter-mapping> <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) --> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> </filter-mapping> <!-- Listener --> <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener> <!-- Servlets --> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <!-- This servlet is for tiles support --> <servlet> <servlet-name>tiles</servlet-name> <servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class> <init-param> <param-name>definitions-config</param-name> <param-value>/WEB-INF/tiles-defs.xml</param-value> </init-param> <init-param> <param-name>definitions-parser-validate</param-name> <param-value>true</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/mcw3gui/*</url-pattern> </servlet-mapping> <!-- Session Configuration --> <session-config> <session-timeout> 30 </session-timeout> </session-config> <!-- Welcome files --> <welcome-file-list> <welcome-file>mcw3gui/welcomeSite.jsp</welcome-file> </welcome-file-list> </web-app> ------------------------------------------------------------------------------------------------------------------------------- This is the welcomeSite.jsp, which is caused the the failure: <[EMAIL PROTECTED] contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="tom"%> <html> <f:view> <head> <title>welcome test</title> </head> <body> <f:subview id="welcome"> <tiles:insert definition="welcome" flush="false"/> </f:subview> </body> </f:view> </html> ------------------------------------------------------------------------------------------------------------------------------- If you need more info please tell me. Best regards Benjamin