dev@grizzly.java.net

Re: More OSGi

From: Hubert Iwaniuk <neotyk_at_kungfoo.pl>
Date: Tue, 6 Jan 2009 14:53:38 +0100

Hello,

> I've committed the fix (1.9.3-SNAPSHOT). Can you try it and let me know if I
> got it properly?

Unfortunately not yet.
I get:
-> ERROR: Error starting
file:/home/huberti/Devel/Source/test-grizzly-osgi/runner/bundles/test.test-grizzly-osgi_1.0.0.SNAPSHOT.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
2: package; (&(package=com.sun.grizzly.filter)(version>=1.9.3.SNAPSHOT)))
org.osgi.framework.BundleException: Unresolved constraint in bundle 2:
package; (&(package=com.sun.grizzly.filter)(version>=1.9.3.SNAPSHOT))
        at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1635)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1578)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)
        at java.lang.Thread.run(Thread.java:595)
ERROR: Error starting
file:/home/huberti/Devel/Source/test-grizzly-osgi/runner/bundles/com.sun.grizzly.grizzly-http_1.9.3.SNAPSHOT.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
2: package; (&(package=com.sun.grizzly.filter)(version>=1.9.3.SNAPSHOT)))
org.osgi.framework.BundleException: Unresolved constraint in bundle 2:
package; (&(package=com.sun.grizzly.filter)(version>=1.9.3.SNAPSHOT))
        at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1635)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1578)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)
        at java.lang.Thread.run(Thread.java:595)
ERROR: Error starting
file:/home/huberti/Devel/Source/test-grizzly-osgi/runner/bundles/com.sun.grizzly.grizzly-portunif_1.9.3.SNAPSHOT.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
5: package; (&(package=com.sun.grizzly)(version>=1.9.3.SNAPSHOT)))org.osgi.framework.BundleException:
Unresolved constraint in bundle 5: package;
(&(package=com.sun.grizzly)(version>=1.9.3.SNAPSHOT))

        at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1775)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1635)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1578)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1172)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265)
        at java.lang.Thread.run(Thread.java:595)

And trying to build from trunk fails:
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/home/huberti/Devel/Source/grizzly/modules/http-servlet/src/main/java/com/sun/grizzly/http/servlet/ServletAdapter.java:[41,23]
cannot find symbol
symbol : class Grizzly
location: package com.sun.grizzly

/home/huberti/Devel/Source/grizzly/modules/http-servlet/src/main/java/com/sun/grizzly/http/servlet/ServletAdapter.java:[231,58]
cannot find symbol
symbol : variable Grizzly
location: class com.sun.grizzly.http.servlet.ServletAdapter

Archetype catalog has been updated so you can build use same commands
to create sample project that depends on SNAPSHOT.

>
>>
>>> BTW the way you setup a project from your blog is just amazing. We need
>>> something like that for framework and http as it makes grizzly
>>> development
>>> quite fast to start!!
>>
>> Thanks, I'm kind of addicted to Maven ;-)
>
> We need help with Maven :-)
>
>> If you are fine with kungfoo-m2 repository hosting this archetypes,
>> just send me sample projects/sources and I'll convert them to
>> something similar as you've just seen :-)
>
> OK I will work on that! Thanks for the offer!

Good stuff,
   Hubert.