RAP on TOMee [message #1856033] |
Wed, 16 November 2022 11:29 |
|
I'd like to run a RAP application under Tomcat EE - is this possible?
I've tried with TOMEE Plus 9.0.0 using Java11, deploying my WAR to the webapps folder but get this exception:
java.lang.ClassCastException: class org.eclipse.rap.rwt.engine.RWTServlet cannot be cast to class jakarta.servlet.Servlet (org.eclipse.rap.rwt.engine.RWTServlet is in unnamed module of loader org.apache.tomee.catalina.TomEEWebappClassLoader @6345e7b9; jakarta.servlet.Servlet is in unnamed module of loader java.net.URLClassLoader @305fd85d)
org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:356)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:870)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1762)
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.base/java.lang.Thread.run(Thread.java:834)
Am I trying to do something that is not really intended with TOMEE?
I know TOMEE is primarily designed for EJBs, but would be really nice to put my RAP application here too.
Thanks, John
---
Just because you can doesn't mean you should
|
|
|
|
|
Re: RAP on TOMee [message #1856036 is a reply to message #1856035] |
Wed, 16 November 2022 12:06 |
|
Thanks Ivan, that's helpful.
No problem - will use TOMEE Plus 8 for the time-being, which is still javax
---
Just because you can doesn't mean you should
|
|
|
|
Powered by
FUDForum. Page generated in 0.03912 seconds