Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP 1.5 M3 RWT-OSGi integration bundle(Problem with Package-imports of org.osgi.service.http)
RAP 1.5 M3 RWT-OSGi integration bundle [message #761953] Wed, 07 December 2011 10:39 Go to next message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi,

i use RAP 1.5 M3 to develop a RWT standalone application. The runtime environment is Apache Karaf.
But when i try to start the RWT-OSGI integration bundle i get an error message because the integration bundle imports the package org.osgi.service.http;version="[1.2.1,2.0.0)

Apache Karaf uses Pax Web for this service. Pax web exports this package with the version 1.2. In the "OSGi Service Platform Enterprise Specification,Release 4, Version 4.2" is following example: Import-Package: org.osgi.service.http; version="[1.2,2.0)

Is the version in the RWT-OSGI integration bundle wrong?

Greetings

Peter
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #761970 is a reply to message #761953] Wed, 07 December 2011 11:06 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Peter,

this looks like an unnecessary constraint in o.e.rap.rwt.osgi. A quick
check after changing the import to [1.2.0,20) didn't show any
difference. We would need to make sure though that there are really no
unwanted side effects.
Would you mind to open a bug [1]?

TIA
Rüdiger

[1] http://eclipse.org/rap/support/#new-bugs

On 07.12.2011 11:39, pkilian wrote:
> Hi,
>
> i use RAP 1.5 M3 to develop a RWT standalone application. The runtime
> environment is Apache Karaf.
> But when i try to start the RWT-OSGI integration bundle i get an error
> message because the integration bundle imports the package
> org.osgi.service.http;version="[1.2.1,2.0.0)
>
> Apache Karaf uses Pax Web for this service. Pax web exports this package
> with the version 1.2. In the "OSGi Service Platform Enterprise
> Specification,Release 4, Version 4.2" is following example:
> Import-Package: org.osgi.service.http; version="[1.2,2.0)
>
> Is the version in the RWT-OSGI integration bundle wrong?
>
> Greetings
>
> Peter
>
--
Rüdiger Herrmann
http://codeaffine.com
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #762588 is a reply to message #761970] Thu, 08 December 2011 10:54 Go to previous messageGo to next message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi Rüdiger,

tested it on the latest nightly. It is possible to start the bundle now.

Thank you for the quick fix.

Regards
Peter
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #826308 is a reply to message #762588] Wed, 21 March 2012 23:12 Go to previous messageGo to next message
Charles Tubbs is currently offline Charles TubbsFriend
Messages: 35
Registered: March 2012
Member
Hi Peter,

I am trying to develop a RAP application. I have Karaf installed but do not know how to create an RWT-OSGI bundle or what files need to go into Karaf's deploy folder. Can you help me?

Thank you
Charles Tubbs
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #831616 is a reply to message #826308] Thu, 29 March 2012 05:22 Go to previous messageGo to next message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi Charles,

i use the org.eclipse.rap.rwt_1.5.0.xxxx.jar and the org.eclipse.rap.rwt.osgi_1.5.0.xx.jar files from the RAP Runtime. This two bundles are contained in the zip file.

But if you have Karaf 2.2.x, you will see a NullPointerException when you access your application. There is a problem with the pax-web component and the way the RAP osgi integration works Sad

I try it with Karaf 3.0.0-SNAPSHOT now, but at the moment without success.

Regards
Peter
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #831692 is a reply to message #831616] Thu, 29 March 2012 07:58 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
On 29.03.2012 07:22, Peter Kilian wrote:
> Hi Charles,
>
> i use the org.eclipse.rap.rwt_1.5.0.xxxx.jar and the
> org.eclipse.rap.rwt.osgi_1.5.0.xx.jar files from the RAP Runtime. This
> two bundles are contained in the zip file.
>
> But if you have Karaf 2.2.x, you will see a NullPointerException when
> you access your application. There is a problem with the pax-web
> component and the way the RAP osgi integration works :(
> I try it with Karaf 3.0.0-SNAPSHOT now, but at the moment without success.
> Regards
> Peter
would you mind to file a bugzilla that details out the steps you do?
Please also attach the stacktrace.

TIA
Rüdiger
--
Rüdiger Herrmann
http://codeaffine.com
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #831752 is a reply to message #831692] Thu, 29 March 2012 09:39 Go to previous messageGo to next message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi Rüdiger,

this is really a bug in pax-web. There is a JIRA for this problem: PAXWEB-303
In Karaf 3.0.0-SNAPSHOT is a newer version of pax-web contained, where this bug is fixed.

But when i call my application only a empty page is displayed. How is the IEntryPoint.createUI() called? In the source of the page i see :

 
if( discoverAjax() ) {
        // rap runtime application
        org.eclipse.rwt.protocol.Processor.processMessage( {
"meta": {},
"operations": [ [ "create", "w1", "rwt.Display" ], [ "call", "w1", "init", {
"rootId": "w1",
"url": "reach"
} ] ]
} );

Should this javascript snippet do the call? My Browser is chrome

Regards
Peter
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #832133 is a reply to message #831752] Thu, 29 March 2012 20:24 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Peter,

an entry point must be registered with
ApplicationConfiguration#addEntryPoint(). Is your entry point is
executed at all?

Rüdiger

On 29.03.2012 11:39, Peter Kilian wrote:
> Hi Rüdiger,
>
> this is really a bug in pax-web. There is a JIRA for this problem:
> PAXWEB-303
> In Karaf 3.0.0-SNAPSHOT is a newer version of pax-web contained, where
> this bug is fixed.
> But when i call my application only a empty page is displayed. How is
> the IEntryPoint.createUI() called? In the source of the page i see :
>
>
> if( discoverAjax() ) {
> // rap runtime application
> org.eclipse.rwt.protocol.Processor.processMessage( {
> "meta": {},
> "operations": [ [ "create", "w1", "rwt.Display" ], [ "call", "w1",
> "init", {
> "rootId": "w1",
> "url": "reach"
> } ] ]
> } );
>
> Should this javascript snippet do the call? My Browser is chrome
>
> Regards Peter
--
Rüdiger Herrmann
http://codeaffine.com
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #832419 is a reply to message #832133] Fri, 30 March 2012 05:40 Go to previous messageGo to next message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi Rüdiger,

the pax-web component in Karaf 3.0.0 have a bug on Windows with the Resources. They have a problem with the "\" in the file path, as result the Javascript files from RWT are not loaded.
When this bug is fixed, i hope my entry is executed.

Regards
Peter

Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #832478 is a reply to message #832419] Fri, 30 March 2012 07:37 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Hi Peter,

tanks for letting us know. Would you please keep us informed when this
issue is solved?

Thanks,
Rüdiger

On 30.03.2012 07:40, Peter Kilian wrote:
> Hi Rüdiger,
>
> the pax-web component in Karaf 3.0.0 have a bug on Windows with the
> Resources. They have a problem with the "\" in the file path, as result
> the Javascript files from RWT are not loaded.
> When this bug is fixed, i hope my entry is executed.
>
> Regards
> Peter
>
>
--
Rüdiger Herrmann
http://codeaffine.com
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #832534 is a reply to message #832478] Fri, 30 March 2012 08:53 Go to previous messageGo to next message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi Rüdiger,

i will inform you.

Regards
Peter
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #891641 is a reply to message #832534] Mon, 25 June 2012 11:57 Go to previous messageGo to next message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi Rüdiger,

the bug in pax-web is fixed. So RAP 1.5 RC3 is working on the latest Karaf 3.0.0-SNAPSHOT version.

Regards
Peter
Re: RAP 1.5 M3 RWT-OSGi integration bundle [message #891716 is a reply to message #891641] Mon, 25 June 2012 15:22 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Hi Peter,

thanks for letting us know.

Regards,
Rüdiger


On 25.06.2012 13:57, Peter Kilian wrote:
> Hi Rüdiger,
>
> the bug in pax-web is fixed. So RAP 1.5 RC3 is working on the latest
> Karaf 3.0.0-SNAPSHOT version.
>
> Regards
> Peter
--
Rüdiger Herrmann
http://codeaffine.com
Previous Topic:Toogle Button NO_FOCUS
Next Topic:RAP + Spring Integration - where to start?
Goto Forum:
  


Current Time: Fri Nov 28 07:28:17 GMT 2014

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

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