NutzCN Logo
问答 nutz-book-project v5.x eclipse + jetty运行报错 HTTP ERROR: 503 或 404
发布于 1880天前 作者 wx_0us6htto767cco39hrd5 1161 次浏览 复制 上一个帖子 下一个帖子
标签:

运行环境如下:
jdk, jre: 1.8.0_221
eclipse Version: 2019-09 R (4.13.0)
maven: 3.6.2
导入 eclipse后修改任何配置文件,只做下面2步:
1、nutzcn-parent项目执行Run as -> Maven install
2、nutzcn-webapp项目执行Run as -> Maven bulid(用 jetty:run 运行)

问题:jetty 运行了,但打开localhost:8080/或者localhost:8080/adminlte 报503错误
控制台输出有:[WARNING]
javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable

请问各位大神,需要怎样的步骤才能在eclipse中运行起来啊,Maven install 那一步还是看了好多贴子才发现的,请给新手step by step的说明吧,还需要jetty的版本、根目录之类的配置吗?怎么配呢。整了好多天了也没跑起来,求救!

更多输出如下:

a:[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
52[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
0)
[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
 [DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
   [DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
at org.mortbay.jetty.plugin[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
.A[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
b[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
st[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
ractJettyMo[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
jo.e[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
xec[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
u[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
t[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
e[DEBUG] Closing JarFile D:\Library\.m2\repository\org\eclipse\jetty\jetty-server\9.4.14.v20181114\jetty-server-9.4.14.v20181114.jar
 (AbstractJettyMojo.java:365)
    at org.mortbay.jetty.plugin.JettyRunMojo.execute (JettyRunMojo.java:523)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
    at java.lang.reflect.Method.invoke (Unknown Source)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable
    at org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer.onStartup (WebSocketServerContainerInitializer.java:200)
    at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup (ContainerInitializer.java:106)
    at org.eclipse.jetty.annotations.ServletContainerInitializerListener.doStart (ServletContainerInitializerListener.java:107)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart (AggregateLifeCycle.java:81)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:58)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart (HandlerWrapper.java:96)
    at org.eclipse.jetty.server.handler.ScopedHandler.doStart (ScopedHandler.java:115)
    at org.eclipse.jetty.server.handler.ContextHandler.startContext (ContextHandler.java:763)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:249)
    at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1242)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:494)
    at org.mortbay.jetty.plugin.JettyWebAppContext.doStart (JettyWebAppContext.java:298)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart (HandlerCollection.java:229)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart (ContextHandlerCollection.java:172)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart (HandlerCollection.java:229)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart (HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart (Server.java:282)
    at org.mortbay.jetty.plugin.JettyServer.doStart (JettyServer.java:65)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:520)
    at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:365)
    at org.mortbay.jetty.plugin.JettyRunMojo.execute (JettyRunMojo.java:523)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
    at java.lang.reflect.Method.invoke (Unknown Source)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[WARNING] Failed startup of context o.m.j.p.JettyWebAppContext{/,file:/D:/Project/wefo/UAS/nutzcn-webapp/src/main/webapp},file:/D:/Project/wefo/UAS/nutzcn-webapp/src/main/webapp
java.lang.RuntimeException: javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable
    at org.eclipse.jetty.annotations.ServletContainerInitializerListener.doStart (ServletContainerInitializerListener.java:112)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart (AggregateLifeCycle.java:81)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:58)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart (HandlerWrapper.java:96)
    at org.eclipse.jetty.server.handler.ScopedHandler.doStart (ScopedHandler.java:115)
    at org.eclipse.jetty.server.handler.ContextHandler.startContext (ContextHandler.java:763)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:249)
    at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1242)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:494)
    at org.mortbay.jetty.plugin.JettyWebAppContext.doStart (JettyWebAppContext.java:298)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart (HandlerCollection.java:229)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart (ContextHandlerCollection.java:172)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart (HandlerCollection.java:229)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart (HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart (Server.java:282)
    at org.mortbay.jetty.plugin.JettyServer.doStart (JettyServer.java:65)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:520)
    at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:365)
    at org.mortbay.jetty.plugin.JettyRunMojo.execute (JettyRunMojo.java:523)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
    at java.lang.reflect.Method.invoke (Unknown Source)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable
    at org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer.onStartup (WebSocketServerContainerInitializer.java:200)
    at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup (ContainerInitializer.java:106)
    at org.eclipse.jetty.annotations.ServletContainerInitializerListener.doStart (ServletContainerInitializerListener.java:107)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart (AggregateLifeCycle.java:81)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart (AbstractHandler.java:58)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart (HandlerWrapper.java:96)
    at org.eclipse.jetty.server.handler.ScopedHandler.doStart (ScopedHandler.java:115)
    at org.eclipse.jetty.server.handler.ContextHandler.startContext (ContextHandler.java:763)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext (ServletContextHandler.java:249)
    at org.eclipse.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1242)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart (ContextHandler.java:717)
    at org.eclipse.jetty.webapp.WebAppContext.doStart (WebAppContext.java:494)
    at org.mortbay.jetty.plugin.JettyWebAppContext.doStart (JettyWebAppContext.java:298)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart (HandlerCollection.java:229)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart (ContextHandlerCollection.java:172)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerCollection.doStart (HandlerCollection.java:229)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart (HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart (Server.java:282)
    at org.mortbay.jetty.plugin.JettyServer.doStart (JettyServer.java:65)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start (AbstractLifeCycle.java:64)
    at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (AbstractJettyMojo.java:520)
    at org.mortbay.jetty.plugin.AbstractJettyMojo.execute (AbstractJettyMojo.java:365)
    at org.mortbay.jetty.plugin.JettyRunMojo.execute (JettyRunMojo.java:523)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
    at java.lang.reflect.Method.invoke (Unknown Source)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[DEBUG] STARTED o.m.j.p.JettyWebAppContext{/,file:/D:/Project/wefo/UAS/nutzcn-webapp/src/main/webapp},file:/D:/Project/wefo/UAS/nutzcn-webapp/src/main/webapp
[DEBUG] starting org.eclipse.jetty.server.handler.ContextHandlerCollection@47b67fcb
[DEBUG] STARTED org.eclipse.jetty.server.handler.ContextHandlerCollection@47b67fcb
[DEBUG] starting org.eclipse.jetty.server.handler.DefaultHandler@2b9f74d0
[DEBUG] starting org.eclipse.jetty.server.handler.DefaultHandler@2b9f74d0
[DEBUG] STARTED org.eclipse.jetty.server.handler.DefaultHandler@2b9f74d0
[DEBUG] starting org.eclipse.jetty.server.handler.RequestLogHandler@65c86db8
[WARNING] !RequestLog
[DEBUG] starting org.eclipse.jetty.server.handler.RequestLogHandler@65c86db8
[DEBUG] starting org.eclipse.jetty.server.handler.RequestLogHandler$NullRequestLog@1cda3a6d
[DEBUG] STARTED org.eclipse.jetty.server.handler.RequestLogHandler$NullRequestLog@1cda3a6d
[DEBUG] STARTED org.eclipse.jetty.server.handler.RequestLogHandler@65c86db8
[DEBUG] starting org.eclipse.jetty.server.handler.HandlerCollection@3a543f31
[DEBUG] STARTED org.eclipse.jetty.server.handler.HandlerCollection@3a543f31
[DEBUG] starting org.mortbay.jetty.plugin.JettyServer@75fa1be3
[DEBUG] starting qtp1672736386{8<=0<=0/254,-1}
[DEBUG] STARTED qtp1672736386{8<=7<=8/254,0}
[DEBUG] starting SelectChannelConnector@0.0.0.0:8080
[DEBUG] starting null/null
[DEBUG] STARTED PooledBuffers [0/1024@6144,0/1024@16384,0/1024@-]/PooledBuffers [0/1024@6144,0/1024@32768,0/1024@-]
[DEBUG] starting org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@e77c9c3
[DEBUG] STARTED org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@e77c9c3
[DEBUG] Starting Thread[qtp1672736386-20 Selector1,5,main] on org.eclipse.jetty.io.nio.SelectorManager$1@2e2b138a
[DEBUG] Starting Thread[qtp1672736386-19 Selector0,5,main] on org.eclipse.jetty.io.nio.SelectorManager$1@486a8ca5
[INFO] Started SelectChannelConnector@0.0.0.0:8080
[DEBUG] STARTED SelectChannelConnector@0.0.0.0:8080
[DEBUG] STARTED org.mortbay.jetty.plugin.JettyServer@75fa1be3
[INFO] Started Jetty Server
[DEBUG] created SCEP@6effe47b{l(/0:0:0:0:0:0:0:1:54800)<->r(/0:0:0:0:0:0:0:1:8080),s=0,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0}-{AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0}
[DEBUG] filled 0/0
[DEBUG] filled 461/461
[DEBUG] REQUEST / on AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-5,l=1,c=0},r=1
[DEBUG] scope null||/ @ o.m.j.p.JettyWebAppContext{/,file:/D:/Project/wefo/UAS/nutzcn-webapp/src/main/webapp},file:/D:/Project/wefo/UAS/nutzcn-webapp/src/main/webapp
[DEBUG] RESPONSE /  503 handled=true
[DEBUG] Enabled read interest SCEP@6effe47b{l(/0:0:0:0:0:0:0:1:54800)<->r(/0:0:0:0:0:0:0:1:8080),s=1,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@23444696,g=HttpGenerator{s=4,h=0,b=0,c=-1},p=HttpParser{s=0,l=1,c=0},r=1}
[DEBUG] filled 0/0
[DEBUG] onIdleExpired 30030ms AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=-3},r=1 SCEP@6effe47b{l(/0:0:0:0:0:0:0:1:54800)<->r(/0:0:0:0:0:0:0:1:8080),s=0,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=-3},r=1}
[DEBUG] oshut SCEP@6effe47b{l(/0:0:0:0:0:0:0:1:54800)<->r(/0:0:0:0:0:0:0:1:8080),s=0,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=-3},r=1}
[DEBUG] ishut SCEP@6effe47b{l(/0:0:0:0:0:0:0:1:54800)<->r(/0:0:0:0:0:0:0:1:8080),s=1,open=true,ishut=false,oshut=true,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=-3},r=1}
[DEBUG] close SCEP@6effe47b{l(/0:0:0:0:0:0:0:1:54800)<->r(/0:0:0:0:0:0:0:1:8080),s=1,open=true,ishut=true,oshut=true,rb=false,wb=false,w=true,i=1!}-{AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=-3},r=1}
[DEBUG] filled -1/0
[DEBUG] Disabled read interest while writing response SCEP@6effe47b{l(null)<->r(0.0.0.0/0.0.0.0:8080),s=1,open=false,ishut=true,oshut=true,rb=false,wb=false,w=true,i=1!}-{AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=0,l=0,c=-3},r=1}
[DEBUG] destroyEndPoint SCEP@6effe47b{l(null)<->r(0.0.0.0/0.0.0.0:8080),s=1,open=false,ishut=true,oshut=true,rb=false,wb=false,w=true,i=1!}-{AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=0,l=0,c=-3},r=1}
[DEBUG] closed AsyncHttpConnection@23444696,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=0,l=0,c=-3},r=1
[DEBUG] created SCEP@24d378fa{l(/0:0:0:0:0:0:0:1:54850)<->r(/0:0:0:0:0:0:0:1:8080),s=0,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0}-{AsyncHttpConnection@61d1e204,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0}
[DEBUG] filled 0/0
[DEBUG] filled 461/461
[DEBUG] REQUEST / on AsyncHttpConnection@61d1e204,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-5,l=1,c=0},r=1
[DEBUG] scope null||/ @ o.m.j.p.JettyWebAppContext{/,file:/D:/Project/wefo/UAS/nutzcn-webapp/src/main/webapp},file:/D:/Project/wefo/UAS/nutzcn-webapp/src/main/webapp
[DEBUG] RESPONSE /  503 handled=true
[DEBUG] Enabled read interest SCEP@24d378fa{l(/0:0:0:0:0:0:0:1:54850)<->r(/0:0:0:0:0:0:0:1:8080),s=1,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@61d1e204,g=HttpGenerator{s=4,h=0,b=0,c=-1},p=HttpParser{s=0,l=1,c=0},r=1}
[DEBUG] filled 0/0
4 回复

自带main方法,直接右键run启动,不需要也不能jetty:run

nutzbook说的是2.x系列的版本(master分支)

注意区分 nutzbook和nutzboot

感谢回复指点,跑起来啦。原来是在nutzcn-webapp项目中的MainLauncher.java上点右键,Run As > Java Application
下一步研究怎么部署

添加回复
请先登陆
回到顶部