I answer myself

In a Windows environment, and using a fresh installation of serviceMix
3.2.1, there's no problems.

So, maybe it's a conflict with some libraries versions.


Regards



2008/5/7 crisTian <[EMAIL PROTECTED]>:

> Hi all
>
> I'm trying to follow the Camel Tutorial published at servicemix site, and
> I having some problems.
>
> I'm using ServiceMix 3.2.1
>
> The camel-context.xml is:
>
> ...
> <camelContext id="camel" xmlns="
> http://activemq.apache.org/camel/schema/spring";>
>     <package>org.apache.servicemix.tutorial.camel</package>
>   </camelContext>
> ...
>
> And the Router impl is:
>
> public void configure() {
> ...
> from("timer://tutorial?fixedRate=true&period=10000")
>             .setBody(constant("Hello world!"))
>             .to("log:tutorial");
> ..
> }
>
> I couldn't deploy the SA because of errors showed below:
>
> StackTrace:
>
> 09:21:37,321 | INFO  | Timer-3    | AutoDeploymentService    |
> ramework.AutoDeploymentService  646 | Directory: hotdeploy: Archive changed:
> processing tutorial-camel-sa-1.0-SNAPSHOT.jar ...
> 09:21:37,822 | ERROR | Timer-3    | AutoDeploymentService    |
> ramework.AutoDeploymentService  364 | Failed to update Service Assembly:
> tutorial-camel-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>deploy</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>deploy</task-id>
>             <task-result>FAILED</task-result>
>             <message-type>ERROR</message-type>
>             <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>Could not deploy xbean service unit</loc-message>
> </msg-loc-info>
> </task-status-msg>
>             <exception-info>
>                 <nesting-level>1</nesting-level>
>                 <msg-loc-info>
>                     <loc-token/>
>                     <loc-message>*ApplicationEventMulticaster not
> initialized - call 'refresh' before multicasting events via the context:
> [EMAIL PROTECTED]:
> display name
> [EMAIL PROTECTED];
> startup date [Wed Dec 31 21:00:00 ART 1969]; root of context hierarchy*
> </loc-message>
>                     <stack-trace><![CDATA[java.lang.IllegalStateException:
> ApplicationEventMulticaster not initialized - call 'refresh' before
> multicasting events via the context:
> [EMAIL PROTECTED]:
> display name
> [EMAIL PROTECTED];
> startup date [Wed Dec 31 21:00:00 ART 1969]; root of context hierarchy
>     at
> org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:273)
>     at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:260)
>     at
> org.springframework.context.support.AbstractApplicationContext.start(AbstractApplicationContext.java:1040)
>     at
> org.apache.servicemix.camel.CamelSpringDeployer.createParentApplicationContext(CamelSpringDeployer.java:130)
>     at
> org.apache.servicemix.camel.CamelSpringDeployer$1.createXmlApplicationContext(CamelSpringDeployer.java:49)
>     at
> org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:134)
>     at
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
>     at
> org.apache.servicemix.camel.CamelSpringDeployer.deploy(CamelSpringDeployer.java:79)
>     at
> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>     at
> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>     at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>     at java.util.TimerThread.mainLoop(Timer.java:512)
>     at java.util.TimerThread.run(Timer.java:462)
> ]]></stack-trace>
>                 </msg-loc-info>
>             </exception-info>
>         </task-result-details>
>     </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
>
>     at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>     at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>     at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>     at java.util.TimerThread.mainLoop(Timer.java:512)
>     at java.util.TimerThread.run(Timer.java:462)
> 09:21:37,824 | WARN  | Timer-3    | AutoDeploymentService    |
> ramework.AutoDeploymentService  650 | Directory: hotdeploy: Automatic
> install of
> /usr/local/apache-servicemix-3.2.1/hotdeploy/tutorial-camel-sa-1.0-SNAPSHOT.jar
> failed
> javax.jbi.management.DeploymentException: Failed to update Service
> Assembly: tutorial-camel-sa
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:365)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>     at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>     at java.util.TimerThread.mainLoop(Timer.java:512)
>     at java.util.TimerThread.run(Timer.java:462)
>
>
> Turning debug on don't give me any hint about the root problem.
>
> I appreciate any help
>
>
>
>

Reply via email to