Glassfish:链接以下产品的安全策略时出错 [英] Glassfish: Error in linking security policy for

查看:50
本文介绍了Glassfish:链接以下产品的安全策略时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将应用重新启动或重新部署到Glassfish时出现错误,并且出现以下异常:

I got an error while restarting or re-deploying an app to Glassfish and I get the exception below:

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

我应该怎么做才能解决这个问题?

What should i do to solve this issue?

推荐答案

在谷歌搜索了几个小时后,我发现了一些回复,只有这个对我有用:

After googling for a couple of hours I found some replies and only this one worked for me:

删除位于 policy 文件夹下的应用程序文件夹:

Remove the application folder which is placed under policy folder:

rm -Rf /opt/sun-glassfish/glassfish/domains/domain1/generated/policy/appname

然后重新部署并重新启动Glassfish.

Then redeploy and restart Glassfish.

应该可以.

这篇关于Glassfish:链接以下产品的安全策略时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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