Project

General

Profile

hello-mvn deployment in Wildfly or Tomcat

Added by moni S about 2 months ago

Hi

I am new to jwt and java in general, I built example/hello-mvn and created a war file.

When dropped in tomcat webapps or wildfly standalone folders I got errors below:

Tomcat
jakarta.servlet.ServletException: Class [eu.webtoolkit.jwt.examples.hello.HelloMain] is not a Servlet

Wildfly
Caused by: java.lang.IllegalArgumentException: UT010009: Servlet Hello of type class eu.webtoolkit.jwt.examples.hello.HelloMain does not implement jakarta.servlet.Servlet

I built hello-mvn example using command "mvn compile package" I am not sure if I built it right ?

Thanks


Replies (4)

RE: hello-mvn deployment in Wildfly or Tomcat - Added by moni S about 2 months ago

moni S wrote:

Hi

I am new to jwt and java in general, I built example/hello-mvn and created a war file.

When dropped in tomcat webapps or wildfly standalone folders I got errors below:

Tomcat
jakarta.servlet.ServletException: Class [eu.webtoolkit.jwt.examples.hello.HelloMain] is not a Servlet

Wildfly
Caused by: java.lang.IllegalArgumentException: UT010009: Servlet Hello of type class eu.webtoolkit.jwt.examples.hello.HelloMain does not implement jakarta.servlet.Servlet

I built hello-mvn example using command "mvn compile package" I am not sure if I built it right ?

Thanks

Managed to get examples to deploy using tomcat 9. thnks.

RE: hello-mvn deployment in Wildfly or Tomcat - Added by moni S about 2 months ago

moni S wrote in RE: hello-mvn deployment in Wildfly or Tomcat:

moni S wrote:

Hi

I am new to jwt and java in general, I built example/hello-mvn and created a war file.

When dropped in tomcat webapps or wildfly standalone folders I got errors below:

Tomcat
jakarta.servlet.ServletException: Class [eu.webtoolkit.jwt.examples.hello.HelloMain] is not a Servlet

Wildfly
Caused by: java.lang.IllegalArgumentException: UT010009: Servlet Hello of type class eu.webtoolkit.jwt.examples.hello.HelloMain does not implement jakarta.servlet.Servlet

I built hello-mvn example using command "mvn compile package" I am not sure if I built it right ?

Thanks

Managed to get examples to deploy using tomcat 9. thnks.

wildfly 20.0.1.Final works too. My bad.

RE: hello-mvn deployment in Wildfly or Tomcat - Added by Matthias Van Ceulebroeck about 2 months ago

Hi moni,

I'm happy to hear you were able to resolve the issue yourself.

I believe this has to do with more recent versions of Tomcat/Wildfly assuming a more recent version of a Sevlet than JWt currently offers (using jakarta.servlet, rather than javax.servlet).
This will be resolved in an upcoming version (tracked in #12791).

Best regards,
Matthias

RE: hello-mvn deployment in Wildfly or Tomcat - Added by moni S about 2 months ago

Hi Matthias

Thanks for the information.

Cool stuff

kind regards,
moni

    (1-4/4)