Hi, I've followed the 'Creating a Hello World JBI Service Engine' tutorial, but when I try to copy the hello-world-sa-1.0-SNAPSHOT.jar to the deploy directory, I get the following error :-
BeanDefinitionStoreException: Unrecognized xbean element mapping: endpoint in namespace http://org.apache.servicemix.samples.helloworld.se/1.0 The only deviation from the tutorial is that I copied the source from the LoanBroker.java sample program into the tutorial MyEndpoint.java, as that was the functionality I was trying to achieve. I've now tried several different ways to deploy. I started out with servicemix by wiring two out-of-the-box components by specifying two XBEANS.XML files, adding a JBI.XML file, and zipping them into SA.ZIP and deploying that, and that worked fine. However when I tried to use this method to deploy the helloworld custom component I wasn't sure what to use in the <component-name> element of JBI.XML. I'd be really grateful if anyone can help clarify creating a SU and SA for a custom component and what this error means please. In particular, I'm not sure how this xbeans.xml in the tutorial <beans xmlns:hwse="http://org.apache.servicemix.samples.helloworld.se/1.0" xmlns:xyz="http://companyxyz.com"> <hwse:endpoint service="xyz:helloWorld" endpoint="helloWorld"/> </beans> relates specifically to the actual components. The full exception I get when deploying is below. INFO - AutoDeploymentService - Directory: install: Archive changed: pr ocessing servicemix-shared-3.1.2-installer.zip ... INFO - AutoDeploymentService - Directory: install: Finished installati on of archive: servicemix-shared-3.1.2-installer.zip INFO - AutoDeploymentService - Directory: install: Archive changed: pr ocessing hello-world-se-1.0-SNAPSHOT-installer.zip ... INFO - ComponentMBeanImpl - Starting component: hello-world-se INFO - ComponentMBeanImpl - Initializing component: hello-world-se INFO - AutoDeploymentService - Directory: install: Finished installati on of archive: hello-world-se-1.0-SNAPSHOT-installer.zip INFO - AutoDeploymentService - Directory: deploy: Archive changed: pro cessing hello-world-sa-1.0-SNAPSHOT.jar ... ERROR - AutoDeploymentService - Failed to update Service Assembly: hell o-world-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>hello-world-se</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>org.springframework.beans.f actory.BeanDefinitionStoreException: Unrecognized xbean element mapping: endpoin t in namespace http://org.apache.servicemix.samples.helloworld.se/1.0</loc-messa ge> <stack-trace><