struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Dittwald" <bendittw...@googlemail.com>
Subject Re: Can't get definitions factory from context
Date Fri, 05 Dec 2008 15:12:35 GMT
thanks for your help. i use tiles 2 now. with the common dependencies
includet in the distribution.

now, my tomcat log says:

05.12.2008 16:05:23 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Error configuring application listener of class
org.apache.tiles.web.startup.TilesListener
java.lang.ClassNotFoundException: org.apache.tiles.web.startup.TilesListener
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
  at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786)
  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
  at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
  at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
  at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
  at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
05.12.2008 16:05:23 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Skipped installing application listeners due to previous
error(s)

did i something wrong in the modified 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 -->
  <context-param>
  <param-name>
  org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
  </param-name>
  <param-value>
  /WEB-INF/tiles-defs.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>

  <listener>

<listener-class>org.apache.tiles.web.startup.TilesListener</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.tiles.web.startup.TilesServlet</servlet-class>
  <init-param>
  <param-name>
  org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
  </param-name>
  <param-value>
  /WEB-INF/tiles-defs.xml
  </param-value>
  </init-param>
  <load-on-startup>2</load-on-startup>
  </servlet>

  <servlet-mapping>
  <servlet-name>Faces Servlet</servlet-name>
  <url-pattern>/cmt-w3gui/*</url-pattern>
  </servlet-mapping>

  <!-- Session Configuration -->
  <session-config>
  <session-timeout>
  30
  </session-timeout>
  </session-config>

  <!-- Welcome files -->
  <welcome-file-list>
  <welcome-file>cmt-w3gui/welcomeSite.jsp</welcome-file>
  </welcome-file-list>
</web-app>

what can i do?
thank,
benjamin
2008/12/1 Lukasz Lenart <lukasz.lenart@googlemail.com>

> 2008/12/1 Benjamin Dittwald <bendittwald@googlemail.com>:
> > 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, the rest is
> > myfaces. Tomcat 6.0.16 is the container.
> > Struts jar version is 1.1. Same problem with version 1.29.
>
> Try with Tiles2, it can be used with dependency on Struts, it will be
> simpler solution.
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message