Apache Tomcat Maven Plugin
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-103

Executable War fails to run with a NullPointerException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: 2.0-beta-1
    • Component/s: tomcat7
    • Labels:
      None
    • Environment:
      Mac OSX (tried on windows 7 as well)

      Description

      Running the package goal with maven with the tomcat7 plugin configured the generated executable war fails to run. The error is:

      $ java -jar ./smapi-1.0-war-exec.jar -debug
      populateWebAppWarPerContext warValue:/smapi-1.0.war|/smapi-1.0
      populateWebAppWarPerContext contextValue/warFileName:/smapi-1.0//smapi-1.0.war
      webappWarPerContext entry key/value: /smapi-1.0//smapi-1.0.war
      Exception in thread "main" java.lang.NullPointerException
      at org.apache.tomcat.maven.runner.Tomcat7Runner.expand(Tomcat7Runner.java:406)
      at org.apache.tomcat.maven.runner.Tomcat7Runner.extract(Tomcat7Runner.java:309)
      at org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:98)
      at org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:144)

        Activity

        Keith Corbin created issue -
        Olivier Lamy (*$^¨%`£) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Keith Corbin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development