org.apache.maven.lifecycle.LifecycleExecutionException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • RE: jboss-maven-plugin
    via by Vidya Mahavadi,
  • RE: jboss-maven-plugin
    via by Vidya Mahavadi,
  • http « Web Service « Java Enterprise Q&A
    via by Unknown author,
  • Blame IDEA core itself doesn't work
    via by Unknown author,
  • Check for updates
    via by 458726,
  • Unable to connect through a proxy.
    via by 807596,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Mojo error occurred: Server returned HTTP respon se code: 401 for URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.sys tem:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C:\Vidya\WorkSpace\dealamend ments\target\dealamendments-1.0-SNAPSHOT.jar at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Mojo error occurred: Server returned HTTP res ponse code: 401 for URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss. system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C:\Vidya\WorkSpace\dealam endments\target\dealamendments-1.0-SNAPSHOT.jar at org.codehaus.mojo.jboss.AbstractDeployerMojo.doURL(AbstractDeployerMojo.java:101) at org.codehaus.mojo.jboss.DeployMojo.execute(DeployMojo.java:40) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) ... 16 more Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/j mx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy& argType=java.net.URL&arg0=file:C:\Vidya\WorkSpace\dealamendments\target\dealamendments-1.0-SNAPSHOT.jar at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149) at org.codehaus.mojo.jboss.AbstractDeployerMojo.doURL(AbstractDeployerMojo.java:96) ... 19 more

    Users with the same issue

    Matty
    10 times, last one,
    Unknown User
    1 times, last one,
    tyson925
    4 times, last one,
    rp
    1 times, last one,
    Unknown visitor2 times, last one,
    74 more bugmates