I'm new to osgi/felix and am trying to wrap h2 database as an iPOJO bundle. When starting the service from felix console I get: "org.osgi.framework.BundleException: Unresolved package in bundle 24: package; (package=com.sun.tools.javac)" I'm on Mac OS X 10.5 (Leopard) which, to my understanding, includes this package in the runtime. So there is no tools.jar that needs to be imported.

Any ideas how to get this working?
Thanks!
Erik


fyi...here is the pom file I'm using if that has any impact...

<project>
    <modelVersion>4.0.0</modelVersion>
    <packaging>bundle</packaging><!-- Use the BND Maven plug-in -->
    <groupId>ipojo.examples</groupId>
    <artifactId>hello.client</artifactId>
    <version>0.8.0-SNAPSHOT</version>
    <name>Hello Service Client</name>
    <dependencies>
        <dependency>
            <groupId>ipojo.examples</groupId>
            <artifactId>hello.service</artifactId>
            <version>0.8.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <version>1.0.72</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
    <pluginRepositories>
        <pluginRepository>
            <id>apache.snapshots</id>
            <name>snapshot plugins</name>
            <url>
                                
http://people.apache.org/repo/m2-snapshot-repository
            </url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <plugins>

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <version>1.4.1</version>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>
                                                        ${pom.artifactId}
                        </Bundle-SymbolicName>
                        <Private-Package>
                                                        
ipojo.example.hello.client
                        </Private-Package>
<!--
                        <Private-Package>
                                                        org.h2.*, 
ipojo.example.hello.client
                        </Private-Package>
                        -->
                        <Export-Package>
                            *
                        </Export-Package>
                        <Import-Package>
                            !., *
                        </Import-Package>

                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-ipojo-plugin</artifactId>
                <version>0.8.0-SNAPSHOT</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>ipojo-bundle</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to