In this assignment, we are developing a web application using Java web-based technologies.
✅ Java (Web Dynamic Application)
✅ JSP - Java Server Pages
✅ Servlets
✅ MySql
- Have JDK installed
- Have Apache Tomcat Server installed (or XAMPP)
- Have MySQL installed (or XAMPP)
- Have Eclipse installed (Enterprise)
☑️ JDK 15 / Dynamic Web Module 3.1
☑️ XAMPP-8.1.6-0-VS16 + Apache Tomcat/8.5.78
☑️ XAMPP-8.1.6-0-VS16 + Mysql Ver 15.1
☑️ Eclipse IDE for Enterprise Java and Web Developers - 2022-06
-
Clone or Download this Repository.
-
Add Project Folder to Your Local PC
eclipse-workspace
. ( or Clone to directly to it) -
Open Project in
Eclipse IDE
. -
In IDE Go to
Window -> Show View -> Servers
. -
Click
Create a New Server Link
. -
Then Select Tomcat Server Version in
Apache
dir and Click Next. (Recommend to use:Tomcat v8.5 Server
)Before that, you have to Identify what is your installed Tomcat version. If you are using XAMPP then you can check that by
XAMPP C-Panel
. StartTomcat
-> Go to http://localhost:8080/ -
Then Browse Tomcat Installation Dir and Click Next then Finish.
The previously selected version should be already installed. If you are using XAMPP then you can select this directory
C:\xampp\tomcat
-
Then Start
Apache Server and MySQL Server
. (if you are usingXAMPP
, otherwise run MySQL server) -
Then Create
lib
Folder insrc\main\webapp\WEB-INF
dir. (iflib
dir is there not) -
Then Copy JAR Files From
sims-oop-web-project\external-libraries
dir tolib
dir. -
Add Libraries to Project.
Go to Project Properties -> Java Build Path -> Libraries -> Classpath If the Classpath have already JAR files, select all JARs and remove those from classpath -> Add JARs -> Select JARs from src\main\webapp\WEB-INF\lib -> Ok and Apply
-
Then Set Environment Variables in
env.properties
. (If they're not correct values or not set critical values) -
Go to
com.sims.project.db_environment_initializer
Package dir. (See in Project -> Java Resource/src/main/java) -
Run Java Application Files. (Right click
.java file -> Run As -> 2 Java Application
)1. CreateDatabase.java 2. MigrateTables.java 3. InsertDefaultEntries.java (If you want)
-
Change Host URL Path.
Go to IDE Project Explorer -> Servers -> Tomcat -> server.xml -> Find project root name (sims-oop-web-project) in server file if can't find <Context> element, project `Run on Server` one time -> Change path attribute to `path="/"` on Context element -> Save
-
Run Web Project.
> Right click Project main root `Run As -> 1 Run on Server` > Choose Server `localhost -> Tomcat Server` > Check `Always use this server ....` > Click Next and Finish
- Project Group ID: SE/OOP_MLB_WD_2022_S2_104
- Batch No: Y2.S1.WD.IT.3.1
- Topic: Online School Information Management System
- Module: Object-Oriented Programming
- Project link:
- Project Github link:
Registration Number | Name | Contribution | |
---|---|---|---|
IT21169908 | Prashantha K.G.M | [email protected] | |
IT21156410 | Fonseka M.M.N.H | [email protected] | |
IT21156038 | N.K.N.Nawanjala | [email protected] | |
IT21170966 | Thennakoon T.M.I.C | [email protected] |
📌documented by @Prashantha K.G.M 2022