users@glassfish.java.net

Re: moving glassfish v3.x folder

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Mar 2010 09:54:45 PST

Deleting the osgi-cache will definitely solve this problem. But, sometimes that's not an option. Then one can try to fix it by running a simple script like this:

cd /tmp/newglassfish/
for f in `find glassfish/domains/domain1/osgi-cache/felix/ -name bundle.location`; do sed s#/tmp/oldglassfish/#/tmp/newglassfish/#g $f > $f.new; mv $f.new $f; done

Thanks,
Sahoo
[Message sent by forum member 'ss141213' (Sanjeeb.Sahoo_at_Sun.COM)]

http://forums.java.net/jive/thread.jspa?messageID=390111