Wildfly: Why I get only “Forbidden” if I call my Web application?

自古美人都是妖i 提交于 2020-01-02 02:28:07

问题


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>
...

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

EDIT

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 ...


回答1:


That build must be corrupted. Re-build the application, create war again and deploy it again. It will work.




回答2:


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.



来源:https://stackoverflow.com/questions/35036646/wildfly-why-i-get-only-forbidden-if-i-call-my-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!