This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
documentation:software:webapi:webapi_installation_guide [2017/03/02 20:50] anthonysena |
documentation:software:webapi:webapi_installation_guide [2019/02/22 21:19] chrisknoll |
||
---|---|---|---|
Line 180: | Line 180: | ||
==== Building the .war file ==== | ==== Building the .war file ==== | ||
- | Open command prompt, go to WebAPI folder, type | + | Open command prompt, **go to the WebAPI folder**, type |
set JAVA_HOME=C:/Program Files/Java/jdk1.8.0_112 | set JAVA_HOME=C:/Program Files/Java/jdk1.8.0_112 | ||
Line 186: | Line 186: | ||
//Make sure you point to a JDK, not a JRE. It is probably a good idea to stick to the same Java version that is running Tomcat// | //Make sure you point to a JDK, not a JRE. It is probably a good idea to stick to the same Java version that is running Tomcat// | ||
- | mvn clean package -s WebAPIConfig/settings.xml -P {profile id} | + | mvn clean package -DskipTests -s WebAPIConfig/settings.xml -P {profile id} |
This will create the file WebAPI.war in the target subfolder. | This will create the file WebAPI.war in the target subfolder. | ||
Line 193: | Line 193: | ||
=== Deploy the war file === | === Deploy the war file === | ||
---- | ---- | ||
- | In Tomcat (e.g. using the manager app), deploy the war file. | + | |
+ | In Tomcat, you will need to increase the maximum file size allowed for WAR files. Go to webapps/manager/WEB-INF/web.xml and then increase the max-file-size and max-request-size to at least the size of the WAR file. | ||
+ | |||
+ | <multipart-config> | ||
+ | <max-file-size></max-file-size> | ||
+ | <max-request-size></max-request-size> | ||
+ | <file-size-threshold>0</file-size-threshold> | ||
+ | </multipart-config> | ||
+ | |||
+ | In Tomcat (e.g. using the manager app), deploy the war file. | ||
+ | |||
This should automatically create a large number of tables in the webapi schema. | This should automatically create a large number of tables in the webapi schema. | ||