Up!

-----Message d'origine-----
De : Bompart Cedric 
Envoyé : 12 February 2007 17:25
À : [email protected]
Objet : deployment?

Hello,

Sorry to ask a so trivial question but how do you deploy a SA project
during the development cycle with SM 3.1?

So far I've using "mvn jbi:projectDeploy" but only for the first time,
otherwise for subsequence deployment I need to stop SM, remove the data
folder and restart SM... a little bit boring... :-)

I've tried "mvn -DforceUpdate=true jbi:projectDeploy", but I'm getting
this:

[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-lwcontainer</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 'test-lw-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-eip</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 'test-eip-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>


Is there a more simple way to deploy/undeploy a project? Like remove a
file, copy a file, etc.

I've tried to copy the SA jar/zip to the deploy directory but it
complained that I need to deploy the servicemix-eip, servicemix-script
and servicemix-lwcontainer. So I've copied them from the components
folder, but same thing...

My SA project contains a LW SU (using the provided Maven archtype), EIP
SU (using the provided Maven archtype) and Script SU (based on the EIP
one because no Maven archetype).


I'm sure it's easy but... :-)

Regards,
Cedric.



Reply via email to