Answered by Freeman Fang in another thread. Requires version 2009.01 of CXF
SE found in ServiceMix 3.3.1 distribution.


Brian Taylor wrote:
> 
> Hello,
> 
> I'm unable to set the CxfSeEndpoint's useSOAPEnvelope parameter when
> deploying a service. The parameter and accessor methods exist in the code
> so I'm not sure why servicemix is throwing an error when attempting to set
> it. I'm using File-BC and it does not support JBI messages nor SOAP. I had
> to set the useJBIWrapper to false to get that from erroring in the CXF-SE
> but now I can't get the CXF-SE to not expect SOAP. Am I missing something
> simple?
> 
> Part of xbean.xml:
> 
> <cxfse:endpoint useJBIWrapper="false" useSOAPEnvelope="false">
>               <cxfse:pojo>
> ...
> 
> 
> Part of ServiceMix Log:
> 
> 15:21:11,843 | DEBUG | Timer-2    | CxfSeComponent           |
> .common.BaseServiceUnitManager   61 | Deploying service unit
> 15:21:11,859 | DEBUG | Timer-2    | CxfSeComponent           |
> on.xbean.AbstractXBeanDeployer   57 | Looking for
> C:\apache-servicemix-3.3\data\smx\service-assemblies\Data-Service-Assembly\version_30\sus\servicemix-cxf-se\Data-Service\xbean.xml:
> true
> 15:21:12,109 | ERROR | Timer-2    | CxfSeComponent           |
> on.xbean.AbstractXBeanDeployer  102 |
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.servicemix.cxfse.CxfSeEndpoint#0' defined in
> file
> [C:\apache-servicemix-3.3\data\smx\service-assemblies\Data-Service-Assembly\version_30\sus\servicemix-cxf-se\Data-Service\xbean.xml]:
> Initialization of bean failed; nested exception is
> org.springframework.beans.InvalidPropertyException: Invalid property
> 'useSOAPEnvelope' of bean class
> [org.apache.servicemix.cxfse.CxfSeEndpoint]: No property 'useSOAPEnvelope'
> found
> 15:21:12,218 | ERROR | Timer-2    | AutoDeploymentService    |
> ramework.AutoDeploymentService  367 | Failed to update Service Assembly:
> Data-Service-Assembly
> 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-cxf-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>Error creating bean with 
> name
> 'org.apache.servicemix.cxfse.CxfSeEndpoint#0' defined in file
> [C:\apache-servicemix-3.3\data\smx\service-assemblies\Data-Service-Assembly\version_30\sus\servicemix-cxf-se\Data-Service\xbean.xml]:
> Initialization of bean failed; nested exception is
> org.springframework.beans.InvalidPropertyException: Invalid property
> 'useSOAPEnvelope' of bean class
> [org.apache.servicemix.cxfse.CxfSeEndpoint]: No property 'useSOAPEnvelope'
> found</loc-message>
>                               
> <stack-trace><![CDATA[org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name
> 'org.apache.servicemix.cxfse.CxfSeEndpoint#0' defined in file
> [C:\apache-servicemix-3.3\data\smx\service-assemblies\Data-Service-Assembly\version_30\sus\servicemix-cxf-se\Data-Service\xbean.xml]:
> Initialization of bean failed; nested exception is
> org.springframework.beans.InvalidPropertyException: Invalid property
> 'useSOAPEnvelope' of bean class
> [org.apache.servicemix.cxfse.CxfSeEndpoint]: No property 'useSOAPEnvelope'
> found
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
>       at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>       at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
>       at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
>       at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
>       at
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:86)
>       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:353)
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>       at java.util.TimerThread.mainLoop(Timer.java:512)
>       at java.util.TimerThread.run(Timer.java:462)
> Caused by: org.springframework.beans.InvalidPropertyException: Invalid
> property 'useSOAPEnvelope' of bean class
> [org.apache.servicemix.cxfse.CxfSeEndpoint]: No property 'useSOAPEnvelope'
> found
>       at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:382)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1288)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1249)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
>       ... 22 more
> ]]></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:353)
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
>       at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
>       at java.util.TimerThread.mainLoop(Timer.java:512)
>       at java.util.TimerThread.run(Timer.java:462)
> 

-- 
View this message in context: 
http://www.nabble.com/CXF-SE%3A-CxfSeEndpoint.useSOAPEnvelope-tp24924203p24956661.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to