Hi All,
I g et an error while trying to run OpenMRS within eclipse.
I use Ubuntu with Tomcat6 and followed the instructions given in the
OpenMRS wiki for Linux developers:
https://wiki.openmrs.org/display/docs/Step+By+Step+Developer+Setup+Guide+%28Linux%29
When I deploy the war file generated in the eclipse
workspace (OpenMRS-trunk/webapp/target/openmrs.war), it is deployed
correctly. I am able to login into OpenMRS using the localhost URL.
However, launching from within eclipse does not work. I am trying to launch
from eclipse since it may be convenient for development and debugging
purposes. The complete error I get in eclipse is attached. I get the same
error when I try compiling at the command prompt (mvn clean install; mvn
jetty:run). The first few lines of the error are pasted below:
[INFO] Web overrides = src/test/resources/override-web.xml
[INFO] Webapp directory =
/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/src/main/webapp
[INFO] Starting jetty 6.1.10 ...
2012-04-10 23:04:10.716::INFO: jetty-6.1.10
2012-04-10 23:04:10.078::INFO: No Transaction manager found - if your
webapp requires one, please configure one.
INFO 10/4/12 11:04 PM:liquibase: Reading from `liquibasechangelog`
WARNING 10/4/12 11:04 PM:liquibase: modifyDataType will lose primary
key/autoincrement/not null settings for mysql. Use <sql> and re-specify
all configuration if this is the case
INFO 10/4/12 11:04 PM:liquibase: Reading from `liquibasechangelog`
WARNING 10/4/12 11:04 PM:liquibase: modifyDataType will lose primary
key/autoincrement/not null settings for mysql. Use <sql> and re-specify
all configuration if this is the case
2012-04-10 23:04:18.612::WARN: failed [email protected]:8080
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
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)
Any help will be useful !!!
Thanks and Regards,
SP
--
Dr. Suryaprakash Kompalli
http://sites.google.com/site/neosurya/
http://lifeearthlife.wordpress.com/
_________________________________________
To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-devel-l" in the body (not
the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building openmrs-webapp 1.10.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-jetty-plugin:6.1.10:run-war (default-cli) @ openmrs-webapp >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.0:create (default) @ openmrs-webapp ---
[INFO] Change the default 'svn' provider implementation to 'javasvn'.
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Storing buildNumber: 26786 at timestamp: 1334079274185
[INFO] Storing buildScmBranch: trunk
[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:
/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/src/main/resources/liquibase-demo-data.zip
into /home/kompalli/eclipse_workspace/OpenMRS-trunk/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-surefire-plugin:2.5:test (default-test) @ openmrs-webapp ---
[INFO] Surefire report directory:
/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-war-plugin:2.1-beta-1:war (default-war) @ openmrs-webapp ---
[INFO] Packaging webapp
[INFO] Assembling webapp[openmrs-webapp] in
[/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/target/openmrs]
[INFO] Dependency[Dependency {groupId=org.openmrs.web, artifactId=openmrs-web,
version=1.10.0-SNAPSHOT, type=jar}] has changed (was Dependency
{groupId=org.openmrs.web, artifactId=openmrs-web, version=1.10.0-SNAPSHOT,
type=jar}).
[INFO] Dependency[Dependency {groupId=org.springframework,
artifactId=spring-oxm, version=3.0.5.RELEASE, type=jar}] has changed (was
Dependency {groupId=org.springframework, artifactId=spring-oxm,
version=3.0.5.RELEASE, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp
webResources[/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/src/main/webapp]
to[/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/target/openmrs]
[INFO] Copying webapp
resources[/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/src/main/webapp]
[INFO] Webapp assembled in [324 msecs]
[INFO] Building war:
/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/target/openmrs.war
[INFO]
[INFO] <<< maven-jetty-plugin:6.1.10:run-war (default-cli) @ openmrs-webapp <<<
[INFO]
[INFO] --- maven-jetty-plugin:6.1.10:run-war (default-cli) @ openmrs-webapp ---
[INFO] Configuring Jetty for project: openmrs-webapp
2012-04-10 23:04:39.503::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
[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] Starting jetty 6.1.10 ...
2012-04-10 23:04:39.509::INFO: jetty-6.1.10
2012-04-10 23:04:39.519::INFO: Extract
jar:file:/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/target/openmrs.war!/
to /tmp/Jetty_0_0_0_0_8080_openmrs.war__openmrs__-8d81a1/webapp
2012-04-10 23:04:40.576::INFO: No Transaction manager found - if your webapp
requires one, please configure one.
INFO 10/4/12 11:04 PM:liquibase: Reading from `liquibasechangelog`
WARNING 10/4/12 11:04 PM:liquibase: modifyDataType will lose primary
key/autoincrement/not null settings for mysql. Use <sql> and re-specify all
configuration if this is the case
INFO 10/4/12 11:04 PM:liquibase: Reading from `liquibasechangelog`
WARNING 10/4/12 11:04 PM:liquibase: modifyDataType will lose primary
key/autoincrement/not null settings for mysql. Use <sql> and re-specify all
configuration if this is the case
2012-04-10 23:04:45.315::WARN: failed [email protected]:8080
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
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.Jetty6RunWar.execute(Jetty6RunWar.java:67)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
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:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:616)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2012-04-10 23:04:45.317::WARN: failed Server@3a6bf80b
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
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.Jetty6RunWar.execute(Jetty6RunWar.java:67)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
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:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:616)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.248s
[INFO] Finished at: Tue Apr 10 23:04:45 IST 2012
[INFO] Final Memory: 21M/648M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.mortbay.jetty:maven-jetty-plugin:6.1.10:run-war (default-cli) on project
openmrs-webapp: Failure: Address already in use -> [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
2012-04-10 23:04:45.421::INFO: Shutdown hook executing
2012-04-10 23:04:46.931::WARN: failed
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@766d65fd{/openmrs,jar:file:/home/kompalli/eclipse_workspace/OpenMRS-trunk/webapp/target/openmrs.war!/}
org.openmrs.api.APIException: contextDAO is null
at org.openmrs.api.context.Context.getContextDAO(Context.java:171)
at org.openmrs.api.context.Context.closeSession(Context.java:735)
at org.openmrs.web.Listener.contextDestroyed(Listener.java:518)
at
org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:574)
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)
2012-04-10 23:04:46.936::WARN: failed ContextHandlerCollection@4986c47
org.openmrs.api.APIException: contextDAO is null
at org.openmrs.api.context.Context.getContextDAO(Context.java:171)
at org.openmrs.api.context.Context.closeSession(Context.java:735)
at org.openmrs.web.Listener.contextDestroyed(Listener.java:518)
at
org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:574)
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)
2012-04-10 23:04:46.938::WARN: failed HandlerCollection@32ecabac
org.openmrs.api.APIException: contextDAO is null
at org.openmrs.api.context.Context.getContextDAO(Context.java:171)
at org.openmrs.api.context.Context.closeSession(Context.java:735)
at org.openmrs.web.Listener.contextDestroyed(Listener.java:518)
at
org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:574)
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)
2012-04-10 23:04:46.940::WARN: failed Server@3a6bf80b
org.openmrs.api.APIException: contextDAO is null
at org.openmrs.api.context.Context.getContextDAO(Context.java:171)
at org.openmrs.api.context.Context.closeSession(Context.java:735)
at org.openmrs.web.Listener.contextDestroyed(Listener.java:518)
at
org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:574)
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)
2012-04-10 23:04:46.942::WARN: EXCEPTION
org.openmrs.api.APIException: contextDAO is null
at org.openmrs.api.context.Context.getContextDAO(Context.java:171)
at org.openmrs.api.context.Context.closeSession(Context.java:735)
at org.openmrs.web.Listener.contextDestroyed(Listener.java:518)
at
org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:574)
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)
2012-04-10 23:04:46.944::INFO: Shutdown hook complete