Advertisement
Guest User

With Runtime.properties

a guest
Aug 18th, 2021
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.40 KB | None | 0 0
  1. [INFO] Scanning for projects...
  2. [INFO]
  3. [INFO] -------------------< org.openmrs.web:openmrs-webapp >-------------------
  4. [INFO] Building openmrs-webapp 2.3.2
  5. [INFO] --------------------------------[ war ]---------------------------------
  6. [INFO]
  7. [INFO] >>> jetty-maven-plugin:9.3.3.v20150827:run (default-cli) > test-compile @ openmrs-webapp >>>
  8. [INFO]
  9. [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs-webapp ---
  10. [INFO] Checking for local modifications: skipped.
  11. [INFO] Updating project files from SCM: skipped.
  12. [INFO] ShortRevision tag detected. The value is '6'.
  13. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
  14. [INFO] Working directory: C:\openmrs-core\webapp
  15. [INFO] Storing buildNumber: 4197a5 at timestamp: 1629267236105
  16. [INFO] ShortRevision tag detected. The value is '6'.
  17. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify --short=6 HEAD"
  18. [INFO] Working directory: C:\openmrs-core\webapp
  19. [INFO] Storing buildScmBranch: UNKNOWN
  20. [INFO]
  21. [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-webapp ---
  22. [INFO]
  23. [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ openmrs-webapp ---
  24. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  25. [INFO] Copying 2 resources
  26. [INFO] Copying 1 resource to ../jetty
  27. [INFO]
  28. [INFO] --- maven-antrun-plugin:1.4:run (default) @ openmrs-webapp ---
  29. project.artifactId
  30. [INFO] Executing tasks
  31. [unzip] Expanding: C:\openmrs-core\webapp\src\main\resources\liquibase-demo-data.zip into C:\openmrs-core\webapp\target\classes
  32. [INFO] Executed tasks
  33. [INFO]
  34. [INFO] --- maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-webapp ---
  35. [INFO] No sources to compile
  36. [INFO]
  37. [INFO] --- maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-webapp ---
  38. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  39. [INFO] Copying 1 resource
  40. [INFO]
  41. [INFO] --- maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-webapp ---
  42. [INFO] Nothing to compile - all classes are up to date
  43. [INFO]
  44. [INFO] <<< jetty-maven-plugin:9.3.3.v20150827:run (default-cli) < test-compile @ openmrs-webapp <<<
  45. [INFO]
  46. [INFO]
  47. [INFO] --- jetty-maven-plugin:9.3.3.v20150827:run (default-cli) @ openmrs-webapp ---
  48. [INFO] Logging initialized @3141ms
  49. [INFO] Configuring Jetty for project: openmrs-webapp
  50. [INFO] webAppSourceDirectory not set. Trying src\main\webapp
  51. [INFO] Reload Mechanic: automatic
  52. [INFO] Classes = C:\openmrs-core\webapp\target\classes
  53. [INFO] Context path = /openmrs
  54. [INFO] Tmp directory = C:\openmrs-core\webapp\target\tmp
  55. [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
  56. [INFO] Web overrides = src/test/resources/override-web.xml
  57. [INFO] web.xml file = C:\openmrs-core\webapp\target/jetty/WEB-INF/web.xml
  58. [INFO] Webapp directory = C:\openmrs-core\webapp\src\main\webapp
  59. [INFO] jetty-9.3.3.v20150827
  60. [INFO] No Spring WebApplicationInitializer types detected on classpath
  61. [INFO] Initializing log4j from [classpath:log4j.xml]
  62. INFO - Listener.contextInitialized(173) |2021-08-18 11:44:01,201| Using runtime properties file: openmrs-runtime.properties
  63. Wed Aug 18 11:44:01 IST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
  64. ERROR - MarkerIgnoringBase.error(159) |2021-08-18 11:44:05,794| Failed to obtain JDBC connection
  65. java.lang.RuntimeException: Error occurred while trying to get the updates needed for the database. Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  66. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
  67. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
  68. at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
  69. at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
  70. at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
  71. at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:835)
  72. at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:530)
  73. at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:808)
  74. at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:342)
  75. at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1368)
  76. at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:320)
  77. at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1335)
  78. at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
  79. at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
  80. at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:511)
  81. at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:403)
  82. at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  83. at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
  84. at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
  85. at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
  86. at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
  87. at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  88. at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
  89. at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
  90. at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
  91. at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  92. at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
  93. at org.eclipse.jetty.server.Server.start(Server.java:405)
  94. at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
  95. at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
  96. at org.eclipse.jetty.server.Server.doStart(Server.java:372)
  97. at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  98. at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:457)
  99. at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:328)
  100. at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:170)
  101. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
  102. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
  103. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
  104. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
  105. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
  106. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
  107. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
  108. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  109. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
  110. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
  111. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
  112. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
  113. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
  114. at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
  115. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  116. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  117. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  118. at java.lang.reflect.Method.invoke(Method.java:498)
  119. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
  120. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
  121. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
  122. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
  123. Caused by: java.lang.Exception: Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  124. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
  125. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
  126. ... 56 more
  127. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  128. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  129. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  130. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  131. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  132. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  133. at com.mysql.jdbc.Util.getInstance(Util.java:408)
  134. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  135. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  136. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  137. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  138. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
  139. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
  140. at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:776)
  141. at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  142. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  143. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  144. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  145. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  146. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  147. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
  148. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
  149. at java.sql.DriverManager.getConnection(DriverManager.java:664)
  150. at java.sql.DriverManager.getConnection(DriverManager.java:247)
  151. at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
  152. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  153. ... 57 more
  154. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  155.  
  156. The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.
  157. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  158. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  159. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  160. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  161. at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  162. at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)
  163. at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:203)
  164. at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4901)
  165. at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659)
  166. at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226)
  167. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2188)
  168. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
  169. ... 71 more
  170. Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  171. at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171)
  172. at sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:101)
  173. at sun.security.ssl.TransportContext.kickstart(TransportContext.java:238)
  174. at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:394)
  175. at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:373)
  176. at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:188)
  177. ... 76 more
  178. Wed Aug 18 11:44:06 IST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
  179. [INFO] Started o.e.j.m.p.JettyWebAppContext@46c269e0{/openmrs,file:///C:/openmrs-core/webapp/src/main/webapp/,AVAILABLE}{file:///C:/openmrs-core/webapp/src/main/webapp/}
  180. [INFO] Started ServerConnector@b0f2d91{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
  181. [INFO] Started @16044ms
  182. [INFO] Started Jetty Server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement