Deploying war in WildFly 28 - [How to use javax.servlet.Servlet instead jakarta.servlet.Servlet]

3,655 views
Skip to first unread message

Madhava Alampally

unread,
Jul 19, 2023, 2:12:26 AM7/19/23
to WildFly
Hi Team: 

When I'm deploying my application war in WildFly 28, deployment is failing with the following error message. Can you please provide some guidance on this.

\"WFLYCTL0080: Failed services\" => {\"jboss.deployment.subunit.\\\"c2oear-snapshot.ear\\\".\\\"web-snapshot.war\\\".undertow-deployment.UndertowDeploymentInfoService\" => \"Failed to start service
    Caused by: java.lang.IllegalArgumentException: UT010009: Servlet ContextSensitiveHelp of type class com.ca.pam.server.ContextSensitiveHelp does not implement jakarta.servlet.Servlet\"},
   
Why it's forcing to use jakarta.servlet.Servlet?
How to exclude jakarta.servlet.Servlet for deployment and use javax.servlet.Servlet?

Thanks & Regards,
Madhava

Chao Wang

unread,
Jul 19, 2023, 2:39:28 AM7/19/23
to Madhava Alampally, WildFly
Hi, Jakarta EE 8 and EE 9.1 are no longer supported beginning with the standard WildFly 27 release. see https://www.wildfly.org/news/2022/11/09/WildFly27-Final-Released/ You need to update your application code to adapt this API change.

Otherwise, you can use WildFly Preview Distribution which could still transform the existing EE 8 application from javax.* to jakarta.*.

This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. --
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/93fa2aab-4e18-4265-b17c-d7322f52c81fn%40googlegroups.com.
-- 
Chao

Madhava Alampally

unread,
Jul 19, 2023, 2:58:04 AM7/19/23
to Chao Wang, WildFly
Thank you so much Chao for the prompt response.

We are not using anay Jakarta API in our code. Our Servlets are implementing the javax.servlet.http.HttpServlet
However, deployment is failing and the error related to "jakarta.servlet.Servlet".

Not sure why jakarta.servlet.Servlet are coming into picture.

Is there any option to exclude "jakarta.servlet.Servlet" from deployment ?

Thanks & Regards
Madhava

Chao Wang

unread,
Jul 19, 2023, 3:07:17 AM7/19/23
to Madhava Alampally, WildFly

Hi, you need to update your Servlets code to implement jakarta.servlet.http.HttpServlet or use the transformer provided in WildFly Preview Distribution.

-- 
Chao

Madhava Alampally

unread,
Jul 19, 2023, 3:10:01 AM7/19/23
to Chao Wang, WildFly
ohk. Got it. Thank you so much. Let me try to modify and deploy it again to see how it works.

Thanks & Regards
Madhava
Reply all
Reply to author
Forward
0 new messages