Community
Participate
Working Groups
WebDeployableArtifactUtil returns the correct path for servlets that have URL mappings, i.e. are included in web.xml and have proper mappings. However, it doesn't support servers that use a "ServletServer" to support classname reference, e.g. /servlet/com.test.MyServlet. Although this should never be used in production, some people use it during testing and it would be nice to support it. [Not sure if you'd want to make this smart and only be enabled when the server supports it. If so, we might need to add a flag to WebResource or create a new type]
Adding helpwanted
Assigning to Kaloyan for evaluation
It is a good idea, but I doubt we could plan resources to realize it for WTP 3.1. Tim, could give some examples of application servers that have this "ServerServlet" support?
For reference, Tomcat's InvokerServlet is an example. In Tomcat v3.2, it is defined in server.xml: <RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/servlet/"/>