Do you have a jar file in your deployment unit timesheet.war in WEB-INF/lib containing the class javax.servlet.Servlet ?
No I don't have one...
Can you post the class definition/code of in.textech.workflow.customerworkflowmappingBean class and also the output of:
jar -tf timesheet.war
Actually this how it starts...
public class customerworkflowmappingBean
I came to know about a new feature called "Undertow" subsystem in WildFly which allows java classes that extend HttpServlet. As the above mentioned class does not extend HttpServlet, it throws exception.
Could you please suggest some options to make Undertow to allow non-servlet java classes?
It's the Java EE spec that mandates taht servlets implement the HttpServlet interface. If you have marked a particular class as a servlet in your web.xml, then it needs to follow these rules. You will have to check your application to see why it isn't implementing that interface and update the source accordingly.
Does it make sense, if I remove that mapping from web.xml?coz...its a bean class so it does not need to extend HttpServlet...
If it isn't a servlet, then yes it shouldn't be marked as a servlet-class in your web.xml.
But it is working fine on JBoss AS 7...