Announcement Announcement Module
Collapse
No announcement yet.
Tiles Init Error? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tiles Init Error?

    Code:
    Eagerly caching bean 'tilesViewResolver' to allow for resolving potential circular references
    Finished creating instance of bean 'tilesViewResolver'
    Creating shared instance of singleton bean 'tilesConfigurer'
    Creating instance of bean 'tilesConfigurer'
    Eagerly caching bean 'tilesConfigurer' to allow for resolving potential circular references
    TilesConfigurer: adding definitions [/WEB-INF/layouts/layouts.xml,/WEB-INF/views/views.xml,/WEB-INF/views//ship/views.xml,/WEB-INF/views//crew/views.xml,/WEB-INF/views//starport/views.xml,/WEB-INF/views//cargo/views.xml]
    Invoking afterPropertiesSet() on bean with name 'tilesConfigurer'
    Initializing Tiles2 application context. . .
    Finished initializing Tiles2 application context.
    Initializing Tiles2 container. . .
    Cannot find TilesRequestContextFactory class org.apache.tiles.portlet.context.PortletTilesRequestContextFactory
    Cannot find TilesRequestContextFactory class org.apache.tiles.portlet.context.PortletTilesRequestContextFactory
    java.lang.ClassNotFoundException: org.apache.tiles.portlet.context.PortletTilesRequestContextFactory
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1384)
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Class.java:247)
    	at org.apache.tiles.reflect.ClassUtil.getClass(ClassUtil.java:60)
    	at org.apache.tiles.context.ChainedTilesRequestContextFactory.init(ChainedTilesRequestContextFactory.java:97)
    	at org.apache.tiles.factory.TilesContainerFactory.storeContainerDependencies(TilesContainerFactory.java:426)
    	at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:368)
    	at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:287)
    	at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:231)
    	at org.apache.tiles.startup.BasicTilesInitializer.createContainer(BasicTilesInitializer.java:117)
    	at org.apache.tiles.startup.BasicTilesInitializer.initialize(BasicTilesInitializer.java:53)
    	at org.springframework.web.servlet.view.tiles2.TilesConfigurer.afterPropertiesSet(TilesConfigurer.java:196)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1454)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1392)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:289)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:286)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:188)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:543)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:730)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:387)
    	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:447)
    	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:342)
    	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:308)
    	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
    	at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
    	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:615)
    	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    	at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
    	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
    	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
    	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
    	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:71)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:57)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    This is when starting up my new Roo app, after installing webflows.

    The interesting thing is that it all seems to work OK..I can flip the menu back and forth, etc. Just an odd error...

    Tim

  • #2
    Hi Tim,

    I have not seen this CNFE so far. Can you please elaborate what exactly you did?

    If I run for example 'script vote.roo' followed by 'web flow' and then start the application I cannot see the error. If this behaviour is repeatable, could you share the script / commands to get there?

    Also the missing library indicates that the tiles portlet integration API is missing, did you configure portlet support anywhere in your application?

    Cheers,
    Stefan

    Comment


    • #3
      I didn't do anything except type commands in the STS roo shell...so I'm not sure why it might be confused. Here's the project zip if you want to see...

      http://vargoth.com/roo/clipperTradeRoo.tar.gz

      Thanks!

      Tim

      Comment


      • #4
        I think that's just a Tiles debug message telling you that you haven't added the Tiles portlet jar. If you're not doing portlets, you don't need it. (Which explains why your app still works.)

        Stefan probably doesn't see it because he has his logging configured to not show DEBUG messages from Tiles (e.g., log4j.logger.org.apache.tiles=INFO).

        Comment


        • #5
          I have now seen this message as well after adjusting the log level. I think you can safely assume that this will have no impact on the application itself because Roo applications do not use any portlet functionality.

          This exception is coming out of Tiles and it might be a good idea to raise a ticket with them to handle the absence of the portlet extension a little more graceful...

          In the meantime it should be easy to reduce the log verbosity of this via log4j.

          Also, note that there is a code example available which has disabled the registration of a PortletTilesRequestContextFactory here as part of SPR-5411.

          Cheers,
          Stefan

          Comment

          Working...
          X