From: Roland Häder Date: Sat, 1 Feb 2020 02:50:03 +0000 (+0100) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=63b1befb4e3bed935d89ccba924060828a59c7ff;p=jjobs.git Please cherry-pick: - added note that you MUST use Payara 4.1.2.181 so far as there is a JAR dependency (@NamedCache) required for the WAR project. For EJB projects other EJB container (e.g. Wildfly) SHOULD work. Signed-off-by: Roland Häder --- diff --git a/INSTALL.txt b/INSTALL.txt index f44f8ab..8116fa4 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,18 +1,41 @@ Installation instructions: ========================== +0) Make sure to have Payara 4.1.2.181 installed AND have javax.faces.jar + REPLACED with version 2.3.9 (2.4.0 seem to be a little to new) as the WAR + project requires JSF 2.3 (not JSF 2.2). Paraya is currently required as a + @NamedCache annotation alongside @Inject is being used to inject the cache + into the backing bean. + + The server.log should reveal a line with "Initializing Mojarra 2.3.9". If + that is the case, it SHOULD work. + + A common mistake is to copy the required JARs not to ~/personal_domain/lib/ + (or where ever your domain's lib path is) as the required JARs varies from + EJB/WAR project. The easiest but single-host deployment is to build the EAR + project by doing a "ant dist" in THIS project's root directory. + + For the EJB projects, any EJB 3.0/JPA 2.2 container SHOULD work, Payara 4.1 + has been tested/used by myself. + 1) Create an empty database and setup proper permissions and user account. You should create a separate database and user for each project you are going to run on it for maximum security. -2) Setup a JDBC pool. I took the simple driver: +2) Setup a JDBC pool. This is an example for a MariaDB JDBC driver, a SQLite3 + database resource works surely differently (other URL, user/password can be + anything non-empty). I would recommend SQLite3 for development (up to 1 mio. + records with almost no performance drop) and MariaDB/PostreSQL (later not + tested by myself) or any other DBMS (including MongoDB) as this project only + uses the javax.persistence package and not EclipseLink/Hibernate/DataNucleus + specific packages. Pool name: JJobsPool Resource type: java.sql.Driver Driver: MariaDB Driver class: org.mariadb.jdbc.Driver -URL: jdbc:mysql://localhost/your_database +URL: jdbc:mariadb://localhost/your_database user: your_login password: your_password