Hi,
I ran to a similar issue awhile back using the mvn2 projectDeploy task.
This occurred when I was using an older version of SMX mixed with a new
version used for building/deploying. Although it seems like you are using
the latest in terms of libs (3.1), make sure your actual SMX server is 3.1.
Also make sure that the maven2 plugin tooling uses the up-to-date SMX
version as well, e.g.:
******************************
<plugins>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<version>${servicemix.version}</version>
<extensions>true</extensions>
<configuration>
<useServiceUnitAnalyzer>false</useServiceUnitAnalyzer>
</configuration>
</plugin>
</plugins>
**********************************
where "servicemix.version" is your latest snapshot version...
HTH,
-los
glaforge wrote:
>
> ServiceMix is running at the moment, I don't think other configuration
> parameters changed in between.
>
> Here is the output I get in the console with the -e flag:
>
>
> C:\carrefour\infraws-esb\infraws-esb-sa>mvn jbi:projectDeploy -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'jbi'.
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Carrefour :: Infraws :: ESB :: SA
> [INFO] task-segment: [jbi:projectDeploy]
> [INFO]
> ----------------------------------------------------------------------------
> Downloading:
> http://www.ibiblio.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
> [WARNING] Unable to get resource from repository central
> (http://www.ibiblio.org/maven2)
> Downloading:
> http://servicemix.org/m2-repo/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
> [WARNING] Unable to get resource from repository servicemix-m2-repo
> (http://servicemix.org/m2-repo)
> Downloading:
> http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2/xml-security/xmlsec/1.3.0/x
> mlsec-1.3.0.pom
> [WARNING] Unable to get resource from repository activemq-tmp-repo
> (http://people.apache.org/~chirino/incubato
> r-activemq-4.0.2-RC3/maven2)
> Downloading:
> http://www.ibiblio.org/maven2/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
> [WARNING] Unable to get resource from repository central
> (http://www.ibiblio.org/maven2)
> Downloading:
> http://servicemix.org/m2-repo/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
> [WARNING] Unable to get resource from repository servicemix-m2-repo
> (http://servicemix.org/m2-repo)
> Downloading:
> http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2/wss4j/wss4j/1.5.0/wss4j-1.5
> .0.pom
> [WARNING] Unable to get resource from repository activemq-tmp-repo
> (http://people.apache.org/~chirino/incubato
> r-activemq-4.0.2-RC3/maven2)
> Downloading:
> http://www.ibiblio.org/maven2/tranql/tranql/1.3/tranql-1.3.pom
> [WARNING] Unable to get resource from repository central
> (http://www.ibiblio.org/maven2)
> Downloading:
> http://servicemix.org/m2-repo/tranql/tranql/1.3/tranql-1.3.pom
> [WARNING] Unable to get resource from repository servicemix-m2-repo
> (http://servicemix.org/m2-repo)
> Downloading:
> http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2/tranql/tranql/1.3/tranql-1.
> 3.pom
> [WARNING] Unable to get resource from repository activemq-tmp-repo
> (http://people.apache.org/~chirino/incubato
> r-activemq-4.0.2-RC3/maven2)
> [INFO] [jbi:projectDeploy]
> [INFO] ------------------ Deployment Analysis --------------------
> [INFO] Carrefour :: Infraws :: ESB :: SA has 5 child dependencies
> [INFO] - jbi-service-assembly : C:\Documents and Settings\Guillaume
> Laforge\.m2\repository\carrefour\infraws-
> esb-sa\1.0-SNAPSHOT\infraws-esb-sa-1.0-SNAPSHOT.zip
> [INFO] - jbi-component : C:\Documents and Settings\Guillaume
> Laforge\.m2\repository\org\apache\servicemix\ser
> vicemix-lwcontainer\3.1-incubating-SNAPSHOT\servicemix-lwcontainer-3.1-incubating-SNAPSHOT-installer.zip
> [INFO] - jbi-component : C:\Documents and Settings\Guillaume
> Laforge\.m2\repository\org\apache\servicemix\ser
> vicemix-bpe\3.1-incubating-SNAPSHOT\servicemix-bpe-3.1-incubating-SNAPSHOT-installer.zip
> [INFO] - jbi-component : C:\Documents and Settings\Guillaume
> Laforge\.m2\repository\org\apache\servicemix\ser
> vicemix-http\3.1-incubating-SNAPSHOT\servicemix-http-3.1-incubating-SNAPSHOT-installer.zip
> [INFO] - jbi-component : C:\Documents and Settings\Guillaume
> Laforge\.m2\repository\org\apache\servicemix\ser
> vicemix-eip\3.1-incubating-SNAPSHOT\servicemix-eip-3.1-incubating-SNAPSHOT-installer.zip
> [INFO] - jbi-shared-library : C:\Documents and Settings\Guillaume
> Laforge\.m2\repository\org\apache\servicemi
> x\servicemix-shared\3.1-incubating-SNAPSHOT\servicemix-shared-3.1-incubating-SNAPSHOT-installer.zip
> [INFO] -----------------------------------------------------------
> [INFO] infraws-esb-sa is not deployed
> [INFO] servicemix-lwcontainer is deployed
> [INFO] Stopping servicemix-lwcontainer
> [INFO] Undeploying C:\Documents and Settings\Guillaume
> Laforge\.m2\repository\org\apache\servicemix\servicemix
> -lwcontainer\3.1-incubating-SNAPSHOT\servicemix-lwcontainer-3.1-incubating-SNAPSHOT-installer.zip
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to deploy project, Error accessing ServiceMix administration
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>uninstallComponent</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>servicemix-lwcontainer</loc-message>
> </msg-loc-info>
> </task-status-msg>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> </jbi-task-result>
> </jbi-task>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to deploy
> project, Error accessing ServiceMix a
> dministration
> 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(DefaultLifecycleEx
> ecutor.java:306)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.ja
> va: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: Unable to
> deploy project, Error accessing ServiceMi
> x administration
> at
> org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployProject(JbiProjectDeployerMojo.
> java:146)
> at
> org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.execute(JbiProjectDeployerMojo.java:7
> 5)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>
> ... 16 more
> Caused by: Error accessing ServiceMix administration
> at
> org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.java:283)
> at
> org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.undeployDependency(JbiProjectDeployer
> Mojo.java:185)
> at
> org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployProject(JbiProjectDeployerMojo.
> java:122)
> ... 19 more
> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>uninstallComponent</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>servicemix-lwcontainer</loc-message>
> </msg-loc-info>
> </task-status-msg>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> </jbi-task-result>
> </jbi-task>
>
> at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:121)
> at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:103)
> at
> org.apache.servicemix.jbi.framework.AdminCommandsService.uninstallComponent(AdminCommandsService.ja
> va:107)
> 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.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
> at
> org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:316)
> at
> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
> at
> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815
> )
> at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> at
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
> at
> javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
> at
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
> at
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
> 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
> 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:460)
> at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
> at java.lang.Thread.run(Thread.java:595)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 46 seconds
> [INFO] Finished at: Mon Jan 08 15:41:34 CET 2007
> [INFO] Final Memory: 11M/23M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
> gnodet wrote:
>>
>> Hi Guillaume !
>>
>> You should run with the -e switch, which would give you
>> the whole stack trace.
>> Usual reasons are:
>> * servicemix not running
>> * jmx uri changed (rmi port, etc...)
>> * container name changed
>> * authentication failed
>>
>> All these parameters can be configured in the
>> jbi maven plugin <configuration/> section.
>> See
>> http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/AbstractDeployableMojo.java?revision=440854&view=markup
>>
>> On 1/8/07, glaforge <[EMAIL PROTECTED]> wrote:
>>>
>>> Hello,
>>>
>>> I inherited from a project using ServiceMix.
>>> But I encounter some problems with deploying the app to ServiceMix.
>>> I'm getting the following messages, but I can't seem to find what's
>>> wrong.
>>> ServiceMix is running. I think my setup is okay wrt Maven 2 and co.
>>> Any help is appreciated.
>>>
>>> Guillaume
>>>
>>> >mvn jbi:projectDeploy
>>>
>>>
>>> [INFO] Scanning for projects...
>>> [INFO] Searching repository for plugin with prefix: 'jbi'.
>>> [INFO]
>>> ----------------------------------------------------------------------------
>>> [INFO] Building Carrefour :: Infraws :: ESB :: SA
>>> [INFO] task-segment: [jbi:projectDeploy]
>>> [INFO]
>>> ----------------------------------------------------------------------------
>>> Downloading:
>>> http://www.ibiblio.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
>>> [WARNING] Unable to get resource from repository central
>>> (http://www.ibiblio.org/maven2)
>>> Downloading:
>>> http://servicemix.org/m2-repo/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
>>> [WARNING] Unable to get resource from repository servicemix-m2-repo
>>> (http://servicemix.org/m2-repo)
>>> Downloading:
>>> http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2/xml-security/xmlsec/1.3.0/x
>>> mlsec-1.3.0.pom
>>> [WARNING] Unable to get resource from repository activemq-tmp-repo
>>> (http://people.apache.org/~chirino/incubato
>>> r-activemq-4.0.2-RC3/maven2)
>>> Downloading:
>>> http://www.ibiblio.org/maven2/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
>>> [WARNING] Unable to get resource from repository central
>>> (http://www.ibiblio.org/maven2)
>>> Downloading:
>>> http://servicemix.org/m2-repo/wss4j/wss4j/1.5.0/wss4j-1.5.0.pom
>>> [WARNING] Unable to get resource from repository servicemix-m2-repo
>>> (http://servicemix.org/m2-repo)
>>> Downloading:
>>> http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2/wss4j/wss4j/1.5.0/wss4j-1.5
>>> .0.pom
>>> [WARNING] Unable to get resource from repository activemq-tmp-repo
>>> (http://people.apache.org/~chirino/incubato
>>> r-activemq-4.0.2-RC3/maven2)
>>> Downloading:
>>> http://www.ibiblio.org/maven2/tranql/tranql/1.3/tranql-1.3.pom
>>> [WARNING] Unable to get resource from repository central
>>> (http://www.ibiblio.org/maven2)
>>> Downloading:
>>> http://servicemix.org/m2-repo/tranql/tranql/1.3/tranql-1.3.pom
>>> [WARNING] Unable to get resource from repository servicemix-m2-repo
>>> (http://servicemix.org/m2-repo)
>>> Downloading:
>>> http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC3/maven2/tranql/tranql/1.3/tranql-1.
>>> 3.pom
>>> [WARNING] Unable to get resource from repository activemq-tmp-repo
>>> (http://people.apache.org/~chirino/incubato
>>> r-activemq-4.0.2-RC3/maven2)
>>> [INFO] [jbi:projectDeploy]
>>> [INFO] ------------------ Deployment Analysis --------------------
>>> [INFO] Carrefour :: Infraws :: ESB :: SA has 5 child dependencies
>>> [INFO] - jbi-service-assembly : C:\Documents and Settings\Guillaume
>>> Laforge\.m2\repository\carrefour\infraws-
>>> esb-sa\1.0-SNAPSHOT\infraws-esb-sa-1.0-SNAPSHOT.zip
>>> [INFO] - jbi-component : C:\Documents and Settings\Guillaume
>>> Laforge\.m2\repository\org\apache\servicemix\ser
>>> vicemix-lwcontainer\3.1-incubating-SNAPSHOT\servicemix-lwcontainer-3.1-incubating-SNAPSHOT-installer.zip
>>> [INFO] - jbi-component : C:\Documents and Settings\Guillaume
>>> Laforge\.m2\repository\org\apache\servicemix\ser
>>> vicemix-bpe\3.1-incubating-SNAPSHOT\servicemix-bpe-3.1-incubating-SNAPSHOT-installer.zip
>>> [INFO] - jbi-component : C:\Documents and Settings\Guillaume
>>> Laforge\.m2\repository\org\apache\servicemix\ser
>>> vicemix-http\3.1-incubating-SNAPSHOT\servicemix-http-3.1-incubating-SNAPSHOT-installer.zip
>>> [INFO] - jbi-component : C:\Documents and Settings\Guillaume
>>> Laforge\.m2\repository\org\apache\servicemix\ser
>>> vicemix-eip\3.1-incubating-SNAPSHOT\servicemix-eip-3.1-incubating-SNAPSHOT-installer.zip
>>> [INFO] - jbi-shared-library : C:\Documents and Settings\Guillaume
>>> Laforge\.m2\repository\org\apache\servicemi
>>> x\servicemix-shared\3.1-incubating-SNAPSHOT\servicemix-shared-3.1-incubating-SNAPSHOT-installer.zip
>>> [INFO] -----------------------------------------------------------
>>> [INFO] infraws-esb-sa is not deployed
>>> [INFO] servicemix-lwcontainer is deployed
>>> [INFO] Stopping servicemix-lwcontainer
>>> [INFO] Undeploying C:\Documents and Settings\Guillaume
>>> Laforge\.m2\repository\org\apache\servicemix\servicemix
>>> -lwcontainer\3.1-incubating-SNAPSHOT\servicemix-lwcontainer-3.1-incubating-SNAPSHOT-installer.zip
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Unable to deploy project, Error accessing ServiceMix
>>> administration
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>>> version="1.0">
>>> <jbi-task-result>
>>> <frmwk-task-result>
>>> <frmwk-task-result-details>
>>> <task-result-details>
>>> <task-id>uninstallComponent</task-id>
>>> <task-result>FAILED</task-result>
>>> <message-type>ERROR</message-type>
>>> <task-status-msg>
>>> <msg-loc-info>
>>> <loc-token/>
>>> <loc-message>servicemix-lwcontainer</loc-message>
>>> </msg-loc-info>
>>> </task-status-msg>
>>> </task-result-details>
>>> </frmwk-task-result-details>
>>> </frmwk-task-result>
>>> </jbi-task-result>
>>> </jbi-task>
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 26 seconds
>>> [INFO] Finished at: Mon Jan 08 15:14:23 CET 2007
>>> [INFO] Final Memory: 12M/24M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Deployment-failure-tf2939594s12049.html#a8218700
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Deployment-failure-tf2939594s12049.html#a8223008
Sent from the ServiceMix - User mailing list archive at Nabble.com.