Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Urgent: How to use IApplication support???
Urgent: How to use IApplication support??? [message #515948] Mon, 22 February 2010 10:15 Go to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi,
I posted this as being urgent as I can not start my application anymore.
I updated to 1.3 M5 runtime today and now all my launch configurations do
not appear anymore so I can not launch my apps!
I think this is because now IApplication is supported and no special launch
needs to be done.

So I tried using an IApplication as test to see how to use it.
I created a new Plugin-Project and checked the option "Yes" for "Would you
like to create a rich client application?".
This created an example project with an IApplication implemention known from
RCP.
Now I wanted to start this app (after changing org.eclipse.ui to
org.eclipse.rap.ui) using a new "Eclipse Application" configuration. I
choose the application to start an validated the plugins. When I run this
example, then the console show a running app for some seconds, and then it
shuts down. Now log or error.

So how do I need to use the IApplication? Could you provide a simple guide
with/without branding?
The thread http://www.eclipse.org/forums/index.php?t=msg&th=161218& amp;start=0&
did not help me.

Regards,

Markus Kr
Re: Urgent: How to use IApplication support??? [message #515949 is a reply to message #515948] Mon, 22 February 2010 10:22 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
The next question would be how to set the know RAP parameters I used before:
-console -consolelog
-Declipse.ignoreApp=true
-Dosgi.noShutdown=true
-Dorg.eclipse.equinox.http.jetty.other.info=org.eclipse.help
-Declipse.registry.MultiLanguage=true
-<booleanAttribute key="org.eclipse.rap.launch.openBrowser" value="true"/>
-<intAttribute key="org.eclipse.rap.launch.port" value="8181"/>
-<stringAttribute key="org.eclipse.rap.launch.servletName" value="web"/>
-<booleanAttribute key="org.eclipse.rap.launch.terminatePrevious"
value="true"/>
-<booleanAttribute key="org.eclipse.rap.launch.useManualPort" value="true"/>

Regards,
Markus

"Markus Kr
Re: Urgent: How to use IApplication support??? [message #515951 is a reply to message #515948] Mon, 22 February 2010 10:37 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
The problem seems to be that PlatformUI.createDisplay() within the
IApplication.start() method runs into an IllegalStateException("No context
available outside of the request service lifecycle.") when doing new
Display()!

"Markus Kr
Re: Urgent: How to use IApplication support??? [message #515958 is a reply to message #515951] Mon, 22 February 2010 10:56 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Using osgi launch works...


"Markus Kr
Re: Urgent: How to use IApplication support??? [message #516014 is a reply to message #515958] Mon, 22 February 2010 13:34 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Markus,

the IApplication support was never supposed to replace the way we launch
RAP applications. It only wraps your existing IApplication in an
entrypoint so you don't need to provide your own entrypoint.
Just launch your RAP app as always (Equinox or RAP launcher) and use the
id of your application extension as entrypoint name.

eg. localhost:8080/rap?startup=<app-extension-id>

Regards,
Ben

Markus Krüger wrote:
> Using osgi launch works...
>
>
> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
> news:hltmn8$957$1@build.eclipse.org...
>> The problem seems to be that PlatformUI.createDisplay() within the
>> IApplication.start() method runs into an IllegalStateException("No context
>> available outside of the request service lifecycle.") when doing new
>> Display()!
>>
>> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
>> news:hltldm$ro7$1@build.eclipse.org...
>>> Hi,
>>> I posted this as being urgent as I can not start my application anymore.
>>> I updated to 1.3 M5 runtime today and now all my launch configurations do
>>> not appear anymore so I can not launch my apps!
>>> I think this is because now IApplication is supported and no special
>>> launch needs to be done.
>>>
>>> So I tried using an IApplication as test to see how to use it.
>>> I created a new Plugin-Project and checked the option "Yes" for "Would
>>> you like to create a rich client application?".
>>> This created an example project with an IApplication implemention known
>>> from RCP.
>>> Now I wanted to start this app (after changing org.eclipse.ui to
>>> org.eclipse.rap.ui) using a new "Eclipse Application" configuration. I
>>> choose the application to start an validated the plugins. When I run this
>>> example, then the console show a running app for some seconds, and then
>>> it shuts down. Now log or error.
>>>
>>> So how do I need to use the IApplication? Could you provide a simple
>>> guide with/without branding?
>>> The thread
>>> http://www.eclipse.org/forums/index.php?t=msg&th=161218& amp;start=0& did not
>>> help me.
>>>
>>> Regards,
>>>
>>> Markus Krüger
>>>
>>
>
>


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: Urgent: How to use IApplication support??? [message #516020 is a reply to message #516014] Mon, 22 February 2010 09:14 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Well, I would like to do this, but the RAP launcher does not appear in my
eclipse anymore, only OSGI. That's why my launch configrations won't work
anymore!

"Benjamin Muskalla" <bmuskalla@eclipsesource.com> schrieb im Newsbeitrag
news:hlu161$d0b$1@build.eclipse.org...
> Hi Markus,
>
> the IApplication support was never supposed to replace the way we launch
> RAP applications. It only wraps your existing IApplication in an
> entrypoint so you don't need to provide your own entrypoint.
> Just launch your RAP app as always (Equinox or RAP launcher) and use the
> id of your application extension as entrypoint name.
>
> eg. localhost:8080/rap?startup=<app-extension-id>
>
> Regards,
> Ben
>
> Markus Kr
Re: Urgent: How to use IApplication support??? [message #516021 is a reply to message #516020] Mon, 22 February 2010 09:14 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Please be sure to have the RAP tooling installed. Which version of
Eclipse are you running? Do the RAP plugins show up in the About dialog?

Regards,
Ben

Markus Krüger wrote:
> Well, I would like to do this, but the RAP launcher does not appear in my
> eclipse anymore, only OSGI. That's why my launch configrations won't work
> anymore!
>
> "Benjamin Muskalla" <bmuskalla@eclipsesource.com> schrieb im Newsbeitrag
> news:hlu161$d0b$1@build.eclipse.org...
>> Hi Markus,
>>
>> the IApplication support was never supposed to replace the way we launch
>> RAP applications. It only wraps your existing IApplication in an
>> entrypoint so you don't need to provide your own entrypoint.
>> Just launch your RAP app as always (Equinox or RAP launcher) and use the
>> id of your application extension as entrypoint name.
>>
>> eg. localhost:8080/rap?startup=<app-extension-id>
>>
>> Regards,
>> Ben
>>
>> Markus Krüger wrote:
>>> Using osgi launch works...
>>>
>>>
>>> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
>>> news:hltmn8$957$1@build.eclipse.org...
>>>> The problem seems to be that PlatformUI.createDisplay() within the
>>>> IApplication.start() method runs into an IllegalStateException("No
>>>> context available outside of the request service lifecycle.") when doing
>>>> new Display()!
>>>>
>>>> "Markus Krüger" <krueger@ion.ag> schrieb im Newsbeitrag
>>>> news:hltldm$ro7$1@build.eclipse.org...
>>>>> Hi,
>>>>> I posted this as being urgent as I can not start my application
>>>>> anymore.
>>>>> I updated to 1.3 M5 runtime today and now all my launch configurations
>>>>> do not appear anymore so I can not launch my apps!
>>>>> I think this is because now IApplication is supported and no special
>>>>> launch needs to be done.
>>>>>
>>>>> So I tried using an IApplication as test to see how to use it.
>>>>> I created a new Plugin-Project and checked the option "Yes" for "Would
>>>>> you like to create a rich client application?".
>>>>> This created an example project with an IApplication implemention known
>>>>> from RCP.
>>>>> Now I wanted to start this app (after changing org.eclipse.ui to
>>>>> org.eclipse.rap.ui) using a new "Eclipse Application" configuration. I
>>>>> choose the application to start an validated the plugins. When I run
>>>>> this example, then the console show a running app for some seconds, and
>>>>> then it shuts down. Now log or error.
>>>>>
>>>>> So how do I need to use the IApplication? Could you provide a simple
>>>>> guide with/without branding?
>>>>> The thread
>>>>> http://www.eclipse.org/forums/index.php?t=msg&th=161218& amp;start=0& did
>>>>> not help me.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Markus Krüger
>>>>>
>>>
>>
>> --
>> Benjamin Muskalla | EclipseSource Karlsruhe
>> http://www.eclipsesource.com | http://twitter.com/eclipsesource
>
>


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: Urgent: How to use IApplication support??? [message #516081 is a reply to message #516021] Mon, 22 February 2010 17:22 Go to previous message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
That was a good hint.
I actually replace the 1.2 features and plugins with then ones from 1.3.
This had the effect described before and I could not start my apps anymore.
Now I removed everthing of RAP from features and plugins and also did an
uninstall in workbench. Then I placed the tooling of 1.3 in the dropins
folder and now I can use my apps :-)

Thanks for the help, next time I will have a closer look to it, but I
thought IApplication replaced IEntryPoint and I need to change something.

Sorry for the hustle.

Regards,
Markus

"Benjamin Muskalla" <bmuskalla@eclipsesource.com> schrieb im Newsbeitrag
news:hlu39c$fdr$1@build.eclipse.org...
> Please be sure to have the RAP tooling installed. Which version of Eclipse
> are you running? Do the RAP plugins show up in the About dialog?
>
> Regards,
> Ben
>
> Markus Kr
Previous Topic:Apache httpd problem
Next Topic:IFontProvider NOT workiing
Goto Forum:
  


Current Time: Wed Oct 09 04:51:23 GMT 2024

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

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

Back to the top