users@glassfish.java.net

Re: OSGi Web Console on Glassfish 3.1

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Wed, 27 Jul 2011 23:33:01 +0530

It seems you have installed a package intended for GF3.1.1 in GF3.1
installation, so you are seeing the package mismatch error. Just follow
the steps below and you should be fine.

1) Uninstall the additional packages you have installed to get the web
console working.
2) Retain the changes you made to the JVM property
"org.glassfish.additionalOSGiBundlesToStart."
3) Download and unzip the following two zips such that they jars end up
in modules/autostart/.
http://download.java.net/maven/glassfish/org/glassfish/packager/glassfish-osgi-http/3.1/glassfish-osgi-http-3.1.zip
http://download.java.net/maven/glassfish/org/glassfish/packager/glassfish-osgi-gui/3.1/glassfish-osgi-gui-3.1.zip
These two zips are the additional packages that you should have
installed earlier, but not sure what caused the installation of wrong
packages. You may like to report it as a separate issue to packager team.
4) Restart server.
5) Visit localhost:4848 and navigate to "osgi console" tab under
"Server" node in left frame or visit
http://localhost:8080/osgi/system/console/bundles to access the web
console directly.

HTH,
Sahoo

On Wednesday 27 July 2011 10:55 PM, forums_at_java.net wrote:
> 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
>
>