Thank you, that fixed it! On Fri, Oct 27, 2017 at 3:48 PM, Peter Kriens <peter.kri...@aqute.biz> wrote:
> You should add the @RequireEventAdminServerSentEventsWebResource to your > application class. This drags in the bundle https://github.com/ > osgi/osgi.enroute/tree/master/osgi.enroute.easse.simple.adapter . Using > the OSGi enRoute Webresources, this automatically makes this module > available to your app. > > Kind regards, > > Peter Kriens > > > On 26 Oct 2017, at 20:37, Jesse Rao <jesse....@liferay.com> wrote: > > I've worked through the Distributed OSGi tutorial up to the last section > here (http://enroute.osgi.org/tutorial_rsa/260-gui.html) but I'm having > some trouble with the JS part. Maybe I'm missing something obvious > (AngularJS is new to me) but I want to check if there could be a typo > around the name of the `enEasse` module here: > > var MODULE = angular.module( > 'osgi.enroute.examples.chat', // CHANGE > [ 'ngRoute', 'enEasse' ]); > > I can find documentation for the ngRoute module but what is enEasse? It > seems to be used here: > > var close = en$easse.handle(... > > but it's not clear to me where this handle function is defined. > > When I run the chat app and view the page at http://localhost:8081/com. > example.chat.application/index.html#/, I get this JS error: > > Error: [$injector:modulerr] Failed to instantiate module > com.example.chat.application due to: > [$injector:modulerr] Failed to instantiate module enEasse due to: > [$injector:nomod] Module 'enEasse' is not available! You either misspelled > the module name or forgot to load it. If registering a module ensure that > you specify the dependencies as the second argument. > ... > > Any ideas what's going wrong? > > > -- > Jesse Rao > Software Engineer > Liferay, Inc. > Visit Us: www.liferay.com | Like Us: www.facebook.com/liferay | > Follow Us: www.twitter.com/liferay | Share Us: > www.instagram.com/liferayinc > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev > > > > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev > -- Jesse Rao Software Engineer Liferay, Inc. Visit Us: www.liferay.com | Like Us: www.facebook.com/liferay | Follow Us: www.twitter.com/liferay | Share Us: www.instagram.com/liferayinc
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev