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 <cedric.d.he...@alstom.com> wrote:
> 
> Hello,
>  
> I have followed the tutorial http://enroute.osgi.org/qs/050-start.html 
> <http://enroute.osgi.org/qs/050-start.html> 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 
> <http://enroute.osgi.org/qs/300-application.html> 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#/ 
> <http://localhost:8889/osgi.enroute.examples.rest/index.html#/> 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
>  
> <http://localhost:8889/osgi.enroute.webresource/osgi.enroute.examples.rest.application/1.0.0/*.css>:
>  returns the CSS content
> ·         
> http://localhost:8889/osgi.enroute.webresource/osgi.enroute.examples.rest.application/1.0.0/*.js
>  
> <http://localhost:8889/osgi.enroute.webresource/osgi.enroute.examples.rest.application/1.0.0/*.js>:
>  returns HTTP ERROR: 404
> Note that http://localhost:8889/rest/upper <http://localhost:8889/rest/upper> 
> 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
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <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

Reply via email to