https://issues.apache.org/bugzilla/show_bug.cgi?id=53958

--- Comment #11 from Sean Owen <sro...@gmail.com> ---
One last post with good news -- this *does* work:

    Tomcat.addServlet(context, "error_jspx", new error_jspx());
    context.addServletMapping("/error.jspx", "error_jspx");

This doesn't, which was my original code:

    Wrapper w = Tomcat.addServlet(context, "error_jspx", new error_jspx());
    w.addMapping("/error.jspx");

The reason being that this call won't pass on the mapping to its parent Context
unless the container is started.

I have no idea whether it's supposed to work, or not, or what; the NPE down the
road is surprising.

Thank you for your help. As a long time Apache committer I don't like to bother
devs.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to