How do you undeploy?  Is removing files from /deploy or /install good
enough?

Thanks,
William

-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 14, 2007 5:37 AM
To: [email protected]
Subject: Re: deployment?

There are mainly two ways to deploy something on ServiceMix:
  * use the hot deployer by copying the file in the /deploy or /install
    folder
  * use JMX, directly, via ant tasks, or maven.

Wrt to the jbi:projectDeploy goal, do you have a reproducible test case
where it fails ?

For your problem wrt to the hot deployer, make sure you have copied the
servicemix-shared SL to the install folder.  This is a dependency of all
servicemix components.

On 2/12/07, Bompart Cedric <[EMAIL PROTECTED]> wrote:
> 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.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/

Reply via email to