Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8651543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:05:53+00:00 2026-06-12T14:05:53+00:00

I have the following directory structure deployed to JBoss AS 7.1.1.Final (under standalone/deployments ):

  • 0

I have the following directory structure deployed to JBoss AS 7.1.1.Final (under standalone/deployments):

doc.war
    -> module1
        -> index.html
    -> module2
        -> index.html

As you can see, there’s no index.html under doc.war. When I browse to localhost:8080/doc/module1/, the correct index.html is displayed, but when I browse to localhost:8080/doc/, JBoss shows an error message (404 – The requested resource is not available).

I think this is related to the fact that directory listings are turned off by default in JBoss AS 7. How can I enable directory listings, either globally or more specifically for this one application?

Edit

Based on Mukul Goel’s answer, I ran the CLI command to add the static-resources feature, restarted the server and retried the request, but it didn’t work.

Here’s the relevant snippet from the standalone.xml file. Please note that I have the native connector enabled.

<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="true">
    <configuration>
        <static-resources listings="true"/>
    </configuration>
    <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
    <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https"/>
    <virtual-server name="default-host" enable-welcome-root="true">
        <alias name="localhost"/>
        <alias name="example.com"/>
    </virtual-server>
</subsystem>

Here’s the error message that JBoss is showing:

JBoss Error Message

Update

So the conclusion to this seems to be that there is an issue with the official JBoss 7.1.1.Final (http://www.jboss.org/jbossas/downloads) download. I didn’t manage to get Directory Listings working with this version. Trying a later version (from the JBoss CI server at https://ci.jboss.org/jenkins/job/JBoss-AS-7.x-latest/), I was able to see the directory listings after applying the config change that Mukul Goel had suggested below.

A potential source of this issue could be the version of JBossWeb that is used in JBoss. The official 7.1.1.Final bundles JBossWeb 7.0.13. Mukul (see below) was able to get it working running a version of JBoss that bundles JBossWeb 7.0.16.

I’m accepting Mukul Goel’s answer as solving this issue, but be aware that it will probably not work with the official 7.1.1.Final download.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:05:54+00:00Added an answer on June 12, 2026 at 2:05 pm

    Yes you are right, directory listings are by default disabled (a security measure)

    To enable directory listing in JBOSS

    Try running the following CLI command to enable diectory listing:

    In Domain Mode

    /profile=full/subsystem=web/configuration=static-resources/:write-attribute(name=listings,value=true)

    .

    In Standalone Mode

    /subsystem=web/configuration=static-resources/:write-attribute(name=listings,value=true)

    It will generate following kind of 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:
    Tried it myself as the user is facing problems

    RAN CLI command for the standaloneMode

    This was generated, note that the native is disabled also there is no HTTPS connector generated for me (Don`t know why it is showing enabled for you? are you using openSSL somewhere? )

    relevant code from standalonex.ml

    I created a sample webprojet(a client side project) with two htmls ,published it to jboss and hit url

    http://localhost:8080/sample/
    

    and this is the screenshot of directory listing

    Directory listing screenshot

    The command worked it for me, So that does turns on Directory listing on JBOSS AS7.1.1 Final(I am also using the same version)
    So the question comes down to rest of your server configuration, your application structure, technologies you are using, springs etc and also if you are using some ssl library.

    UPDATE 2
    Suggested a fresh download and reconfigure environment and see
    nwinkler was still facing issues even with a fresh distribution (JbossWeb 7.0.13) So suggested to take nightly builds from

    ci.jboss.org/jenkins/job/JBoss-AS-7.x-latest

    Just go to the link and download whats under last successful artifact

    And the problem was resolved. Looks like some bug with jbossWeb 7.0.13

    Do go through the comments, the discussion might be helpful

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following directory structure : /script/x.js /includes/x.txt /1/2/index.html After hooking a webpage
I'm using Iirf v2.0 . I have the following directory structure: / /library /library/index.php
I have the following directory structure in htdocs: htdocs/ .htaccess index.php foo/ bar/ priv/
I have the following directory structure: limejs/ closure/ closure/ goog/ base.js projects/ myGame/ myGame.html
After creation of a new project under XCode I have the following directory structure:
I have a project which has the following directory structure. root --include ----module1 ----module2
I have the following directory structure: Main.py A/ __init__.py B/ __init__.py C/ __init__.py The
I have the following directory structure: schema1 schema1.xsd schema1.xsdconfig schema2 schema2.xsd schema2.xsdconfig schema3 schema3.xsd
I have the following directory structure of a project: Folder project in Eclipse: --folder
I have the following directory structure: +-archive +-a +-data.txt +-b +-data.txt +-incoming +-a +-data.txt

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.