Hmm, manifest looks ok. The fact that your bundle runs means Felix must have
resolved this.
I vaguely recall that there was a bug in Felix wiring custom namespaces but
that same vague recall says in my head it was fixed.
The easiest for me is if you create a Github bndtools workspace.
Kind regards,
Peter Kriens
> On 22 Mar 2017, at 08:18, HENRY Cedric D <[email protected]> wrote:
>
> Hello,
>
> I left the code downloaded from GIT as-is and followed the steps from the
> tutorial in order to see it working in full, which it did in when ran from
> Eclipse or when running the exported JAR.
>
> As per angular the Require-Capability header, the osgi.enroute.examples.rest
> bundle has the following (see manifest attached) amongst others:
> ·
> effective:=active,osgi.enroute.webresource;resource:List<String>="angular.js,angular-resource.js,angular-route.js"
> ·
> priority:Long=1000;filter:="(&(osgi.enroute.webresource=/google/angular)(&(version>=1.5.7)(!(version>=2.0.0))))",osgi.enroute.webresource
>
> If it helps with the investigation, I can archive the Felix instance included
> all the bundles and sent it over.
>
> Best Regards,
>
> Cédric
>
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Peter Kriens
> Sent: Tuesday, March 21, 2017 7:10 PM
> To: OSGi Developer Mail List <[email protected]>
> Subject: Re: [osgi-dev] RHelp needed about Web Application with AngularJS
>
> Your GUI bundle must require the angular code and the bootstrap code. Since
> you can see the CSS this seems to work fine for Twitter but not angular.
>
> * Did you remove or change the RequireAngular annotation from the application
> class?
> * Verify that your osgi.enroute.rest.application bundle requires angular in
> the header (Require-Capability header)
>
> Otherwise make a Github repo with the project and I can take a look. Kind
> regards,
>
> Peter Kriens
>
>
> On 21 Mar 2017, at 18:01, HENRY Cedric D <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hello,
>
> I have followed the tutorial http://enroute.osgi.org/qs/050-start.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__enroute.osgi.org_qs_050-2Dstart.html&d=DwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=P6euiOIUTiHGeCo834UpUN15FXdgxZVSdSwprP_eqOo&m=7tDGLFT8Y4SL1Hbi9pYPSF30fCXvShawNw2TQArioZw&s=BVpIxOXWBdZ4T2IGnu0wJ5WS05rMgUUxH7qZd3eX17Q&e=>
> using the examples available on GIT without any problem.
>
> Then, I have extracted the content of the JAR generated at the end of the
> page http://enroute.osgi.org/qs/300-application.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__enroute.osgi.org_qs_300-2Dapplication.html&d=DwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=P6euiOIUTiHGeCo834UpUN15FXdgxZVSdSwprP_eqOo&m=7tDGLFT8Y4SL1Hbi9pYPSF30fCXvShawNw2TQArioZw&s=aMOj06IaufFeItw5hnwlF2mNvvfIzETbxZIgsikB3OQ&e=>
> to use it content with a clean instance of Felix (v 5.6.2, configured to
> have on port 8889).
> The intent is to better the dependencies required in order to create a Web
> application (with AngularJS) using OSGi in order to create a similar
> application using Maven on Intellij IDEA.
>
> The Problem is as below:
>
> After some struggle, I have succeeded to have all bundles active, but the web
> application does not work as when ran from Eclipse.
> NOTE that none of the org.eclipse.* bundles got used.
>
> Opening http://localhost:8889/osgi.enroute.examples.rest/index.html#/
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8889_osgi.enroute.examples.rest_index.html-23_&d=DwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=P6euiOIUTiHGeCo834UpUN15FXdgxZVSdSwprP_eqOo&m=7tDGLFT8Y4SL1Hbi9pYPSF30fCXvShawNw2TQArioZw&s=V_W98i93Z69Cc5LnyjAXLxPZyFSeWIY_J2DCABsg-eQ&e=>
> only the content of the index.html file is rendered as-is:
> <image001.jpg>
>
> Looking into the Source View, I have followed the CSS link and the JS link:
> ·
> http://localhost:8889/osgi.enroute.webresource/osgi.enroute.examples.rest.application/1.0.0/*.css
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8889_osgi.enroute.webresource_osgi.enroute.examples.rest.application_1.0.0_-2A.css&d=DwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=P6euiOIUTiHGeCo834UpUN15FXdgxZVSdSwprP_eqOo&m=7tDGLFT8Y4SL1Hbi9pYPSF30fCXvShawNw2TQArioZw&s=kgzYhTlXSCzRmOmKO_hVP4uaKIKikISnKd3vvUZbrDI&e=>:
> returns the CSS content
> ·
> http://localhost:8889/osgi.enroute.webresource/osgi.enroute.examples.rest.application/1.0.0/*.js
>
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8889_osgi.enroute.webresource_osgi.enroute.examples.rest.application_1.0.0_-2A.js&d=DwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=P6euiOIUTiHGeCo834UpUN15FXdgxZVSdSwprP_eqOo&m=7tDGLFT8Y4SL1Hbi9pYPSF30fCXvShawNw2TQArioZw&s=dyl6nBIpKmH7osnfGaV-1xDeG14sA3shf0AebcKkhIw&e=>:
> returns HTTP ERROR: 404
> Note that http://localhost:8889/rest/upper
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8889_rest_upper&d=DwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=P6euiOIUTiHGeCo834UpUN15FXdgxZVSdSwprP_eqOo&m=7tDGLFT8Y4SL1Hbi9pYPSF30fCXvShawNw2TQArioZw&s=v_IA5GqHB5Y6fbV2NC2nsLlhQ95_Hv8ANRl7M40rmN8&e=>
> is working fine.
>
> I am puzzled about the fact that the CSS file content is returned, but not
> the JS file content event though they are under the same directory within the
> osgi.enroute.examples.rest.application bundle, and I would appreciate some
> help in solving and understand the cause of this problem.
>
> Here is a snapshot of all the bundles under ‘bundle’ directory used by Felix:
> <image002.png>
>
> Best Regards,
>
> Cédric
>
>
> CONFIDENTIALITY : This e-mail and any attachments are confidential and may be
> privileged. If you are not a named recipient, please notify the sender
> immediately and do not disclose the contents to another person, use it for
> any purpose or store or copy the information in any medium.
> _______________________________________________
> OSGi Developer Mail List
> [email protected] <mailto:[email protected]>
> https://mail.osgi.org/mailman/listinfo/osgi-dev
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.osgi.org_mailman_listinfo_osgi-2Ddev&d=DwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=P6euiOIUTiHGeCo834UpUN15FXdgxZVSdSwprP_eqOo&m=7tDGLFT8Y4SL1Hbi9pYPSF30fCXvShawNw2TQArioZw&s=zeUdHtPyd_ZLBw3ul5UF1a_zMp2Fspe5GjUNjIHtI_w&e=>
>
>
> CONFIDENTIALITY : This e-mail and any attachments are confidential and may be
> privileged. If you are not a named recipient, please notify the sender
> immediately and do not disclose the contents to another person, use it for
> any purpose or store or copy the information in any medium.
> <MANIFEST.MF>_______________________________________________
> OSGi Developer Mail List
> [email protected] <mailto:[email protected]>
> https://mail.osgi.org/mailman/listinfo/osgi-dev
> <https://mail.osgi.org/mailman/listinfo/osgi-dev>
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev