Glassfish在移动安装目录后挂起 [英] Glassfish hangs after moving installation directory

查看:67
本文介绍了Glassfish在移动安装目录后挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个答案,但是我在这里发布这个消息是因为作为一名应用程序开发人员,我多次被这个问题所困扰,并且花了很长时间才找到答案:

我已经移动了我的glassfish安装目录,现在它在启动时挂起。

我该如何修复这个?

解决方案

有几个策略可以用来解决这个问题。 b $ b

快速而肮脏的'解决方案'是为了确保服务器停止。

>
  • 通过删除
    域中的
    osgi-cache / felix目录,删除
    osgi-cache的内容。这通常在
    glassfishv3 / glassfish / domains / domain1
    (GlassFish Server 3.0.1)或
    glassfish3 / glassfish / domains / domain1
    (GlassFish Server 3.1)中找到。 / p>


  • 在某些情况下,这会损害您的域名,因为您可以将OSGi模块安装到您的服务器中, glassfish /模块目录。为避免此类问题,您可能需要


    1. 确认服务器已停止


    2. 应用这个解决方法


    I know the answer to this, but I'm posting this here because as an app developer, I was burned by this problem several times and it took a very long time to find the answer:

    I've moved my glassfish installation dir, and now it hangs on startup.

    How can I fix this?

    解决方案

    There are a couple strategies that you can apply to resolve this issue.

    The quick and dirty 'solution' is to

    1. Make sure the server is stopped.

    2. Delete the content of the osgi-cache, by removing the osgi-cache/felix directory in your domain. This is usually found in glassfishv3/glassfish/domains/domain1 (GlassFish Server 3.0.1) OR glassfish3/glassfish/domains/domain1 (GlassFish Server 3.1).

    There are situations where this will damage your domain, since you can install OSGi modules into your server that do not come from the glassfish/modules directory. To avoid this kind of problem, you may want to

    1. Verify that the server is stopped

    2. Apply this work-around.

    这篇关于Glassfish在移动安装目录后挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