Barry,

If you stop SMX can you delete the data folder in the SMX installation?

I have previously had a problem where the Windows Content Index Service
(cisvc.exe) was processing file in the data folder and the deletion
operation failed. It interferred with the undeployment and redeployment of
SA to SMX.

I stopped SMX and tried to delete the data folder and found that files were
still in use. Using the Process Explorer (after of the Sysinternals toolkit)
I found that the indexing service had a file open within the folder. Killing
the process fixed the issue.

Not sure if this will help, but it's worth checking.

Stuart.

-----Original Message-----
From: Barrie Treloar [mailto:[email protected]] 
Sent: 05 October 2009 23:55
To: [email protected]
Subject: Re: Deployment errors with ServiceMix 3.3.1 on Windows XP sp2

Repost after 2 weeks, hoping someone can provide some enlightenment.
Thanks.

On Wed, Sep 23, 2009 at 5:03 PM, Barrie Treloar <[email protected]> wrote:
> Firstly apologies for the length of this post, Google hasn't been 
> helpful when trying to resolve this.
> I'm hoping I've only included the relevant bits of the error output 
> that are useful.
>
> I am getting deployment errors with ServiceMix 3.3.1 on Windows XP sp2.
>
> I have three scenarios:
> (fails)  Scenario 1: ServiceMix freshly started, SA is deployed and 
> started, deploy new version of SA
> (pass) Scenario 2: After Scenario 1, re-run deployment
> (fails)  Scenario 3: Rebuilding SA and redploying.
>
> I get errors at Scenario 1 and 3 where I dont expect any errors, 
> especially since Scenario 2 just re-runs the deployment step straight 
> after the failure from 1.
>
> Details of what I am doing and the output follows.
> Suggestions, pointers, hints all gratefully accepted.
>
> Thanks.
> Barrie
>
> ===
> Scenario 1: ServiceMix freshly started, SA is deployed and started, 
> deploy new version of SA
>
> Trying to install new version os SA via mvn jbi:projectDeploy 
> -DforceUpdate=true
>
> Gives
> [ERROR] BUILD ERROR
> [INFO] 
> ----------------------------------------------------------------------
> -- [INFO] Unable to deploy project, Error accessing ServiceMix 
> administration
>
> org/apache/servicemix/common/ManagementSupport$Message
>
> With ServiceMix console output:
> WARN  - InstallationService            - Failed to delete old 
> installation directory:
> D:\apache-servicemix\apache-servicemix-3.3.1\data\smx\components\servi
> cemix-jms\version_17 INFO  - ComponentMBeanImpl             - Starting 
> component: servicemix-jms WARN  - InstallationService            - 
> Failed to delete old installation directory:
> D:\apache-servicemix\apache-servicemix-3.3.1\data\smx\components\servi
> cemix-file\version_11 INFO  - ComponentMBeanImpl             - 
> Starting component: servicemix-file WARN  - InstallationService          
 
> - Failed to delete old installation directory:
> D:\apache-servicemix\apache-servicemix-3.3.1\data\smx\components\servi
> cemix-camel\version_16 INFO  - ComponentMBeanImpl             - 
> Starting component: servicemix-camel INFO  - ServiceAssemblyLifeCycle    
  
> - Shutting down service assembly: mcp-sa INFO  - 
> ServiceAssemblyLifeCycle       - Stopping service assembly: mcp-sa 
> INFO  - ServiceUnitLifeCycle           - Stopping service unit: 
> mcp-eip-su INFO  - ServiceUnitLifeCycle           - Stopping service 
> unit: mcp-file-su INFO  - ServiceUnitLifeCycle           - Stopping 
> service unit: mcp-jms-su INFO  - ServiceUnitLifeCycle           - 
> Shutting down service unit: mcp-eip-su INFO  - ServiceUnitLifeCycle      
    
> - Shutting down service unit: mcp-file-su INFO  - ServiceUnitLifeCycle    
      
