Can’t you just use the regular jetty:run command with mvnDebug?

https://github.com/jenkinsci/jenkins/blob/master/CONTRIBUTING.md#building-and-debugging


On Tue, 17 Dec 2019 at 19:12, Carlos Henrique Oliveira dos Santos <
chos2...@gmail.com> wrote:

> I found out that jenkins-dev plugin is point to a older jetty version.
>
>
> Em terça-feira, 17 de dezembro de 2019 12:54:49 UTC-3, Carlos Henrique
> Oliveira dos Santos escreveu:
>>
>> Hi guys,
>>
>> I am trying to start Jenkins using follow commands:
>>
>> # To change the port run mvnDebug jenkins-dev:run -Dport=9090
>> $ cd war
>> $ mvnDebug jenkins-dev:run
>>
>>
>> ...but i am getting this error:
>>
>>
>>
>> [*WARNING*] Failed startup of context
>> o.e.j.m.p.JettyWebAppContext@78b959ab{Jenkins
>> v${project.version},/,file:///Users/user/Projects/jenkins/war/src/main/webapp/,UNAVAILABLE}{file:///Users/users/Projects/jenkins/war/src/main/webapp/}
>>
>> *java.lang.IllegalStateException*: *No LoginService for
>> org.eclipse.jetty.security.authentication.FormAuthenticator@18c137ed in
>> ConstraintSecurityHandler@3ec850fd{STARTING}*
>>
>>     *at* 
>> org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration
>> (*LoginAuthenticator.java:76*)
>>
>>     *at* 
>> org.eclipse.jetty.security.authentication.FormAuthenticator.setConfiguration
>> (*FormAuthenticator.java:131*)
>>
>>     *at* org.eclipse.jetty.security.SecurityHandler.doStart (
>> *SecurityHandler.java:354*)
>>
>>     *at* org.eclipse.jetty.security.ConstraintSecurityHandler.doStart (
>> *ConstraintSecurityHandler.java:448*)
>>
>>     *at* org.eclipse.jetty.util.component.AbstractLifeCycle.start (
>> *AbstractLifeCycle.java:68*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.start (
>> *ContainerLifeCycle.java:138*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (
>> *ContainerLifeCycle.java:108*)
>>
>>     *at* org.eclipse.jetty.server.handler.AbstractHandler.doStart (
>> *AbstractHandler.java:113*)
>>
>>     *at* org.eclipse.jetty.server.handler.ScopedHandler.doStart (
>> *ScopedHandler.java:123*)
>>
>>     *at* org.eclipse.jetty.server.session.SessionHandler.doStart (
>> *SessionHandler.java:503*)
>>
>>     *at* org.eclipse.jetty.util.component.AbstractLifeCycle.start (
>> *AbstractLifeCycle.java:68*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.start (
>> *ContainerLifeCycle.java:138*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (
>> *ContainerLifeCycle.java:108*)
>>
>>     *at* org.eclipse.jetty.server.handler.AbstractHandler.doStart (
>> *AbstractHandler.java:113*)
>>
>>     *at* org.eclipse.jetty.server.handler.ScopedHandler.doStart (
>> *ScopedHandler.java:123*)
>>
>>     *at* org.eclipse.jetty.server.handler.ContextHandler.startContext (
>> *ContextHandler.java:908*)
>>
>>     *at* org.eclipse.jetty.servlet.ServletContextHandler.startContext (
>> *ServletContextHandler.java:370*)
>>
>>     *at* org.eclipse.jetty.webapp.WebAppContext.startWebapp (
>> *WebAppContext.java:1497*)
>>
>>     *at* org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp (
>> *JettyWebAppContext.java:360*)
>>
>>     *at* org.eclipse.jetty.webapp.WebAppContext.startContext (
>> *WebAppContext.java:1459*)
>>
>>     *at* org.eclipse.jetty.server.handler.ContextHandler.doStart (
>> *ContextHandler.java:847*)
>>
>>     *at* org.eclipse.jetty.servlet.ServletContextHandler.doStart (
>> *ServletContextHandler.java:287*)
>>
>>     *at* org.eclipse.jetty.webapp.WebAppContext.doStart (
>> *WebAppContext.java:545*)
>>
>>     *at* org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart (
>> *JettyWebAppContext.java:428*)
>>
>>     *at* org.eclipse.jetty.util.component.AbstractLifeCycle.start (
>> *AbstractLifeCycle.java:68*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.start (
>> *ContainerLifeCycle.java:138*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (
>> *ContainerLifeCycle.java:117*)
>>
>>     *at* org.eclipse.jetty.server.handler.AbstractHandler.doStart (
>> *AbstractHandler.java:113*)
>>
>>     *at* org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart
>> (*ContextHandlerCollection.java:168*)
>>
>>     *at* org.eclipse.jetty.util.component.AbstractLifeCycle.start (
>> *AbstractLifeCycle.java:68*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.start (
>> *ContainerLifeCycle.java:138*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (
>> *ContainerLifeCycle.java:117*)
>>
>>     *at* org.eclipse.jetty.server.handler.AbstractHandler.doStart (
>> *AbstractHandler.java:113*)
>>
>>     *at* org.eclipse.jetty.util.component.AbstractLifeCycle.start (
>> *AbstractLifeCycle.java:68*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.start (
>> *ContainerLifeCycle.java:138*)
>>
>>     *at* org.eclipse.jetty.server.Server.start (*Server.java:416*)
>>
>>     *at* org.eclipse.jetty.util.component.ContainerLifeCycle.doStart (
>> *ContainerLifeCycle.java:108*)
>>
>>     *at* org.eclipse.jetty.server.handler.AbstractHandler.doStart (
>> *AbstractHandler.java:113*)
>>
>>     *at* org.eclipse.jetty.server.Server.doStart (*Server.java:383*)
>>
>>     *at* org.eclipse.jetty.util.component.AbstractLifeCycle.start (
>> *AbstractLifeCycle.java:68*)
>>
>>     *at* org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty (
>> *AbstractJettyMojo.java:471*)
>>
>>     *at* org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute (
>> *AbstractJettyMojo.java:337*)
>>
>>     *at* org.eclipse.jetty.maven.plugin.JettyRunMojo.execute (
>> *JettyRunMojo.java:169*)
>>
>>     *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 (
>> *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: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*)
>>
>> [*INFO*] Started ServerConnector@1463c783{HTTP/1.1,[http/1.1]}{
>> 0.0.0.0:8080}
>>
>> [*INFO*] Started @128646ms
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/7b2c9f4f-f2bf-4d2a-aab3-fd3d43376122%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/7b2c9f4f-f2bf-4d2a-aab3-fd3d43376122%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BicodipmPDJFfidHwz6XTGkcr5yzXfKKs2Qi%2BD2LoV%3Du6g%40mail.gmail.com.

Reply via email to