diff --git a/extension/webxml/src/main/java/cloud/piranha/extension/webxml/internal/InternalWebXmlProcessor.java b/extension/webxml/src/main/java/cloud/piranha/extension/webxml/internal/InternalWebXmlProcessor.java index 760aaa11e..cb377b18a 100644 --- a/extension/webxml/src/main/java/cloud/piranha/extension/webxml/internal/InternalWebXmlProcessor.java +++ b/extension/webxml/src/main/java/cloud/piranha/extension/webxml/internal/InternalWebXmlProcessor.java @@ -514,6 +514,10 @@ private void processServlets(WebApplication webApplication, WebXml webXml) { if (!isEmpty(jspFile)) { dynamic = webApplication.addJspFile(servlet.getServletName(), jspFile); } else { + if (isEmpty(servlet.getClassName())) { + servlet.setClassName(servlet.getServletName()); + LOGGER.log(DEBUG, "Setting servlet-class from servlet-name"); + } dynamic = webApplication.addServlet(servlet.getServletName(), servlet.getClassName()); }