Deployement of RAP application on Apache Tomcat [message #1367169] |
Mon, 19 May 2014 17:10 |
Eclipse User |
|
|
|
Hi everyone,
I have difficulty to deploy my Eclipse RAP application on Apache Tomcat server. One Java Class is not present. In the catalina logs I have this error:
java.lang.ClassNotFoundException: org.eclipse.rap.rwt.internal.lifecycle.RequestCounter
I try to integrate this class in the war product, but it is not in the RAP target platform. I can't find it in the platform.
Is it a usual problem ?
Should i try to force the integration of this class in the war product ?
I use:
Eclipse Plateform 4.3
Eclipse for RCP and RAP developers 2.0
RAP target plateform 2.1
WAR product tooling 0.3
Java 7
Apache Tomcat 7.0
Someone has an idea ?
[Updated on: Mon, 19 May 2014 17:11] by Moderator Report message to a moderator
|
|
|
|
Re: Deployement of RAP application on Apache Tomcat [message #1369673 is a reply to message #1367253] |
Tue, 20 May 2014 17:49 |
Eclipse User |
|
|
|
I can't integrate them directly in the war product, but they are in the war file.
In fact when looking further to the error, it says:
SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException:
Does it means it tries to load previous state of the workbench ?
Because I can see that the workbench is creating (I have the typical RAP grey background displaying), but it's stopping just before displaying the window.
Maybe it is because he is trying to load a previous instance of my workbench.
Should I put an argument like: -clearPersistedState in the War file ? in that case, how and where ?
[Updated on: Tue, 20 May 2014 17:54] by Moderator Report message to a moderator
|
|
|
|
Re: Deployement of RAP application on Apache Tomcat [message #1371330 is a reply to message #1370974] |
Wed, 21 May 2014 10:17 |
Eclipse User |
|
|
|
Yes I am using RAP 2.1.
I was on windows 7 and I switch to Linux (Ubuntu) to run a similar local Apache Tomcat 7 server and I have the same problem.
On Google Chrome: only the background of my software display, but I test the RAP demo workbench and it displays.
On Firefox: My software and the RAP demo workbench both don't work displaying the grey background.
|
|
|
|
Re: Deployement of RAP application on Apache Tomcat [message #1371825 is a reply to message #1371410] |
Wed, 21 May 2014 15:03 |
Eclipse User |
|
|
|
... I am a bit ashame to say that I found the error ...
I totally forgot to include my icons in the plugin build.. So of course it was not able to create Views because at one point I was loading an image, and it was returning a NullPointerException.
I finally realized that when I finally look to the eclipse .log in the work folder of Tomcat. I didn't know that the stdout of eclipse RAP are bind to stdout of Tomcat, but not the stderr. This error was hidden from me as I was only checking the output of Tomcat server.
Sorry for the rookie mistake!
I switch at the same time to RAP 2.3 and it is working now both on Chrome and Firefox.
Thanks a lot for the advise!!!
|
|
|
Powered by
FUDForum. Page generated in 0.02561 seconds