Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 284C7C2CC for ; Thu, 19 Jul 2012 09:27:39 +0000 (UTC) Received: (qmail 64054 invoked by uid 500); 19 Jul 2012 09:27:37 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 63737 invoked by uid 500); 19 Jul 2012 09:27:37 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 63674 invoked by uid 99); 19 Jul 2012 09:27:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2012 09:27:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id E7991141BF8 for ; Thu, 19 Jul 2012 09:27:34 +0000 (UTC) Date: Thu, 19 Jul 2012 09:27:34 +0000 (UTC) From: "Jiri Peinlich (JIRA)" To: dev@tomcat.apache.org Message-ID: <936418710.74999.1342690054955.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (MTOMCAT-168) Nullpointer exception in run mojo MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jiri Peinlich created MTOMCAT-168: ------------------------------------- Summary: Nullpointer exception in run mojo Key: MTOMCAT-168 URL: https://issues.apache.org/jira/browse/MTOMCAT-168 Project: Apache Tomcat Maven Plugin Issue Type: Bug Components: tomcat7 Affects Versions: 2.0-beta-1 Environment: windows mingw Reporter: Jiri Peinlich Assignee: Olivier Lamy (*$^=C2=A8%`=C2=A3) when using enpty aditionalClasspathDir tag in the the plugin settings and r= unning the mvn tomcat7:run mojo I got the following nullpointer exception. = I am currently learning how the whole plugin works. I got the initial plug= in configuration from here: http://tomcat.apache.org/maven-plugin-2/run-mojo-features.html I removed parts that are not applicable for my project but i kept the empty= additionalClasspathDir as in the example: When removing this section i did not get the exception anymore Null Pointer exception: [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin= :2.0- beta-1:run (default-cli) on project ITA: Execution default-cli of goal org.= apach e.tomcat.maven:tomcat7-maven-plugin:2.0-beta-1:run failed. NullPointerExcep= tion -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute g= oal o rg.apache.tomcat.maven:tomcat7-maven-plugin:2.0-beta-1:run (default-cli) on= proj ect ITA: Execution default-cli of goal org.apache.tomcat.maven:tomcat7-mave= n-plu gin:2.0-beta-1:run failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor .java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor .java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor .java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build= Proje ct(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build= Proje ct(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThrea= dedBu ild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lif= ecycl eStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor= Impl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= Acces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced= (Laun cher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launche= r.jav a:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCo= de(La uncher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.= java: 352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution defa= ult-c li of goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-beta-1:run fail= ed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(De= fault BuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe= cutor .java:209) ... 19 more Caused by: java.lang.NullPointerException at org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.createWebappL= oader (RunMojo.java:268) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.creat= eCont ext(AbstractRunMojo.java:415) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.start= Conta iner(AbstractRunMojo.java:719) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execu= te(Ab stractRunMojo.java:353) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(De= fault BuildPluginManager.java:101) ... 20 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, pleas= e rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExe= cutio nException -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a 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