[jira] Resolved: (SM-674) jbi:installComponent (and others) fails authentication against default SM container
[ https://issues.apache.org/activemq/browse/SM-674?page=all ] Philip Dodds resolved SM-674. - Resolution: Fixed Applied change to 3.0 branch and trunk to change parameters to read-write. > jbi:installComponent (and others) fails authentication against default SM > container > --- > > Key: SM-674 > URL: https://issues.apache.org/activemq/browse/SM-674 > Project: ServiceMix > Issue Type: Bug > Components: tooling >Affects Versions: 3.0 > Environment: Java 1.5, Windows XP SP2 >Reporter: Jamie McCrindle > Fix For: 3.0.1, 3.1 > > > When running the jbi:installComponent maven task to install a component into > a running SM 3.0 container, it fails with an Authentication failed "User not > found" message. Debug from maven as follows: > [DEBUG] Configuring mojo > 'org.apache.servicemix.tooling:jbi-maven-plugin:3.0-inc > ubating:installComponent' --> > [DEBUG] -- end configuration -- > [INFO] [jbi:installComponent] > installComponent: > [echo] Installing > C:\dev\component-mvn\component-task-jbi\target/component- > task-jbi-1.0-beta2-SNAPSHOT-installer.zip to > service:jmx:rmi:///jndi/rmi://local > host:1099/jmxrmi > [installComponent] Error accessing ServiceMix administration: Authentication > fai > led > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Failed to execute: Executing Ant script: /jbi.build.xml > [installComponent > ]: Failed to execute. > User does not exist > [INFO] > > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute: > Execu > ting Ant script: /jbi.build.xml [installComponent]: Failed to execute. > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:559) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone > Goal(DefaultLifecycleExecutor.java:488) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > ltLifecycleExecutor.java:458) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > dleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > ts(DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > fecycleExecutor.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(DelegatingMethodAcces > sorImpl.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: Failed to execute: > Ex > ecuting Ant script: /jbi.build.xml [installComponent]: Failed to execute. > at > org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav > a:37) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > nManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:534) > ... 16 more > Caused by: > org.codehaus.plexus.component.factory.ant.AntComponentExecutionExcept > ion: Executing Ant script: /jbi.build.xml [installComponent]: Failed to > execute. > at > org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant > ScriptInvoker.java:227) > at > org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav > a:33) > ... 18 more > Caused by: > C:\DOCUME~1\JamesM\LOCALS~1\Temp\plexus-ant-component30723.build.xml: > 30: Error accessing ServiceMix administration > at > org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.jav > a:272) > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.tools.ant.Target.execute(Target.java:341) > at org.a
[jira] Resolved: (SM-674) jbi:installComponent (and others) fails authentication against default SM container
[ https://issues.apache.org/activemq/browse/SM-674?page=all ] Philip Dodds resolved SM-674. - Resolution: Fixed The problem was the lack of defaulting in the ANT tasks , this has been switched so that default username, passwords are smx/smx. Note that for 3.0 you can simply add username,password as configuration parameters in the jbi-maven-plugin to get the logins to work. > jbi:installComponent (and others) fails authentication against default SM > container > --- > > Key: SM-674 > URL: https://issues.apache.org/activemq/browse/SM-674 > Project: ServiceMix > Issue Type: Bug > Components: tooling >Affects Versions: 3.0 > Environment: Java 1.5, Windows XP SP2 >Reporter: Jamie McCrindle > Fix For: 3.0.1, 3.1 > > > When running the jbi:installComponent maven task to install a component into > a running SM 3.0 container, it fails with an Authentication failed "User not > found" message. Debug from maven as follows: > [DEBUG] Configuring mojo > 'org.apache.servicemix.tooling:jbi-maven-plugin:3.0-inc > ubating:installComponent' --> > [DEBUG] -- end configuration -- > [INFO] [jbi:installComponent] > installComponent: > [echo] Installing > C:\dev\component-mvn\component-task-jbi\target/component- > task-jbi-1.0-beta2-SNAPSHOT-installer.zip to > service:jmx:rmi:///jndi/rmi://local > host:1099/jmxrmi > [installComponent] Error accessing ServiceMix administration: Authentication > fai > led > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Failed to execute: Executing Ant script: /jbi.build.xml > [installComponent > ]: Failed to execute. > User does not exist > [INFO] > > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute: > Execu > ting Ant script: /jbi.build.xml [installComponent]: Failed to execute. > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:559) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone > Goal(DefaultLifecycleExecutor.java:488) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > ltLifecycleExecutor.java:458) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > dleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > ts(DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > fecycleExecutor.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(DelegatingMethodAcces > sorImpl.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: Failed to execute: > Ex > ecuting Ant script: /jbi.build.xml [installComponent]: Failed to execute. > at > org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav > a:37) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > nManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:534) > ... 16 more > Caused by: > org.codehaus.plexus.component.factory.ant.AntComponentExecutionExcept > ion: Executing Ant script: /jbi.build.xml [installComponent]: Failed to > execute. > at > org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant > ScriptInvoker.java:227) > at > org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav > a:33) > ... 18 more > Caused by: > C:\DOCUME~1\JamesM\LOCALS~1\Temp\plexus-ant-component30723.build.xml: > 30: Error accessing ServiceMix administration > at > org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.jav > a:272) > at > org.apache.tools.ant.Un