You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by karuto <pi...@googlemail.com> on 2014/01/30 16:27:30 UTC

Error with tomee:stop

Hi everyone,

my maven tomee 1.6.0 become a nullpointer exception if i use tomee:stop.
tomee 1.5.2 works fine....

[ERROR] Failed to execute goal
org.apache.openejb.maven:tomee-maven-plugin:1.6.0:stop (default-cli) on
project project-application: Execution default-cli of goal
org.apache.openejb.maven:tomee-maven-p
lugin:1.6.0:stop failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.openejb.maven:tomee-maven-plugin:1.6.0:stop (default-cli) on
project project-application: Execution default-cl
i of goal org.apache.openejb.maven:tomee-maven-plugin:1.6.0:stop failed.
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        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
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
default-cli of goal org.apache.openejb.maven:tomee-maven-plugin:1.6.0:stop
failed.
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
Caused by: java.lang.NullPointerException
        at
org.apache.openejb.maven.plugin.AbstractTomEEMojo.getAdditionalClasspath(AbstractTomEEMojo.java:292)
        at
org.apache.openejb.maven.plugin.AbstractTomEEMojo.run(AbstractTomEEMojo.java:693)
        at
org.apache.openejb.maven.plugin.StopTomEEMojo.execute(StopTomEEMojo.java:40)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
        ... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException



--
View this message in context: http://openejb.979440.n4.nabble.com/Error-with-tomee-stop-tp4667360.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Error with tomee:stop

Posted by karuto <pi...@googlemail.com>.
Thanks, works fine.



--
View this message in context: http://openejb.979440.n4.nabble.com/Error-with-tomee-stop-tp4667360p4667402.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Error with tomee:stop

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

I guess it is fixed on trunk (1.6.1-SNAPSHOT).

You can workaround it declaring <classpaths></classpaths> in plugin
configuration
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-01-30 karuto <pi...@googlemail.com>:
> Hi everyone,
>
> my maven tomee 1.6.0 become a nullpointer exception if i use tomee:stop.
> tomee 1.5.2 works fine....
>
> [ERROR] Failed to execute goal
> org.apache.openejb.maven:tomee-maven-plugin:1.6.0:stop (default-cli) on
> project project-application: Execution default-cli of goal
> org.apache.openejb.maven:tomee-maven-p
> lugin:1.6.0:stop failed. NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.openejb.maven:tomee-maven-plugin:1.6.0:stop (default-cli) on
> project project-application: Execution default-cl
> i of goal org.apache.openejb.maven:tomee-maven-plugin:1.6.0:stop failed.
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>         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
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-cli of goal org.apache.openejb.maven:tomee-maven-plugin:1.6.0:stop
> failed.
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>         ... 19 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.openejb.maven.plugin.AbstractTomEEMojo.getAdditionalClasspath(AbstractTomEEMojo.java:292)
>         at
> org.apache.openejb.maven.plugin.AbstractTomEEMojo.run(AbstractTomEEMojo.java:693)
>         at
> org.apache.openejb.maven.plugin.StopTomEEMojo.execute(StopTomEEMojo.java:40)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
>         ... 20 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/Error-with-tomee-stop-tp4667360.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.