Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Deployement of RAP application on Apache Tomcat
Deployement of RAP application on Apache Tomcat [message #1367169] Mon, 19 May 2014 17:10 Go to next message
Christophe Becavin is currently offline Christophe BecavinFriend
Messages: 60
Registered: April 2011
Location: France
Member
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 ? Crying or Very Sad

[Updated on: Mon, 19 May 2014 17:11]

Report message to a moderator

Re: Deployement of RAP application on Apache Tomcat [message #1367253 is a reply to message #1367169] Mon, 19 May 2014 18:02 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2334
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
check your target platform and WAR product configuration. Also check
your WAR file if all bundles are present.
HTH,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Deployement of RAP application on Apache Tomcat [message #1369673 is a reply to message #1367253] Tue, 20 May 2014 17:49 Go to previous messageGo to next message
Christophe Becavin is currently offline Christophe BecavinFriend
Messages: 60
Registered: April 2011
Location: France
Member
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]

Report message to a moderator

Re: Deployement of RAP application on Apache Tomcat [message #1370974 is a reply to message #1369673] Wed, 21 May 2014 06:55 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2334
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
In which browser did you try? Are you using RAP 2.0?
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Deployement of RAP application on Apache Tomcat [message #1371330 is a reply to message #1370974] Wed, 21 May 2014 10:17 Go to previous messageGo to next message
Christophe Becavin is currently offline Christophe BecavinFriend
Messages: 60
Registered: April 2011
Location: France
Member
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 #1371410 is a reply to message #1371330] Wed, 21 May 2014 11:03 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2334
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
in Firefox (if version 29+) you are running in this bug:
433179: RAP application does not start in Firefox 29
https://bugs.eclipse.org/bugs/show_bug.cgi?id=433179
It's fixed in RAP 2.3M3 and there is a workaround for older RAP versions
here [1].

Today I tested the latest Libra WAR Products (0.3.1.201405141436) with
RAP 2.3RC1 and the exported WAR (Controls Demo) works fine in Tomcat
8.0.3. Please enable OSGi console in web.xml and post the output of "ss"
command.

[1]
https://wiki.eclipse.org/RAP/FAQ#Blank_page_or_client_crash_in_Firefox_29.2B
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Deployement of RAP application on Apache Tomcat [message #1371825 is a reply to message #1371410] Wed, 21 May 2014 15:03 Go to previous message
Christophe Becavin is currently offline Christophe BecavinFriend
Messages: 60
Registered: April 2011
Location: France
Member
... 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!!! Smile
Previous Topic:how to select labels using mouse
Next Topic:Webcontainer thread pool and SefverPush requests
Goto Forum:
  


Current Time: Mon Feb 24 00:16:15 GMT 2020

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

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

Back to the top