On Friday, April 1, 2011, Hasini Gunasinghe <[email protected]> wrote: > Hi, > When making some stubs as osgi bundles, there were errors at the product > start up saying stub bundle can not be started due to several missing > constraints, although the build was successful up to p2-profile-gen and then > up to product.
You got such errors because the import packages are not properly specified. AFAIK stubs do not require dynamic import header. Here is way to get the full import packages list. 1) Put an empty <Import-Packages> element in the bundle plugin configuration. 2) Then build the bundle and open the manifest.mf file of the bundle. 3) Now you can get the import packages list from the Import-Packages manifest header. 4) Remove all sub packages of a parent package using wildcard character *. Same era > > And it was solved only after using dynamic imports. What might be the > solution in such cases if dynamic imports are not supposed to be used? > Do we need to explicitly import all the packages which osgi complains that it > can not resolve at run time? As I can remember, javax.namespace, > javax.stream, axiom and axis2 packages were reported at startup as can not be > resolved.. First, I tried explicitly importing each and every one of them but > the list continued. When dynamic imports was used, it solved the problem. > > Thanks,Hasini. > > On Fri, Apr 1, 2011 at 8:56 AM, Afkham Azeez <[email protected]> wrote: > Unnecessarily many bundle POM have this, which is considered evil in the OSGi > world. Please remove all those that are not necessary. Most of the Carbon > components do not need this. > > -- > Afkham Azeez > Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, > > Member; Apache Software Foundation; http://www.apache.org/ > email: [email protected] cell: +94 77 3320919 > blog: http://blog.afkham.org > twitter: http://twitter.com/afkham_azeez > linked-in: http://lk.linkedin.com/in/afkhamazeez > > Lean . Enterprise . Middleware > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > > > -- Sameera Jayasoma Technical Lead and Product Manager, WSO2 Carbon WSO2, Inc. (http://wso2.com) email: [email protected] blog: http://tech.jayasoma.org Lean . Enterprise . Middleware _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