> - Shutting down service unit: mcp-jms-su INFO  - 
> ServiceAssemblyLifeCycle       - Shutting down service assembly: 
> mcp-sa INFO  - ServiceAssemblyLifeCycle       - Stopping service 
> assembly: mcp-sa
>
> But no further information as to why this failed.
>
> ===
> Scenario 2: After Scenario 1, re-run deployment
>
> If I re-run the same command
> mvn jbi:projectDeploy -DforceUpdate=true
>
> Then the deployment is successful.
>
> ===
> Scenario 3: Rebuilding SA and redploying.
>
> Same mvn command:
> mvn jbi:projectDeploy -DforceUpdate=true
>
> Gives error:
> [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>shutDown</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-camel</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>shutDown</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-eip-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> <component-task-result 
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-file</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>shutDown</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-file-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> </jbi-task-result> </jbi-task>
>
> And the console gives:
> INFO  - ServiceAssemblyLifeCycle       - Stopping service assembly: 
> mcp-sa INFO  - ServiceUnitLifeCycle           - Stopping service unit: 
> mcp-eip-su INFO  - ServiceUnitLifeCycle           - Stopping service 
> unit: mcp-file-su INFO  - ServiceUnitLifeCycle           - Stopping 
> service unit: mcp-jms-su INFO  - ServiceAssemblyLifeCycle       - 
> Shutting down service assembly: mcp-sa INFO  - ServiceUnitLifeCycle      
    
> - Shutting down service unit: mcp-eip-su INFO  - ServiceUnitLifeCycle    
      
> - Shutting down service unit: mcp-file-su INFO  - ServiceUnitLifeCycle    
      
> - Shutting down service unit: mcp-jms-su INFO  - JBIContainer            
      
> - Deactivating component servicemix-jms WARN  - EnvironmentContext        
    
> - Failed to remove directory structure for component [version]: 
> servicemix-jms [s ervicemix-jms] WARN  - InstallationService            
> - Failed to delete old installation directory: 
> D:\apache-servicemix\apache-servic
> emix-3.3.1\data\smx\components\servicemix-jms\version_17
> INFO  - ComponentMBeanImpl             - Starting component: 
> servicemix-jms INFO  - ComponentMBeanImpl             - Initializing 
> component: servicemix-jms INFO  - ServiceAssemblyLifeCycle       - 
> Starting service assembly: mcp-sa INFO  - ServiceUnitLifeCycle           
> - Initializing service unit: mcp-eip-su INFO  - ServiceUnitLifeCycle      
    
> - Initializing service unit: mcp-file-su INFO  - ServiceUnitLifeCycle    
      
> - Initializing service unit: mcp-jms-su INFO  - JBIContainer              
    
> - Deactivating component servicemix-file WARN  - EnvironmentContext      
      
> - Failed to remove directory structure for component [version]: 
> servicemix-file [ servicemix-file] WARN  - InstallationService            
> - Failed to delete old installation directory: 
> D:\apache-servicemix\apache-servic
> emix-3.3.1\data\smx\components\servicemix-file\version_11
> INFO  - ComponentMBeanImpl             - Starting component: 
> servicemix-file INFO  - ComponentMBeanImpl             - Initializing 
> component: servicemix-file INFO  - JBIContainer                   - 
> Deactivating component servicemix-camel WARN  - EnvironmentContext        
    
> - Failed to remove directory structure for component [version]: 
> servicemix-camel [servicemix-camel] WARN  - InstallationService          
 
> - Failed to delete old installation directory: 
> D:\apache-servicemix\apache-servic
> emix-3.3.1\data\smx\components\servicemix-camel\version_16
> INFO  - ComponentMBeanImpl             - Starting component: 
> servicemix-camel INFO  - ComponentMBeanImpl             - Initializing
component:
> servicemix-camel
> INFO  - ServiceUnitLifeCycle           - Starting service unit: 
> mcp-eip-su INFO  - ServiceUnitLifeCycle           - Starting service 
> unit: mcp-file-su INFO  - ServiceUnitLifeCycle           - Starting 
> service unit: mcp-jms-su ERROR - Registry                       - 
> Error trying to restore service assembly state
> 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>start</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-camel</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>start</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-eip-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> <component-task-result 
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-file</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>start</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-file-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> </jbi-task-result> </jbi-task>
>
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:125)
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:111)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Ser
> viceAssemblyLifeCycle.java:168)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.restore(S
> erviceAssemblyLifeCycle.java:364)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.restore(S
> erviceAssemblyLifeCycle.java:353)
>        at 
> org.apache.servicemix.jbi.framework.Registry.startPendingAssemblies(Re
> gistry.java:864)
>        at 
> org.apache.servicemix.jbi.framework.Registry$1.run(Registry.java:840)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
> tor.java:650)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:675)
>        at java.lang.Thread.run(Thread.java:595)
> INFO  - ServiceAssemblyLifeCycle       - Starting service assembly: 
> mcp-sa INFO  - ServiceUnitLifeCycle           - Starting service unit: 
> mcp-eip-su INFO  - ServiceUnitLifeCycle           - Starting service 
> unit: mcp-file-su ERROR - Registry                       - Error 
> trying to restore service assembly state
> 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>start</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-camel</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>start</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-eip-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> <component-task-result 
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-file</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>start</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-file-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> </jbi-task-result> </jbi-task>
>
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:125)
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:111)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Ser
> viceAssemblyLifeCycle.java:168)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.restore(S
> erviceAssemblyLifeCycle.java:364)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.restore(S
> erviceAssemblyLifeCycle.java:353)
>        at 
> org.apache.servicemix.jbi.framework.Registry.startPendingAssemblies(Re
> gistry.java:864)
>        at 
> org.apache.servicemix.jbi.framework.Registry$1.run(Registry.java:840)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
> tor.java:650)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:675)
>        at java.lang.Thread.run(Thread.java:595)
> INFO  - ServiceAssemblyLifeCycle       - Starting service assembly: 
> mcp-sa INFO  - ServiceUnitLifeCycle           - Starting service unit: 
> mcp-eip-su INFO  - ServiceUnitLifeCycle           - Starting service 
> unit: mcp-file-su ERROR - Registry                       - Error 
> trying to restore service assembly state
> 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>start</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-camel</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>start</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-eip-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> <component-task-result 
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-file</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>start</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-file-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> </jbi-task-result> </jbi-task>
>
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:125)
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:111)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Ser
> viceAssemblyLifeCycle.java:168)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.restore(S
> erviceAssemblyLifeCycle.java:364)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.restore(S
> erviceAssemblyLifeCycle.java:353)
>        at 
> org.apache.servicemix.jbi.framework.Registry.startPendingAssemblies(Re
> gistry.java:864)
>        at 
> org.apache.servicemix.jbi.framework.Registry$1.run(Registry.java:840)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
> tor.java:650)
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:675)
>        at java.lang.Thread.run(Thread.java:595)
> INFO  - ServiceAssemblyLifeCycle       - Shutting down service 
> assembly: mcp-sa INFO  - ServiceAssemblyLifeCycle       - Stopping 
> service assembly: mcp-sa INFO  - ServiceUnitLifeCycle           - 
> Stopping service unit: mcp-jms-su INFO  - ServiceUnitLifeCycle           
> - Shutting down service unit: mcp-eip-su INFO  - ServiceUnitLifeCycle    
      
