You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jamie McCrindle (JIRA)" <ji...@apache.org> on 2006/10/04 20:09:09 UTC
[jira] Created: (SM-674) jbi:installComponent (and others) fails
authentication against default SM container
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.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.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
ScriptInvoker.java:222)
... 19 more
Caused by: java.lang.SecurityException: Authentication failed
at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
enticator.java:83)
at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
ava:221)
at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
a:188)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Sour
ce)
at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.j
ava:2229)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:27
1)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
ry.java:248)
at org.apache.servicemix.jbi.management.task.JbiTask.getJMXConnector(Jbi
Task.java:79)
at org.apache.servicemix.jbi.management.task.JbiTask.connect(JbiTask.jav
a:87)
at org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.jav
a:267)
... 26 more
Caused by: javax.security.auth.login.FailedLoginException: User does not exist
at org.apache.servicemix.jbi.security.login.PropertiesLoginModule.login(
PropertiesLoginModule.java:115)
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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
86)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
80)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at org.apache.servicemix.jbi.security.auth.impl.JAASAuthenticationServic
e.authenticate(JAASAuthenticationService.java:67)
at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
enticator.java:81)
at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
ava:221)
at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
a:188)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:595)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49 seconds
[INFO] Finished at: Wed Oct 04 19:04:37 BST 2006
[INFO] Final Memory: 12M/21M
[INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SM-674) jbi:installComponent (and others) fails
authentication against default SM container
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-674?page=all ]
Guillaume Nodet updated SM-674:
-------------------------------
Fix Version/s: 3.0.1
> 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.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
> ScriptInvoker.java:222)
> ... 19 more
> Caused by: java.lang.SecurityException: Authentication failed
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:83)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
> RemoteCall.java:247)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
> 223)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Sour
> ce)
> at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.j
> ava:2229)
> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:27
> 1)
> at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
> ry.java:248)
> at org.apache.servicemix.jbi.management.task.JbiTask.getJMXConnector(Jbi
> Task.java:79)
> at org.apache.servicemix.jbi.management.task.JbiTask.connect(JbiTask.jav
> a:87)
> at org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.jav
> a:267)
> ... 26 more
> Caused by: javax.security.auth.login.FailedLoginException: User does not exist
> at org.apache.servicemix.jbi.security.login.PropertiesLoginModule.login(
> PropertiesLoginModule.java:115)
> 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
> 86)
> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
> 80)
> at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> at org.apache.servicemix.jbi.security.auth.impl.JAASAuthenticationServic
> e.authenticate(JAASAuthenticationService.java:67)
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:81)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 49 seconds
> [INFO] Finished at: Wed Oct 04 19:04:37 BST 2006
> [INFO] Final Memory: 12M/21M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (SM-674) jbi:installComponent (and others) fails
authentication against default SM container
Posted by "Philip Dodds (JIRA)" <ji...@apache.org>.
[ 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.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
> ScriptInvoker.java:222)
> ... 19 more
> Caused by: java.lang.SecurityException: Authentication failed
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:83)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
> RemoteCall.java:247)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
> 223)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Sour
> ce)
> at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.j
> ava:2229)
> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:27
> 1)
> at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
> ry.java:248)
> at org.apache.servicemix.jbi.management.task.JbiTask.getJMXConnector(Jbi
> Task.java:79)
> at org.apache.servicemix.jbi.management.task.JbiTask.connect(JbiTask.jav
> a:87)
> at org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.jav
> a:267)
> ... 26 more
> Caused by: javax.security.auth.login.FailedLoginException: User does not exist
> at org.apache.servicemix.jbi.security.login.PropertiesLoginModule.login(
> PropertiesLoginModule.java:115)
> 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
> 86)
> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
> 80)
> at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> at org.apache.servicemix.jbi.security.auth.impl.JAASAuthenticationServic
> e.authenticate(JAASAuthenticationService.java:67)
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:81)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 49 seconds
> [INFO] Finished at: Wed Oct 04 19:04:37 BST 2006
> [INFO] Final Memory: 12M/21M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (SM-674) jbi:installComponent (and others) fails
authentication against default SM container
Posted by "Philip Dodds (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-674?page=all ]
Philip Dodds reopened SM-674:
-----------------------------
Unable to set read-only parameters
> 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.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
> ScriptInvoker.java:222)
> ... 19 more
> Caused by: java.lang.SecurityException: Authentication failed
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:83)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
> RemoteCall.java:247)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
> 223)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Sour
> ce)
> at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.j
> ava:2229)
> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:27
> 1)
> at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
> ry.java:248)
> at org.apache.servicemix.jbi.management.task.JbiTask.getJMXConnector(Jbi
> Task.java:79)
> at org.apache.servicemix.jbi.management.task.JbiTask.connect(JbiTask.jav
> a:87)
> at org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.jav
> a:267)
> ... 26 more
> Caused by: javax.security.auth.login.FailedLoginException: User does not exist
> at org.apache.servicemix.jbi.security.login.PropertiesLoginModule.login(
> PropertiesLoginModule.java:115)
> 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
> 86)
> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
> 80)
> at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> at org.apache.servicemix.jbi.security.auth.impl.JAASAuthenticationServic
> e.authenticate(JAASAuthenticationService.java:67)
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:81)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 49 seconds
> [INFO] Finished at: Wed Oct 04 19:04:37 BST 2006
> [INFO] Final Memory: 12M/21M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (SM-674) jbi:installComponent (and others) fails
authentication against default SM container
Posted by "Philip Dodds (JIRA)" <ji...@apache.org>.
[ 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.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.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
> ScriptInvoker.java:222)
> ... 19 more
> Caused by: java.lang.SecurityException: Authentication failed
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:83)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
> RemoteCall.java:247)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
> 223)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Sour
> ce)
> at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.j
> ava:2229)
> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:27
> 1)
> at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
> ry.java:248)
> at org.apache.servicemix.jbi.management.task.JbiTask.getJMXConnector(Jbi
> Task.java:79)
> at org.apache.servicemix.jbi.management.task.JbiTask.connect(JbiTask.jav
> a:87)
> at org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.jav
> a:267)
> ... 26 more
> Caused by: javax.security.auth.login.FailedLoginException: User does not exist
> at org.apache.servicemix.jbi.security.login.PropertiesLoginModule.login(
> PropertiesLoginModule.java:115)
> 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
> 86)
> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
> 80)
> at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> at org.apache.servicemix.jbi.security.auth.impl.JAASAuthenticationServic
> e.authenticate(JAASAuthenticationService.java:67)
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:81)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 49 seconds
> [INFO] Finished at: Wed Oct 04 19:04:37 BST 2006
> [INFO] Final Memory: 12M/21M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SM-674) jbi:installComponent (and others) fails
authentication against default SM container
Posted by "Jamie McCrindle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SM-674?page=comments#action_37099 ]
Jamie McCrindle commented on SM-674:
------------------------------------
tried setting the username / password but they're configured as readonly in the jbi.mojo.xml (in fact, almost everything is configured as readonly). am i doing it wrong?
> 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.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
> ScriptInvoker.java:222)
> ... 19 more
> Caused by: java.lang.SecurityException: Authentication failed
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:83)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
> RemoteCall.java:247)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
> 223)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Sour
> ce)
> at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.j
> ava:2229)
> at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:27
> 1)
> at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
> ry.java:248)
> at org.apache.servicemix.jbi.management.task.JbiTask.getJMXConnector(Jbi
> Task.java:79)
> at org.apache.servicemix.jbi.management.task.JbiTask.connect(JbiTask.jav
> a:87)
> at org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.jav
> a:267)
> ... 26 more
> Caused by: javax.security.auth.login.FailedLoginException: User does not exist
> at org.apache.servicemix.jbi.security.login.PropertiesLoginModule.login(
> PropertiesLoginModule.java:115)
> 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
> 86)
> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
> 80)
> at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> at org.apache.servicemix.jbi.security.auth.impl.JAASAuthenticationServic
> e.authenticate(JAASAuthenticationService.java:67)
> at org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuth
> enticator.java:81)
> at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.j
> ava:221)
> at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.jav
> a:188)
> at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
> 60)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
> .java:701)
> at java.lang.Thread.run(Thread.java:595)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 49 seconds
> [INFO] Finished at: Wed Oct 04 19:04:37 BST 2006
> [INFO] Final Memory: 12M/21M
> [INFO] ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira