Glassfish:链接的安全策略时出错
我在重新启动或将应用程序重新部署到Glassfish时出错,出现以下异常:Glassfish:链接的安全策略时出错,glassfish,Glassfish,我在重新启动或将应用程序重新部署到Glassfish时出错,出现以下异常: com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while loading the app : org.glassfish.deployment.common.DeploymentException: Error in linking security policy for appname -- Inconsistent M
com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while loading the app : org.glassfish.deployment.common.DeploymentException: Error in linking security policy for appname -- Inconsistent Module State
我应该怎么做才能解决这个问题?在谷歌搜索了几个小时后,我找到了一些回复,只有这一条对我有效: 删除位于策略文件夹下的应用程序文件夹:
rm -Rf /opt/sun-glassfish/glassfish/domains/domain1/generated/policy/appname
然后重新部署并重新启动Glassfish
它应该可以工作。我尝试通过eclipse启动payara服务器时也遇到了相同的错误,因为我错误地将新用户添加到管理领域。 因此,我从bin(startserv.bat)文件夹启动了服务器,从管理领域删除了新添加的用户 我通过eclipse启动了服务器并部署了应用程序 这对我有用