How to run openmrs on jetty server

Tags: #<Tag:0x00007f0f22977f60>

HI, I am using eclipse, maven build or war file named “openmrs.war” is created successfully. when i right click on “webapp” folder after it RUN AS “jetty:run” in goal, got “NoPluginFoundForPrefixException”.

CONSOLE output is as:

[INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.tools:openmrs-tools:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.test:openmrs-test:pom:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.api:openmrs-api:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.web:openmrs-web:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.web:openmrs-webapp:war:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs:openmrs:pom:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ line 843, column 13 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] OpenMRS [INFO] openmrs-tools [INFO] openmrs-test [INFO] openmrs-api [INFO] openmrs-web [INFO] openmrs-webapp [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloading: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml (432 B at 0.1 KB/sec) [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloaded: https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/maven-metadata.xml (432 B at 0.1 KB/sec) [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 19.7 KB/sec) [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/mojo/maven-metadata.xml [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/codehaus/mojo/maven-metadata.xml [INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml [INFO] Downloaded: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/maven-metadata.xml (723 B at 0.1 KB/sec) [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 24.1 KB/sec) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … SKIPPED [INFO] openmrs-tools … SKIPPED [INFO] openmrs-test … SKIPPED [INFO] openmrs-api … SKIPPED [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.697 s [INFO] Finished at: 2017-03-22T17:17:21+05:30 [INFO] Final Memory: 17M/163M [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix ‘jetty’ in the current project and in the plugin groups [org.openmrs.maven.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\fourthscreen.m2\repository), openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public), openmrs-bintray-repo (https://dl.bintray.com/openmrs/maven/), central (https://repo.maven.apache.org/maven2)] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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/NoPluginFoundForPrefixException

You need to run mvn jetty:run from the webapp folder

1 Like

Initially I tried to install Jetty with eclipse. But I got an error for Jetty installation according to this link (http://run-jetty-run.googlecode.com/svn/trunk/updatesite). It shows, there are no projects to download.

After that, I have changed this URL and succeed. Anyway when I tried mvn jetty:run in webapp folder, I also got this BUILD FAILURE. Please help me to move forward!

Can you share the entire logs when it fails?

when we run as jetty:run in eclipse goal, i got this error…

[INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.tools:openmrs-tools:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.test:openmrs-test:pom:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.api:openmrs-api:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.web:openmrs-web:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.web:openmrs-webapp:war:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\22ndMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs:openmrs:pom:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ line 843, column 13 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] OpenMRS [INFO] openmrs-tools [INFO] openmrs-test [INFO] openmrs-api [INFO] openmrs-web [INFO] openmrs-webapp [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloading: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml (432 B at 0.2 KB/sec) [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloaded: https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/maven-metadata.xml (432 B at 0.2 KB/sec) [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/mojo/maven-metadata.xml [INFO] Downloaded: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/maven-metadata.xml (723 B at 0.3 KB/sec) [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/codehaus/mojo/maven-metadata.xml [INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 21.0 KB/sec) [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 11.4 KB/sec) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … SKIPPED [INFO] openmrs-tools … SKIPPED [INFO] openmrs-test … SKIPPED [INFO] openmrs-api … SKIPPED [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.445 s [INFO] Finished at: 2017-03-23T10:33:25+05:30 [INFO] Final Memory: 17M/170M [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix ‘jetty’ in the current project and in the plugin groups [org.openmrs.maven.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\fourthscreen.m2\repository), openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public), openmrs-bintray-repo (https://dl.bintray.com/openmrs/maven/), central (https://repo.maven.apache.org/maven2)] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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/NoPluginFoundForPrefixException

This error means that you are doing jetty:run from the root of the project, but you need to do it from the webapp folder.

I am using eclipse. when i fire jetty:run from the webapp folder, got…

[INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.tools:openmrs-tools:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\23rdMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.test:openmrs-test:pom:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\23rdMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.api:openmrs-api:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\23rdMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.web:openmrs-web:jar:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\23rdMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.web:openmrs-webapp:war:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\23rdMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs:openmrs:pom:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ line 843, column 13 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] OpenMRS [INFO] openmrs-tools [INFO] openmrs-test [INFO] openmrs-api [INFO] openmrs-web [INFO] openmrs-webapp [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in http://mavenrepo.openmrs.org/nexus/content/repositories/public was cached in the local repository, resolution will not be reattempted until the update interval of openmrs-repo has elapsed or updates are forced [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloading: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/maven-metadata.xml (432 B at 0.1 KB/sec) [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloaded: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/maven/plugins/maven-metadata.xml (723 B at 0.2 KB/sec) [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml [INFO] Downloading: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/codehaus/mojo/maven-metadata.xml [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 19.3 KB/sec) [INFO] Downloading: https://dl.bintray.com/openmrs/maven/org/codehaus/mojo/maven-metadata.xml [INFO] Downloaded: https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/maven-metadata.xml (432 B at 0.1 KB/sec) [INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 20.2 KB/sec) [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public): connect timed out [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenMRS … SKIPPED [INFO] openmrs-tools … SKIPPED [INFO] openmrs-test … SKIPPED [INFO] openmrs-api … SKIPPED [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.434 s [INFO] Finished at: 2017-03-23T12:22:38+05:30 [INFO] Final Memory: 17M/163M [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix ‘jetty’ in the current project and in the plugin groups [org.openmrs.maven.plugins, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\fourthscreen.m2\repository), openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public), openmrs-bintray-repo (https://dl.bintray.com/openmrs/maven/), central (https://repo.maven.apache.org/maven2)] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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/NoPluginFoundForPrefixException

What do you have under “Base directory” in your run configurations window. Or can you share a screenshot of it?

Click the “Browse Workspace” button and then select the webapp project from the window that shows up and Apply. That should be all.

Now getting…

[INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.web:openmrs-webapp:war:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\23rdMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building openmrs-webapp 1.9.8 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-jetty-plugin:6.1.10:run (default-cli) > test-compile @ openmrs-webapp >>> [INFO] [INFO] — buildnumber-maven-plugin:1.1:create (default) @ openmrs-webapp — [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] ShortRevision tag detected. The value is ‘6’. [INFO] Executing: cmd.exe /X /C “git rev-parse --verify --short=6 HEAD” [INFO] Working directory: E:\23rdMarch\openmrs-core-1.9.8\webapp [INFO] Storing buildNumber: 0 at timestamp: 1490274549879 [INFO] ShortRevision tag detected. The value is ‘6’. [INFO] Executing: cmd.exe /X /C “git rev-parse --verify --short=6 HEAD” [INFO] Working directory: E:\23rdMarch\openmrs-core-1.9.8\webapp [INFO] Storing buildScmBranch: UNKNOWN_BRANCH [INFO] [INFO] — build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-webapp — [INFO] [INFO] — maven-resources-plugin:2.4:resources (default-resources) @ openmrs-webapp — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] Copying 1 resource to …/jetty [INFO] [INFO] — maven-antrun-plugin:1.4:run (default) @ openmrs-webapp — project.artifactId [INFO] Executing tasks [unzip] Expanding: E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\resources\liquibase-demo-data.zip into E:\23rdMarch\openmrs-core-1.9.8\webapp\target\classes [INFO] Executed tasks [INFO] [INFO] — maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-webapp — [INFO] No sources to compile [INFO] [INFO] — maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-webapp — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] — maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-webapp — [INFO] No sources to compile [INFO] [INFO] <<< maven-jetty-plugin:6.1.10:run (default-cli) < test-compile @ openmrs-webapp <<< [INFO] [INFO] — maven-jetty-plugin:6.1.10:run (default-cli) @ openmrs-webapp — [INFO] Configuring Jetty for project: openmrs-webapp [INFO] Webapp source directory = E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\webapp [INFO] web.xml file = E:\23rdMarch\openmrs-core-1.9.8\webapp\target\jetty\WEB-INF\web.xml [INFO] Classes = E:\23rdMarch\openmrs-core-1.9.8\webapp\target\classes [INFO] Added extra scan target:E:\23rdMarch\openmrs-core-1.9.8\api\target\classes [INFO] Added extra scan target:E:\23rdMarch\openmrs-core-1.9.8\web\target\classes [INFO] Property OPENMRS_INSTALLATION_SCRIPT=null was set [INFO] Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog [INFO] Context path = /openmrs [INFO] Tmp directory = determined at runtime [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml [INFO] Web overrides = src/test/resources/override-web.xml [INFO] Webapp directory = E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\webapp [INFO] Starting jetty 6.1.10 … [INFO] jetty-6.1.10 [INFO] No Transaction manager found - if your webapp requires one, please configure one. [INFO] Set web app root system property: ‘webapp.root’ = [E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\webapp] [INFO] Initializing log4j from [classpath:log4j.xml] WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2524) |2017-03-23 18:39:24,913| Unable to find a runtime properties file at E:\23rdMarch\openmrs-core-1.9.8\webapp\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2550) |2017-03-23 18:39:24,928| Unable to find properties file: C:\Users\fourthscreen\Application Data\OpenMRS\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimeProperties(2487) |2017-03-23 18:39:24,929| Unable to find a runtime properties file. Initial setup is needed. View the webapp to run the setup wizard. WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2524) |2017-03-23 18:39:25,077| Unable to find a runtime properties file at E:\23rdMarch\openmrs-core-1.9.8\webapp\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2550) |2017-03-23 18:39:25,078| Unable to find properties file: C:\Users\fourthscreen\Application Data\OpenMRS\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimeProperties(2487) |2017-03-23 18:39:25,079| Unable to find a runtime properties file. Initial setup is needed. View the webapp to run the setup wizard. [WARNING] failed SelectChannelConnector@0.0.0.0:8080 java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:371) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:307) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:203) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [WARNING] failed Server@30b6c3c3 java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:205) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:304) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:371) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:307) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:203) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] Jetty server exiting. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17.893 s [INFO] Finished at: 2017-03-23T18:39:25+05:30 [INFO] Final Memory: 21M/982M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.mortbay.jetty:maven-jetty-plugin:6.1.10:run (default-cli) on project openmrs-webapp: Failure: Address already in use: bind -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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 [INFO] Shutdown hook executing [ERROR] failed jsp java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:395) at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:315) at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:170) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:124) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:566) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:118) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.Server.doStop(Server.java:281) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559) Caused by: java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 24 more [ERROR] failed ServletHandler@59532f9e java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:395) at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:315) at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:170) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:124) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:566) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:118) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.Server.doStop(Server.java:281) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559) Caused by: java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 24 more [ERROR] failed SecurityHandler@645b5be2 java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:395) at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:315) at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:170) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:124) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:566) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:118) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.Server.doStop(Server.java:281) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559) Caused by: java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 24 more [ERROR] failed SessionHandler@29ed85e7 java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:395) at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:315) at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:170) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:124) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:566) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:118) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.Server.doStop(Server.java:281) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559) Caused by: java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 24 more [ERROR] failed org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@2d8f419e{/openmrs,E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\webapp} java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:395) at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:315) at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:170) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:124) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:566) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:118) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.Server.doStop(Server.java:281) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559) Caused by: java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 24 more [ERROR] failed ContextHandlerCollection@181d0370 java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:395) at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:315) at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:170) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:124) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:566) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:118) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.Server.doStop(Server.java:281) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559) Caused by: java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 24 more [ERROR] failed HandlerCollection@18ccba6e java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:395) at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:315) at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:170) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:124) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:566) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:118) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.Server.doStop(Server.java:281) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:559) Caused by: java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspApplicationContextImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 24 more [ERROR] failed Server@30b6c3c3 java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:395) at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:315) at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:286) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:170) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:124) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64) at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142) at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:566) at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:118) at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64)

