Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 292
Steffen Avatar asked Jan 27 '16 11:01

Steffen


People also ask

How do I deploy a WildFly Web application?

Log into your instance of Wildfly and, from the main page, click Start (under Deployments — Figure 1). Accessing the Deployment tool in the Wildfly web-based interface. On the resulting page, drag the helloworld. war file into the Deployment pane on the left side (Figure 2).

Is WildFly free for commercial use?

Is WildFly free for commercial usage? WildFly is free and open-source software, subject to the requirements of the GNU Lesser General Public License (LGPL), version 2.1. Being an opensource project it means you can contribute as well to make it better.

What is the difference between WildFly and EAP?

JBoss EAP is just a commercial build of the Wildfly project. In many ways, especially from a source code perspective, JBoss and Wildfly are the same thing. “Wildfly is the upstream project JBoss EAP is built on,” said James Falkner, technical product manager for Red Hat Runtimes.

Is JBoss and WildFly same?

WildFly, formerly known as JBoss AS, or simply JBoss, is an application server written by JBoss, now developed by Red Hat. WildFly is written in Java and implements the Java Platform, Enterprise Edition (Java EE) specification.


1 Answers

That can occur if you do not have any index.html file at the root of the war file (in WebContent in Eclipse) or your write it wrongly like: Index.html

Same issue if <welcome-file> is not properly set up in WEB-INF/web.xml descriptor

like image 52
Bruno L. Avatar answered Oct 08 '22 06:10

Bruno L.