Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty 12.0.8 - Not able to run both EE8 and EE10 web applications at the same time

Hello All,

I am running Jetty 12.0.8 Embedded Deployment.

The POM has reference to both EE8 and EE10 WebAppContext Modules.

While deploying two WAR files that are based on EE8 and EE10, I am getting the exception shown below.

javax.servlet.UnavailableException: Servlet class org.eclipse.jetty.ee8.jsp.JettyJspServlet is not a javax.servlet.Servlet
    at org.eclipse.jetty.ee8.servlet.ServletHolder.checkServletType(ServletHolder.java:445)
    at org.eclipse.jetty.ee8.servlet.ServletHolder.doStart(ServletHolder.java:349)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.eclipse.jetty.ee8.servlet.ServletHandler.lambda$initialize$2(ServletHandler.java:616)
    at org.eclipse.jetty.util.ExceptionUtil$MultiException.callAndCatch(ExceptionUtil.java:262)
    at org.eclipse.jetty.ee8.servlet.ServletHandler.lambda$initialize$3(ServletHandler.java:615)
    at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
    at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
    at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
    at org.eclipse.jetty.ee8.servlet.ServletHandler.initialize(ServletHandler.java:633)
    at org.eclipse.jetty.ee8.servlet.ServletContextHandler.startContext(ServletContextHandler.java:326)
    at org.eclipse.jetty.ee8.webapp.WebAppContext.startContext(WebAppContext.java:1148)
    at org.eclipse.jetty.ee8.nested.ContextHandler.doStartInContext(ContextHandler.java:594)
    at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1200)
    at org.eclipse.jetty.ee8.nested.ContextHandler.doStart(ContextHandler.java:583)
    at org.eclipse.jetty.ee8.servlet.ServletContextHandler.doStart(ServletContextHandler.java:258)
    at org.eclipse.jetty.ee8.webapp.WebAppContext.doStart(WebAppContext.java:501)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:472)
    at org.eclipse.jetty.server.handler.ContextHandler.lambda$doStart$0(ContextHandler.java:658)
    at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1206)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:658)
    at org.eclipse.jetty.ee8.nested.ContextHandler$CoreContextHandler.doStart(ContextHandler.java:2135)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
    at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:472)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
    at org.eclipse.jetty.server.Server.start(Server.java:622)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
    at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:472)
    at org.eclipse.jetty.server.Server.doStart(Server.java:563)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)

You can find more information on this issue in stack overflow.

https://stackoverflow.com/questions/77669227/embedded-jetty-12-0-3-running-both-ee8-and-ee10-webapps-servlet-class-org-ec

I would highly appreciate it if someone could help me with this issue.

Thanks,
Jhony
 





Back to the top