users@glassfish.java.net

Re: Hosting Glassfish in Equinox

From: Azubuko Obele <buko.obele_at_gmail.com>
Date: Tue, 3 May 2011 10:52:02 -0400

Some progress on this front:

Still working towards getting Glassfish hosted in Equinox. Added the
glassfish/modules/ directory to my target platform in Eclipse. Created a new
'Run Configuration' with only the org.glassfish.core.glassfish checked to
autostart. Added a system property to define the install root,
-D-Dcom.sun.aas.installRoot=..\glassfish3\glassfish When I launch, this
seems to do as advertised, and starts Glassfish embedded inside the OSGi
container except I do see the following errors (not sure if they're
important or note):

[#|2011-05-03T10:46:08.528-0400|INFO|glassfish3.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=Start
Level Event Dispatcher;|Registered
org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
persistence-type = replicated in BackingStoreFactoryRegistry|#]

[#|2011-05-03T10:46:08.763-0400|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=36;_ThreadName=Grizzly-kernel-thread(1);|Grizzly
Framework 1.9.31 started in: 32ms - bound to [0.0.0.0:3700]|#]

[#|2011-05-03T10:46:08.763-0400|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=34;_ThreadName=Grizzly-kernel-thread(1);|Grizzly
Framework 1.9.31 started in: 78ms - bound to [0.0.0.0:8080]|#]

[#|2011-05-03T10:46:08.763-0400|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=38;_ThreadName=Grizzly-kernel-thread(1);|Grizzly
Framework 1.9.31 started in: 47ms - bound to [0.0.0.0:4848]|#]

[#|2011-05-03T10:46:08.763-0400|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=37;_ThreadName=Grizzly-kernel-thread(1);|Grizzly
Framework 1.9.31 started in: 32ms - bound to [0.0.0.0:7676]|#]

[#|2011-05-03T10:46:08.763-0400|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=35;_ThreadName=Grizzly-kernel-thread(1);|Grizzly
Framework 1.9.31 started in: 47ms - bound to [0.0.0.0:8181]|#]

[#|2011-05-03T10:46:08.965-0400|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=14;_ThreadName=Start
Level Event
Dispatcher;|not.found.in.original.location[Ljava.lang.Object;@50c3d062|#]

[#|2011-05-03T10:46:08.965-0400|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=14;_ThreadName=Start
Level Event
Dispatcher;|not.found.in.original.location[Ljava.lang.Object;@67a5fb5a|#]

[#|2011-05-03T10:46:08.965-0400|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=14;_ThreadName=Start
Level Event Dispatcher;|GlassFish Server Open Source Edition 3.1 (43)
startup time : GenericOSGi (421ms), startup services(781ms),
total(1,202ms)|#]

[#|2011-05-03T10:46:09.418-0400|INFO|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=46;_ThreadName=Thread-25;|JMXStartupService:
Started JMXConnector, JMXService URL = service:jmx:rmi://
xxx.xxx.com:8686/jndi/rmi://xxx.xxx.com:8686/jmxrmi|#]

[#|2011-05-03T10:46:09.901-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|!SESSION|#]

[#|2011-05-03T10:46:09.901-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.901-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|2011-05-03
10:46:03.035|#]

[#|2011-05-03T10:46:09.901-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.901-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|-|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|eclipse.buildId=unknown|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|java.version=1.6.0_24|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|java.vendor=Sun
Microsystems Inc.|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|BootLoader
constants: OS=win32|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|,
ARCH=x86_64|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|,
WS=win32|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|,
NL=en_US|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|Command-line
arguments: |#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
-dev|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
file:C:/data/projects/glassfishosgi/.metadata/.plugins/org.eclipse.pde.core/OSGi
Framework/dev.properties|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
-os|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
win32|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
-ws|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
win32|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
-arch|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
x86_64|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
-consoleLog|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
-console|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|!ENTRY|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|org.eclipse.osgi|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|2|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|0|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|2011-05-03
10:46:09.902|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|!MESSAGE|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|One
or more bundles are not resolved because the following root constraints are
not resolved:|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|!SUBENTRY|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|1|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|org.eclipse.osgi|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|2|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|0|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|2011-05-03
10:46:09.902|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|!MESSAGE|#]

[#|2011-05-03T10:46:09.902-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.918-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|Bundle
file:/C:/data/applications/glassfish3/glassfish/modules/security.jar was not
resolved.|#]

[#|2011-05-03T10:46:09.918-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|!SUBENTRY|#]

[#|2011-05-03T10:46:09.918-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.918-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|2|#]

[#|2011-05-03T10:46:09.918-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|org.glassfish.security|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|2|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|0|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|2011-05-03
10:46:09.934|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|!MESSAGE|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|
|#]

[#|2011-05-03T10:46:09.934-0400|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=1;_ThreadName=main;|Missing
host Bundle-NativeCode_0.0.0.|#]



On Tue, May 3, 2011 at 9:56 AM, Azubuko Obele <buko.obele_at_gmail.com> wrote:

> Thanks Sahoo.
>
> Any help is appreciated. Right now I'm just investigating the possibility
> of glassfish+osgi for some hybrid apps. Another question: what's the purpose
> of the glassfish3\glassfish\osgi\equinox\configuration\config.ini file? Is
> this the preferred way to start Equinox when Glassfish is to be hosted
> inside Equinox?
>
> On Mon, May 2, 2011 at 8:45 PM, Sahoo <sanjeeb.sahoo_at_oracle.com> wrote:
>
>> Hi,
>>
>> My apologies. That blog is outdated and I owe the community an updated
>> one. You no longer have to write a new bundle to embed glassfish in an OSGi
>> environment. We already provide such a bundle (it's glassfish.jar in
>> glassfish/modules) as part of every GlassFish distribution. As I mentioned
>> in an earlier reply [1] in this forum, here is what you can do:
>>
>> cd /tmp/equinox
>> /tmp/equionox $ java -jar org.eclipse.osgi_3.6.1.R36x_v20100806.jar
>> -console
>> /tmp/equionox $ osgi> install file:<full path to glassfish.jar in your
>> existing glassfish installation>
>> /tmp/equionox $ osgi> start 1
>>
>> That's it. You can refer to [1] for some more information. Pl. feel free
>> to ask here.
>>
>> Thanks,
>> Sahoo
>>
>> [1] http://markmail.org/message/db5cm72cn5paemao
>>
>>
>>
>> On Monday 02 May 2011 10:07 PM, Azubuko Obele wrote:
>>
>>> Hey all,
>>>
>>> I'm attempting to host Glassfish in Equinox using the
>>> start-glassfish-activator method outlined here at
>>> http://weblogs.java.net/blog/ss141213/archive/2010/02/14/how-embed-glassfish-existing-osgi-runtime. For the most part it seems to work but I'm getting the following error:
>>>
>>>
>>> [#|2011-05-02T12:29:55.150-0400|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=12;_ThreadName=Start
>>> Level Event Dispatcher;|Unable to start v3. Closing all ports
>>> org.jvnet.hk2.component.ComponentException: injection failed on
>>> com.sun.enterprise.v3.admin.AdminAdapter.listener with class
>>> com.sun.enterprise.v3.admin.listener.GenericJavaConfigListener
>>> at
>>> org.jvnet.hk2.component.InjectionManager.error_injectionException(InjectionManager.java:277)
>>> at
>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:163)
>>> at
>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
>>> at
>>> com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
>>> at
>>> com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
>>> at
>>> com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
>>> at
>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
>>> at
>>> com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
>>> at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
>>> at org.jvnet.hk2.component.Habitat$5.get(Habitat.java:701)
>>> at java.util.AbstractList$Itr.next(AbstractList.java:345)
>>> at
>>> com.sun.enterprise.v3.services.impl.GrizzlyService.registerNetworkProxy(GrizzlyService.java:499)
>>> at
>>> com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:397)
>>> at
>>> com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
>>> at
>>> com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
>>> at
>>> com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
>>> at
>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
>>> at
>>> com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
>>> at
>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
>>> at
>>> com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
>>> at
>>> com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
>>> at
>>> com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
>>> at
>>> com.sun.enterprise.glassfish.bootstrap.GlassFishMainActivator.start(GlassFishMainActivator.java:77)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
>>> at com.bet.glassfisheval.Activator.startBundles(Activator.java:129)
>>> at com.bet.glassfisheval.Activator.start(Activator.java:47)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
>>> at
>>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
>>> at
>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
>>> Caused by: java.lang.IllegalArgumentException: Can not set
>>> com.sun.enterprise.v3.admin.listener.GenericJavaConfigListener field
>>> com.sun.enterprise.v3.admin.AdminAdapter.listener to
>>> com.sun.enterprise.v3.admin.listener.GenericJavaConfigListener
>>> at
>>> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
>>> at
>>> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
>>> at
>>> sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
>>> at java.lang.reflect.Field.set(Field.java:657)
>>> at
>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:144)
>>> ... 43 more
>>>
>>> Any ideas?
>>>
>>> Thanks
>>>
>>
>>
>