ENI J2EE project in group. Context of app is to sale objects by auction without financial exchanges.
Pre-requisites : Java JDK 16 , Tomcat 9.0.52, Intellij IDE
- (IntelliJ) Edit Configurations > Add New Configuration
- Select Tomcat Server, Local
- In the tab 'Server' > Application server > Click "Configure"
- Click + / Add Application Server
- In Tomcat Home > Browse to your unzipped Tomcat folder (ex: C:/.../.../apache-tomcat-9.0.52)
- (have fun)
Pre-requisites : SQL Server
- (SQL Server) Create the database 'ENCHERES'
- Run script_creation.sql (package fr.eni.util)
- Run script_data.sql (package fr.eni.util)
- In the tab Security > Connections > Add a new connection
- username : utilisateurBDD, pwd : Pa$$w0rd
- Give the rights for database 'ENCHERES'
- Under the "Mapping" tab : check 'ENCHERES', then 'dbreader' & 'dbwriter' below
- (SQL Server Manager Configuration) : In Network, activate all services.
- (Windows Services) : Scroll down to SQL Server Agent & SQL Server Browser, and for both :
- Right-click > Properties
- Activate the service at the start of Windows, then click Apply
- Start the service & close the window
- Restart the computer (shutdown /r) OR kill all SQL Server tasks running (desk & in the background)
- (IntelliJ) In the project :
- Create a folder 'META-INF' in folder 'webapp'
- Create a file 'context.xml'
- In context.xml, make sure this line is correct :
url="jdbc:sqlserver://localhost;databasename=ENCHERES" username="utilisateurBDD" password="Pa$$w0rd"
- (IntelliJ) Files > Settings > Maven
- Under Importing > VM Options : -DproxySet=true -DproxyHost=10.35.0.248 -DproxyPort=8080
- Under Runner > VM Options : -DproxySet=true -DproxyHost=10.35.0.248 -DproxyPort=8080
- In Terminal : git config --global http.proxy http://10.35.0.248:8080
- Right-click ressources folder - the one containing your .properties
- In 'Mark Directory as' select 'Ressource root'