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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    <parent>
        <artifactId>j2ee</artifactId>
        <groupId>org.wso2.carbon</groupId>
        <version>1.0.0</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>org.wso2.tomee</artifactId>
    <packaging>bundle</packaging>
    <name>WSO2 TomEE</name>
    <url>http://wso2.org</url>

    <properties>
        <openejb.version>4.6.0.1</openejb.version>
        <myfaces.version>2.1.13</myfaces.version>
        <tomee.version>1.6.0.1</tomee.version>
        <org.apache.openwebbeans.version>1.2.1</org.apache.openwebbeans.version>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>

                <!--extensions>true</extensions-->
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${project.artifactId}</Bundle-Name>
                        <Export-Package>*;-split-package:=merge-first</Export-Package>
                        <Private-Package />
                        <DynamicImport-Package>*</DynamicImport-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>tomee-webapp</artifactId>
            <version>1.6.0.1</version>
        </dependency>
    </dependencies>

</project>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to