> - Shutting down service unit: mcp-file-su INFO  - ServiceUnitLifeCycle    
      
> - Shutting down service unit: mcp-jms-su INFO  - DeploymentService        
     
> - Error in shutDown
> 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>shutDown</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-camel</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>shutDown</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-eip-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> <component-task-result 
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-file</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>shutDown</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-file-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> </jbi-task-result> </jbi-task>
>
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:125)
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:111)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.shutDown(
> ServiceAssemblyLifeCycle.java:260)
>        at 
> org.apache.servicemix.jbi.framework.DeploymentService.shutDown(Deploym
> entService.java:426)
>        at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServic
> eAssembly(AutoDeploymentService.java:32
> 8)
>        at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchiv
> e(AutoDeploymentService.java:255)
>        at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateExtern
> alArchive(AutoDeploymentService.java:20
> 5)
>        at 
> org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive
> (JBIContainer.java:494)
>        at 
> org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive
> (JBIContainer.java:504)
>        at 
> org.apache.servicemix.jbi.framework.AdminCommandsService.deployService
> Assembly(AdminCommandsService.java:209)
>
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.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(BaseStan
> dardMBean.java:323)
>        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(DefaultMB
> eanServerInterceptor.java:815)
>        at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectio
> nImpl.java:1410)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnection
> Impl.java:81)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(
> RMIConnectionImpl.java:1247)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RM
> IConnectionImpl.java:1350)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl
> .java:784)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.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:46
> 6)
>        at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.
> java:707)
>        at java.lang.Thread.run(Thread.java:595)
> ERROR - AutoDeploymentService          - Failed to update Service
> Assembly: mcp-sa
> 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>shutDown</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-camel</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>shutDown</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-eip-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> <component-task-result 
> xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
>        <component-name>servicemix-file</component-name>
>        <component-task-result-details>
>                <task-result-details>
>                        <task-id>shutDown</task-id>
>                        <task-result>FAILED</task-result>
>                        <message-type>ERROR</message-type>
>                        <task-status-msg> <msg-loc-info> <loc-token/> 
> <loc-message>Service Unit 'mcp-file-su' is not deployed</loc-message> 
> </msg-loc-info> </task-status-msg>
>                </task-result-details>
>        </component-task-result-details> </component-task-result> 
> </jbi-task-result> </jbi-task>
>
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:125)
>        at 
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(Manageme
> ntSupport.java:111)
>        at 
> org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.shutDown(
> ServiceAssemblyLifeCycle.java:260)
>        at 
> org.apache.servicemix.jbi.framework.DeploymentService.shutDown(Deploym
> entService.java:426)
>        at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServic
> eAssembly(AutoDeploymentService.java:32
> 8)
>        at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchiv
> e(AutoDeploymentService.java:255)
>        at 
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateExtern
> alArchive(AutoDeploymentService.java:20
> 5)
>        at 
> org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive
> (JBIContainer.java:494)
>        at 
> org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive
> (JBIContainer.java:504)
>        at 
> org.apache.servicemix.jbi.framework.AdminCommandsService.deployService
> Assembly(AdminCommandsService.java:209)
>
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.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(BaseStan
> dardMBean.java:323)
>        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(DefaultMB
> eanServerInterceptor.java:815)
>        at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectio
> nImpl.java:1410)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnection
> Impl.java:81)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(
> RMIConnectionImpl.java:1247)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RM
> IConnectionImpl.java:1350)
>        at 
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl
> .java:784)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.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:46
> 6)
>        at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.
> java:707)
>        at java.lang.Thread.run(Thread.java:595)
>
>
> At this point I have to restart ServiceMix. Which takes me back 
> through the Scenario 1, then Scenario 2 cycle.
>

Reply via email to