RWT.getRequest() fails with RAP 3.0M4 [message #1567196] |
Fri, 16 January 2015 07:57 |
Bernard Sarter Messages: 88 Registered: August 2011 Location: Paris, France |
Member |
|
|
Hello,
We have a RAP application that works fine with Target Platform = RAP 2.3.1.
When switching the Target Platform to RAP 3.0M4, we can still start the application from within Eclipse IDE, but if we build a war file and deploy it on tomcat, the start of the application fails, with following error:
type Exception report
message Servlet execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest"
The next line in the stack trace corresponds to a call to
final HttpServletRequest request = RWT.getRequest();
BTW, we saw that it is not recommended to call this method, but we need to read the arguments passed through the URL ...
Configuration:
Java 8u25, Windows 7x64, tomcat 8.0.15
Any suggestion welcome
|
|
|
|
|
|
|
|
[Resolved] RWT.getRequest() fails with RAP 3.0M4 [message #1574428 is a reply to message #1567691] |
Tue, 20 January 2015 08:01 |
Bernard Sarter Messages: 88 Registered: August 2011 Location: Paris, France |
Member |
|
|
Okay ... Finally we could isolate and fix the problem. Actually, it wasn't linked to the switch to RAP 3.0M4, but to an other change.
If in the MANIFEST.MF of our main application bundle, we have:
...
Require-Bundle: org.eclipse.rap.ui,
javax.servlet,
...
then it works,
but if we change the order and put javax.servlet on top of the list, it fails !!!!!
Require-Bundle: javax.servlet,
...
org.eclipse.rap.rwt,
org.eclipse.rap.ui
It's the first time I observe that the order of the dependencies in the Manifest is so important ...
Regards,
Bernard.
|
|
|
|
Powered by
FUDForum. Page generated in 0.05035 seconds