Hi Chamil,

I have built the bundle with your pom. (I had to remove the parent
reference though). But the built jar did not contain the classes from the
said java package. Can you attach your bundle if possible?

I think it would be better if you explicitly specify the Export-Packages of
your bundle instead of exporting everything using '*'. That would be easier
to comprehend, and actually reduce some complexities. As I see, most of the
missing import packages of your bundle should be optional imports. Some
examples
are org.apache.catalina.tribes, org.apache.activemq.broker, org.postgresql
etc.

You might also want to verify the Export-Package versions.

Regards,
KasunG


On Sun, May 18, 2014 at 1:30 PM, Chamil Jeewantha <[email protected]> wrote:

> I have created a single jar file using all the dependencies of openejb &
> tomee. Then I have copied it to dropins folder of AS and started AS.
>
> The new bundle is in the INSTALLED status and  the "diag 447" on OSGI
> console complaints about hundreds of "Missing imported package".
>
> Problem is. almost all the complaining packages are included in the bundle
> itself and they are in the Export-Packages of the same bundle.
>
> The pom.xml is attached.
>
> example:
>
> Missing imported package javax.annotation.processing_0.0.0.
>
> but the bundle has javax/annotation/processing/<all the classes>.class
>
> Please help.
>
> --
> K.D. Chamil Jeewantha
> Associate Technical Lead
> WSO2, Inc.;  http://wso2.com
> Mobile: +94716813892
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to