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

Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2891

  • via maven-users by Vidya Mahavadi, 9 months ago
    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
  • via maven-users by Vidya Mahavadi, 9 months ago
    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
  • /content/repositories/releases): Faile d to transfer file: http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases/Test/Test/0.0.1/Test-0.0.1.jar. Return code is: 401
  • Stack trace

    • 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

    Write tip

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

    Users with the same issue

    Once, 1 week ago
    10 times, 1 month ago
    Once, 1 month ago
    4 times, 6 months ago
    Once, 6 months ago
    76 more bugmates