users@glassfish.java.net

Re: moving glassfish v3.x folder

From: Richard S. Hall <heavy_at_ungoverned.org>
Date: Wed, 03 Mar 2010 07:51:25 -0500

On 3/3/10 7:45, Alexis Moussine-Pouchkine wrote:
> these are warnings and I assume Felix is rebuilding its cache.
> other than an optional JAVA_HOME config in glassfish/config/asenv.conf, there should be no absolute path in GlassFish v3
> -Alexis
>
> On 3 mars 2010, at 12:31, Luca Morettoni wrote:
>
>
>> There is a simple way to move an installation of glassfish v3.x from a folder to another?
>>
>> If i'll do I got a lot of exceptions from felix:
>>
>> Mar 3, 2010 12:30:44 PM Main install
>> WARNING: Failed to install file:/export/home/luca/java/as/glassfish-v3.1/glassfish/modules/monitoring-core.jar
>> org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.glassfish.admin.monitoring-core:3.1.0.SNAPSHOT
>>

I think you need to delete the existing OSGi framework cache, since the
framework uses the location of the bundles as a key and moving the
install directory thus changes this key. You should just be able to delete:

     glassfish-v3/glassfish/domains/domain1/osgi-cache/felix/

This is just a cache of your installed bundles and will simply be
recreated if you delete it.

-> richard

>> thanks!
>> --
>> Luca Morettoni<luca(AT)morettoni.net> | OpenSolaris SCA #OS0344
>> Web/BLOG: http://www.morettoni.net/ | http://twitter.com/morettoni
>> jugUmbria founder: https://jugUmbria.dev.java.net/
>> ITLOSUG leader: http://hub.opensolaris.org/bin/view/User+Group+itl-osug/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>