dev@glassfish.java.net

Unresolved constraint in bundle - external jar for module

From: Claudio Miranda <claudio_at_claudius.com.br>
Date: Wed, 7 Jan 2009 16:44:01 -0200

I have 2 dependencies for a module, that is causing osgi loading errors.
I tried to put those libraries at $GFV3/lib and $GFV3/modules
directory, with no success.
Where should I put those libraries ? They just are ordinal jars, not
modules themselves.

        <dependency>
            <groupId>bouncycastle</groupId>
            <artifactId>bcprov-jdk15</artifactId>
            <version>1.4.1</version>
        </dependency>
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <version>1.6</version>
        </dependency>



[#|2009-01-07T16:27:44.253-0200|SEVERE|glassfish|null|_ThreadID=15;_ThreadName=Thread-4;|com.sun.enterprise.module.ResolveError:
Failed to start org.glassfish.admingui.console-certmanager(Certificate
Admin Console Plugin):3.0.0.SNAPSHOT|#]

[#|2009-01-07T16:27:44.254-0200|SEVERE|glassfish|null|_ThreadID=15;_ThreadName=Thread-4;|
      at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:143)|#]

[#|2009-01-07T16:27:44.254-0200|SEVERE|glassfish|null|_ThreadID=15;_ThreadName=Thread-4;|
      at org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1$1.loadClass(OSGiModuleImpl.java:280)|#]



[#|2009-01-07T16:27:44.256-0200|SEVERE|glassfish|null|_ThreadID=15;_ThreadName=Thread-4;|Caused
by: org.osgi.framework.BundleException: Unresolved constraint in
bundle 69: package; (package=org.bouncycastle.openssl)|#]

[#|2009-01-07T16:27:44.256-0200|SEVERE|glassfish|null|_ThreadID=15;_ThreadName=Thread-4;|
      at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1725)|#]

[#|2009-01-07T16:27:44.257-0200|SEVERE|glassfish|null|_ThreadID=15;_ThreadName=Thread-4;|
      at org.apache.felix.framework.Felix._startBundle(Felix.java:1588)|#]

[#|2009-01-07T16:27:44.257-0200|SEVERE|glassfish|null|_ThreadID=15;_ThreadName=Thread-4;|
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1541)|#]

[#|2009-01-07T16:27:44.258-0200|SEVERE|glassfish|null|_ThreadID=15;_ThreadName=Thread-4;|
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:371)|#]


-- 
  Claudio Miranda
  _______________________________________________