tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vamsavardhana Reddy" <c1vams...@gmail.com>
Subject Problem with adding a StandardWrapper to an already started StandardContext
Date Thu, 08 Jan 2009 09:55:53 GMT
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
StandardWrapper with mapping "/service1" to the context and add the context
to the host.  Now when a second servlet-mapping to
http://localhost:8080/tuscany/service2 is to be added, I am locating the
context with context-path "/tuscany", and adding a StandardWrapper with
mapping "/service2".  As soon as context.addChild(wrapper) is called, the
wrapper is started.  But, the Mapper in the Connector is not updated with
the mapping info carried by the newly added wrapper object.  Because of
this, I am getting an error 404.  Is there a way to make the connector to
update the mapper when a new wrapper is added to the context?  I hope my
problem is clear.

-- 
Vamsi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message