Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Getting started with RAP
Getting started with RAP [message #530957] Mon, 03 May 2010 07:58 Go to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi All,

I am trying to start off with RAP.I updated the plug-ins from this update site http://www.eclipse.org/rap/downloads/.

I updated the tooling.It says it includes the runtime also.
I even tried Helios release of RCP/RAP IDE.

In both i am getting the same issue.I am not able to resolve IEntryPoint.I think it belongs to org.eclipse.rap.ui, which i am not able to find in the installed plug-ins.

Please help.

Thanks and Regards,
Saurav



Re: Getting started with RAP [message #530988 is a reply to message #530957] Mon, 03 May 2010 09:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33222
Registered: July 2009
Senior Member
Saurav,

It's best to ask about RAP on the RAP newsgroup/forum, which I've added
to the "to" list of this reply. Have you created new plugins with
dependencies on the plugin that contains the IEntryPoint interface?


saurav wrote:
> Hi All,
>
> I am trying to start off with RAP.I updated the plug-ins from this
> update site http://www.eclipse.org/rap/downloads/
>
> I updated the tooling.It says it includes the runtime also.
> I even tried Helios release of RCP/RAP IDE.
>
> In both i am getting the same issue.I am not able to resolve
> IEntryPoint.I think it belongs to org.eclipse.rap.ui, which i am not
> able to find in the installed plug-ins.
>
> Please help.
>
> Thanks and Regards,
> Saurav
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Getting started with RAP [message #531008 is a reply to message #530988] Mon, 03 May 2010 11:16 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Ed,,

Thanks for the reply.
Yes the I used the template created by Eclipse.It adds the org.eclipse.rap.ui in the dependencies page by default, and then its unable to resolve it.


Thanks and Regards,
Saurav


Re: Getting started with RAP [message #531013 is a reply to message #531008] Mon, 03 May 2010 11:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33222
Registered: July 2009
Senior Member
Saurav,

I wonder if there's a bug in the forum software that your reply removed
the RAP forum? Your reply appears only on the newcomers forum which, as
I suggested, is far less likely to solicit help from the RAP team then
using their specialized newsgroup.

You mentioned "I updated the tooling.It says it includes the runtime
also." I'm not sure what you did or what "It says it includes the
runtime" means, but you need to follow the instructions for installing
the runtime into a PDE target platform and making that target platform
the default/active one so that your workspace ends up resolve plugins
there. It sounds like you've not done that.


saurav wrote:
> Hi Ed,,
>
> Thanks for the reply.
> Yes the I used the template created by Eclipse.It adds the
> org.eclipse.rap.ui in the dependencies page by default, and then its
> unable to resolve it.
>
>
> Thanks and Regards,
> Saurav


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Getting started with RAP [message #531031 is a reply to message #531013] Mon, 03 May 2010 12:25 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Saurav,

it is true that the RAP tooling contains the RAP runtime and a target
installer to ease getting started with RAP development. But if you are
using a mixed target (EMF + RAP + ...), you should rather get your
target components directly from a repository.

Here's a wiki page that explains how to use RAP + EMF:
http://wiki.eclipse.org/RAP/EMF_Integration

Feel free to post to the RAP newsgroup if you still have problems.

Regards, Ralf

Ed Merks wrote:
> Saurav,
>
> I wonder if there's a bug in the forum software that your reply removed
> the RAP forum? Your reply appears only on the newcomers forum which, as
> I suggested, is far less likely to solicit help from the RAP team then
> using their specialized newsgroup.
> You mentioned "I updated the tooling.It says it includes the runtime
> also." I'm not sure what you did or what "It says it includes the
> runtime" means, but you need to follow the instructions for installing
> the runtime into a PDE target platform and making that target platform
> the default/active one so that your workspace ends up resolve plugins
> there. It sounds like you've not done that.
>
>
> saurav wrote:
>> Hi Ed,,
>>
>> Thanks for the reply.
>> Yes the I used the template created by Eclipse.It adds the
>> org.eclipse.rap.ui in the dependencies page by default, and then its
>> unable to resolve it.
>>
>>
>> Thanks and Regards,
>> Saurav
Re: Getting started with RAP [message #531054 is a reply to message #530957] Mon, 03 May 2010 14:23 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Thanks Ralf and Ed for the replies.

I tried using http://download.eclipse.org/rt/rap/1.3/runtime as the target definition.I am getting no software update site found.

I checked the network connection.It seems to be fine and I dont not use proxy here.

My question if at all i have the runtime bundled with IDE why i need to point it from an external location ?

I was using the RAP application creation template.Please find the code below.

<code>
package rapplugin;

import org.eclipse.rwt.lifecycle.IEntryPoint;

import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.application.WorkbenchAdvisor;

/**
* This class controls all aspects of the application's execution
* and is contributed through the plugin.xml.
*/
public class Application implements IEntryPoint {

public int createUI() {
Display display = PlatformUI.createDisplay();
WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
return PlatformUI.createAndRunWorkbench( display, advisor );
}
}

</code>

Where the IDE is not able to resolve IEntryPoint.
Its able to resolve other plug-ins like org.eclipse.rap.ui.intro and couple of other plug-ins but not the org.eclipse.rap.ui.

Best Regards,
Saurav


Re: Getting started with RAP [message #531062 is a reply to message #530957] Mon, 03 May 2010 14:45 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
ok...What i did was i extracted the downloaded RAP runtime zip.Copied the plug-ins and features into my IDE's plug-ins.

Then put the RAP bundles in the Runtime configuration.This seems to work, though i got the following error

<code>

!ENTRY org.eclipse.rap.ui 4 0 2010-05-03 20:10:33.620
!MESSAGE Source Provider 'org.eclipse.ui.internal.contexts.ActiveContextSourceProvide r' should extend AbstractSourceProvider
java.lang.ClassCastException: org.eclipse.ui.internal.handlers.HandlerServiceFactory cannot be cast to org.eclipse.ui.services.AbstractServiceFactory
at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.lo adFromRegistry(WorkbenchServiceRegistry.java:101)
at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.ge tService(WorkbenchServiceRegistry.java:77)
at org.eclipse.ui.internal.services.ServiceLocator.getService(S erviceLocator.java:163)
at org.eclipse.ui.internal.Workbench$40.runWithException(Workbe nch.java:1642)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
at org.eclipse.rwt.internal.lifecycle.UICallBackManager.addSync (UICallBackManager.java:115)
at org.eclipse.swt.widgets.Display$2.run(Display.java:931)
at org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler. runNonUIThreadWithFakeContext(UICallBackServiceHandler.java: 460)
at org.eclipse.rwt.lifecycle.UICallBack.runNonUIThreadWithFakeC ontext(UICallBack.java:44)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:929)
at org.eclipse.ui.internal.StartupThreading.runWithoutException s(StartupThreading.java:110)
at org.eclipse.ui.internal.Workbench.initializeDefaultServices( Workbench.java:1638)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1300)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2317)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 06)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:424)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.jface.internal.databinding.realmadapter.RealmAda pter.run(RealmAdapter.java:44)
at org.eclipse.rap.ui.internal.RealmAdapterHook.runWithDefault( RealmAdapterHook.java:48)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:427)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
at rapplugin.Application.createUI(Application.java:18)
at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:253)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:117)
at java.lang.Thread.run(Unknown Source)
at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.jav a:80)

</code>

But my sample view is working.

cheers,
Saurav


Re: Getting started with RAP [message #531063 is a reply to message #531054] Mon, 03 May 2010 14:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33222
Registered: July 2009
Senior Member
Saurav,

I won't repeat the suggestion to use the RAP forum. Ralf might well not
see your question here.


saurav wrote:
> Thanks Ralf and Ed for the replies.
>
> I tried using http://download.eclipse.org/rt/rap/1.3/runtime as the
> target definition.I am getting no software update site found.
>
> I checked the network connection.It seems to be fine and I dont not
> use proxy here.
>
> My question if at all i have the runtime bundled with IDE why i need
> to point it from an external location ?
>
> I was using the RAP application creation template.Please find the code
> below.
>
> <code>
> package rapplugin;
>
> import org.eclipse.rwt.lifecycle.IEntryPoint;
>
> import org.eclipse.swt.widgets.Display;
> import org.eclipse.ui.PlatformUI;
> import org.eclipse.ui.application.WorkbenchAdvisor;
>
> /**
> * This class controls all aspects of the application's execution
> * and is contributed through the plugin.xml.
> */
> public class Application implements IEntryPoint {
>
> public int createUI() {
> Display display = PlatformUI.createDisplay();
> WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
> return PlatformUI.createAndRunWorkbench( display, advisor );
> }
> }
>
> </code>
>
> Where the IDE is not able to resolve IEntryPoint.
> Its able to resolve other plug-ins like org.eclipse.rap.ui.intro and
> couple of other plug-ins but not the org.eclipse.rap.ui.
>
> Best Regards,
> Saurav
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Getting started with RAP [message #531078 is a reply to message #530957] Mon, 03 May 2010 16:14 Go to previous message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Ed,

As per as your suggestion.
I am continuing the thread in the RAP forum here.

http://www.eclipse.org/forums/index.php?t=msg&goto=53107 7&#msg_531077

Regards,
Saurav


Previous Topic:Opening Editor on a file
Next Topic:Eclipse does not clean build the web app with gwt
Goto Forum:
  


Current Time: Fri Oct 04 06:33:04 GMT 2024

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

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

Back to the top