Hello Guillaume Thank you for your patience helping me here.
When I build the SU after including the operationName parameter in the WebMethod annotation, the SU builds fine. I then generate an SA that includes this SU, and it builds fine also. However, when I deploy the SA to the ./servicemix/deploy directory, ServiceMix responds with output that I have supplied following this message. This is thoroughly confusing me. It looks as if ServiceMix is complaining that it cannot find the au.net.wcg.jvmhost.CommandReturn in the SA. It won't because the SA didn't need that class to build. The SU needed it, and it is there inside a jar. The SU is built fine. You have said to me earlier that the SA doesn't need this class, and even through I tried to include it in the SA, when I built the SA, it wasn't included in the zip file. This must be because there is nothing in any project configuration files (possibly the POM) that tell Maven how to include a jar in an SA. Why have I been having this problem? What am I doing wrong? Owen. * ******** Start of output. ERROR - AutoDeploymentService - Failed to update Service Assembly: JVMHostServiceAssembly 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-jsr181</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>au/net/wcg/jvmhost/CommandReturn</loc-message> <stack-trace><![CDATA[java.lang.NoClassDefFoundError: au/net/wcg/jvmhost/CommandReturn at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getDeclaredMethods(Unknown Source) at org.apache.commons.attributes.DefaultCachedRepository.<init>(DefaultCach edRepository.java:88) at org.apache.commons.attributes.Attributes.getCachedRepository(Attributes. java:146) at org.apache.commons.attributes.Attributes.getAttributes(Attributes.java:2 70) at org.apache.commons.attributes.Attributes.hasAttributeType(Attributes.jav a:424) at org.codehaus.xfire.annotations.commons.CommonsWebAttributes.hasWebServic eAnnotation(CommonsWebAttributes.java:27) at org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper.findServiceFacto ry(ServiceFactoryHelper.java:137) at org.apache.servicemix.jsr181.Jsr181Endpoint.registerService(Jsr181Endpoi nt.java:236) at org.apache.servicemix.jsr181.Jsr181Endpoint.validate(Jsr181Endpoint.java :216) at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer. java:58) at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanD eployer.java:55) at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(Abstract XBeanDeployer.java:92) at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseService UnitManager.java:88) at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUn itManager.java:69) at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssem bly(DeploymentService.java:527) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive( AutoDeploymentService.java:334) at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirecto ry(AutoDeploymentService.java:645) at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(Aut oDeploymentService.java:62) at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDepl oymentService.java:608) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) ]]></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(Management Support.java:121) at org.apache.servicemix.jbi.framework.ManagementSupport.failure(Management Support.java:107) at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssem bly(DeploymentService.java:563) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive( AutoDeploymentService.java:334) at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirecto ry(AutoDeploymentService.java:645) at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(Aut oDeploymentService.java:62) at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDepl oymentService.java:608) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) WARN - AutoDeploymentService - Directory: deploy: Automatic install of /home/othomas/servicemix/deploy/JVMHostServiceAssembly-1.0.zip failed javax.jbi.management.DeploymentException: Failed to update Service Assembly: JVMHostServiceAssembly at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive( AutoDeploymentService.java:348) at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirecto ry(AutoDeploymentService.java:645) at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(Aut oDeploymentService.java:62) at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDepl oymentService.java:608) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) Caused by: 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-jsr181</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>au/net/wcg/jvmhost/CommandReturn</loc-message> <stack-trace><![CDATA[java.lang.NoClassDefFoundError: au/net/wcg/jvmhost/CommandReturn at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getDeclaredMethods(Unknown Source) at org.apache.commons.attributes.DefaultCachedRepository.<init>(DefaultCach edRepository.java:88) at org.apache.commons.attributes.Attributes.getCachedRepository(Attributes. java:146) at org.apache.commons.attributes.Attributes.getAttributes(Attributes.java:2 70) at org.apache.commons.attributes.Attributes.hasAttributeType(Attributes.jav a:424) at org.codehaus.xfire.annotations.commons.CommonsWebAttributes.hasWebServic eAnnotation(CommonsWebAttributes.java:27) at org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper.findServiceFacto ry(ServiceFactoryHelper.java:137) at org.apache.servicemix.jsr181.Jsr181Endpoint.registerService(Jsr181Endpoi nt.java:236) at org.apache.servicemix.jsr181.Jsr181Endpoint.validate(Jsr181Endpoint.java :216) at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer. java:58) at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanD eployer.java:55) at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(Abstract XBeanDeployer.java:92) at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseService UnitManager.java:88) at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUn itManager.java:69) at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssem bly(DeploymentService.java:527) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive( AutoDeploymentService.java:334) at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirecto ry(AutoDeploymentService.java:645) at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(Aut oDeploymentService.java:62) at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDepl oymentService.java:608) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) ]]></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(Management Support.java:121) at org.apache.servicemix.jbi.framework.ManagementSupport.failure(Management Support.java:107) at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssem bly(DeploymentService.java:563) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive( AutoDeploymentService.java:334) ... 5 more******** End of output. * -----Original Message----- From: Guillaume Nodet [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 5:28 PM To: [email protected] Subject: Re: Problem. AFAIK, this is a bug that has already been fixed. Just include the operationName in the annotation should work fine. You could also bypass the jbi descriptor generation, but the same problem would happen at runtime, so this is not a good idea. The 3.1.1 version of ServiceMix should fix these problems. Sorry about that.
