users@glassfish.java.net

OSGi Web Console on Glassfish 3.1

From: <forums_at_java.net>
Date: Wed, 27 Jul 2011 12:25:11 -0500 (CDT)

I am developing an application using EJB and OSGi, but I can't install the
OSGi Web Console. I followed some tutorias
(wikis.sun.com/display/GFOSGIConsole/Using+GlassFish+OSGi+Console+in+V3 [1])
and this manual
(blogs.oracle.com/arungupta/entry/osgi_application_development_using_glassfish
[2]) which seems to be updated.

In short they said:

  * Install  “Glassfish OSGi Admin Console” from Server Admin Console
  * And download some other packages and unzip them on autodeploy folder

I've also changed the property "Dorg.glassfish.additionalOSGiBundlesToStart"
as Paul M Davies says in
java.net/projects/glassfish/lists/users/archive/2011-03/message/17 [3]

But when I restart the Glassfish server, it seems that a dependency can not
be resolved:

[#|2011-07-27T19:27:44.422+0200|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=43;_ThreadName=fileinstall-/home/golthiryus/borrar/glassfish-prueba/glassfish/modules/autostart/;|Error
while starting bundle:
file:/home/golthiryus/borrar/glassfish-prueba/glassfish/modules/autostart/osgi-http.jar:
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.glassfish.fighterfish.osgi-http [243]: Unable to resolve 243.0: missing
requirement [243.0] package;
(&(package=com.sun.enterprise.web)(version>=3.1.1))|#]
[#|2011-07-27T19:27:44.453+0200|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=43;_ThreadName=fileinstall-/home/golthiryus/borrar/glassfish-prueba/glassfish/modules/autostart/;|org.osgi.framework.BundleException:
Unresolved constraint in bundle org.glassfish.fighterfish.osgi-http [243]:
Unable to resolve 243.0: missing requirement [243.0] package;
(&(package=com.sun.enterprise.web)(version>=3.1.1)) at
org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at
org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922) at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1175)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1153)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.processAllBundles(DirectoryWatcher.java:1146)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:456)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)
|#]
[#|2011-07-27T19:27:45.014+0200|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=43;_ThreadName=fileinstall-/home/golthiryus/borrar/glassfish-prueba/glassfish/modules/autostart/;|Error
while starting bundle:
file:/home/golthiryus/borrar/glassfish-prueba/glassfish/modules/autostart/org.apache.felix.webconsole.jar:
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.felix.webconsole [248]: Unable to resolve 248.0: missing
requirement [248.0] package; (package=org.osgi.service.http) [caused by:
Unable to resolve 243.0: missing requirement [243.0] package;
(&(package=com.sun.enterprise.web)(version>=3.1.1))]|#]
[#|2011-07-27T19:27:45.016+0200|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=43;_ThreadName=fileinstall-/home/golthiryus/borrar/glassfish-prueba/glassfish/modules/autostart/;|org.osgi.framework.BundleException:
Unresolved constraint in bundle org.apache.felix.webconsole [248]: Unable to
resolve 248.0: missing requirement [248.0] package;
(package=org.osgi.service.http) [caused by: Unable to resolve 243.0: missing
requirement [243.0] package;
(&(package=com.sun.enterprise.web)(version>=3.1.1))] at
org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443) at
org.apache.felix.framework.Felix.startBundle(Felix.java:1727) at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922) at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1175)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1153)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.processAllBundles(DirectoryWatcher.java:1146)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:456)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)
|#]
I am using the last build of Glassfish 3.1. I tried to use 3.1.1, but I
could not see glassfish-osgi-gui package in update tool


[1]
http://wikis.sun.com/display/GFOSGIConsole/Using+GlassFish+OSGi+Console+in+V3
[2]
http://blogs.oracle.com/arungupta/entry/osgi_application_development_using_glassfish
[3] http://java.net/projects/glassfish/lists/users/archive/2011-03/message/17

--
[Message sent by forum member 'golthiryus']
View Post: http://forums.java.net/node/826915