Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Unresolved compilation problem
Unresolved compilation problem [message #1231155] Mon, 13 January 2014 19:06 Go to next message
Eclipse UserFriend
Hi,
I have a Composite (MyForm) with a call to a static method in a utility class (MySendBusiness), like this:

MySendResponse response = MySendBusiness.checkInputData(this);
->
public static MySendResponse checkInputData(MyForm myForm) {
...
}


when I launch it from the IDE all is working well (the utility method is executed), but when I export the WAR and deploy on Tomcat, the method is never executed, without any error on Tomcat console.
So I debugged Tomcat remotely and saw that when the method is called, if stepping-into with debugger, I get to an error in
org.eclipse.swt.widgets.Display.safeReadAndDispatch()

The error says: "Unresolved compilation problem."
What could be the cause?
(Note: I am using the same version of JDK6, both for the IDE and for Tomcat)
Thank you
Vincenzo
Re: Unresolved compilation problem [message #1231285 is a reply to message #1231155] Tue, 14 January 2014 04:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi Vincenzo,

Looks like the rwt bundle in your WAR is not properly compiled.

Did you import the org.eclipse.rap.rwt plug-in project into your workspace?

When you run the application from the IDE, do you use rwt from the
workspace or from the target?

How do you create the WAR file?


--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Unresolved compilation problem [message #1231559 is a reply to message #1231285] Tue, 14 January 2014 19:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralf,
no, I didn't import org.eclipse.rap.rwt plug-in project into my workspace.
When I launch the app, rwt comes from the target.
The WAR is created following the documentation here:
http://www.eclipse.org/rap/developers-guide/devguide.php?topic=deployment.html&version=2.2

We found that the problem came out when the utility class started to call a web service (using the standard web service features bundled in Java6 SE, no other Jars needed).
Thank you
Vincenzo
Re: Unresolved compilation problem [message #1233008 is a reply to message #1231559] Sat, 18 January 2014 05:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
we get a little ahead on this issue.
The web service client classes were in a separate source folder (let's say 'src_ws'), instead of the standard 'src' folder (the new source folder was created with the 'New, Source folder' action from the IDE).
Moving these sources into 'src' folder made disappear the 'Unresolved compilation problem'.
Thank you
Vincenzo
Re: Unresolved compilation problem [message #1233701 is a reply to message #1233008] Mon, 20 January 2014 04:58 Go to previous messageGo to next message
Eclipse UserFriend
You may have missed to add your additional source folder to the
build.properties file. This would explain the error.

Regards,
Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Unresolved compilation problem [message #1235209 is a reply to message #1233701] Thu, 23 January 2014 15:38 Go to previous message
Eclipse UserFriend
Hi Ralf,
yes, that was the reason!
Thank you.
Vincenzo
Previous Topic:Some Tooltips are misplaced with RAP version 2.2
Next Topic:How to make custom widgets themeable?
Goto Forum:
  


Current Time: Wed Jul 23 15:33:23 EDT 2025

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

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

Back to the top