The key line of output is this one:
java.net.BindException: Address already in use

This means that some server is already running on that port (maybe tomcat
is already running on 8080) and you need to stop the other server before
jetty can start.

Alternately you can do something like this in your run configuration, to
have jetty use a different port):
-Djetty.port=8018

-Darius

On Tue, Apr 10, 2012 at 11:22 AM, Suryaprakash Kompalli
<[email protected]>wrote:

> 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/
> ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list

_________________________________________

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]

Reply via email to