Wildfly:为什么我只会收到"Forbidden"如果我调用我的Web应用程序? [英] Wildfly: Why I get only "Forbidden" if I call my Web application?

查看:431
本文介绍了Wildfly:为什么我只会收到"Forbidden"如果我调用我的Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天,我们的Web应用程序在WildFly 9上运行良好.从今天早上开始,我在Web浏览器中仅收到禁止访问"信息.我们不使用JAAS.如果在standalone.xml中将以下值设置为false,也没有区别:

Yesterday our web application ran fine on WildFly 9. Since this morning I get only a "Forbidden" in the web browser. We don't use JAAS. There is also no difference if I set the following value to false in the standalone.xml:

...
<subsystem xmlns="urn:jboss:domain:ejb3:3.0">
   ...
   <default-missing-method-permissions-deny-access value="true"/>
   ...
</subsystem>
...

WildFly仅显示禁止"页面的原因可能是什么?

What can be the reasons that WildFly only shows the "Forbidden" page?

编辑

如果将程序包org.jboss.security的日志级别设置为TRACE,则在调用页面时在日志文件中收到以下消息:

If I set the log level for package org.jboss.security to TRACE I get the following message in the log file while calling the page:

2016-01-27 12:58:15,354 TRACE [org.jboss.security] (default task-5) PBOX00354: Setting security roles ThreadLocal: null

不确定这是什么意思...

Not sure what this means ...

推荐答案

我的EAR项目和eclipse中继承的WAR项目都已损坏.缺少某些内容,例如application.xml.

My EAR project and the inherited WAR project in eclipse was broken. There were several things missing like at example the application.xml.

不知道为什么这些东西丢失了,我在哪里丢失了.但是,在修复了两个项目的部署之后,它又可以工作了.

Not sure why these things are missing and where I have lost it. But after fixing both projects deployments it works again.

这篇关于Wildfly:为什么我只会收到"Forbidden"如果我调用我的Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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