Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP on TOMee(Pointer to get RAP working on TomcatEE)
RAP on TOMee [message #1856033] Wed, 16 November 2022 11:29 Go to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
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 #1856034 is a reply to message #1856033] Wed, 16 November 2022 11:40 Go to previous messageGo to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
Quick update - seems RAP works OK on TOMEE Plus 8 using Java 8.



---
Just because you can doesn't mean you should
Re: RAP on TOMee [message #1856035 is a reply to message #1856034] Wed, 16 November 2022 11:47 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

RAP is still not compatible with Jakarta EE 9+ Servlet API. See the discussion here.https://github.com/eclipse-rap/org.eclipse.rap/issues/73

Best regards,
Ivan
Re: RAP on TOMee [message #1856036 is a reply to message #1856035] Wed, 16 November 2022 12:06 Go to previous messageGo to next message
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
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
Re: RAP on TOMee [message #1856037 is a reply to message #1856033] Wed, 16 November 2022 13:09 Go to previous message
Georg Breitschopf is currently offline Georg BreitschopfFriend
Messages: 3
Registered: July 2018
Junior Member
It seems that your server uses the new Jakarta namespace. However, RAP still uses the javax namespace.
Previous Topic:How to perform a release build?
Next Topic:Text selection on a RAP-generated web page
Goto Forum:
  


Current Time: Sat Jul 20 07:01:49 GMT 2024

Powered by FUDForum. Page generated in 0.04259 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top