Yes, you're right, directory lists are disabled by default (security measure)
To include a directory listing in JBOSS
Try the following CLI command to enable the dialect list:
In domain mode
/ profile = complete / subsystem = Web / configuration = static-resources /: attribute records (name = lists, value = true)
.
Offline
/ = web subsystem / configuration = static-resources /: attribute records (name = lists, value = true)
It will generate the following configuration:
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false"> <configuration> <static-resources listings="true"/> </configuration> <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/> <virtual-server name="default-host" enable-welcome-root="true"> <alias name="localhost"/> <alias name="example.com"/> </virtual-server> </subsystem>
UPDATE: I tried this myself, as the user is facing problems.
RAN CLI Command Offline
This was generated, please note that the native one is disabled and the HTTPS connector has not been created for me (donβt you know why it is displayed for you?) Are you using openSSL somewhere?)

I created a webprojet sample (client-side project) with two htmls, published it in jboss and hit url
http:
and this is a screenshot of the directory listing

The team worked for me, so this includes a list of directories on JBOSS AS7.1.1 Final (I also use the same version) Thus, the question comes down to the rest of your server configuration, the structure of your application, the technologies you use, sources, etc. . And also if you use some ssl library.
UPDATE 2 Proposed a new boot and reconfiguration environment and looked nwinkler still ran into problems even with fresh distribution (JbossWeb 7.0.13). So it was suggested to take nightly assemblies from
ci.jboss.org/jenkins/job/JBoss-AS-7.x-latest
Just follow the link and upload something to the last successful artifact
And the problem is solved. Looks like an error with jbossWeb 7.0.13
Go through the comments, the discussion may be helpful.