using Jetty

I installed Jetty first and it ran fine on http://localhost:8080/

I then installed Tomcat and ran the same, and now Jetty no longer runs. Please, I am only using Jetty because that is the server that everyone at Vaadin uses.

How do I clear this conflict to be able to use Jetty?

[INFO]
 BUILD FAILURE
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Total time: 7.753 s
[INFO]
 Finished at: 2017-03-28T15:54:03-07:00
[INFO]
 Final Memory: 42M/379M
[INFO]
 ------------------------------------------------------------------------
[ERROR]
 Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.3.9.v20160517:run (default-cli) on project basic: 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

Close down tomcat, or the first jetty. Something else is already running on the same port.

Thank you. I closed down tomcat and cleaned directory, but Jetty still does not run.

How do you close down jetty – as it is not listed in the SERVERS tab in Eclipse AND then restart jetty ?

There should be a red “Terminate” button in the Console tab (check the “Display selected console” dropdown if you have multiple consoles open).

Thank you Olli, I did not explain properly. I use the terminate many times with Tomcat, my question should have asked how to CLEAN or rather how to restart Jetty to run – as the is a conflict with Tomcat in the configuration.

Thank you.

[INFO]
 Scanning for projects...
[INFO]
                                                                         
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Building basic 1.0
[INFO]
 ------------------------------------------------------------------------
[INFO]

[INFO]
 >>> jetty-maven-plugin:9.3.9.v20160517:run (default-cli) > test-compile @ basic >>>
[INFO]

[INFO]
 --- vaadin-maven-plugin:8.0.4:update-theme (default) @ basic ---
[INFO]
 Updating theme VAADIN\themes\maintheme
[INFO]
 Widgetsets found from classpath:
[INFO]
 Addon styles found from classpath:
[INFO]

[INFO]
 Search took 4ms
[INFO]
 Theme "VAADIN\themes\maintheme" updated
[INFO]

[INFO]
 --- vaadin-maven-plugin:8.0.4:update-widgetset (default) @ basic ---
[WARNING]
 GWT plugin is configured to detect modules, but none were found.
[INFO]
 No widgetsets found - generating AppWidgetset if necessary.
[INFO]
 Updating widgetset AppWidgetset
[INFO]
 Adding resource directory to command classpath: C:\Users\nevada\Desktop\AppWeb\basic\src\main\resources
[INFO]
 Adding resource directory to command classpath: C:\Users\nevada\Desktop\AppWeb\basic\target\generated-resources\gwt
[INFO]
 Using com.vaadin:vaadin-client version 8.0.4
[INFO]
 Using com.vaadin:vaadin-client-compiler version 8.0.4
[INFO]
 Widgetsets found from classpath:
[INFO]
     com.vaadin.DefaultWidgetSet in jar:file:C:/Users/nevada/.m2/repository/com/vaadin/vaadin-client/8.0.4/vaadin-client-8.0.4.jar!/
[INFO]
 Addon styles found from classpath:
[INFO]

[INFO]
 Search took 3ms
[INFO]

[INFO]
 --- vaadin-maven-plugin:8.0.4:compile-theme (default) @ basic ---
[INFO]
 Updating theme VAADIN\themes\maintheme
[INFO]
 Theme "VAADIN\themes\maintheme" compiled
[INFO]

[INFO]
 --- maven-resources-plugin:2.6:resources (default-resources) @ basic ---
[INFO]
 Using 'UTF-8' encoding to copy filtered resources.
[INFO]
 Copying 1 resource
[INFO]
 Copying 0 resource
[INFO]

[INFO]
 --- maven-compiler-plugin:3.1:compile (default-compile) @ basic ---
[INFO]
 Nothing to compile - all classes are up to date
[INFO]

[INFO]
 --- vaadin-maven-plugin:8.0.4:compile (default) @ basic ---
[WARNING]
 GWT plugin is configured to detect modules, but none were found.
