Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39951

"java -jar jenkins.war --httpPort 8080" fails with a stack trace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • winstone-jetty
    • None

      User error like this shouldn't result in a stack trace, yet this is the output you get:

      % java -jar jenkins.war --httpPort 8080
      Running from: /home/kohsuke/ws/jenkins/jenkins/war/target/jenkins.war
      webroot: $user.home/.jenkins
      Nov 22, 2016 4:06:19 PM Main deleteWinstoneTempContents
      WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at Main._main(Main.java:264)
      	at Main.main(Main.java:112)
      Caused by: java.lang.IllegalArgumentException: Expecting ----httpPort=VALUE but found no value
      	at winstone.cmdline.CmdLineParser.parse(CmdLineParser.java:61)
      	at winstone.Launcher.getArgsFromCommandLine(Launcher.java:359)
      	at winstone.Launcher.main(Launcher.java:332)
      	... 6 more
      

            Unassigned Unassigned
            kohsuke Kohsuke Kawaguchi
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: