@@ -19,16 +19,16 @@ cd tomcat-mysql-c9
19
19
## Setting up MySQL
20
20
MySQL is already installed.
21
21
22
- Run the following from your ``` ~/workspace/tomcat-mysql-c9 `` ` directory.
22
+ Run the following from your ` ~/workspace/tomcat-mysql-c9 ` directory.
23
23
24
24
```
25
25
./setupMySql.sh
26
26
```
27
27
28
28
## Setting up Tomcat
29
- The following will download V8 of Tomcat and unpack it to ``` ./tomcat `` `
29
+ The following will download V8 of Tomcat and unpack it to ` ./tomcat `
30
30
31
- Run the following from your ``` ~/workspace/tomcat-mysql-c9 `` ` directory.
31
+ Run the following from your ` ~/workspace/tomcat-mysql-c9 ` directory.
32
32
33
33
```
34
34
./setupTomcat.sh
@@ -37,12 +37,33 @@ Run the following from your ```~/workspace/tomcat-mysql-c9``` directory.
37
37
38
38
## Building Java classes
39
39
40
- Once the Tomcat script is run, the ``` survey.war ``` file is deployed to ``` ./tomcat/webapps `` ` and as the Survey site is
40
+ Once the Tomcat script is run, the ` survey.war ` file is deployed to ` ./tomcat/webapps ` and as the Survey site is
41
41
requested, Tomcat extracts the WAR file.
42
42
43
+
44
+ ## Make sure you "Run" the site so it expands..
45
+
46
+ 1 . Choose "preview" from C9.io interface
47
+ 2 . Preview Running application
48
+ 3 . Popout in New window
49
+ 3 . Change the URL - appending ` /survey ` to the Server Name
50
+
51
+ ![ img1] ( ./img/1.png )
52
+
53
+ ![ img2] ( ./img/2.png )
54
+
55
+ ![ img3] ( ./img/3.png )
56
+
57
+ ![ img4] ( ./img/4.png )
58
+
59
+
60
+
61
+
62
+ ## once the site is run, Tomcat 'expands' the ` survey.war ` file
63
+
43
64
This WAR file contains all the content, JSP, Class - and the Java source files.
44
65
45
- A helper script allows you to edit the ``` *.java `` ` source files, then build, then restart tomcat.
66
+ A helper script allows you build ` *.java ` source files, then build, then restart tomcat.
46
67
47
68
```
48
69
./buildJava.sh
@@ -52,5 +73,5 @@ A helper script allows you to edit the ```*.java``` source files, then build, th
52
73
53
74
54
75
Note: JSP files if changes are immediately reprocessed and reflected within Tomcat.
55
- Class files, sourced from Java files, requires a "restart" of Tomcat - that is what the ``` ./tomcat/bin/cataling stop/start `` ` provides.
76
+ Class files, sourced from Java files, requires a "restart" of Tomcat - that is what the ` ./tomcat/bin/cataling stop/start ` provides.
56
77
0 commit comments