Merged revisions r1429687 r1429745 from tomcat/trunk:
Amended the test for bug 46243:
Test that a context can be started again after a failed start. There is no need to redeploy it.
........
Added comments and a pair of additional checks.
Renamed a variable to correct a typo.
........

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1430171 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54380
In MapperListener.lifecycleEvent(): call registerWrapper(), registerContext() only if the parent component has already been started.

It is backport of r1430147 from tomcat/trunk.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1430173 13f79535-47bb-0310-9956-ffa450edef68