Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 16 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Call it whatever you like, but choose "Custom".
git clone https://github.com/cs612-f15/tomcat-mysql-c9.git

cd tomcat-mysql-c9

```

## Setting up MySQL
Expand All @@ -32,16 +31,25 @@ Run the following from your `~/workspace/tomcat-mysql-c9` directory.

```
./setupTomcat.sh

```

## Building Java classes

Once the Tomcat script is run, the `survey.war` file is deployed to `./tomcat/webapps` and as the Survey site is
requested, Tomcat extracts the WAR file.
Once the Tomcat script is run, the `survey.war` file is deployed to `./tomcat/webapps` and as the Survey site is requested, Tomcat extracts the WAR file.

## When you start Tomcat, it 'expands' the `survey.war` file

This WAR file contains all the content, JSP, Class - and the Java source files.

A helper script allows you build `*.java` source files, then build, then restart tomcat.

```
./buildJava.sh
./tomcat/bin/catalina.sh stop
./tomcat/bin/cataling.sh start
```

## Make sure you "Run" the site so it expands..
## To view the website

1. Choose "preview" from C9.io interface
2. Preview Running application
Expand All @@ -56,21 +64,6 @@ requested, Tomcat extracts the WAR file.

![img4](./img/4.png)




## once the site is run, Tomcat 'expands' the `survey.war` file

This WAR file contains all the content, JSP, Class - and the Java source files.

A helper script allows you build `*.java` source files, then build, then restart tomcat.

```
./buildJava.sh
./tomcat/bin/catalina.sh stop
./tomcat/bin/cataling.sh start
```

# Important - Update the UserName Password

Go into the `./tomcat/webapps/survey/WEB-INF/classes/survey/DatabaseAccess.java` file
Expand All @@ -91,10 +84,9 @@ Recompile, then restart Tomcat...
```bash
./buildJava.sh
./tomcat/bin/catalina.sh stop
./tomcat/bin/cataling.sh start
./tomcat/bin/catalina.sh start
```

Note: JSP file changes are immediately reprocessed and reflected within Tomcat.

Note: JSP files if changes are immediately reprocessed and reflected within Tomcat.
Class files, sourced from Java files, requires a "restart" of Tomcat - that is what the `./tomcat/bin/cataling stop/start` provides.

Class files, sourced from Java files, requires a "restart" of Tomcat - that is what the `./tomcat/bin/catalina.sh stop/start` provides.