You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Keith Corbin (Created) (JIRA)" <ji...@apache.org> on 2011/10/27 16:52:32 UTC
[jira] [Created] (MTOMCAT-103) Executable War fails to run with a
NullPointerException
Executable War fails to run with a NullPointerException
-------------------------------------------------------
Key: MTOMCAT-103
URL: https://issues.apache.org/jira/browse/MTOMCAT-103
Project: Apache Tomcat Maven Plugin
Issue Type: Bug
Components: tomcat7
Affects Versions: 2.0
Environment: Mac OSX (tried on windows 7 as well)
Reporter: Keith Corbin
Assignee: Olivier Lamy
Priority: Critical
Fix For: 2.0
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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[jira] [Commented] (MTOMCAT-103) Executable War fails to run with a
NullPointerException
Posted by "Keith Corbin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MTOMCAT-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141454#comment-13141454 ]
Keith Corbin commented on MTOMCAT-103:
--------------------------------------
That fixed it for me. Thanks so much for your fast resolution. This is an amazing plug-in keep up the good work.
> Executable War fails to run with a NullPointerException
> -------------------------------------------------------
>
> Key: MTOMCAT-103
> URL: https://issues.apache.org/jira/browse/MTOMCAT-103
> Project: Apache Tomcat Maven Plugin
> Issue Type: Bug
> Components: tomcat7
> Affects Versions: 2.0
> Environment: Mac OSX (tried on windows 7 as well)
> Reporter: Keith Corbin
> Assignee: Olivier Lamy
> Priority: Critical
> Fix For: 2.0
>
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[jira] [Closed] (MTOMCAT-103) Executable War fails to run with a
NullPointerException
Posted by "Olivier Lamy (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MTOMCAT-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MTOMCAT-103.
--------------------------------
Resolution: Fixed
should be fixed now. issue with path started with /
If you still have issues add a comment with stack trace.
Thanks.
> Executable War fails to run with a NullPointerException
> -------------------------------------------------------
>
> Key: MTOMCAT-103
> URL: https://issues.apache.org/jira/browse/MTOMCAT-103
> Project: Apache Tomcat Maven Plugin
> Issue Type: Bug
> Components: tomcat7
> Affects Versions: 2.0
> Environment: Mac OSX (tried on windows 7 as well)
> Reporter: Keith Corbin
> Assignee: Olivier Lamy
> Priority: Critical
> Fix For: 2.0
>
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[jira] [Commented] (MTOMCAT-103) Executable War fails to run with a
NullPointerException
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MTOMCAT-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141419#comment-13141419 ]
Hudson commented on MTOMCAT-103:
--------------------------------
Integrated in TomcatMavenPlugin #56 (See [https://builds.apache.org/job/TomcatMavenPlugin/56/])
[MTOMCAT-103] Executable War fails to run with a NullPointerException
do not record jar entry starting with / remove it.
olamy : http://svn.apache.org/viewvc/?view=rev&rev=1196179
Files :
* /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
* /tomcat/maven-plugin/trunk/tomcat7-war-runner/src/main/java/org/apache/tomcat/maven/runner/Tomcat7Runner.java
> Executable War fails to run with a NullPointerException
> -------------------------------------------------------
>
> Key: MTOMCAT-103
> URL: https://issues.apache.org/jira/browse/MTOMCAT-103
> Project: Apache Tomcat Maven Plugin
> Issue Type: Bug
> Components: tomcat7
> Affects Versions: 2.0
> Environment: Mac OSX (tried on windows 7 as well)
> Reporter: Keith Corbin
> Assignee: Olivier Lamy
> Priority: Critical
> Fix For: 2.0
>
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[jira] [Commented] (MTOMCAT-103) Executable War fails to run with a
NullPointerException
Posted by "Olivier Lamy (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MTOMCAT-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138150#comment-13138150 ]
Olivier Lamy commented on MTOMCAT-103:
--------------------------------------
does the file smapi-1.0-war-exec.jar contains the war file smapi-1.0.war ?
As it looks to not be here: how do you configure the mojo in your pom ?
> Executable War fails to run with a NullPointerException
> -------------------------------------------------------
>
> Key: MTOMCAT-103
> URL: https://issues.apache.org/jira/browse/MTOMCAT-103
> Project: Apache Tomcat Maven Plugin
> Issue Type: Bug
> Components: tomcat7
> Affects Versions: 2.0
> Environment: Mac OSX (tried on windows 7 as well)
> Reporter: Keith Corbin
> Assignee: Olivier Lamy
> Priority: Critical
> Fix For: 2.0
>
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[jira] [Commented] (MTOMCAT-103) Executable War fails to run with a
NullPointerException
Posted by "Keith Corbin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MTOMCAT-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138384#comment-13138384 ]
Keith Corbin commented on MTOMCAT-103:
--------------------------------------
I have unziped the smapi1.0-war-exec.jar file and in it I see the smapi-1.0.war file.
I think it is finding the war, other wise I would be seeing the zip file exception that I saw when running it from the wrong directory.
Here is how I have the plugin configured in the pom:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<executions>
<execution>
<id>tomcat-run</id>
<goals>
<goal>exec-war-only</goal>
</goals>
<phase>package</phase>
<configuration>
<path>/smapi-1.0</path>
</configuration>
</execution>
</executions>
</plugin>
> Executable War fails to run with a NullPointerException
> -------------------------------------------------------
>
> Key: MTOMCAT-103
> URL: https://issues.apache.org/jira/browse/MTOMCAT-103
> Project: Apache Tomcat Maven Plugin
> Issue Type: Bug
> Components: tomcat7
> Affects Versions: 2.0
> Environment: Mac OSX (tried on windows 7 as well)
> Reporter: Keith Corbin
> Assignee: Olivier Lamy
> Priority: Critical
> Fix For: 2.0
>
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org