... 24 more

It seems like you have another web application running on localhost:8080

After killing the process running at port 8080, for such long pastes, can you use a site like pastebin.com?

Thanking you, Jetty Server is started. But now i am getting…

[INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.web:openmrs-webapp:war:1.9.8 [WARNING] ‘build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-javadoc-plugin @ org.openmrs:openmrs:1.9.8, E:\23rdMarch\openmrs-core-1.9.8\pom.xml, line 843, column 13 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building openmrs-webapp 1.9.8 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-jetty-plugin:6.1.10:run (default-cli) > test-compile @ openmrs-webapp >>> [INFO] [INFO] — buildnumber-maven-plugin:1.1:create (default) @ openmrs-webapp — [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] ShortRevision tag detected. The value is ‘6’. [INFO] Executing: cmd.exe /X /C “git rev-parse --verify --short=6 HEAD” [INFO] Working directory: E:\23rdMarch\openmrs-core-1.9.8\webapp [INFO] Storing buildNumber: 0 at timestamp: 1490275829625 [INFO] ShortRevision tag detected. The value is ‘6’. [INFO] Executing: cmd.exe /X /C “git rev-parse --verify --short=6 HEAD” [INFO] Working directory: E:\23rdMarch\openmrs-core-1.9.8\webapp [INFO] Storing buildScmBranch: UNKNOWN_BRANCH [INFO] [INFO] — build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-webapp — [INFO] [INFO] — maven-resources-plugin:2.4:resources (default-resources) @ openmrs-webapp — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] Copying 1 resource to …/jetty [INFO] [INFO] — maven-antrun-plugin:1.4:run (default) @ openmrs-webapp — project.artifactId [INFO] Executing tasks [unzip] Expanding: E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\resources\liquibase-demo-data.zip into E:\23rdMarch\openmrs-core-1.9.8\webapp\target\classes [INFO] Executed tasks [INFO] [INFO] — maven-compiler-plugin:2.1:compile (default-compile) @ openmrs-webapp — [INFO] No sources to compile [INFO] [INFO] — maven-resources-plugin:2.4:testResources (default-testResources) @ openmrs-webapp — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] — maven-compiler-plugin:2.1:testCompile (default-testCompile) @ openmrs-webapp — [INFO] No sources to compile [INFO] [INFO] <<< maven-jetty-plugin:6.1.10:run (default-cli) < test-compile @ openmrs-webapp <<< [INFO] [INFO] — maven-jetty-plugin:6.1.10:run (default-cli) @ openmrs-webapp — [INFO] Configuring Jetty for project: openmrs-webapp [INFO] Webapp source directory = E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\webapp [INFO] web.xml file = E:\23rdMarch\openmrs-core-1.9.8\webapp\target\jetty\WEB-INF\web.xml [INFO] Classes = E:\23rdMarch\openmrs-core-1.9.8\webapp\target\classes [INFO] Added extra scan target:E:\23rdMarch\openmrs-core-1.9.8\api\target\classes [INFO] Added extra scan target:E:\23rdMarch\openmrs-core-1.9.8\web\target\classes [INFO] Property OPENMRS_INSTALLATION_SCRIPT=null was set [INFO] Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog [INFO] Context path = /openmrs [INFO] Tmp directory = determined at runtime [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml [INFO] Web overrides = src/test/resources/override-web.xml [INFO] Webapp directory = E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\webapp [INFO] Starting jetty 6.1.10 … [INFO] jetty-6.1.10 [INFO] No Transaction manager found - if your webapp requires one, please configure one. [INFO] Set web app root system property: ‘webapp.root’ = [E:\23rdMarch\openmrs-core-1.9.8\webapp\src\main\webapp] [INFO] Initializing log4j from [classpath:log4j.xml] WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2524) |2017-03-23 19:00:44,772| Unable to find a runtime properties file at E:\23rdMarch\openmrs-core-1.9.8\webapp\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2550) |2017-03-23 19:00:44,789| Unable to find properties file: C:\Users\fourthscreen\Application Data\OpenMRS\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimeProperties(2487) |2017-03-23 19:00:44,789| Unable to find a runtime properties file. Initial setup is needed. View the webapp to run the setup wizard. WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2524) |2017-03-23 19:00:44,914| Unable to find a runtime properties file at E:\23rdMarch\openmrs-core-1.9.8\webapp\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2550) |2017-03-23 19:00:44,915| Unable to find properties file: C:\Users\fourthscreen\Application Data\OpenMRS\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimeProperties(2487) |2017-03-23 19:00:44,915| Unable to find a runtime properties file. Initial setup is needed. View the webapp to run the setup wizard. [INFO] Started SelectChannelConnector@0.0.0.0:8085 [INFO] Started Jetty Server [INFO] Starting scanner at interval of 10 seconds. WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2524) |2017-03-23 19:02:39,294| Unable to find a runtime properties file at E:\23rdMarch\openmrs-core-1.9.8\webapp\openmrs-runtime.properties WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2550) |2017-03-23 19:02:39,297| Unable to find properties file: C:\Users\fourthscreen\Application Data\OpenMRS\openmrs-runtime.properties ERROR - Context.getServiceContext(255) |2017-03-23 19:03:19,651| serviceContext is null. Creating new ServiceContext() WARN - InitializationFilter.executeStatement(1133) |2017-03-23 19:03:29,820| error executing sql: create database if not exists ? default character set utf8 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.Util.getInstance(Util.java:386) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920) at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2395) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2316) at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:834) at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:215) at org.openmrs.web.filter.initialization.InitializationFilter.executeStatement(InitializationFilter.java:1118) at org.openmrs.web.filter.initialization.InitializationFilter.access$200(InitializationFilter.java:58) at org.openmrs.web.filter.initialization.InitializationFilter$InitializationCompletion$1.run(InitializationFilter.java:1341) at java.lang.Thread.run(Thread.java:745) Caused by: java.sql.SQLException: Unknown system variable ‘storage_engine’ at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1842) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1764) at com.mysql.jdbc.ConnectionImpl.setSessionVariables(ConnectionImpl.java:5588) at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3563) at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2358) … 16 more

and browser’s display is as:

please use pastebin.com for such logs :slight_smile: Make sure you have mysql 5.6 installed on your system and that the mysql server is running

You need to delete any files i.e the .OpenMRS folder in you home directory and the database that were created from previous attempts.

I also see that you are trying to build and run the 1.9.8 tag, is this intentional? Because you could just download the war file.

Thank you, I looking forward next step. After downgradding mqsql 5.7 to mysql 5.6, getting this error… Here url of pastebin is mentioned. http://pastebin.com/WtSmqkkv

Looks like you already loaded some demo data and you are also running the demo data module, I would say don’t load any demo data if you are running the reference application

Thanks to all… Downgrade the mysql 5.7 to mysql 5.6, it’s work for me. Finally DONE!!!