FELIX-2447 Ensure loading script resources with an absolute path to prevent resource loading failure for detail pages such as /system/console/services/15.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@957836 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/templates/components.html b/webconsole/src/main/resources/templates/components.html
index a574b3e..8d5d65a 100644
--- a/webconsole/src/main/resources/templates/components.html
+++ b/webconsole/src/main/resources/templates/components.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/components.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/components.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 var drawDetails = ${__drawDetails__};
diff --git a/webconsole/src/main/resources/templates/config.html b/webconsole/src/main/resources/templates/config.html
index 385bd72..5b0b852 100644
--- a/webconsole/src/main/resources/templates/config.html
+++ b/webconsole/src/main/resources/templates/config.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/config.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/config.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 // data
diff --git a/webconsole/src/main/resources/templates/deployment.html b/webconsole/src/main/resources/templates/deployment.html
index 525738d..20181bc 100644
--- a/webconsole/src/main/resources/templates/deployment.html
+++ b/webconsole/src/main/resources/templates/deployment.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/deployment.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/deployment.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 var i18n = {
diff --git a/webconsole/src/main/resources/templates/license.html b/webconsole/src/main/resources/templates/license.html
index 8ad5f7a..57ae2e9 100644
--- a/webconsole/src/main/resources/templates/license.html
+++ b/webconsole/src/main/resources/templates/license.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/license.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/license.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 var bundleData = ${__data__};
diff --git a/webconsole/src/main/resources/templates/logs.html b/webconsole/src/main/resources/templates/logs.html
index f58995f..2086dcb 100644
--- a/webconsole/src/main/resources/templates/logs.html
+++ b/webconsole/src/main/resources/templates/logs.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/logs.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/logs.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 // i18n
diff --git a/webconsole/src/main/resources/templates/obr.html b/webconsole/src/main/resources/templates/obr.html
index c40ffce..19a89f5 100644
--- a/webconsole/src/main/resources/templates/obr.html
+++ b/webconsole/src/main/resources/templates/obr.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="${pluginRoot}/res/ui/obr.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/obr.js"></script>
 <script type="text/javascript">
 var i18n = {
 	status_ok : '${obr.status.ok}',
diff --git a/webconsole/src/main/resources/templates/services.html b/webconsole/src/main/resources/templates/services.html
index 3919a65..bc717e8 100644
--- a/webconsole/src/main/resources/templates/services.html
+++ b/webconsole/src/main/resources/templates/services.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/services.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/services.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 // i18n stuff
diff --git a/webconsole/src/main/resources/templates/shell.html b/webconsole/src/main/resources/templates/shell.html
index f0ed65c..be411ce 100644
--- a/webconsole/src/main/resources/templates/shell.html
+++ b/webconsole/src/main/resources/templates/shell.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/shell.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/shell.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 var shellDisabled = ${shell.disabled};
diff --git a/webconsole/src/main/resources/templates/vmstat.html b/webconsole/src/main/resources/templates/vmstat.html
index afac303..0f8f984 100644
--- a/webconsole/src/main/resources/templates/vmstat.html
+++ b/webconsole/src/main/resources/templates/vmstat.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/vmstat.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/vmstat.js"></script>
 <script type="text/javascript">
 // <![CDATA[
 var statData = ${startData};
diff --git a/webconsole/src/main/resources/templates/vmstat_restart.html b/webconsole/src/main/resources/templates/vmstat_restart.html
index bb1f933..7eaaf60 100644
--- a/webconsole/src/main/resources/templates/vmstat_restart.html
+++ b/webconsole/src/main/resources/templates/vmstat_restart.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/vmstat.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/vmstat.js"></script>
 
 <!-- status line -->
 <p class="statline">${vmstat.restarting}</p>
diff --git a/webconsole/src/main/resources/templates/vmstat_stop.html b/webconsole/src/main/resources/templates/vmstat_stop.html
index ce054c2..cdbce60 100644
--- a/webconsole/src/main/resources/templates/vmstat_stop.html
+++ b/webconsole/src/main/resources/templates/vmstat_stop.html
@@ -1,4 +1,4 @@
-<script type="text/javascript" src="res/ui/vmstat.js"></script>
+<script type="text/javascript" src="${appRoot}/res/ui/vmstat.js"></script>
 
 <!-- status line -->
 <p class="statline">${vmstat.stopped}</p>