Commit 236de0e5 236de0e55479b6aa06cd3e6e20dbb89f4b2e1639 by Christian Gerdes

Städat upp lite, lagt till externa beroenden för Eclipse i lib, samt de

jar filer som webappen behöver i WEB-INF/lib så de inkluderas i war
filen när den byggts. Skapat en jetty mapp med senaste versionen av
jetty
samt en bat fil för att kunna starta war filen. Senaste bygget (export)
av war filen ligger i denna mapp. För att endast köra JavaMonWeb så
behöver
man alltså bara de filer som ligger i jetty mappen.
1 parent 97db4d30
......@@ -8,6 +8,8 @@
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry combineaccessrules="false" kind="src" path="/LILOM Library"/>
<classpathentry kind="lib" path="lib/javax.servlet.jar"/>
<classpathentry kind="lib" path="lib/javax.servlet.jsp.jar"/>
<classpathentry kind="lib" path="lib/javax.servlet.jsp.jstl.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
......
......@@ -7,11 +7,24 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<title>OraMon Admin</title>
</head>
<body>
<%
boolean error = false;
String errMsg = "";
if(request.getParameter("action").equals("add")) {
error = true;
errMsg = request.getParameter("data");
System.out.println(errMsg);
}
%>
<% ArrayList<OraMon> monList = Registry.getList(); %>
<% if(error) { %>
<div style="background: yellow; padding: 10px; width: 100%">Error: <%= errMsg %></div>
<% } %>
<h1>OraMon Status</h1>
<p>Number of monitors: <% monList.size(); %>
<p>Number of monitors: <%= monList.size() %>
</body>
</html>
\ No newline at end of file
......
No preview for this file type
No preview for this file type
Source directory for classes
\ No newline at end of file
java -jar jetty-runner-9.3.7.v20160115.jar --log access.log --out systemout.log JavaMonWeb.war
\ No newline at end of file
No preview for this file type
2016-01-21 19:25:40.947:INFO:oejs.Server:main: jetty-9.3.7.v20160115
2016-01-21 19:25:41.702:WARN:oeja.AnnotationConfiguration:main: ServletContainerInitializers: detected. Class hierarchy: empty
2016-01-21 19:25:41.818:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@73f9ac{/,file:///C:/Users/Christian/AppData/Local/Temp/jetty-0.0.0.0-8080-JavaMonWeb.war-_-any-5496611950669328313.dir/webapp/,AVAILABLE}{file:///C:/Users/Christian/GIT/LILOM/JavaMonWeb/jetty/JavaMonWeb.war}
2016-01-21 19:25:41.818:INFO:oejs.AbstractNCSARequestLog:main: Opened C:\Users\Christian\GIT\LILOM\JavaMonWeb\jetty\access.log
2016-01-21 19:25:41.871:INFO:oejs.ServerConnector:main: Started ServerConnector@ef309d{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2016-01-21 19:25:41.871:INFO:oejs.Server:main: Started @1103ms
No preview for this file type
No preview for this file type
No preview for this file type
Source directory for classes
\ No newline at end of file