1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
6 This is a JSP fragment to be inserted into document, cannot be used alone
9 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
10 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
11 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
12 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
14 <c:import url="../template_header.jsp" >
15 <c:param name="title">Service Status</c:param>
16 <c:param name="html_custom_css"><link href="${pageContext.request.contextPath}/static/css/table.css"
17 rel="stylesheet"></c:param>
20 <%-- load cached Service Status --%>
22 <div class="col-md-3"></div>
23 <div class="col-md-6">
24 <div class="center-block">
25 <hidden_loader style="display:none;">
26 <div class="alert alert-warning" role="alert">
27 <p style="text-align: center; font-size: 16px">
28 <img src="${pageContext.request.contextPath}/static/img/loader.gif" style="width:7%;height:7%">
29 This request usually takes several minutes to be served...
35 <div class="col-md-3"></div>
38 <div class="row" id="mainpage">
39 <div class="col-md-12">
40 <div class="panel panel-default">
41 <div class="panel panel-heading">
42 <h1 class="panel-title">JABAWS Service Status</h1>
44 <div class="panel-body">
46 <div style="margin: 20px ">
48 <c:set var="host" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}" />
51 This servlet tests if the web services are healthy on the tomcat instance on which JABAWS is deployed. <br/>
52 If the tomcat instance is mapped to another "proxy" web server, the servlet does not test availability of <br/>
53 the web services at the endpoints of this external web server.</li>
54 <%--<li>All the web services are tested while this page is being loaded.</li>--%>
55 <%--<li>If you want to test the services again, reload this page.</li>--%>
56 <li>Click on the service status to see the results of the testing.</li>
57 <li><strong>Server:</strong> <a href="${host}">${host}</a> </li>
58 <li><strong>Time of execution:</strong> ${timeexec} sec</li>
59 <li><strong>Service Status as of:</strong> ${timestamp} (Refreshes every ${refreshfreq} minutes)</li>
60 <li><a href="${pageContext.request.contextPath}/ServiceStatusRefresher" title="JABAWS web-services status."
61 id="show_hidden1"><i class="fa fa-cogs" aria-hidden="true"></i> Refresh Service Status</a></li>
62 <%--<li> Your IP is ${pageContext.request.remoteAddr}</li>--%>
65 <h3 style="text-align: center;color: green">
66 Alignment Web Services
71 <th title="Service name" width="100px">Service</th>
72 <th title="Service status">Version</th>
73 <th title="Service status">Status</th>
74 <th title="Service details">Reference and more details</th>
77 <c:forEach items="${results}" var="res" varStatus="status">
78 <c:if test="${res.group=='alignment'}">
79 <c:if test="${status.count%2==0}">
81 </c:if><c:if test="${status.count%2!=0}">
84 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
85 <td>${res.version}</td>
86 <c:if test="${res.status}">
87 <td><div class="source">
88 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
89 title="Click to open/close"><span style="color: green">OK</span></div>
90 <div class="body collapsed" style="max-width: 400px;">
91 <pre>${res.details}</pre>
94 <c:if test="${!res.status}">
95 <td><div class="source">
96 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
97 title="Click to open/close"><span style="color: red">Fail</span></div>
98 <div class="body collapsed" style="max-width: 400px;">
99 <pre>${res.details}</pre>
102 <td><div class="source">
103 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
104 title="Click to open/close"><span style="color: blue">INFO</span></div>
105 <div class="body collapsed" style="max-width: 500px;">
106 <pre>${res.reference}</pre>
115 <h3 style="text-align: center;color: green;">
116 Disorder Web Services
121 <th title="Service name" width="100px">Service</th>
122 <th title="Service status">Version</th>
123 <th title="Service status">Status</th>
124 <th title="Service details">Reference and more details</th>
127 <c:forEach items="${results}" var="res" varStatus="status">
128 <c:if test="${res.group=='disorder'}">
129 <c:if test="${status.count%2==0}">
131 </c:if><c:if test="${status.count%2!=0}">
134 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
135 <td>${res.version}</td>
136 <c:if test="${res.status}">
137 <td><div class="source">
138 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
139 title="Click to open/close"><span style="color: green">OK</span></div>
140 <div class="body collapsed" style="max-width: 400px;">
141 <pre>${res.details}</pre>
144 <c:if test="${!res.status}">
145 <td><div class="source">
146 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
147 title="Click to open/close"><span style="color: red">Fail</span></div>
148 <div class="body collapsed" style="max-width: 400px;">
149 <pre>${res.details}</pre>
152 <td><div class="source">
153 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
154 title="Click to open/close"><span style="color: blue">INFO</span></div>
155 <div class="body collapsed" style="max-width: 500px;">
156 <pre>${res.reference}</pre>
165 <h3 style="text-align: center;color: green;">
171 <th title="Service name" width="100px">Service</th>
172 <th title="Service status">Version</th>
173 <th title="Service status">Status</th>
174 <th title="Service details">Reference and more details</th>
177 <c:forEach items="${results}" var="res" varStatus="status">
178 <c:if test="${res.group!='alignment' and res.group!='disorder'}">
179 <c:if test="${status.count%2==0}">
181 </c:if><c:if test="${status.count%2!=0}">
184 <td width="100px"><a href="${host}/${res.service}?wsdl">${res.service}</a></td>
185 <td>${res.version}</td>
186 <c:if test="${res.status}">
187 <td><div class="source">
188 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
189 title="Click to open/close"><span style="color: green">OK</span></div>
190 <div class="body collapsed" style="max-width: 400px;">
191 <pre>${res.details}</pre>
194 <c:if test="${!res.status}">
195 <td><div class="source">
196 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
197 title="Click to open/close"><span style="color: red">Fail</span></div>
198 <div class="body collapsed" style="max-width: 400px;">
199 <pre>${res.details}</pre>
202 <td><div class="source">
203 <div class="header collapsed" onclick="$(this).next('.body.collapsed').toggle();"
204 title="Click to open/close"><span style="color: blue">INFO</span></div>
205 <div class="body collapsed" style="max-width: 500px;">
206 <pre>${res.reference}</pre>
213 <p>If you would like to integrate JABAWS with automated health check system you may want to use
214 the HTTP code response service checker. It responds with HTTP status code depending on the status
216 For more information please refer to <a href="${pageContext.request.contextPath}/docs/advanced.html#testing-the-jabaws-server">
217 Testing JABAWS server</a> help page.</p>
218 </div><!-- margin div -->
224 <jsp:include page="../template_footer.jsp" />