I finally managed to work through all of the errors, up to the very last section, where I need to deploy the WAR file.
I installed Tomcat, and configured it to run as a service.
I copied the WAR file to the /opt/tomcat/webapps directory.
I can start Tomcat just fine at this point, but when I attempt to access the URL, it times out.
Note that I can get to the base Tomcat directory just fine... It works... :
http://<server_name>:8080
But, when I attempt to add any other URL identification, the request times out:
http://<server_name>:8080/infobutton-service/app/index.html
http://<server_name>:8080/infobutton-service/OpenInfobuttonDemo.html
I then decided to try your alternative method, by invoking with the "mvn clean" command, from within the /opt/InfoButtons/oib-request directory structure, because this is where one of the "pom.xml" files is located:
mvn -e -X clean tomcat:run-war -Ddatasource1.password=mypass -Ddatasource2.password=mypass -DskipTests 2>&1 > Maven_Start_Errors.log
With this start method, I am getting errors again, but they are slightly different, and fewer.
Here are the "ERROR" excerpts from the log file:
Jan 31, 2019 4:21:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 31, 2019 4:21:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/oib-request-service] startup failed due to previous errors
Jan 31, 2019 4:21:17 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jan 31, 2019 4:21:17 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/oib-request-service] registered the JBDC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jan 31, 2019 4:21:17 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/oib-request-service] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jan 31, 2019 4:21:17 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/oib-request-service] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for oib-request 2.3-SNAPSHOT:
[INFO]
[INFO] oib-request ........................................ SUCCESS [ 0.404 s]
[INFO] oib-profile-schema ................................. SUCCESS [ 4.739 s]
[INFO] oib-service-test ................................... SUCCESS [ 0.415 s]
[INFO] oib-request-schema ................................. SUCCESS [ 0.974 s]
[INFO] OIB Core Utility Module ............................ SUCCESS [ 0.456 s]
[INFO] oib-valueset-matcher ............................... SUCCESS [ 0.507 s]
[INFO] oib-request-db ..................................... SUCCESS [ 0.883 s]
[INFO] oib-request-inference-rxnorm ....................... SUCCESS [ 0.343 s]
[INFO] oib-ext-resources .................................. SUCCESS [ 0.646 s]
[INFO] oib-request-service ................................ FAILURE [ 10.380 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.204 s
[INFO] Finished at: 2019-01-31T16:21:17-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run-war (default-cli) on project oib-request-service: Could not start Tomcat: Protocol handler initialization failed: java.net.BindException: Address already in use (Bind failed) :8080 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run-war (default-cli) on project oib-request-service: Could not start Tomcat
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :oib-request-service
Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/apache/logging/log4j/message/ParameterizedMessage
Note that I am running this
I finally managed to work through all of the errors, up to the very last section, where I need to deploy the WAR file.
I installed Tomcat, and configured it to run as a service.
I copied the WAR file to the /opt/tomcat/webapps directory.
I can start Tomcat just fine at this point, but when I attempt to access the URL, it times out.
Note that I can get to the base Tomcat directory just fine... It works... :
http://<server_name>:8080
But, when I attempt to add any other URL identification, the request times out:
http://<server_name>:8080/infobutton-service/app/index.html
http://<server_name>:8080/infobutton-service/OpenInfobuttonDemo.html
I then decided to try your alternative method, by invoking with the "mvn clean" command, from within the /opt/InfoButtons/oib-request directory structure, because this is where one of the "pom.xml" files is located:
mvn -e -X clean tomcat:run-war -Ddatasource1.password=mypass -Ddatasource2.password=mypass -DskipTests 2>&1 > Maven_Start_Errors.log
With this start method, I am getting errors again, but they are slightly different, and fewer.
Here are the "ERROR" excerpts from the log file:
Jan 31, 2019 4:21:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 31, 2019 4:21:17 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/oib-request-service] startup failed due to previous errors
Jan 31, 2019 4:21:17 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jan 31, 2019 4:21:17 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/oib-request-service] registered the JBDC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jan 31, 2019 4:21:17 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/oib-request-service] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jan 31, 2019 4:21:17 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/oib-request-service] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for oib-request 2.3-SNAPSHOT:
[INFO]
[INFO] oib-request ........................................ SUCCESS [ 0.404 s]
[INFO] oib-profile-schema ................................. SUCCESS [ 4.739 s]
[INFO] oib-service-test ................................... SUCCESS [ 0.415 s]
[INFO] oib-request-schema ................................. SUCCESS [ 0.974 s]
[INFO] OIB Core Utility Module ............................ SUCCESS [ 0.456 s]
[INFO] oib-valueset-matcher ............................... SUCCESS [ 0.507 s]
[INFO] oib-request-db ..................................... SUCCESS [ 0.883 s]
[INFO] oib-request-inference-rxnorm ....................... SUCCESS [ 0.343 s]
[INFO] oib-ext-resources .................................. SUCCESS [ 0.646 s]
[INFO] oib-request-service ................................ FAILURE [ 10.380 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.204 s
[INFO] Finished at: 2019-01-31T16:21:17-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run-war (default-cli) on project oib-request-service: Could not start Tomcat: Protocol handler initialization failed: java.net.BindException: Address already in use (Bind failed) :8080 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run-war (default-cli) on project oib-request-service: Could not start Tomcat
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :oib-request-service
Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/apache/logging/log4j/message/ParameterizedMessage
Note that I am running this