Advertisement
reaganp

setting server

May 1st, 2019
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.12 KB | None | 0 0
  1.  
  2. C:\Windows\System32>mvn openmrs-sdk:setup -e
  3. [INFO] Error stacktraces are turned on.
  4. [INFO] Scanning for projects...
  5. [INFO]
  6. [INFO] ------------------< org.apache.maven:standalone-pom >-------------------
  7. [INFO] Building Maven Stub Project (No POM) 1
  8. [INFO] --------------------------------[ pom ]---------------------------------
  9. [INFO]
  10. [INFO] --- openmrs-sdk-maven-plugin:3.13.2:setup (default-cli) @ standalone-pom ---
  11.  
  12. Setting up a new server...
  13.  
  14. Specify server id (-DserverId) (default: 'server'): server1
  15.  
  16. You can setup the following servers:
  17. 1) Distribution
  18. 2) Platform
  19.  
  20. Which one do you choose? [1/2]: 1
  21.  
  22. You can deploy the following versions of distribution:
  23. 1) Reference Application 2.3.1
  24. 2) Reference Application 2.2
  25. 3) Reference Application 2.1
  26. 4) Other...
  27.  
  28. Which one do you choose? [1/2/3/4]: 1
  29. [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:1.11.5:war
  30. [INFO] Copying openmrs-webapp-1.11.5.war to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\openmrs-1.11.5.war
  31. [INFO] Configured Artifact: org.openmrs.module:htmlformentry19ext-omod:1.6.1:jar
  32. [INFO] Configured Artifact: org.openmrs.module:reportingrest-omod:1.5:jar
  33. [INFO] Configured Artifact: org.openmrs.module:metadatadeploy-omod:1.5:jar
  34. [INFO] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.10:omod
  35. [INFO] Configured Artifact: org.openmrs.module:registrationapp-omod:1.3:jar
  36. [INFO] Configured Artifact: org.openmrs:event-omod:2.2.1:jar
  37. [INFO] Configured Artifact: org.openmrs.module:uilibrary-omod:2.0.4:jar
  38. [INFO] Configured Artifact: org.openmrs.module:htmlwidgets-omod:1.7.0:jar
  39. [INFO] Configured Artifact: org.openmrs.module:dataexchange-omod:1.3.1:jar
  40. [INFO] Configured Artifact: org.openmrs.module:appui-omod:1.4:jar
  41. [INFO] Configured Artifact: org.openmrs.module:allergyui-omod:1.2:jar
  42. [INFO] Configured Artifact: org.openmrs.module:providermanagement-omod:2.3:jar
  43. [INFO] Configured Artifact: org.openmrs.module:appointmentschedulingui-omod:1.0.3:jar
  44. [INFO] Configured Artifact: org.openmrs.module:formentryapp-omod:1.2:jar
  45. [INFO] Configured Artifact: org.openmrs.module:idgen-omod:3.2:jar
  46. [INFO] Configured Artifact: org.openmrs.module:allergyapi-omod:1.3:jar
  47. [INFO] Configured Artifact: org.openmrs.module:metadatamapping-omod:1.0.2:jar
  48. [INFO] Configured Artifact: org.openmrs.module:chartsearch-omod:1.4.1:jar
  49. [INFO] Configured Artifact: org.openmrs.module:htmlformentryui-omod:1.3:jar
  50. [INFO] Configured Artifact: org.openmrs.module:referencedemodata-omod:1.4.1:jar
  51. [INFO] Configured Artifact: org.openmrs.module:emrapi-omod:1.11.1:jar
  52. [INFO] Configured Artifact: org.openmrs.module:referenceapplication-omod:2.3:jar
  53. [INFO] Configured Artifact: org.openmrs.module:htmlformentry-omod:2.6:jar
  54. [INFO] Configured Artifact: org.openmrs.module:appframework-omod:2.4:jar
  55. [INFO] Configured Artifact: org.openmrs.module:referencemetadata-omod:2.3.1:jar
  56. [INFO] Configured Artifact: org.openmrs.module:coreapps-omod:1.7:jar
  57. [INFO] Configured Artifact: org.openmrs.module:reporting-omod:0.9.8.1:jar
  58. [INFO] Configured Artifact: org.openmrs.module:adminui-omod:1.0:jar
  59. [INFO] Configured Artifact: org.openmrs.module:registrationcore-omod:1.2:jar
  60. [INFO] Configured Artifact: org.openmrs.module:appointmentscheduling-omod:1.4:jar
  61. [INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.12:jar
  62. [INFO] Configured Artifact: org.openmrs.module:calculation-omod:1.1:jar
  63. [INFO] Configured Artifact: org.openmrs.module:atlas-omod:2.1:omod
  64. [INFO] Configured Artifact: org.openmrs.module:uicommons-omod:1.7:jar
  65. [INFO] Configured Artifact: org.openmrs.module:uiframework-omod:3.4:jar
  66. [INFO] Configured Artifact: org.openmrs.module:metadatasharing-omod:1.1.10:jar
  67. [INFO] Copying htmlformentry19ext-omod-1.6.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\htmlformentry19ext-1.6.1.omod
  68. [INFO] Copying reportingrest-omod-1.5.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\reportingrest-1.5.omod
  69. [INFO] Copying metadatadeploy-omod-1.5.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\metadatadeploy-1.5.omod
  70. [INFO] Copying serialization.xstream-omod-0.2.10.omod to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\serialization.xstream-0.2.10.omod
  71. [INFO] Copying registrationapp-omod-1.3.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\registrationapp-1.3.omod
  72. [INFO] Copying event-omod-2.2.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\event-2.2.1.omod
  73. [INFO] Copying uilibrary-omod-2.0.4.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\uilibrary-2.0.4.omod
  74. [INFO] Copying htmlwidgets-omod-1.7.0.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\htmlwidgets-1.7.0.omod
  75. [INFO] Copying dataexchange-omod-1.3.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\dataexchange-1.3.1.omod
  76. [INFO] Copying appui-omod-1.4.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\appui-1.4.omod
  77. [INFO] Copying allergyui-omod-1.2.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\allergyui-1.2.omod
  78. [INFO] Copying providermanagement-omod-2.3.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\providermanagement-2.3.omod
  79. [INFO] Copying appointmentschedulingui-omod-1.0.3.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\appointmentschedulingui-1.0.3.omod
  80. [INFO] Copying formentryapp-omod-1.2.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\formentryapp-1.2.omod
  81. [INFO] Copying idgen-omod-3.2.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\idgen-3.2.omod
  82. [INFO] Copying allergyapi-omod-1.3.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\allergyapi-1.3.omod
  83. [INFO] Copying metadatamapping-omod-1.0.2.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\metadatamapping-1.0.2.omod
  84. [INFO] Copying chartsearch-omod-1.4.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\chartsearch-1.4.1.omod
  85. [INFO] Copying htmlformentryui-omod-1.3.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\htmlformentryui-1.3.omod
  86. [INFO] Copying referencedemodata-omod-1.4.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\referencedemodata-1.4.1.omod
  87. [INFO] Copying emrapi-omod-1.11.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\emrapi-1.11.1.omod
  88. [INFO] Copying referenceapplication-omod-2.3.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\referenceapplication-2.3.omod
  89. [INFO] Copying htmlformentry-omod-2.6.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\htmlformentry-2.6.omod
  90. [INFO] Copying appframework-omod-2.4.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\appframework-2.4.omod
  91. [INFO] Copying referencemetadata-omod-2.3.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\referencemetadata-2.3.1.omod
  92. [INFO] Copying coreapps-omod-1.7.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\coreapps-1.7.omod
  93. [INFO] Copying reporting-omod-0.9.8.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\reporting-0.9.8.1.omod
  94. [INFO] Copying adminui-omod-1.0.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\adminui-1.0.omod
  95. [INFO] Copying registrationcore-omod-1.2.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\registrationcore-1.2.omod
  96. [INFO] Copying appointmentscheduling-omod-1.4.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\appointmentscheduling-1.4.omod
  97. [INFO] Copying webservices.rest-omod-2.12.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\webservices.rest-2.12.omod
  98. [INFO] Copying calculation-omod-1.1.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\calculation-1.1.omod
  99. [INFO] Copying atlas-omod-2.1.omod to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\atlas-2.1.omod
  100. [INFO] Copying uicommons-omod-1.7.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\uicommons-1.7.omod
  101. [INFO] Copying uiframework-omod-3.4.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\uiframework-3.4.omod
  102. [INFO] Copying metadatasharing-omod-1.1.10.jar to C:\Users\DE-PRINCE LAPTOPS\openmrs\server1\modules\metadatasharing-1.1.10.omod
  103.  
  104. What port would you like your server to use? (default: '8080'): 8080
  105.  
  106. If you want to enable remote debugging by default when running the server,
  107. specify the port number here (e.g. 1044). Leave blank to disable debugging.
  108. (Do not do this on a production server) (default: 'no debugging'): 1044
  109.  
  110. Which database would you like to use?:
  111. 1) MySQL 5.6 (requires pre-installed MySQL 5.6)
  112. 2) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
  113. 3) Existing docker container (requires pre-installed Docker)
  114.  
  115. Which one do you choose? [1/2/3]: 1
  116.  
  117. The distribution requires MySQL database. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3306/@DBNAME@'): jdbc:mysql://localhost:3306/@DBNAME@
  118.  
  119. Please specify database username (-DdbUser) (default: 'root'): root
  120. Please specify database password (-DdbPassword) (default: ' '):
  121. [INFO] ------------------------------------------------------------------------
  122. [INFO] BUILD FAILURE
  123. [INFO] ------------------------------------------------------------------------
  124. [INFO] Total time: 01:09 min
  125. [INFO] Finished at: 2019-05-01T09:41:43+03:00
  126. [INFO] ------------------------------------------------------------------------
  127. [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.2:setup (default-cli) on project standalone-pom: Failed to setup server: Failed to connect to the specified database jdbc:mysql://localhost:3306/server1?autoReconnect=true&sessionVariables=default_storage_engine%3DInnoDB&useUnicode=true&characterEncoding=UTF-8 -> [Help 1]
  128. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.2:setup (default-cli) on project standalone-pom: Failed to setup server
  129. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
  130. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
  131. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
  132. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
  133. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
  134. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
  135. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
  136. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
  137. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
  138. at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
  139. at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
  140. at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
  141. at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
  142. at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  143. at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  144. at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  145. at java.lang.reflect.Method.invoke (Method.java:497)
  146. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
  147. at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
  148. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
  149. at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  150. Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to setup server
  151. at org.openmrs.maven.plugins.Setup.setup (Setup.java:276)
  152. at org.openmrs.maven.plugins.Setup.executeTask (Setup.java:630)
  153. at org.openmrs.maven.plugins.AbstractTask.execute (AbstractTask.java:191)
  154. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
  155. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
  156. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
  157. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
  158. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
  159. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
  160. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
  161. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
  162. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
  163. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
  164. at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
  165. at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
  166. at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
  167. at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
  168. at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  169. at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  170. at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  171. at java.lang.reflect.Method.invoke (Method.java:497)
  172. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
  173. at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
  174. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
  175. at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  176. Caused by: java.lang.IllegalStateException: Failed to connect to the specified database jdbc:mysql://localhost:3306/server1?autoReconnect=true&sessionVariables=default_storage_engine%3DInnoDB&useUnicode=true&characterEncoding=UTF-8
  177. at org.openmrs.maven.plugins.Setup.setup (Setup.java:213)
  178. at org.openmrs.maven.plugins.Setup.executeTask (Setup.java:630)
  179. at org.openmrs.maven.plugins.AbstractTask.execute (AbstractTask.java:191)
  180. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
  181. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
  182. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
  183. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
  184. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
  185. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
  186. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
  187. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
  188. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
  189. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
  190. at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
  191. at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
  192. at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
  193. at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
  194. at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  195. at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  196. at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  197. at java.lang.reflect.Method.invoke (Method.java:497)
  198. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
  199. at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
  200. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
  201. at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  202. [ERROR]
  203. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  204. [ERROR]
  205. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  206. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  207.  
  208. C:\Windows\System32>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement