users@glassfish.java.net

Re: How to enable the OSGi Bundles autodeployment on Glassfish 3.1

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Thu, 14 Apr 2011 14:24:31 +0530

Hi,

Felix has been started, because GlassFish runs within it, but none of
the OSGi features have been enabled yet in your runtime. Please run the
following two commands to enable the OSGi features in 3.1:

asadmin delete-jvm-options --target server-config
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command

asadmin create-jvm-options --target server-config
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall

The above commands are sensitive to whitespace, so be careful while
executing it. There are alternative ways of doing the same as mentioned
in [1].

Thanks,
Sahoo

[1] http://markmail.org/message/itphcq7rqdc76gys

On Thursday 14 April 2011 02:00 PM, forums_at_java.net wrote:
> I watched "Developing OSGi-enabled Java EE Applications using Eclipse"
> on http://www.youtube.com/watch?v=FwOycoTgTvY&feature=player_embedded
> [1] ,
> And download the zip file [2] to practice, However, after i generated
> the 3
> JARs, common.jar, simple_client.jar, and simple_service.jar , then I
> put them
> into ~/domains/domain1/autodeploy/bundles/ , Glassfish *NEVER* deploy
> them !
>
> Should I configure what to enable the OSGi auto-deployment or someother
> actions ? I saw Felix is already started in the logs.
>
> My environment is GlassFish Server 3.1(43) on Windows 7
>
> ----Logs---
>
> 資訊: Running GlassFish Version: GlassFish Server Open Source Edition 3.1
> (build 43)
>
> [#|2011-04-14T16:06:20.516+0800|INFO|glassfish3.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=Thread-1;|Registered
>
> org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
> persistence-type = replicated in BackingStoreFactoryRegistry|#]
>
> [#|2011-04-14T16:06:21.863+0800|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=32;_ThreadName=Thread-1;|Grizzly
>
> Framework 1.9.31 started in: 734ms - bound to [0.0.0.0:4848]|#]
>
> [#|2011-04-14T16:06:21.864+0800|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=31;_ThreadName=Thread-1;|Grizzly
>
> Framework 1.9.31 started in: 710ms - bound to [0.0.0.0:3700]|#]
>
> [#|2011-04-14T16:06:21.864+0800|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=33;_ThreadName=Thread-1;|Grizzly
>
> Framework 1.9.31 started in: 772ms - bound to [0.0.0.0:8181]|#]
>
> [#|2011-04-14T16:06:21.865+0800|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName=Thread-1;|Grizzly
>
> Framework 1.9.31 started in: 856ms - bound to [0.0.0.0:8080]|#]
>
> [#|2011-04-14T16:06:21.864+0800|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=Thread-1;|Grizzly
>
> Framework 1.9.31 started in: 694ms - bound to [0.0.0.0:7676]|#]
>
> [#|2011-04-14T16:06:22.136+0800|INFO|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=Thread-1;|*GlassFish
>
> Server Open Source Edition 3.1 (43) *啟動時間:*Felix
> (40,607ms),*啟動服務 (3,804ms),總計 (44,411ms)|#]
>
> [#|2011-04-14T16:06:26.738+0800|INFO|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=51;_ThreadName=Thread-1;|JMXStartupService:
>
> Started JMXConnector, JMXService URL =
> service:jmx:rmi://gary:8686/jndi/rmi://gary:8686/jmxrmi|#]
>
>
>
>
>
>
>
>
> [1] http://www.youtube.com/watch?v=FwOycoTgTvY&amp;feature=player_embedded
> [2] http://blogs.sun.com/arungupta/resource/osgi-gf-econ-2011.zip
>
> --
>
> [Message sent by forum member 'jakarta99tw']
>
> View Post: http://forums.java.net/node/791670
>
>