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