users@glassfish.java.net

Re: deployment type osgi

From: Annies <annies_a_at_yahoo.com>
Date: Tue, 21 Apr 2009 10:41:57 -0700 (PDT)

Thanks Sahoo and Jerome.

Apache Felix File Install Service works nicely. But the HK2 services in those modules are not discovered by V3.
I had to restart the server to make V3 core get the services. Is this something that could be fixed?
If this works fine, I am planning to create an update center module that could setup our container the same way.

Here is my setup:

1)I am using b44, latest-glassfish.zip from http://download.java.net/glassfish/v3/nightly/latest-glassfish.zip
2)I am creating a new instance of FileInstall by copying org.apache.felix.fileinstall-fuji.cfg (contents below).
3)The modules in installRoot/fuji get installed and started fine.
4)One of those modules implements HK2 container services.
5)When I deploy an application I get

$ ./asadmin deploy ~/packages/sun-wsdl-library.jar
remote failure: There is no installed container capable of handling this application com.sun.enterprise.deploy.shared.FileArchive_at_108227d5
Command deploy failed.

6)I restart the domain and do the same deployment

$ ./asadmin deploy ~/packages/sun-wsdl-library.jar
Command deploy executed successfully.


$ cat ../modules/org.apache.felix.fileinstall-fuji.cfg
felix.fileinstall.dir=${com.sun.aas.installRoot}/fuji
felix.fileinstall.poll=5000
felix.fileinstall.debug=1
felix.fileinstall.bundles.new.start=true



Thanks
Annies





________________________________
From: Annies <annies_a_at_yahoo.com>
To: users_at_glassfish.dev.java.net
Sent: Thursday, April 9, 2009 2:17:55 PM
Subject: Re: deployment type osgi


I am using "asadmin deploy --type osgi simple-jndi.jar".

But the Felix File Install feature looks cool. If a bundle is installed this way, will this addition percolate to the HK2 Module Resigtry?


Thanks
Annies





________________________________
From: Sahoo <Sahoo_at_sun.com>
To: users_at_glassfish.dev.java.net
Sent: Thursday, April 9, 2009 1:07:18 PM
Subject: Re: deployment type osgi

What exact command are you using to deploy? I can provide you an alternative way to deploy OSGi bundles in GFv3 if you use the latest nightly build. Just do the following:

copy this attached cfg file to glassfish/modules dir and then
copy your OSGi bundles to domains/domain1/autodeploy-modules dir.

Thanks,
Sahoo

Annies wrote:
>
> When I deploy a bundle, with --type osgi, it is started and immediately restarted, why?
>
> [#|2009-04-09T09:46:06.609-0700|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=20;_ThreadName=Thread-1;org.glassfish.openesb.simple-jndi [318];|Started bundle org.glassfish.openesb.simple-jndi [318]|#]
>
> [#|2009-04-09T09:46:06.611-0700|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=20;_ThreadName=Thread-1;org.glassfish.openesb.simple-jndi [318];|Stopped bundle = org.glassfish.openesb.simple-jndi [318]|#]
>
> [#|2009-04-09T09:46:06.612-0700|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=20;_ThreadName=Thread-1;org.glassfish.openesb.simple-jndi [318];|Started bundle org.glassfish.openesb.simple-jndi [318]|#]
>
> [#|2009-04-09T09:46:06.629-0700|INFO|glassfish|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=20;_ThreadName=Thread-1;|Deployment of simple-jndi done is 82 ms|#]
>
>
> Thanks
> Annies
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net