-
1. Re: wildfly 14 services missing or failed during deployment
lafr Oct 22, 2018 1:36 PM (in response to suganya_rajeswaran)Do you have a jar file in your deployment unit timesheet.war in WEB-INF/lib containing the class javax.servlet.Servlet ?
-
2. Re: wildfly 14 services missing or failed during deployment
suganya_rajeswaran Oct 22, 2018 11:38 PM (in response to lafr)No I don't have one...
-
3. Re: wildfly 14 services missing or failed during deployment
jaikiran Oct 26, 2018 1:20 AM (in response to suganya_rajeswaran)Can you post the class definition/code of in.textech.workflow.customerworkflowmappingBean class and also the output of:
jar -tf timesheet.war
-
4. Re: wildfly 14 services missing or failed during deployment
suganya_rajeswaran Oct 26, 2018 2:34 AM (in response to jaikiran)Thanks...
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?
-
5. Re: wildfly 14 services missing or failed during deployment
jaikiran Oct 26, 2018 2:45 AM (in response to suganya_rajeswaran)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.
-
6. Re: wildfly 14 services missing or failed during deployment
suganya_rajeswaran Oct 26, 2018 3:14 AM (in response to jaikiran)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...
-
7. Re: wildfly 14 services missing or failed during deployment
jaikiran Oct 26, 2018 4:31 AM (in response to suganya_rajeswaran)If it isn't a servlet, then yes it shouldn't be marked as a servlet-class in your web.xml.
-
8. Re: wildfly 14 services missing or failed during deployment
suganya_rajeswaran Oct 26, 2018 4:44 AM (in response to suganya_rajeswaran)But it is working fine on JBoss AS 7...