users@glassfish.java.net

Re: Issue with GlasFish-v3 and Jython

From: Snjezana Sevo-Zenzerovic <Snjezana.Sevo-Zenzerovic_at_Sun.COM>
Date: Tue, 08 Sep 2009 13:23:05 -0700

Stefan,

this was definitely inventive :-) Did you by any chance also copy over
.org.opensolaris,pkg directory from Preview distribution in addition to
pkg/updatetool, since, frankly, I am not sure how you got updatetool to
work otherwise....

Note that this workaround will work for the installation of additional
components, such as python packages, but do not be tempted to use this
installation to perform upgrade of base GlassFish packages since your
starting point is inconsistent when it comes to GlassFish package
content....

Thanks,

Snjezana

Stefan Filatov wrote:
> Hi everyone.
>
> I found the solution how to work on Fuji version with Python/Django
>
> 1. Getting Fujy version from download center:
> http://download.java.net/maven/esb/open-esb/fuji/fujiglassfish/1.0-M7/fujiglassfish-1.0-M7.jar
> 2. Then i download zip version of GlassFish Preview version.:
> http://download.java.net/glassfish/v3-preview/release/glassfish-v3-preview.zip
>
> Unpackage Fuji and installing it. ESB is working. Now i need to insert
> updatetool
> Getting from zip package of GlassFish Preview only "pkg" and
> "updatetool" folders and copying them into Fuji GlassFish directory.
>
> Then in command shell need to install updatetool. Just doing it:
> /bin/updatetool
> This will install updatetool instrument for Fuji.
>
> After that i can use Updatetool for installin Jython container and
> Jython Runtime IPS
>
> Now i can deploy Jython projects.
>
> Next step is to update Django code.
> Go to Django/core/management/base.py
>
> You will need to update next line (398):
> before - if f.endswith('.pyc'):
> after - if not f.endswith('.py'):
>
> After that you will be able to run Django projects.
>
> Thanks everybody for help :) :)
>
> Regards, Stephan
>
> 9 сентября 2009 г. 0:03 пользователь Snjezana Sevo-Zenzerovic
> <Snjezana.Sevo-Zenzerovic_at_sun.com
> <mailto:Snjezana.Sevo-Zenzerovic_at_sun.com>> написал:
>
> Correct, Jane and myself checked the current build procedure and
> IPS enabled images are currently not published to maven
> repository, but we can certainly fix that...
>
> To see how the IPS enabled distribution gets assembled, check
> packager and distributions modules, note that IPS enabled
> distribution is produced when build runs in "ips" maven profile.
> I'll get back to you offline with the procedure you should be able
> to follow to add IPS packaged content to existing GlassFish IPS
> enabled distribution...
>
> Thanks,
>
>
> Snjezana
>
> Annies Abduljaffar wrote:
>
> Thanks Snjezana. I assume the IPS enabled image is not
> published in a maven repo. because it is not a maven artifact.
> Could you please provide a pointer to the module that builds
> this bundle?
>
> Thanks
> Annies
>
>
> Snjezana Sevo-Zenzerovic wrote:
>
> And FWIW, it is not possible to artificially "add" IPS
> integration on top of regular, non-IPS zip bundle since
> you will not be able to add appropriate baseline installed
> package metadata.
>
> It seems reasonable that Fuji/GF cobundle should use IPS
> enabled GF installation since there is no reason to punish
> its users with functionality gap, but in that case it
> would also be highly recommended that Fuji content gets
> packaged as an IPS package and installed on top of IPS
> enabled GF image in order to produce the cobundle.
>
> Thanks,
>
> Snjezana
>
>
> Jane Young wrote:
>
> The glassfish.zip from Maven repo does not have the
> IPS packaging thus updatetool is not packaged.
> You need to download glassfish installer from the
> promoted link:
>
> http://download.java.net/glassfish/v3/promoted/
>
> Jane
>
> cc'ing Snjezana
>
>
> Annies Abduljaffar wrote:
>
>
> Thanks Vivek. We use the glassfish.zip from the
> repo. as a maven dependency.
>
> Jane -
>
> Please let us know if we should expect the
> updatetool to be part of the zip from the repository.
> If not, are there instructions on how to add the
> update center functionality after glassfish is
> installed?
>
> I tried the generic pkg toolkit installation to
> get updatetool, but that does not seem to be
> glassfish specific and I don't know how to
> provide existing glassfish installation details.
>
>
> Thanks
> Annies
>
> Vivek Pandey wrote:
>
> Annies Abduljaffar wrote:
>
>
> The FujiGlassFish distribution is
> repackaged image of the glassfish.zip from
> here...
> http://download.java.net/maven/glassfish/org/glassfish/distributions/glassfish/3.0-b52/glassfish-3.0-b52.zip
>
>
> Does this GlassFish distribution not
> include Update Center? Which modules / jar
> files should we look for to check that out?
>
> Interesting, I see that the glassfish.zip link
> from maven does not have updateool. However
> the b52 I get from the glassfish promoted
> build at,
> http://download.java.net/glassfish/v3/promoted/glassfish-v3-preview-b52.zip
> has the updatetool.
>
> So I am not sure whether you should pickup
> glassfish.zip distribution from maven or from
> the promoted link I mentioned above. I have
> cced Jane who deals with glassfish builds to
> comment on it.
>
> -vivek.
>
>
> Thanks
> Annies
>
>
> Alexis Moussine-Pouchkine wrote:
>
>
> On Sep 4, 2009, at 11:57, Stefan
> Filatov wrote:
>
> Yeah,
>
> That is the main question - how to
> install Jython container in
> GlassFish v3b52.
> Actually, i need ESB functionality
> for my project, that's why
> GlassFish Preview is not suitable
> for me.
>
>
> Fair enough.
>
> Maybe someone knows how to install
> Jython container?
>
>
> adding users_at_fuji.dev.java.net
> <mailto:users_at_fuji.dev.java.net>
> -Alexis
>
>
>
> Regards, Stefan
>
> 4 сентября 2009 г. 13:25
> пользователь Alexis
> Moussine-Pouchkine <alexis.mp
> <http://alexis.mp>@sun.com
> <http://sun.com>> написал:
> This fuji build uses GlassFish
> v3b52 which should be enough to
> run Jython/Django apps (it
> postdates v3 Preview which Vivek
> used to write his blog entry [1])
> *but* it has no IPS built in, so
> no update center. While you can
> still manually install Jython you
> would still need to install the
> Jython container (glue code for
> GlassFish to properly dispatch
> Jython requests to the Jython
> runtime). I don't know of an easy
> way to do this without the update
> center.
>
> If you don't need Fuji/ESB
> features, I would recommend using
> plain GlassFish v3 (Preview with
> the update for instance) [2].
> You can get both Jython and the
> Jython container straight from the
> container.
>
> Allso CC'ing Fuji's Andy for his
> take on this.
>
> С Уважением,
> -Alexis
>
> [1]:
> http://weblogs.java.net/blog/vivekp/archive/2009/06/run_django_appl_1.html
>
> [2]:
> http://blogs.sun.com/alexismp/entry/new_screencast_django_setup_for
>
>
>
>
> On Sep 4, 2009, at 7:50, Stefan
> Filatov wrote:
>
> Wow
>
> Very quick answer :) :) Didn't
> expect :)
>
> I got GlassFish from here:
> http://download.java.net/maven/esb/open-esb/fuji/fujiglassfish/1.0-M8-SNAPSHOT/fujiglassfish-1.0-M8-SNAPSHOT.jar
>
> It glassfish with openEsb project.
> i will need esb service in my
> future projects, that's why i got
> that one.
>
> The issue is that i don't see such
> row with GlassFish Jython
> container in the update tool list.
>
> i found package with Jython
> container here:
> https://glassfish-scripting.dev.java.net/files/documents/8474/141056/glassfish-jython-container.zip
>
>
> but i'm not sure that i install it
> correct: i just unpackaged it to
> the folder /glassfish/modules/
>
> Yes, i have installed Jython 2.5
> and Django 1.1
>
> Then i do next:
> $ asadmin create-jvm-options
> -Djython.home=/my_dir/jython/2.5.0
>
> going to my application folder
>
> $ cd my_application
> $ asadmin deploy .
>
> and when i try deploy application
> a got error, that i described earlier:
> "remote failure: There is no
> installed container capable of
> handling this application
> com.sun.enterprise.deploy.shared.FileArchive_at_93f0c6
> Command deploy failed."
>
> BTW, how can i do stack trace?
>
> Regards, Stefan
>
> 2009/9/4 Vivek Pandey
> <Vivek.Pandey_at_sun.com
> <mailto:Vivek.Pandey_at_sun.com>>
> Hi Stefan,
>
> I guess I need more info so that I
> can see whats going on. Few questions,
>
> - What glassfish v3 build you are
> trying? Latest Jython container as
> well as Jython 2.5 runtime is
> available on updatecenter.
> - Can you provide the complete
> stack trace? Also do you have
> jython installed. Also Django on
> top of Jython. See [1] as a reference.
>
> vivek.
>
> [1]http://weblogs.java.net/blog/2009/06/05/run-django-applications-glassfish-v3-preview
>
>
>
> Stefan Filatov wrote:
> Hello, Trying to do use Jython
> container to run Python
> applications on GlassFishv3. But
> when i open update tool, there is
> no Jython container in the list.
> Then i found package with Jython
> container on this site. Unpackaged
> it at the glassfish/modules
> directory. when i try to deploy
> some python application i get next
> error: " emote failure: There is
> no installed container capable of
> handling this application
> com.sun.enterprise.deploy.shared.FileArchive_at_93f0c6
> Command deploy failed. " About my
> environment: Ubuntu 9.0.4;
> GlassFishv3; Python2.5; Django1.1
> Can you advise? Regards, Stefan
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail:
> users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail:
> users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>
>
>
> --
> С Уважением, Филатов Стефан
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail:
> users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail:
> users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>
>
>
> --
> С Уважением, Филатов Стефан
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail:
> users-unsubscribe_at_fuji.dev.java.net
> <mailto:users-unsubscribe_at_fuji.dev.java.net>
> For additional commands, e-mail:
> users-help_at_fuji.dev.java.net
> <mailto:users-help_at_fuji.dev.java.net>
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail:
> users-unsubscribe_at_fuji.dev.java.net
> <mailto:users-unsubscribe_at_fuji.dev.java.net>
> For additional commands, e-mail:
> users-help_at_fuji.dev.java.net
> <mailto:users-help_at_fuji.dev.java.net>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_fuji.dev.java.net
> <mailto:users-unsubscribe_at_fuji.dev.java.net>
> For additional commands, e-mail:
> users-help_at_fuji.dev.java.net
> <mailto:users-help_at_fuji.dev.java.net>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail:
> users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail:
> users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>
>
>
> --
> С Уважением, Филатов Стефан