Glassfish DeploymentException:链接安全策略时出错 [英] Glassfish DeploymentException: Error in linking security policy for
问题描述
我一直在尝试从Glassfish AdminConsole部署我的Web应用程序(war),但是我仍然收到以下错误消息 -
I have been trying to deploy my web application (war) from Glassfish AdminConsole but I keep getting the following error message -
Exception while loading the app : Error in linking security policy for MyApp-war -- Inconsistent Module State.
但是当我从Netbeans执行它时,它没有任何问题。 (我不知道Netbeans是否在部署应用程序之前做了一些缺失的事情。)
But it deploys without any problem when I do it from Netbeans. (I don't know if Netbeans is doing something that I am missing before deploying the application.)
而且我也尝试过最新版本的Glassfish(即V3.3)。 1.1(build 12)
),我可以从AdminConsole部署相同的应用程序没有任何问题。
And I also tried with the latest version of Glassfish (i.e. V3.1.1 (build 12) ), and I can deploy the same application without any problem from AdminConsole.
我使用的是Glassfish 3.1(build 43)和Netbeans 7.0。
I am using Glassfish 3.1 (build 43) and Netbeans 7.0.
在使用此版本的Glassfish部署我的应用程序之前,是否有安全策略设置?
Is there any Security Policy setting that I have to have before deploying my application with this version of Glassfish?
推荐答案
同样的事情发生在我身上。
The same thing was happening to me.
这是我做的:
- 停止Glassfish服务器
- 从glassfishhome / glassfish / domains / yourdomainname / generated中删除所有内容
- 开始Glassfish
它适用于我。但是还有什么可怕的是,每次我需要部署我需要再次遵循这个程序。
It worked for me. But what still sucks is that everytime I need to deploy I need to follow this procedure again...
这篇关于Glassfish DeploymentException:链接安全策略时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!