[MGNLBACKUP-57] RestoreServletContextListener doesn't execute with Magnolia 4.5.2 Created: 04/Apr/12  Updated: 29/Mar/22  Resolved: 04/Apr/16

Status: Closed
Project: Backup
Component/s: None
Affects Version/s: 1.2
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Matt Dertinger Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: backup, jndi, restore
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 4.5.2, Mac OS X, Tomcat 7


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Team: Nucleus

 Description   

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



 Comments   
Comment by Ondrej Chytil [ 13/Apr/12 ]

Added to 4.5.3 changelog.

Comment by Michael Mühlebach [ 04/Apr/16 ]

Given the thousands of other issues we have open that are more highly requested, we won't be able to address this issue in the foreseeable future. Instead we will focus on issues with a higher impact, and more votes.
Thanks for taking the time to raise this issue. As you are no doubt aware this issue has been on our backlog for some time now with very little movement.
I'm going to close this to set expectations so the issue doesn't stay open for years with few updates. If the issue is still relevant please feel free to reopen it or create a new issue.

Generated at Sun Feb 11 23:25:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.