Announcement Announcement Module
Collapse
No announcement yet.
Tiles integration Exception: I18nFactorySet must implement TilesDefinitionsFactory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tiles integration Exception: I18nFactorySet must implement TilesDefinitionsFactory

    I'm trying to use tiles with my web application and I keep getting a tiles exception whenever I start my Tomcat (version 6.0.20) sever. My tiles configurator is set up like this...

    <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles. TilesConfigurer">
    <property name="factoryClass" value="org.apache.struts.tiles.xmlDefinition.I18nF actorySet" />
    <property name="definitions">
    <list>
    <value>/WEB-INF/tiles.xml</value>
    </list>
    </property>
    </bean>

    But I keep getting the exception...

    DispatcherServlet - -Context initialization failed <org.springframework.beans.factory.BeanCreationExc eption: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/maestro-servlet.xml]: Invocation of init method failed; nested exception is org.apache.struts.tiles.DefinitionsFactoryExceptio n: Error - createDefinitionsFactory : Factory class 'org.apache.struts.tiles.xmlDefinition.I18nFactory Set must implement 'TilesDefinitionsFactory'.>org.springframework.bea ns.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/maestro-servlet.xml]: Invocation of init method failed; nested exception is org.apache.struts.tiles.DefinitionsFactoryExceptio n: Error - createDefinitionsFactory : Factory class 'org.apache.struts.tiles.xmlDefinition.I18nFactory Set must implement 'TilesDefinitionsFactory'.
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1338)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:473)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:380)
    at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:4 02)
    at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:316 )
    at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:282)
    at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:126)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:212)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4149)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4458)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.java:987)
    at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:909)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:495)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1206)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:314)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:583)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)
    Caused by: org.apache.struts.tiles.DefinitionsFactoryExceptio n: Error - createDefinitionsFactory : Factory class 'org.apache.struts.tiles.xmlDefinition.I18nFactory Set must implement 'TilesDefinitionsFactory'.
    at org.apache.struts.tiles.TilesUtilImpl.createDefini tionFactoryInstance(TilesUtilImpl.java:169)
    at org.apache.struts.tiles.TilesUtilImpl.createDefini tionsFactory(TilesUtilImpl.java:133)
    at org.apache.struts.tiles.TilesUtil.createDefinition sFactory(TilesUtil.java:165)
    at org.springframework.web.servlet.view.tiles.TilesCo nfigurer.createDefinitionsFactory(TilesConfigurer. java:144)
    at org.springframework.web.servlet.view.tiles.TilesCo nfigurer.afterPropertiesSet(TilesConfigurer.java:1 30)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1369)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1335)

    I thought maybe I had a jar version problem with struts.jar but I've verified that I have the right version. Any thoughts on what might be causing this? Has anyone run into this before?
Working...
X