There might be some way to do it programatically. How exactly does it work, there are no mappings or listing in web.xml at all, just a mapping to a service class based on name at runtime?
For example, is tottally normal to find something like this in a form:
<FORM ACTION="<%=context%>/servlet/co.com.package.servlet.myServlet" METHOD="post" NAME="FormA" ID="FormA" onSubmit="return false;">
what you could maybe do is write your own ServletExtension http://undertow.io/undertow-docs/undertow-docs-1.3.0/index.html#servlet-extensions
where you would scan your classpath for all servlets (check if they are instance of / extend Servlet class)
and than programmatically build up ServletMappings for all servlets http://undertow.io/undertow-docs/undertow-docs-1.3.0/index.html#creating-a-servlet-deployment
where you would map all of them to full class name of the servlet.
it is not the prettiest solution but it should work for your scenario, this way you would be able to migrate your application easier and step by step.
HI thanks for the help, finally i mapped all the servlets in web.xml file, i used java to scan all the servlets and generate the strig . I tried your solution, but i can´t get it to work.
FWIW - it's not considered a good practice to implicitly map these servlet classes by their classname for reasons noted here Invoker Servlet (Wiki forum at Coderanch) (Invoker servlet is a Tomcat specific thing but it does the same thing as what you seem to be after).