Hi everyone!

I'm trying to get the simple Web application in GWT 1.6.4 featuring
GWT RPC to work in Knopflerfish OSGi framework 2.3.1 (an
implementation of the OSGi framework like Equinox).

For that matter I created an OSGi bundle from the GWT project and
added an implementation of BundleActivator in which I register the
client-side Web page and the server-side GWT RemoteServiceServlet with
the OSGi-defined HTTP Service.

Separately, I created an OSGi bundle from gwt-user.jar and exported
the required packages for RPC but not javax.servlet as this is already
exported by the JSDK in Knopflerfish.

When I start the bundle created from the GWT project, the
BundleActivator.start() method is executed and the client-side Web
page is successfully registered in the HTTP Service. When I open my
Web browser (Mozilla Firefox) and point it to the given address, I can
view the Web page. Unfortunately, I get a
java.lang.IncompatibleClassChangeError during execution of the start
method from within the Knopflerfish OSGi framework apparently due to
javax.servlet.Servlet.

If I try to define a traditional Servlet in the same project and
register it from the BundleActivator, everything works fine. Thus, my
conclusion is that the problem is related to RemoteServiceServlet
inheritance of javax.servlet.Servlet which doesn't comply with
Knopflerfish OSGi framework definition of javax.servlet.Servlet.

It looks like as if a definition of Servlet is used when I compile the
GWT project with GWT-generated Ant file and another one is made
available by the Knopflerfish OSGi framework, if I'm not mistaken
about the meaning of java.lang.IncompatibleClassChangeError.

I tried both to export and not to export javax.servlet from the OSGi
bundle encapsulating gwt-user.jar but this didn't change anything.

Some related info. I read the post by Ian Bull on his blog at
http://blog.ianbull.com/2008/09/gwt-and-osgi.html but that refers to a
previous version of GWT and uses Eclipse Equinox, not Knopflerfish.
Thus, I couldn't figure it out from there.

Thanks in advance,

Gia

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to