[INFO]
 Using com.vaadin:vaadin-client version 8.0.4
[INFO]
 Using com.vaadin:vaadin-client-compiler version 8.0.4
[INFO]

[INFO]
 --- maven-resources-plugin:2.6:testResources (default-testResources) @ basic ---
[INFO]
 Using 'UTF-8' encoding to copy filtered resources.
[INFO]
 skip non existing resourceDirectory C:\Users\nevada\Desktop\AppWeb\basic\src\test\resources
[INFO]

[INFO]
 --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ basic ---
[INFO]
 Nothing to compile - all classes are up to date
[INFO]

[INFO]
 <<< jetty-maven-plugin:9.3.9.v20160517:run (default-cli) < test-compile @ basic <<<
[INFO]

[INFO]
 --- jetty-maven-plugin:9.3.9.v20160517:run (default-cli) @ basic ---
[INFO]
 Configuring Jetty for project: basic
[INFO]
 webAppSourceDirectory not set. Trying src\main\webapp
[INFO]
 Reload Mechanic: automatic
[INFO]
 Classes = C:\Users\nevada\Desktop\AppWeb\basic\target\classes
[INFO]
 Logging initialized @8740ms
[INFO]
 Context path = /
[INFO]
 Tmp directory = C:\Users\nevada\Desktop\AppWeb\basic\target\tmp
[INFO]
 Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO]
 Web overrides =  none
[INFO]
 web.xml file = file:///C:/Users/nevada/Desktop/AppWeb/basic/src/main/webapp/WEB-INF/web.xml
[INFO]
 Webapp directory = C:\Users\nevada\Desktop\AppWeb\basic\src\main\webapp
[INFO]
 jetty-9.3.9.v20160517
[WARNING]
 Could not instantiate listener com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
    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)
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:487)
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:428)
    at org.eclipse.jetty.server.handler.ContextHandler.loadClass(ContextHandler.java:1675)
    at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1897)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:83)
    at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:70)
    at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:403)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1364)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
    at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:398)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.server.Server.start(Server.java:411)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.Server.doStart(Server.java:378)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:460)
    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:328)
    at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:170)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    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:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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 startup of context o.e.j.m.p.JettyWebAppContext@4d93f75b{/,file:///C:/Users/nevada/Desktop/AppWeb/basic/src/main/webapp/,UNAVAILABLE}{file:///C:/Users/nevada/Desktop/AppWeb/basic/src/main/webapp/}
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:83)
    at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:70)
    at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:403)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1364)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
    at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)
    at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:398)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.server.Server.start(Server.java:411)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.Server.doStart(Server.java:378)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:460)
    at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:328)
    at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:170)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    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:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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)
Caused by: java.lang.IllegalStateException: Nothing to bind for name jdbc/webdata
    at org.eclipse.jetty.plus.webapp.PlusDescriptorProcessor.bindEntry(PlusDescriptorProcessor.java:914)
    at org.eclipse.jetty.plus.webapp.PlusDescriptorProcessor.bindResourceRef(PlusDescriptorProcessor.java:834)
    at org.eclipse.jetty.plus.webapp.PlusDescriptorProcessor.visitResourceRef(PlusDescriptorProcessor.java:254)
    ... 53 more
[INFO]
 Started ServerConnector@17a84ddd{HTTP/1.1,[http/1.1]
}{0.0.0.0:8080}
[INFO]
 Started @10205ms
[INFO]
 Started Jetty Server

32004.png

Actually I think it somehow runs again, but the reason it is not running my java file is because of an error I am trying to resove in creating a new instance – thank you, after I figure out how to resolve the current error then – IF Jetty does not run, may I present the Jetty related error to you?

Thank you.

I am going to purchase a course today to learn how to resolve the coding issue to create a Vaadin Grid

https://www.useloom.com/share/a13bf68886914405b3fffe8952805639

32005.png