Uploaded image for project: 'Backup'
  1. Backup
  2. MGNLBACKUP-57

RestoreServletContextListener doesn't execute with Magnolia 4.5.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • None
    • 1.2
    • Magnolia 4.5.2, Mac OS X, Tomcat 7

      Hi,

      It seems that RestoreServletContextListener no longer executes when using Magnolia 4.5.2. Earlier Magnolia 4.5.x releases may be effected too.

      I'm still following the original instructions I documented at MGNLBACKUP-40, are those instructions still relevant?

      When starting up, I get Warning messages similar to the following, and the restore never executes:

      2012-04-04 15:07:33,228 WARN  org.apache.catalina.core.StandardContext          
      : A deprecated class or method was used: Use info.magnolia.init.MagnoliaServletContextListener instead. 
      Check the following trace: 
      info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:64),
      org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723), 
      the full stracktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
      2012-04-04 15:07:33,229 WARN  info.magnolia.cms.util.DeprecationUtil            
      : A deprecated class or method was used: Use info.magnolia.init.MagnoliaServletContextListener instead. 
      Check the following trace: 
      info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:64), 
      org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723), 
      the full stracktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
      A deprecated class or method was used: Use info.magnolia.init.MagnoliaServletContextListener instead. 
      Check the following trace: 
      info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:64), 
      org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723), 
      the full stracktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
      A deprecated class or method was used: Use info.magnolia.init.MagnoliaServletContextListener instead. 
      Check the following trace: 
      info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:64), 
      org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723), 
      the full stracktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
      

      I'm guessing by the Warnings, that RestoreServletContextListener needs to be updated to extend info.magnolia.init.MagnoliaServletContextListener instead of info.magnolia.cms.servlets.MgnlServletContextListener ?

      Let me know what you think.

      Cheers,
      Matt

        Acceptance criteria

              Unassigned Unassigned
              mderting Matt Dertinger
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD