I got it to work by calling wrapper.registerJMX(context).
StandardWrapper.registerJMX() is a protected method. I extended the class
so that I can invoke StandardWrapper.registerJMX() from the subclass.
To me it appears like it is a bug. What is the point in letting a child be
added to an already
It's been a while since I looked at it, but once the context is started,
the only way to update mappings it to invoke an additional JMX call to
get the mapping registered with the connector.
Take a look at
org.apache.tomcat.util.http.mapper.Mapper
org.apache.tomcat.util.http.mapper.MapperListene
Here is the problem I want to solve. I want to add servlet mappings to
Axis2ServiceServlet as the URLs come by. For example, the first
servlet-mapping could be to http://localhost:8080/tuscany/service1. At this
time, I create a new StandardContext with contextPath "/tuscany", add a
StandardWrapp