Glassfish hangs after moving installation directory

后端 未结 2 492
情深已故
情深已故 2021-01-20 18:54

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

2条回答
  •  终归单人心
    2021-01-20 19:29

    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.

提交回复
热议问题