Application resource loading issue when running JBoss EAP on AWS

Solution Verified - Updated -


We are facing a static resource loading problem, regarding relative reference issue when running the application under JBoss EAP on AWS

In our web application, we have the following structure,

      --- Index.jsp
              ---- xyz.js

And within index.jsp we are referring these resources as relative path, as an example,

<%@ page contentType="text/html; charset=utf-8" import="NavUtilities.*,java.util.*" language="java" %>
<html lang="en">

<script type="text/javascript" src="scripts/xyz.js"></script>

<link href="include/tabmenu.css" rel="stylesheet" type="text/css">

<a href="#maincontent"><img src="images/abc.png" alt="Skip Navigation" name="skipnav" width="1" height="1" border="0" id="skipnav"></a>


When the index.jsp gets served, the client does not receive scripts, images, and CSS files. Same war file, when we deploy it in EAP 7.0.4, it works but it does not work in EAP 7.2. We are using OpenJDK 1.8, which is part of RHEL 7 channel.


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In