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.
Showing
14 changed files
with
27 additions
and
3 deletions
... | @@ -8,6 +8,8 @@ | ... | @@ -8,6 +8,8 @@ |
8 | </classpathentry> | 8 | </classpathentry> |
9 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | 9 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> |
10 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> | 10 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
11 | <classpathentry combineaccessrules="false" kind="src" path="/LILOM Library"/> | 11 | <classpathentry kind="lib" path="lib/javax.servlet.jar"/> |
12 | <classpathentry kind="lib" path="lib/javax.servlet.jsp.jar"/> | ||
13 | <classpathentry kind="lib" path="lib/javax.servlet.jsp.jstl.jar"/> | ||
12 | <classpathentry kind="output" path="build/classes"/> | 14 | <classpathentry kind="output" path="build/classes"/> |
13 | </classpath> | 15 | </classpath> | ... | ... |
... | @@ -7,11 +7,24 @@ | ... | @@ -7,11 +7,24 @@ |
7 | <html> | 7 | <html> |
8 | <head> | 8 | <head> |
9 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | 9 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
10 | <title>Insert title here</title> | 10 | <title>OraMon Admin</title> |
11 | </head> | 11 | </head> |
12 | <body> | 12 | <body> |
13 | <% | ||
14 | boolean error = false; | ||
15 | String errMsg = ""; | ||
16 | if(request.getParameter("action").equals("add")) { | ||
17 | error = true; | ||
18 | errMsg = request.getParameter("data"); | ||
19 | System.out.println(errMsg); | ||
20 | } | ||
21 | %> | ||
22 | |||
13 | <% ArrayList<OraMon> monList = Registry.getList(); %> | 23 | <% ArrayList<OraMon> monList = Registry.getList(); %> |
24 | <% if(error) { %> | ||
25 | <div style="background: yellow; padding: 10px; width: 100%">Error: <%= errMsg %></div> | ||
26 | <% } %> | ||
14 | <h1>OraMon Status</h1> | 27 | <h1>OraMon Status</h1> |
15 | <p>Number of monitors: <% monList.size(); %> | 28 | <p>Number of monitors: <%= monList.size() %> |
16 | </body> | 29 | </body> |
17 | </html> | 30 | </html> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
JavaMonWeb/WebContent/WEB-INF/lib/lilom.jar
0 → 100644
No preview for this file type
JavaMonWeb/WebContent/WEB-INF/lib/ojdbc6.jar
0 → 100644
No preview for this file type
JavaMonWeb/build/classes/readme.txt
0 → 100644
1 | Source directory for classes | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
JavaMonWeb/jetty/JavaMonWeb.bat
0 → 100644
1 | java -jar jetty-runner-9.3.7.v20160115.jar --log access.log --out systemout.log JavaMonWeb.war | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
JavaMonWeb/jetty/JavaMonWeb.war
0 → 100644
No preview for this file type
JavaMonWeb/jetty/access.log
0 → 100644
File mode changed
No preview for this file type
JavaMonWeb/jetty/systemout.log
0 → 100644
1 | 2016-01-21 19:25:40.947:INFO:oejs.Server:main: jetty-9.3.7.v20160115 | ||
2 | 2016-01-21 19:25:41.702:WARN:oeja.AnnotationConfiguration:main: ServletContainerInitializers: detected. Class hierarchy: empty | ||
3 | 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} | ||
4 | 2016-01-21 19:25:41.818:INFO:oejs.AbstractNCSARequestLog:main: Opened C:\Users\Christian\GIT\LILOM\JavaMonWeb\jetty\access.log | ||
5 | 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} | ||
6 | 2016-01-21 19:25:41.871:INFO:oejs.Server:main: Started @1103ms |
JavaMonWeb/lib/javax.servlet.jar
0 → 100644
No preview for this file type
JavaMonWeb/lib/javax.servlet.jsp.jar
0 → 100644
No preview for this file type
JavaMonWeb/lib/javax.servlet.jsp.jstl.jar
0 → 100644
No preview for this file type
JavaMonWeb/src/readme.txt
0 → 100644
1 | Source directory for classes | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment