By default, Jetty runs on port 8080, if an application, such as an Oracle database, uses this port on your system, the Jetty server does not start and throws some BIND exception. to overcome this, if your project is a maven project, then use the code below in the pom.xml file, then it works fine (here I use port 8888, which is free on my system)
<plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>${jetty.plugin.version}</version> <configuration> <scanIntervalSeconds>2</scanIntervalSeconds> <httpConnector> <host>localhost</host> <port>8888</port> </httpConnector> </configuration> </plugin>
Satya Singh Mar 22 '18 at 9:39 2018-03-22 09:39
source share