You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by chris charles harris <sn...@gmail.com> on 2010/03/04 13:11:51 UTC
How to pass complex object in to a web service
Hi,
I am going to use servicemix-jsr181 component for develop my application
with "annotation = none" condition. I was able pass a string parameter
according to their example. Now I want to pass a complex object to a method.
I changed the wsdl and create classes.
Lets say this is the method i want to expose as a service.
public String processOrder(Order order );
Order class :
public class Order {
protected String customerID;
protected String itemID;
.......
}
I implemented the method and deployed successfully in servicemix. Then i saw
the generated wsdl it contains different namespace for the my order class
even i define it the my wsdl. When i test the service with SOAPUI it always
passes one parameter. Other one is not passing. Can anyone temm me how to
pass complex object with servicemix-jsr181 componentand annotation=none
condition.
Thanks
chris
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27779954.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
I reported it in the jira. Thanks for the help.
chris
Freeman Fang wrote:
>
> Hi,
>
> If you can't use annotations in the java code, then I think we need
> add extra flag to control the service and endpoint name used for the
> servicemodel which is generated from java class.
> Could you please create an improvement jira ticket for this issue?
>
> Thanks
> Freeman
> On 2010-3-10, at 下午8:51, chris charles harris wrote:
>
>>
>> Hi,
>>
>> This definitely works. But with my architecture i need to change the
>> namespace dynamically. I think i cannot change the annotation value
>> dynamically. If i can keep namespace values at the xbean.xml i can
>> easily
>> change it. That is the idea i want to implement.
>>
>> Thanks,
>> chris
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27849185.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27861079.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
If you can't use annotations in the java code, then I think we need
add extra flag to control the service and endpoint name used for the
servicemodel which is generated from java class.
Could you please create an improvement jira ticket for this issue?
Thanks
Freeman
On 2010-3-10, at 下午8:51, chris charles harris wrote:
>
> Hi,
>
> This definitely works. But with my architecture i need to change the
> namespace dynamically. I think i cannot change the annotation value
> dynamically. If i can keep namespace values at the xbean.xml i can
> easily
> change it. That is the idea i want to implement.
>
> Thanks,
> chris
>
>
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27849185.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
This definitely works. But with my architecture i need to change the
namespace dynamically. I think i cannot change the annotation value
dynamically. If i can keep namespace values at the xbean.xml i can easily
change it. That is the idea i want to implement.
Thanks,
chris
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27849185.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
I guess I know what you want, you actually want to control the service
namespace using in servicemodel which is generated from pojo. What I
suggest you do previously is specify the servicename used for jbi
endpoint. By default we extract the the jbi endpoint service/endpoint
name from servicemodel, but you also can specify it yourself as I
suggest before.
If you want to control the service name using in servicemodel, you can
add annotation like
@WebService(name = "PersonImpl", targetNamespace = "http://sample.com")
to your pojo, this should work.
Freeman
On 2010-3-10, at 下午6:36, chris charles harris wrote:
>
> Hi,
>
> What i am saying is it is deployed with the parameters which is
> given by me.
> No problem with that.
> Problem is when i invoked the service it says like this.
>
> WARNING: Interceptor for
> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl has
> thrown
> exception, unwinding now
> org.apache.cxf.interceptor.Fault: unknown operation
> {http://sample.com}GetPerson
>
> Even it shows service name correctly it is not registered with given
> parameters.
>
> I attached my code and pls have a look at it.
>
>
> http://old.nabble.com/file/p27847972/cxf-wsdl-first.zip cxf-wsdl-
> first.zip
>
>
> Thanks,
>
> chis
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27847972.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
What i am saying is it is deployed with the parameters which is given by me.
No problem with that.
Problem is when i invoked the service it says like this.
WARNING: Interceptor for
{http://wsdl_first.samples.servicemix.apache.org/}PersonImpl has thrown
exception, unwinding now
org.apache.cxf.interceptor.Fault: unknown operation
{http://sample.com}GetPerson
Even it shows service name correctly it is not registered with given
parameters.
I attached my code and pls have a look at it.
http://old.nabble.com/file/p27847972/cxf-wsdl-first.zip cxf-wsdl-first.zip
Thanks,
chis
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27847972.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
On 2010-3-10, at 下午6:02, chris charles harris wrote:
>
> Hi,
>
> I have experienced even we set serviceName and interfaceName in the
> xbean.xml it is a virtual thing. When i see through jconsole i can
> see the
> service name with the namespaces that is given by me. But it throws an
> exception when i invoke the service.
>
> Mar 10, 2010 3:27:21 PM org.apache.cxf.phase.PhaseInterceptorChain
> doDefaultLogging
> WARNING: Interceptor for
> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl has
> thrown
> exception, unwinding now
> org.apache.cxf.interceptor.Fault: unknown operation
> {http://sample.com}GetPerson
> at
> org
> .apache
> .cxf
> .binding
> .jbi
> .interceptor
> .JBIOperationInInterceptor
> .handleMessage(JBIOperationInInterceptor.java:58)
> at
> org
> .apache
> .cxf
> .binding
> .jbi
> .interceptor
> .JBIOperationInInterceptor
> .handleMessage(JBIOperationInInterceptor.java:39)
> at
> org
> .apache
> .cxf
> .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
> 243)
> at
> org
> .apache
> .cxf
> .transport
> .ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
> at
> org
> .apache
> .cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:
> 156)
> at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:
> 432)
> at
> org
> .apache
> .servicemix
> .common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
> at
> org
> .apache
> .servicemix
> .common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:
> 581)
> at
> org
> .apache
> .servicemix
> .common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:
> 535)
> at
> org
> .apache
> .servicemix
> .common
> .SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
> at
> org
> .apache
> .servicemix
> .jbi
> .messaging
> .DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
> at
> org
> .apache
> .servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
> at
> org
> .apache
> .servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
> at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue
> $1.run(SedaQueue.java:134)
> at
> java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
> Mar 10, 2010 3:27:21 PM org.apache.cxf.phase.PhaseInterceptorChain
> doDefaultLogging
> WARNING: Interceptor for
> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl has
> thrown
> exception, unwinding now
> java.lang.NullPointerException
> at
> org
> .apache
> .cxf
> .binding
> .jbi
> .interceptor
> .JBIFaultOutInterceptor.handleMessage(JBIFaultOutInterceptor.java:65)
> at
> org
> .apache
> .cxf
> .binding
> .jbi
> .interceptor
> .JBIFaultOutInterceptor.handleMessage(JBIFaultOutInterceptor.java:40)
> at
> org
> .apache
> .cxf
> .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
> 243)
> at
> org
> .apache
> .cxf
> .interceptor
> .AbstractFaultChainInitiatorObserver
> .onMessage(AbstractFaultChainInitiatorObserver.java:96)
> at
> org
> .apache
> .cxf
> .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:
> 292)
> at
> org
> .apache
> .cxf
> .transport
> .ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
> at
> org
> .apache
> .cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:
> 156)
> at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:
> 432)
> at
> org
> .apache
> .servicemix
> .common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
> at
> org
> .apache
> .servicemix
> .common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:
> 581)
> at
> org
> .apache
> .servicemix
> .common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:
> 535)
> at
> org
> .apache
> .servicemix
> .common
> .SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
> at
> org
> .apache
> .servicemix
> .jbi
> .messaging
> .DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
> at
> org
> .apache
> .servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
> at
> org
> .apache
> .servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
> at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue
> $1.run(SedaQueue.java:134)
> at
> java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
>
>
> Still it generates default namespace and doesn't take my one.
> Following
I can't understand here
What you mean "still it generates default namespace"? You said you can
observe from jconsole servicename namespace given by you.
Could you append your whole wsdl and cxf bc endpoint configuration?
Freeman
> shows my xbean.xml (cxf-se) and wsdl.
>
> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
> xmlns:person="http://sample.com">
>
> <cxfse:endpoint useAegis="true" interfaceName="person:Person"
> service="person:PersonImpl" endpoint="PersonImpl">
> <cxfse:pojo>
> <bean
> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
> </cxfse:pojo>
> </cxfse:endpoint>
> </beans>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions name="wsdl-first"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:tns="http://sample.com"
> targetNamespace="http://sample.com">
> .
> .
> .
> .
> .
>
> Thanks.
> chris
>
>
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> Generate a namespace based on the java class package structure is a
>> default way.
>> And as we can specify service name(which is a QName) for cxf se
>> endpoint, so I believe you can specify your targetNamespace in
>> xbean.xml.
>> Just add
>>
>> service attribute for your cxf se endpoint should be ok.
>>
>> Something like
>>
>> service="your_prefix:SimpleService"
>>
>> and add your_prefix declaration (xmlns:your_prefix="http://
>> what_ever_you_need") for your xbean.xml.
>>
>> You need use servicemix-cxf-se 2009.02 or later version.
>>
>> Freeman
>> On 2010-3-10, at 下午2:17, chris charles harris wrote:
>>
>>>
>>>
>>> Hi,
>>>
>>> I successfully deployed my service by taking your code from the svn.
>>> But I
>>> cant change the namespace of my service. It always generates a
>>> namespace
>>> according to the package structure and it puts a "/"(slash) at the
>>> end of
>>> namespace.
>>>
>>>
>>> Can you give any help please.
>>> Thanks,
>>> chris
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>>
>>>> Hi,
>>>>
>>>> As aegis databinding require xmlschema 1.4.3 or higher, I'm going
>>>> to
>>>> update xmlschema version to the latest released 1.4.5, create
>>>> SMXCOMP-721[1] to track it
>>>>
>>>>
>>>> [1]https://issues.apache.org/activemq/browse/SMXCOMP-721
>>>>
>>>> Freeman
>>>> On 2010-3-8, at 下午5:48, chris charles harris wrote:
>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> did you find any solution.
>>>>>
>>>>> thanks,
>>>>> chris
>>>>>
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> I believe there must be a XmlSchme-1.3.2.jar somehow get loaded
>>>>>> cause
>>>>>> this error.
>>>>>> Could you just remove SMX_HOME/data folder and try it again?
>>>>>> If you still see the problem, just send me your project which I
>>>>>> can
>>>>>> build and deploy to reproduce this problem myself.
>>>>>>
>>>>>> Freeman
>>>>>>
>>>>>> On 2010-3-5, at 下午5:43, chris charles harris wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am using servicemix 3.3.1. But for my application I am using
>>>>>>> following
>>>>>>> components.
>>>>>>>
>>>>>>> servicemix-shared-2009.02-installer.zip
>>>>>>> servicemix-cxf-bc-2009.02-installer.zip
>>>>>>> servicemix-cxf-se-2009.02-installer.zip
>>>>>>>
>>>>>>> I think those are latest components.
>>>>>>> I checked the location u told. In that place there is a jar file
>>>>>>> called
>>>>>>> XmlSchema-1.4.2.jar(137kb).
>>>>>>> Thanks,
>>>>>>>
>>>>>>> chris
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Freeman Fang wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> So, you are using smx 3.3.1, right?
>>>>>>>> This error comes from you use lower version XmlSchema.jar.
>>>>>>>>
>>>>>>>> Did you ever put lower version servicemix-shared-xxxxxx-
>>>>>>>> installer.zip
>>>>>>>> into SMX_HOME/hotdeploy folder?
>>>>>>>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>>>>>>>> shared/
>>>>>>>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>>>>>>>
>>>>>>>> Freeman
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> Thanks for the quick reply. I changed the configuration as you
>>>>>>>>> said.
>>>>>>>>> But
>>>>>>>>> still i couldnt deployed it. Following shows the stackrace.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> INFO: Creating Service
>>>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl
>>>>>>>>> from
>>>>>>>>> class
>>>>>>>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>>>>>>>> Mar 5, 2010 2:20:19 PM
>>>>>>>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>>>>>>>> getBeanName
>>>>>>>>> INFO: Could not determine bean name for instance of class
>>>>>>>>> org.apache.cxf.transport.jbi.JBIDestination.
>>>>>>>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>>>> initDestination
>>>>>>>>> INFO: Setting the server's publish address to be
>>>>>>>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>>>>>>>> ERROR - CxfSeComponent -
>>>>>>>>> java.lang.NoSuchMethodError:
>>>>>>>>> org
>>>>>>>>> .apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>>> w3c/
>>>>>>>>> dom/Document;
>>>>>>>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>>>> initDestination
>>>>>>>>> INFO: Setting the server's publish address to be
>>>>>>>>> http://localhost:8092/PersonService/
>>>>>>>>> INFO - DeploymentService - UnDeployed
>>>>>>>>> ServiceUnit
>>>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>>>> ERROR - AutoDeploymentService - Failed to update
>>>>>>>>> Service
>>>>>>>>> Assembly:
>>>>>>>>> wsdl-first-cxf-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-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
>>>>>>>>>> org
>>>>>>>>>> .apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>>>> w3c/
>>>>>>>>> dom/Document;</loc-message>
>>>>>>>>>
>>>>>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>>>>>> org
>>>>>>>>> .apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>>> w3c/
>>>>>>>>> dom/Document;
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>>>>>> 109)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf
>>>>>>>>> .wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>>>>>> 267)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>>>> 188)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>>>> 148)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>>>>>> 362)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>>>>>> 58)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .common
>>>>>>>>> .xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>>>>>> 55)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .common
>>>>>>>>> .xbean
>>>>>>>>> .AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>>> 97)
>>>>>>>>> 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:
>>>>>>>>> 520)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>> 255)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>> 658)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>> at
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>> 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>
>>>>>>>>> <component-task-result
>>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>>>>>> <component-task-result-details>
>>>>>>>>> <task-result-details>
>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>>> </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:
>>>>>>>>> 555)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>> 255)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>> 658)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>> at
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>>>>> Automatic
>>>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-
>>>>>>>>> cxf-
>>>>>>>>> sa-3.3.1.zip
>>>>>>>>> failed
>>>>>>>>> javax.jbi.management.DeploymentException: Failed to update
>>>>>>>>> Service
>>>>>>>>> Assembly:
>>>>>>>>> wsdl-first-cxf-sa
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>> 255)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>> 658)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>> at
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>> 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-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
>>>>>>>>>> org
>>>>>>>>>> .apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>>>> w3c/
>>>>>>>>> dom/Document;</loc-message>
>>>>>>>>>
>>>>>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>>>>>> org
>>>>>>>>> .apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>>> w3c/
>>>>>>>>> dom/Document;
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>>>>>> 109)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf
>>>>>>>>> .wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>>>>>> 267)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>>>> 188)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>>>> 148)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>>>>>> 362)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>>>>>> 58)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .common
>>>>>>>>> .xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>>>>>> 55)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .common
>>>>>>>>> .xbean
>>>>>>>>> .AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>>> 97)
>>>>>>>>> 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:
>>>>>>>>> 520)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>> 255)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>> 658)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>> at
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>> 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>
>>>>>>>>> <component-task-result
>>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>>>>>> <component-task-result-details>
>>>>>>>>> <task-result-details>
>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>>> </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:
>>>>>>>>> 555)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>> ... 6 more
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I think problem is the I havent supplied the mapping file for
>>>>>>>>> acegi
>>>>>>>>> binding.
>>>>>>>>> I dont know how to give a mapping for the service.
>>>>>>>>>
>>>>>>>>> Thanks a lot...!!
>>>>>>>>>
>>>>>>>>> chris
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Freeman Fang wrote:
>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> You can't use
>>>>>>>>>> <simple:server id="PersonService"
>>>>>>>>>>
>>>>>>>>>> serviceClass
>>>>>>>>>> ="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>>>>> address="/PersonService">
>>>>>>>>>> <simple:serviceBean>
>>>>>>>>>> <bean
>>>>>>>>>> class
>>>>>>>>>> ="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>>>>> </simple:serviceBean>
>>>>>>>>>> </simple:server>
>>>>>>>>>>
>>>>>>>>>> in smx-cxf-se endpoint xbean.xml.
>>>>>>>>>> You should use something like
>>>>>>>>>>
>>>>>>>>>> <cxfse:endpoint useAegis="true">
>>>>>>>>>> <cxfse:pojo>
>>>>>>>>>> <bean
>>>>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>>>>>>>> </bean>
>>>>>>>>>>
>>>>>>>>>> </cxfse:pojo>
>>>>>>>>>> </cxfse:endpoint>
>>>>>>>>>>
>>>>>>>>>> Notice I put useAegis="true" flag which generally used with
>>>>>>>>>> simple
>>>>>>>>>> frontend
>>>>>>>>>>
>>>>>>>>>> You may need also take a look at how to configure smx-cxf-se
>>>>>>>>>> endpoint
>>>>>>>>>> from [1]
>>>>>>>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>>>>>>>
>>>>>>>>>> Freeman
>>>>>>>>>>
>>>>>>>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>>>>>>>> Following shows my xbean.xml file, Interface and
>>>>>>>>>>> implementation
>>>>>>>>>>> class.
>>>>>>>>>>>
>>>>>>>>>>> xbean.xml
>>>>>>>>>>>
>>>>>>>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>>>>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>>>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>>>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>>>>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>>>>>>>> xsi:schemaLocation="
>>>>>>>>>>> http://www.springframework.org/schema/beans
>>>>>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>>>>>>> http://cxf.apache.org/bindings/soap
>>>>>>>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>>>>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>>>>>>>> simple.xsd">
>>>>>>>>>>>
>>>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>>>>>>> soap.xml" />
>>>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>>>>>>> http-
>>>>>>>>>>> jetty.xml" />
>>>>>>>>>>>
>>>>>>>>>>> <simple:server id="PersonService"
>>>>>>>>>>>
>>>>>>>>>>> serviceClass
>>>>>>>>>>> ="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>>>>>> address="/PersonService">
>>>>>>>>>>> <simple:serviceBean>
>>>>>>>>>>> <bean
>>>>>>>>>>> class
>>>>>>>>>>> ="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>>>>>> </simple:serviceBean>
>>>>>>>>>>> </simple:server>
>>>>>>>>>>> </beans>
>>>>>>>>>>>
>>>>>>>>>>> Person.java
>>>>>>>>>>>
>>>>>>>>>>> public interface Person {
>>>>>>>>>>>
>>>>>>>>>>> public String getPerson(String personId) ;
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> PersonImpl .java
>>>>>>>>>>>
>>>>>>>>>>> public class PersonImpl implements Person {
>>>>>>>>>>>
>>>>>>>>>>> public String getPerson(String personId) {
>>>>>>>>>>> if (personId == null || personId.length() == 0) {
>>>>>>>>>>> return "null";
>>>>>>>>>>> }
>>>>>>>>>>> return personId = "success";
>>>>>>>>>>> }
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Then i am getting following error.
>>>>>>>>>>>
>>>>>>>>>>> INFO: Creating Service
>>>>>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person
>>>>>>>>>>> from
>>>>>>>>>>> class
>>>>>>>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>>>>>>>> ERROR - CxfSeComponent -
>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
>>>>>>>>>>> Error
>>>>>>>>>>> creating bean
>>>>>>>>>>> with name 'PersonService': Invocation of init method failed;
>>>>>>>>>>> nested
>>>>>>>>>>> exception is
>>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>>>>>> initDestination
>>>>>>>>>>> INFO: Setting the server's publish address to be
>>>>>>>>>>> http://localhost:8092/PersonService/
>>>>>>>>>>> INFO - DeploymentService - UnDeployed
>>>>>>>>>>> ServiceUnit
>>>>>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>>>>>> ERROR - AutoDeploymentService - Failed to update
>>>>>>>>>>> Service
>>>>>>>>>>> Assembly:
>>>>>>>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>>>>>>>> nested
>>>>>>>>>>> exception is
>>>>>>>>>>> org
>>>>>>>>>>> .apache.cxf.service.factory.ServiceConstructionException</
>>>>>>>>>>> loc-
>>>>>>>>>>> message>
>>>>>>>>>>>
>>>>>>>>>>> <stack-trace><!
>>>>>>>>>>> [CDATA
>>>>>>>>>>> [org.springframework.beans.factory.BeanCreationException:
>>>>>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>>>>>> init
>>>>>>>>>>> method
>>>>>>>>>>> failed; nested exception is
>>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>>> 1338)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>>>>>> 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:222)
>>>>>>>>>>> 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:
>>>>>>>>>>> 728)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .context
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractApplicationContext
>>>>>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>>>>>> 380)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .common
>>>>>>>>>>> .xbean
>>>>>>>>>>> .AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>>>>> 87)
>>>>>>>>>>> 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:
>>>>>>>>>>> 520)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>>>> 255)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>>>> 658)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>> Caused by:
>>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>>>> 127)
>>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>> Method)
>>>>>>>>>>> at
>>>>>>>>>>> sun
>>>>>>>>>>> .reflect
>>>>>>>>>>> .NativeMethodAccessorImpl
>>>>>>>>>>> .invoke(NativeMethodAccessorImpl.java:
>>>>>>>>>>> 39)
>>>>>>>>>>> at
>>>>>>>>>>> sun
>>>>>>>>>>> .reflect
>>>>>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .invokeCustomInitMethod
>>>>>>>>>>> (AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>>> 1414)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>>> 1375)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>>> 1335)
>>>>>>>>>>> ... 23 more
>>>>>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>>>>>> PersonService
>>>>>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .transport
>>>>>>>>>>> .http_jetty
>>>>>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>>>>>> 96)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .transport
>>>>>>>>>>> .http_jetty
>>>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .transport
>>>>>>>>>>> .http_jetty
>>>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>>>>>> 90)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>>>>>> 69)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>>>> 106)
>>>>>>>>>>> ... 30 more
>>>>>>>>>>> ]]></stack-trace>
>>>>>>>>>>> </msg-loc-info>
>>>>>>>>>>> </exception-info>
>>>>>>>>>>> </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-cxf-bc</component-name>
>>>>>>>>>>> <component-task-result-details>
>>>>>>>>>>> <task-result-details>
>>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>>>>> </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:
>>>>>>>>>>> 555)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>>>> 255)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>>>> 658)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>> WARN - AutoDeploymentService - Directory:
>>>>>>>>>>> hotdeploy:
>>>>>>>>>>> Automatic
>>>>>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-
>>>>>>>>>>> cxf-
>>>>>>>>>>> sa-3.3.1.zip
>>>>>>>>>>> failed
>>>>>>>>>>> javax.jbi.management.DeploymentException: Failed to update
>>>>>>>>>>> Service
>>>>>>>>>>> Assembly:
>>>>>>>>>>> wsdl-first-cxf-sa
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>>>> 255)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>>>> 658)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>>>>>>>> nested
>>>>>>>>>>> exception is
>>>>>>>>>>> org
>>>>>>>>>>> .apache.cxf.service.factory.ServiceConstructionException</
>>>>>>>>>>> loc-
>>>>>>>>>>> message>
>>>>>>>>>>>
>>>>>>>>>>> <stack-trace><!
>>>>>>>>>>> [CDATA
>>>>>>>>>>> [org.springframework.beans.factory.BeanCreationException:
>>>>>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>>>>>> init
>>>>>>>>>>> method
>>>>>>>>>>> failed; nested exception is
>>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>>> 1338)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>>>>>> 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:222)
>>>>>>>>>>> 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:
>>>>>>>>>>> 728)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .context
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractApplicationContext
>>>>>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>>>>>> 380)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .common
>>>>>>>>>>> .xbean
>>>>>>>>>>> .AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>>>>> 87)
>>>>>>>>>>> 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:
>>>>>>>>>>> 520)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>>>> 255)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>>>> 658)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>>> Caused by:
>>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>>>> 127)
>>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>> Method)
>>>>>>>>>>> at
>>>>>>>>>>> sun
>>>>>>>>>>> .reflect
>>>>>>>>>>> .NativeMethodAccessorImpl
>>>>>>>>>>> .invoke(NativeMethodAccessorImpl.java:
>>>>>>>>>>> 39)
>>>>>>>>>>> at
>>>>>>>>>>> sun
>>>>>>>>>>> .reflect
>>>>>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .invokeCustomInitMethod
>>>>>>>>>>> (AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>>> 1414)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>>> 1375)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .springframework
>>>>>>>>>>> .beans
>>>>>>>>>>> .factory
>>>>>>>>>>> .support
>>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>>> 1335)
>>>>>>>>>>> ... 23 more
>>>>>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>>>>>> PersonService
>>>>>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .transport
>>>>>>>>>>> .http_jetty
>>>>>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>>>>>> 96)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .transport
>>>>>>>>>>> .http_jetty
>>>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .transport
>>>>>>>>>>> .http_jetty
>>>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>>>>>> 90)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>>>>>> 69)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .cxf
>>>>>>>>>>> .frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>>>> 106)
>>>>>>>>>>> ... 30 more
>>>>>>>>>>> ]]></stack-trace>
>>>>>>>>>>> </msg-loc-info>
>>>>>>>>>>> </exception-info>
>>>>>>>>>>> </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-cxf-bc</component-name>
>>>>>>>>>>> <component-task-result-details>
>>>>>>>>>>> <task-result-details>
>>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>>>>> </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:
>>>>>>>>>>> 555)
>>>>>>>>>>> at
>>>>>>>>>>> org
>>>>>>>>>>> .apache
>>>>>>>>>>> .servicemix
>>>>>>>>>>> .jbi
>>>>>>>>>>> .framework
>>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>>>> ... 6 more
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Can you give any help to fix this.
>>>>>>>>>>> Thanks,
>>>>>>>>>>> chris
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> View this message in context:
>>>>>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>>>>>> Nabble.com.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Freeman Fang
>>>>>>>>>> ------------------------
>>>>>>>>>> Open Source SOA: http://fusesource.com
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>>>> Nabble.com.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Freeman Fang
>>>>>>>> ------------------------
>>>>>>>> Open Source SOA: http://fusesource.com
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>> Nabble.com.
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Freeman Fang
>>>>>> ------------------------
>>>>>> Open Source SOA: http://fusesource.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27819063.html
>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>
>>>>
>>>> --
>>>> Freeman Fang
>>>> ------------------------
>>>> Open Source SOA: http://fusesource.com
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27845987.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27847675.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
I have experienced even we set serviceName and interfaceName in the
xbean.xml it is a virtual thing. When i see through jconsole i can see the
service name with the namespaces that is given by me. But it throws an
exception when i invoke the service.
Mar 10, 2010 3:27:21 PM org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNING: Interceptor for
{http://wsdl_first.samples.servicemix.apache.org/}PersonImpl has thrown
exception, unwinding now
org.apache.cxf.interceptor.Fault: unknown operation
{http://sample.com}GetPerson
at
org.apache.cxf.binding.jbi.interceptor.JBIOperationInInterceptor.handleMessage(JBIOperationInInterceptor.java:58)
at
org.apache.cxf.binding.jbi.interceptor.JBIOperationInInterceptor.handleMessage(JBIOperationInInterceptor.java:39)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
at
org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:156)
at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:432)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Mar 10, 2010 3:27:21 PM org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNING: Interceptor for
{http://wsdl_first.samples.servicemix.apache.org/}PersonImpl has thrown
exception, unwinding now
java.lang.NullPointerException
at
org.apache.cxf.binding.jbi.interceptor.JBIFaultOutInterceptor.handleMessage(JBIFaultOutInterceptor.java:65)
at
org.apache.cxf.binding.jbi.interceptor.JBIFaultOutInterceptor.handleMessage(JBIFaultOutInterceptor.java:40)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:292)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
at
org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:156)
at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:432)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Still it generates default namespace and doesn't take my one. Following
shows my xbean.xml (cxf-se) and wsdl.
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
xmlns:person="http://sample.com">
<cxfse:endpoint useAegis="true" interfaceName="person:Person"
service="person:PersonImpl" endpoint="PersonImpl">
<cxfse:pojo>
<bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
</cxfse:pojo>
</cxfse:endpoint>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="wsdl-first"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tns="http://sample.com"
targetNamespace="http://sample.com">
.
.
.
.
.
Thanks.
chris
Freeman Fang wrote:
>
> Hi,
>
> Generate a namespace based on the java class package structure is a
> default way.
> And as we can specify service name(which is a QName) for cxf se
> endpoint, so I believe you can specify your targetNamespace in
> xbean.xml.
> Just add
>
> service attribute for your cxf se endpoint should be ok.
>
> Something like
>
> service="your_prefix:SimpleService"
>
> and add your_prefix declaration (xmlns:your_prefix="http://
> what_ever_you_need") for your xbean.xml.
>
> You need use servicemix-cxf-se 2009.02 or later version.
>
> Freeman
> On 2010-3-10, at 下午2:17, chris charles harris wrote:
>
>>
>>
>> Hi,
>>
>> I successfully deployed my service by taking your code from the svn.
>> But I
>> cant change the namespace of my service. It always generates a
>> namespace
>> according to the package structure and it puts a "/"(slash) at the
>> end of
>> namespace.
>>
>>
>> Can you give any help please.
>> Thanks,
>> chris
>>
>>
>>
>> Freeman Fang wrote:
>>>
>>> Hi,
>>>
>>> As aegis databinding require xmlschema 1.4.3 or higher, I'm going to
>>> update xmlschema version to the latest released 1.4.5, create
>>> SMXCOMP-721[1] to track it
>>>
>>>
>>> [1]https://issues.apache.org/activemq/browse/SMXCOMP-721
>>>
>>> Freeman
>>> On 2010-3-8, at 下午5:48, chris charles harris wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> did you find any solution.
>>>>
>>>> thanks,
>>>> chris
>>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>> I believe there must be a XmlSchme-1.3.2.jar somehow get loaded
>>>>> cause
>>>>> this error.
>>>>> Could you just remove SMX_HOME/data folder and try it again?
>>>>> If you still see the problem, just send me your project which I can
>>>>> build and deploy to reproduce this problem myself.
>>>>>
>>>>> Freeman
>>>>>
>>>>> On 2010-3-5, at 下午5:43, chris charles harris wrote:
>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am using servicemix 3.3.1. But for my application I am using
>>>>>> following
>>>>>> components.
>>>>>>
>>>>>> servicemix-shared-2009.02-installer.zip
>>>>>> servicemix-cxf-bc-2009.02-installer.zip
>>>>>> servicemix-cxf-se-2009.02-installer.zip
>>>>>>
>>>>>> I think those are latest components.
>>>>>> I checked the location u told. In that place there is a jar file
>>>>>> called
>>>>>> XmlSchema-1.4.2.jar(137kb).
>>>>>> Thanks,
>>>>>>
>>>>>> chris
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> So, you are using smx 3.3.1, right?
>>>>>>> This error comes from you use lower version XmlSchema.jar.
>>>>>>>
>>>>>>> Did you ever put lower version servicemix-shared-xxxxxx-
>>>>>>> installer.zip
>>>>>>> into SMX_HOME/hotdeploy folder?
>>>>>>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>>>>>>> shared/
>>>>>>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>>>>>>
>>>>>>> Freeman
>>>>>>>
>>>>>>>
>>>>>>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>> Thanks for the quick reply. I changed the configuration as you
>>>>>>>> said.
>>>>>>>> But
>>>>>>>> still i couldnt deployed it. Following shows the stackrace.
>>>>>>>>
>>>>>>>>
>>>>>>>> INFO: Creating Service
>>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl
>>>>>>>> from
>>>>>>>> class
>>>>>>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>>>>>>> Mar 5, 2010 2:20:19 PM
>>>>>>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>>>>>>> getBeanName
>>>>>>>> INFO: Could not determine bean name for instance of class
>>>>>>>> org.apache.cxf.transport.jbi.JBIDestination.
>>>>>>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>>> initDestination
>>>>>>>> INFO: Setting the server's publish address to be
>>>>>>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>>>>>>> ERROR - CxfSeComponent -
>>>>>>>> java.lang.NoSuchMethodError:
>>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>> w3c/
>>>>>>>> dom/Document;
>>>>>>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>>> initDestination
>>>>>>>> INFO: Setting the server's publish address to be
>>>>>>>> http://localhost:8092/PersonService/
>>>>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>>> ERROR - AutoDeploymentService - Failed to update
>>>>>>>> Service
>>>>>>>> Assembly:
>>>>>>>> wsdl-first-cxf-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-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
>>>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>>> w3c/
>>>>>>>> dom/Document;</loc-message>
>>>>>>>>
>>>>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>> w3c/
>>>>>>>> dom/Document;
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>>>>> 109)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>>>>> 267)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>>> 188)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>>> 148)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>>>>> 362)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>>>>> 58)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>>>>> 55)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .common
>>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>> 97)
>>>>>>>> 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:
>>>>>>>> 520)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>>> 255)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>> 658)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>> 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>
>>>>>>>> <component-task-result
>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>>>>> <component-task-result-details>
>>>>>>>> <task-result-details>
>>>>>>>> <task-id>deploy</task-id>
>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>> </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:
>>>>>>>> 555)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>>> 255)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>> 658)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>>>> Automatic
>>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>>>>> sa-3.3.1.zip
>>>>>>>> failed
>>>>>>>> javax.jbi.management.DeploymentException: Failed to update
>>>>>>>> Service
>>>>>>>> Assembly:
>>>>>>>> wsdl-first-cxf-sa
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>>> 255)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>> 658)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>> 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-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
>>>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>>> w3c/
>>>>>>>> dom/Document;</loc-message>
>>>>>>>>
>>>>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>> w3c/
>>>>>>>> dom/Document;
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>>>>> 109)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>>>>> 267)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>>> 188)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>>> 148)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>>>>> 362)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>>>>> 58)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>>>>> 55)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .common
>>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>> 97)
>>>>>>>> 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:
>>>>>>>> 520)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>>> 255)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>> 658)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>> 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>
>>>>>>>> <component-task-result
>>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>>>>> <component-task-result-details>
>>>>>>>> <task-result-details>
>>>>>>>> <task-id>deploy</task-id>
>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>> </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:
>>>>>>>> 555)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>> ... 6 more
>>>>>>>>
>>>>>>>>
>>>>>>>> I think problem is the I havent supplied the mapping file for
>>>>>>>> acegi
>>>>>>>> binding.
>>>>>>>> I dont know how to give a mapping for the service.
>>>>>>>>
>>>>>>>> Thanks a lot...!!
>>>>>>>>
>>>>>>>> chris
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Freeman Fang wrote:
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> You can't use
>>>>>>>>> <simple:server id="PersonService"
>>>>>>>>>
>>>>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>>>> address="/PersonService">
>>>>>>>>> <simple:serviceBean>
>>>>>>>>> <bean
>>>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>>>> </simple:serviceBean>
>>>>>>>>> </simple:server>
>>>>>>>>>
>>>>>>>>> in smx-cxf-se endpoint xbean.xml.
>>>>>>>>> You should use something like
>>>>>>>>>
>>>>>>>>> <cxfse:endpoint useAegis="true">
>>>>>>>>> <cxfse:pojo>
>>>>>>>>> <bean
>>>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>>>>>>> </bean>
>>>>>>>>>
>>>>>>>>> </cxfse:pojo>
>>>>>>>>> </cxfse:endpoint>
>>>>>>>>>
>>>>>>>>> Notice I put useAegis="true" flag which generally used with
>>>>>>>>> simple
>>>>>>>>> frontend
>>>>>>>>>
>>>>>>>>> You may need also take a look at how to configure smx-cxf-se
>>>>>>>>> endpoint
>>>>>>>>> from [1]
>>>>>>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>>>>>>
>>>>>>>>> Freeman
>>>>>>>>>
>>>>>>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>>>>>>> Following shows my xbean.xml file, Interface and
>>>>>>>>>> implementation
>>>>>>>>>> class.
>>>>>>>>>>
>>>>>>>>>> xbean.xml
>>>>>>>>>>
>>>>>>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>>>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>>>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>>>>>>> xsi:schemaLocation="
>>>>>>>>>> http://www.springframework.org/schema/beans
>>>>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>>>>>> http://cxf.apache.org/bindings/soap
>>>>>>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>>>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>>>>>>> simple.xsd">
>>>>>>>>>>
>>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>>>>>> soap.xml" />
>>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>>>>>>>> jetty.xml" />
>>>>>>>>>>
>>>>>>>>>> <simple:server id="PersonService"
>>>>>>>>>>
>>>>>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>>>>> address="/PersonService">
>>>>>>>>>> <simple:serviceBean>
>>>>>>>>>> <bean
>>>>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>>>>> </simple:serviceBean>
>>>>>>>>>> </simple:server>
>>>>>>>>>> </beans>
>>>>>>>>>>
>>>>>>>>>> Person.java
>>>>>>>>>>
>>>>>>>>>> public interface Person {
>>>>>>>>>>
>>>>>>>>>> public String getPerson(String personId) ;
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> PersonImpl .java
>>>>>>>>>>
>>>>>>>>>> public class PersonImpl implements Person {
>>>>>>>>>>
>>>>>>>>>> public String getPerson(String personId) {
>>>>>>>>>> if (personId == null || personId.length() == 0) {
>>>>>>>>>> return "null";
>>>>>>>>>> }
>>>>>>>>>> return personId = "success";
>>>>>>>>>> }
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Then i am getting following error.
>>>>>>>>>>
>>>>>>>>>> INFO: Creating Service
>>>>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from
>>>>>>>>>> class
>>>>>>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>>>>>>> ERROR - CxfSeComponent -
>>>>>>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>>>>>>> creating bean
>>>>>>>>>> with name 'PersonService': Invocation of init method failed;
>>>>>>>>>> nested
>>>>>>>>>> exception is
>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>>>>> initDestination
>>>>>>>>>> INFO: Setting the server's publish address to be
>>>>>>>>>> http://localhost:8092/PersonService/
>>>>>>>>>> INFO - DeploymentService - UnDeployed
>>>>>>>>>> ServiceUnit
>>>>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>>>>> ERROR - AutoDeploymentService - Failed to update
>>>>>>>>>> Service
>>>>>>>>>> Assembly:
>>>>>>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>>>>>>> nested
>>>>>>>>>> exception is
>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</
>>>>>>>>>> loc-
>>>>>>>>>> message>
>>>>>>>>>>
>>>>>>>>>> <stack-trace><!
>>>>>>>>>> [CDATA
>>>>>>>>>> [org.springframework.beans.factory.BeanCreationException:
>>>>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>>>>> init
>>>>>>>>>> method
>>>>>>>>>> failed; nested exception is
>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>>>>> 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:222)
>>>>>>>>>> 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:
>>>>>>>>>> 728)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .context
>>>>>>>>>> .support
>>>>>>>>>> .AbstractApplicationContext
>>>>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>>>>> 380)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .common
>>>>>>>>>> .xbean
>>>>>>>>>> .AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>>>> 87)
>>>>>>>>>> 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:
>>>>>>>>>> 520)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>>> 255)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>>> 658)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>>> at
>>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>> Caused by:
>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>>> 127)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>> Method)
>>>>>>>>>> at
>>>>>>>>>> sun
>>>>>>>>>> .reflect
>>>>>>>>>> .NativeMethodAccessorImpl
>>>>>>>>>> .invoke(NativeMethodAccessorImpl.java:
>>>>>>>>>> 39)
>>>>>>>>>> at
>>>>>>>>>> sun
>>>>>>>>>> .reflect
>>>>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .invokeCustomInitMethod
>>>>>>>>>> (AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>> 1414)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>> 1375)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>>>>> ... 23 more
>>>>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>>>>> PersonService
>>>>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf
>>>>>>>>>> .transport
>>>>>>>>>> .http_jetty
>>>>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>>>>> 96)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf
>>>>>>>>>> .transport
>>>>>>>>>> .http_jetty
>>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf
>>>>>>>>>> .transport
>>>>>>>>>> .http_jetty
>>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>>>>> 90)
>>>>>>>>>> at
>>>>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>>>>> 69)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>>> 106)
>>>>>>>>>> ... 30 more
>>>>>>>>>> ]]></stack-trace>
>>>>>>>>>> </msg-loc-info>
>>>>>>>>>> </exception-info>
>>>>>>>>>> </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-cxf-bc</component-name>
>>>>>>>>>> <component-task-result-details>
>>>>>>>>>> <task-result-details>
>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>>>> </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:
>>>>>>>>>> 555)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>>> 255)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>>> 658)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>>> at
>>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>>>>>> Automatic
>>>>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-
>>>>>>>>>> cxf-
>>>>>>>>>> sa-3.3.1.zip
>>>>>>>>>> failed
>>>>>>>>>> javax.jbi.management.DeploymentException: Failed to update
>>>>>>>>>> Service
>>>>>>>>>> Assembly:
>>>>>>>>>> wsdl-first-cxf-sa
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>>> 255)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>>> 658)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>>> at
>>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>>>>>>> nested
>>>>>>>>>> exception is
>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</
>>>>>>>>>> loc-
>>>>>>>>>> message>
>>>>>>>>>>
>>>>>>>>>> <stack-trace><!
>>>>>>>>>> [CDATA
>>>>>>>>>> [org.springframework.beans.factory.BeanCreationException:
>>>>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>>>>> init
>>>>>>>>>> method
>>>>>>>>>> failed; nested exception is
>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>>>>> 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:222)
>>>>>>>>>> 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:
>>>>>>>>>> 728)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .context
>>>>>>>>>> .support
>>>>>>>>>> .AbstractApplicationContext
>>>>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>>>>> 380)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .common
>>>>>>>>>> .xbean
>>>>>>>>>> .AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>>>> 87)
>>>>>>>>>> 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:
>>>>>>>>>> 520)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>>> 255)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>>> 658)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>>> at
>>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>>> Caused by:
>>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>>> 127)
>>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>> Method)
>>>>>>>>>> at
>>>>>>>>>> sun
>>>>>>>>>> .reflect
>>>>>>>>>> .NativeMethodAccessorImpl
>>>>>>>>>> .invoke(NativeMethodAccessorImpl.java:
>>>>>>>>>> 39)
>>>>>>>>>> at
>>>>>>>>>> sun
>>>>>>>>>> .reflect
>>>>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .invokeCustomInitMethod
>>>>>>>>>> (AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>> 1414)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>>> 1375)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .springframework
>>>>>>>>>> .beans
>>>>>>>>>> .factory
>>>>>>>>>> .support
>>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>>>>> ... 23 more
>>>>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>>>>> PersonService
>>>>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf
>>>>>>>>>> .transport
>>>>>>>>>> .http_jetty
>>>>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>>>>> 96)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf
>>>>>>>>>> .transport
>>>>>>>>>> .http_jetty
>>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf
>>>>>>>>>> .transport
>>>>>>>>>> .http_jetty
>>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>>>>> 90)
>>>>>>>>>> at
>>>>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>>>>> 69)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>>> 106)
>>>>>>>>>> ... 30 more
>>>>>>>>>> ]]></stack-trace>
>>>>>>>>>> </msg-loc-info>
>>>>>>>>>> </exception-info>
>>>>>>>>>> </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-cxf-bc</component-name>
>>>>>>>>>> <component-task-result-details>
>>>>>>>>>> <task-result-details>
>>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>>>> </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:
>>>>>>>>>> 555)
>>>>>>>>>> at
>>>>>>>>>> org
>>>>>>>>>> .apache
>>>>>>>>>> .servicemix
>>>>>>>>>> .jbi
>>>>>>>>>> .framework
>>>>>>>>>> .AutoDeploymentService
>>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>>> ... 6 more
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Can you give any help to fix this.
>>>>>>>>>> Thanks,
>>>>>>>>>> chris
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> View this message in context:
>>>>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>>>>> Nabble.com.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Freeman Fang
>>>>>>>>> ------------------------
>>>>>>>>> Open Source SOA: http://fusesource.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>>> Nabble.com.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Freeman Fang
>>>>>>> ------------------------
>>>>>>> Open Source SOA: http://fusesource.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>> Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Freeman Fang
>>>>> ------------------------
>>>>> Open Source SOA: http://fusesource.com
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27819063.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>> --
>>> Freeman Fang
>>> ------------------------
>>> Open Source SOA: http://fusesource.com
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27845987.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27847675.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Generate a namespace based on the java class package structure is a
default way.
And as we can specify service name(which is a QName) for cxf se
endpoint, so I believe you can specify your targetNamespace in
xbean.xml.
Just add
service attribute for your cxf se endpoint should be ok.
Something like
service="your_prefix:SimpleService"
and add your_prefix declaration (xmlns:your_prefix="http://
what_ever_you_need") for your xbean.xml.
You need use servicemix-cxf-se 2009.02 or later version.
Freeman
On 2010-3-10, at 下午2:17, chris charles harris wrote:
>
>
> Hi,
>
> I successfully deployed my service by taking your code from the svn.
> But I
> cant change the namespace of my service. It always generates a
> namespace
> according to the package structure and it puts a "/"(slash) at the
> end of
> namespace.
>
>
> Can you give any help please.
> Thanks,
> chris
>
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> As aegis databinding require xmlschema 1.4.3 or higher, I'm going to
>> update xmlschema version to the latest released 1.4.5, create
>> SMXCOMP-721[1] to track it
>>
>>
>> [1]https://issues.apache.org/activemq/browse/SMXCOMP-721
>>
>> Freeman
>> On 2010-3-8, at 下午5:48, chris charles harris wrote:
>>
>>>
>>> Hi,
>>>
>>> did you find any solution.
>>>
>>> thanks,
>>> chris
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>>
>>>> Hi,
>>>>
>>>>
>>>> I believe there must be a XmlSchme-1.3.2.jar somehow get loaded
>>>> cause
>>>> this error.
>>>> Could you just remove SMX_HOME/data folder and try it again?
>>>> If you still see the problem, just send me your project which I can
>>>> build and deploy to reproduce this problem myself.
>>>>
>>>> Freeman
>>>>
>>>> On 2010-3-5, at 下午5:43, chris charles harris wrote:
>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I am using servicemix 3.3.1. But for my application I am using
>>>>> following
>>>>> components.
>>>>>
>>>>> servicemix-shared-2009.02-installer.zip
>>>>> servicemix-cxf-bc-2009.02-installer.zip
>>>>> servicemix-cxf-se-2009.02-installer.zip
>>>>>
>>>>> I think those are latest components.
>>>>> I checked the location u told. In that place there is a jar file
>>>>> called
>>>>> XmlSchema-1.4.2.jar(137kb).
>>>>> Thanks,
>>>>>
>>>>> chris
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> So, you are using smx 3.3.1, right?
>>>>>> This error comes from you use lower version XmlSchema.jar.
>>>>>>
>>>>>> Did you ever put lower version servicemix-shared-xxxxxx-
>>>>>> installer.zip
>>>>>> into SMX_HOME/hotdeploy folder?
>>>>>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>>>>>> shared/
>>>>>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>>>>>
>>>>>> Freeman
>>>>>>
>>>>>>
>>>>>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>> Thanks for the quick reply. I changed the configuration as you
>>>>>>> said.
>>>>>>> But
>>>>>>> still i couldnt deployed it. Following shows the stackrace.
>>>>>>>
>>>>>>>
>>>>>>> INFO: Creating Service
>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl
>>>>>>> from
>>>>>>> class
>>>>>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>>>>>> Mar 5, 2010 2:20:19 PM
>>>>>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>>>>>> getBeanName
>>>>>>> INFO: Could not determine bean name for instance of class
>>>>>>> org.apache.cxf.transport.jbi.JBIDestination.
>>>>>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>> initDestination
>>>>>>> INFO: Setting the server's publish address to be
>>>>>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>>>>>> ERROR - CxfSeComponent -
>>>>>>> java.lang.NoSuchMethodError:
>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>> w3c/
>>>>>>> dom/Document;
>>>>>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>> initDestination
>>>>>>> INFO: Setting the server's publish address to be
>>>>>>> http://localhost:8092/PersonService/
>>>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>> ERROR - AutoDeploymentService - Failed to update
>>>>>>> Service
>>>>>>> Assembly:
>>>>>>> wsdl-first-cxf-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-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
>>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>> w3c/
>>>>>>> dom/Document;</loc-message>
>>>>>>>
>>>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>> w3c/
>>>>>>> dom/Document;
>>>>>>> at
>>>>>>> org
>>>>>>> .apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>>>> 109)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>>>> 267)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>> 188)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>> 148)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>>>> 362)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>>>> 58)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>>>> 55)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>> 97)
>>>>>>> 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:
>>>>>>> 520)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> 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>
>>>>>>> <component-task-result
>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>>>> <component-task-result-details>
>>>>>>> <task-result-details>
>>>>>>> <task-id>deploy</task-id>
>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>> </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:
>>>>>>> 555)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>>> Automatic
>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>>>> sa-3.3.1.zip
>>>>>>> failed
>>>>>>> javax.jbi.management.DeploymentException: Failed to update
>>>>>>> Service
>>>>>>> Assembly:
>>>>>>> wsdl-first-cxf-sa
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> 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-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
>>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>>> w3c/
>>>>>>> dom/Document;</loc-message>
>>>>>>>
>>>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>> w3c/
>>>>>>> dom/Document;
>>>>>>> at
>>>>>>> org
>>>>>>> .apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>>>> 109)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>>>> 267)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>> 188)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>>> 148)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>>>> 362)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>>>> 58)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>>>> 55)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>> 97)
>>>>>>> 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:
>>>>>>> 520)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> 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>
>>>>>>> <component-task-result
>>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>>>> <component-task-result-details>
>>>>>>> <task-result-details>
>>>>>>> <task-id>deploy</task-id>
>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>> </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:
>>>>>>> 555)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> ... 6 more
>>>>>>>
>>>>>>>
>>>>>>> I think problem is the I havent supplied the mapping file for
>>>>>>> acegi
>>>>>>> binding.
>>>>>>> I dont know how to give a mapping for the service.
>>>>>>>
>>>>>>> Thanks a lot...!!
>>>>>>>
>>>>>>> chris
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Freeman Fang wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> You can't use
>>>>>>>> <simple:server id="PersonService"
>>>>>>>>
>>>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>>> address="/PersonService">
>>>>>>>> <simple:serviceBean>
>>>>>>>> <bean
>>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>>> </simple:serviceBean>
>>>>>>>> </simple:server>
>>>>>>>>
>>>>>>>> in smx-cxf-se endpoint xbean.xml.
>>>>>>>> You should use something like
>>>>>>>>
>>>>>>>> <cxfse:endpoint useAegis="true">
>>>>>>>> <cxfse:pojo>
>>>>>>>> <bean
>>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>>>>>> </bean>
>>>>>>>>
>>>>>>>> </cxfse:pojo>
>>>>>>>> </cxfse:endpoint>
>>>>>>>>
>>>>>>>> Notice I put useAegis="true" flag which generally used with
>>>>>>>> simple
>>>>>>>> frontend
>>>>>>>>
>>>>>>>> You may need also take a look at how to configure smx-cxf-se
>>>>>>>> endpoint
>>>>>>>> from [1]
>>>>>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>>>>>
>>>>>>>> Freeman
>>>>>>>>
>>>>>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>>>>>> Following shows my xbean.xml file, Interface and
>>>>>>>>> implementation
>>>>>>>>> class.
>>>>>>>>>
>>>>>>>>> xbean.xml
>>>>>>>>>
>>>>>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>>>>>> xsi:schemaLocation="
>>>>>>>>> http://www.springframework.org/schema/beans
>>>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>>>>> http://cxf.apache.org/bindings/soap
>>>>>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>>>>>> simple.xsd">
>>>>>>>>>
>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>>>>> soap.xml" />
>>>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>>>>>>> jetty.xml" />
>>>>>>>>>
>>>>>>>>> <simple:server id="PersonService"
>>>>>>>>>
>>>>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>>>> address="/PersonService">
>>>>>>>>> <simple:serviceBean>
>>>>>>>>> <bean
>>>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>>>> </simple:serviceBean>
>>>>>>>>> </simple:server>
>>>>>>>>> </beans>
>>>>>>>>>
>>>>>>>>> Person.java
>>>>>>>>>
>>>>>>>>> public interface Person {
>>>>>>>>>
>>>>>>>>> public String getPerson(String personId) ;
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> PersonImpl .java
>>>>>>>>>
>>>>>>>>> public class PersonImpl implements Person {
>>>>>>>>>
>>>>>>>>> public String getPerson(String personId) {
>>>>>>>>> if (personId == null || personId.length() == 0) {
>>>>>>>>> return "null";
>>>>>>>>> }
>>>>>>>>> return personId = "success";
>>>>>>>>> }
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Then i am getting following error.
>>>>>>>>>
>>>>>>>>> INFO: Creating Service
>>>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from
>>>>>>>>> class
>>>>>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>>>>>> ERROR - CxfSeComponent -
>>>>>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>>>>>> creating bean
>>>>>>>>> with name 'PersonService': Invocation of init method failed;
>>>>>>>>> nested
>>>>>>>>> exception is
>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>>>> initDestination
>>>>>>>>> INFO: Setting the server's publish address to be
>>>>>>>>> http://localhost:8092/PersonService/
>>>>>>>>> INFO - DeploymentService - UnDeployed
>>>>>>>>> ServiceUnit
>>>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>>>> ERROR - AutoDeploymentService - Failed to update
>>>>>>>>> Service
>>>>>>>>> Assembly:
>>>>>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>>>>>> nested
>>>>>>>>> exception is
>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</
>>>>>>>>> loc-
>>>>>>>>> message>
>>>>>>>>>
>>>>>>>>> <stack-trace><!
>>>>>>>>> [CDATA
>>>>>>>>> [org.springframework.beans.factory.BeanCreationException:
>>>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>>>> init
>>>>>>>>> method
>>>>>>>>> failed; nested exception is
>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>>>> 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:222)
>>>>>>>>> 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:
>>>>>>>>> 728)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .context
>>>>>>>>> .support
>>>>>>>>> .AbstractApplicationContext
>>>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>>>> 380)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .common
>>>>>>>>> .xbean
>>>>>>>>> .AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>>> 87)
>>>>>>>>> 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:
>>>>>>>>> 520)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>> 255)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>> 658)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>> at
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>> Caused by:
>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>> 127)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>> Method)
>>>>>>>>> at
>>>>>>>>> sun
>>>>>>>>> .reflect
>>>>>>>>> .NativeMethodAccessorImpl
>>>>>>>>> .invoke(NativeMethodAccessorImpl.java:
>>>>>>>>> 39)
>>>>>>>>> at
>>>>>>>>> sun
>>>>>>>>> .reflect
>>>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .invokeCustomInitMethod
>>>>>>>>> (AbstractAutowireCapableBeanFactory.java:
>>>>>>>>> 1414)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>> 1375)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>>>> ... 23 more
>>>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>>>> PersonService
>>>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf
>>>>>>>>> .transport
>>>>>>>>> .http_jetty
>>>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>>>> 96)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf
>>>>>>>>> .transport
>>>>>>>>> .http_jetty
>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf
>>>>>>>>> .transport
>>>>>>>>> .http_jetty
>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>>>> 90)
>>>>>>>>> at
>>>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>>>> 69)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>> 106)
>>>>>>>>> ... 30 more
>>>>>>>>> ]]></stack-trace>
>>>>>>>>> </msg-loc-info>
>>>>>>>>> </exception-info>
>>>>>>>>> </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-cxf-bc</component-name>
>>>>>>>>> <component-task-result-details>
>>>>>>>>> <task-result-details>
>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>>> </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:
>>>>>>>>> 555)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>> 255)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>> 658)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>> at
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>>>>> Automatic
>>>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-
>>>>>>>>> cxf-
>>>>>>>>> sa-3.3.1.zip
>>>>>>>>> failed
>>>>>>>>> javax.jbi.management.DeploymentException: Failed to update
>>>>>>>>> Service
>>>>>>>>> Assembly:
>>>>>>>>> wsdl-first-cxf-sa
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>> 255)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>> 658)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>> at
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>>>>>> nested
>>>>>>>>> exception is
>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</
>>>>>>>>> loc-
>>>>>>>>> message>
>>>>>>>>>
>>>>>>>>> <stack-trace><!
>>>>>>>>> [CDATA
>>>>>>>>> [org.springframework.beans.factory.BeanCreationException:
>>>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>>>> init
>>>>>>>>> method
>>>>>>>>> failed; nested exception is
>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>>>> 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:222)
>>>>>>>>> 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:
>>>>>>>>> 728)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .context
>>>>>>>>> .support
>>>>>>>>> .AbstractApplicationContext
>>>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>>>> 380)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .common
>>>>>>>>> .xbean
>>>>>>>>> .AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>>> 87)
>>>>>>>>> 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:
>>>>>>>>> 520)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateArchive(AutoDeploymentService.java:
>>>>>>>>> 255)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>>> 658)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>>> at
>>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>>> Caused by:
>>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>> 127)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>> Method)
>>>>>>>>> at
>>>>>>>>> sun
>>>>>>>>> .reflect
>>>>>>>>> .NativeMethodAccessorImpl
>>>>>>>>> .invoke(NativeMethodAccessorImpl.java:
>>>>>>>>> 39)
>>>>>>>>> at
>>>>>>>>> sun
>>>>>>>>> .reflect
>>>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .invokeCustomInitMethod
>>>>>>>>> (AbstractAutowireCapableBeanFactory.java:
>>>>>>>>> 1414)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
>>>>>>>>> 1375)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .springframework
>>>>>>>>> .beans
>>>>>>>>> .factory
>>>>>>>>> .support
>>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>>>> ... 23 more
>>>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>>>> PersonService
>>>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf
>>>>>>>>> .transport
>>>>>>>>> .http_jetty
>>>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>>>> 96)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf
>>>>>>>>> .transport
>>>>>>>>> .http_jetty
>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf
>>>>>>>>> .transport
>>>>>>>>> .http_jetty
>>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>>>> 90)
>>>>>>>>> at
>>>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>>>> 69)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>>> 106)
>>>>>>>>> ... 30 more
>>>>>>>>> ]]></stack-trace>
>>>>>>>>> </msg-loc-info>
>>>>>>>>> </exception-info>
>>>>>>>>> </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-cxf-bc</component-name>
>>>>>>>>> <component-task-result-details>
>>>>>>>>> <task-result-details>
>>>>>>>>> <task-id>deploy</task-id>
>>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>>> </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:
>>>>>>>>> 555)
>>>>>>>>> at
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .servicemix
>>>>>>>>> .jbi
>>>>>>>>> .framework
>>>>>>>>> .AutoDeploymentService
>>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>>> ... 6 more
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Can you give any help to fix this.
>>>>>>>>> Thanks,
>>>>>>>>> chris
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>>>> Nabble.com.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Freeman Fang
>>>>>>>> ------------------------
>>>>>>>> Open Source SOA: http://fusesource.com
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>> Nabble.com.
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Freeman Fang
>>>>>> ------------------------
>>>>>> Open Source SOA: http://fusesource.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>
>>>>
>>>> --
>>>> Freeman Fang
>>>> ------------------------
>>>> Open Source SOA: http://fusesource.com
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27819063.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27845987.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
I successfully deployed my service by taking your code from the svn. But I
cant change the namespace of my service. It always generates a namespace
according to the package structure and it puts a "/"(slash) at the end of
namespace.
Can you give any help please.
Thanks,
chris
Freeman Fang wrote:
>
> Hi,
>
> As aegis databinding require xmlschema 1.4.3 or higher, I'm going to
> update xmlschema version to the latest released 1.4.5, create
> SMXCOMP-721[1] to track it
>
>
> [1]https://issues.apache.org/activemq/browse/SMXCOMP-721
>
> Freeman
> On 2010-3-8, at 下午5:48, chris charles harris wrote:
>
>>
>> Hi,
>>
>> did you find any solution.
>>
>> thanks,
>> chris
>>
>>
>>
>> Freeman Fang wrote:
>>>
>>> Hi,
>>>
>>>
>>> I believe there must be a XmlSchme-1.3.2.jar somehow get loaded cause
>>> this error.
>>> Could you just remove SMX_HOME/data folder and try it again?
>>> If you still see the problem, just send me your project which I can
>>> build and deploy to reproduce this problem myself.
>>>
>>> Freeman
>>>
>>> On 2010-3-5, at 下午5:43, chris charles harris wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I am using servicemix 3.3.1. But for my application I am using
>>>> following
>>>> components.
>>>>
>>>> servicemix-shared-2009.02-installer.zip
>>>> servicemix-cxf-bc-2009.02-installer.zip
>>>> servicemix-cxf-se-2009.02-installer.zip
>>>>
>>>> I think those are latest components.
>>>> I checked the location u told. In that place there is a jar file
>>>> called
>>>> XmlSchema-1.4.2.jar(137kb).
>>>> Thanks,
>>>>
>>>> chris
>>>>
>>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> So, you are using smx 3.3.1, right?
>>>>> This error comes from you use lower version XmlSchema.jar.
>>>>>
>>>>> Did you ever put lower version servicemix-shared-xxxxxx-
>>>>> installer.zip
>>>>> into SMX_HOME/hotdeploy folder?
>>>>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>>>>> shared/
>>>>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>>>>
>>>>> Freeman
>>>>>
>>>>>
>>>>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>> Thanks for the quick reply. I changed the configuration as you
>>>>>> said.
>>>>>> But
>>>>>> still i couldnt deployed it. Following shows the stackrace.
>>>>>>
>>>>>>
>>>>>> INFO: Creating Service
>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from
>>>>>> class
>>>>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>>>>> Mar 5, 2010 2:20:19 PM
>>>>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>>>>> getBeanName
>>>>>> INFO: Could not determine bean name for instance of class
>>>>>> org.apache.cxf.transport.jbi.JBIDestination.
>>>>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>>>>> initDestination
>>>>>> INFO: Setting the server's publish address to be
>>>>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>>>>> ERROR - CxfSeComponent -
>>>>>> java.lang.NoSuchMethodError:
>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>> w3c/
>>>>>> dom/Document;
>>>>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>>>>> initDestination
>>>>>> INFO: Setting the server's publish address to be
>>>>>> http://localhost:8092/PersonService/
>>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>>>> Assembly:
>>>>>> wsdl-first-cxf-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-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
>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>> w3c/
>>>>>> dom/Document;</loc-message>
>>>>>>
>>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>> w3c/
>>>>>> dom/Document;
>>>>>> at
>>>>>> org
>>>>>> .apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>>> 109)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>>> 267)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>> 188)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>> 148)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>>> 362)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>>> 58)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>>> 55)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common
>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>>>> 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:
>>>>>> 520)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> 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>
>>>>>> <component-task-result
>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>>> <component-task-result-details>
>>>>>> <task-result-details>
>>>>>> <task-id>deploy</task-id>
>>>>>> <task-result>SUCCESS</task-result>
>>>>>> </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:
>>>>>> 555)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>> Automatic
>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>>> sa-3.3.1.zip
>>>>>> failed
>>>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>>>> Assembly:
>>>>>> wsdl-first-cxf-sa
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> 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-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
>>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>>> w3c/
>>>>>> dom/Document;</loc-message>
>>>>>>
>>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>> w3c/
>>>>>> dom/Document;
>>>>>> at
>>>>>> org
>>>>>> .apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>>> 109)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>>> 267)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>> 188)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>>> 148)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>>> 362)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>>> 58)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>>> 55)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common
>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>>>> 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:
>>>>>> 520)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> 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>
>>>>>> <component-task-result
>>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>>> <component-task-result-details>
>>>>>> <task-result-details>
>>>>>> <task-id>deploy</task-id>
>>>>>> <task-result>SUCCESS</task-result>
>>>>>> </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:
>>>>>> 555)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> ... 6 more
>>>>>>
>>>>>>
>>>>>> I think problem is the I havent supplied the mapping file for
>>>>>> acegi
>>>>>> binding.
>>>>>> I dont know how to give a mapping for the service.
>>>>>>
>>>>>> Thanks a lot...!!
>>>>>>
>>>>>> chris
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Freeman Fang wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> You can't use
>>>>>>> <simple:server id="PersonService"
>>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>> address="/PersonService">
>>>>>>> <simple:serviceBean>
>>>>>>> <bean
>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>> </simple:serviceBean>
>>>>>>> </simple:server>
>>>>>>>
>>>>>>> in smx-cxf-se endpoint xbean.xml.
>>>>>>> You should use something like
>>>>>>>
>>>>>>> <cxfse:endpoint useAegis="true">
>>>>>>> <cxfse:pojo>
>>>>>>> <bean
>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>>>>> </bean>
>>>>>>>
>>>>>>> </cxfse:pojo>
>>>>>>> </cxfse:endpoint>
>>>>>>>
>>>>>>> Notice I put useAegis="true" flag which generally used with
>>>>>>> simple
>>>>>>> frontend
>>>>>>>
>>>>>>> You may need also take a look at how to configure smx-cxf-se
>>>>>>> endpoint
>>>>>>> from [1]
>>>>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>>>>
>>>>>>> Freeman
>>>>>>>
>>>>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>>>>> Following shows my xbean.xml file, Interface and implementation
>>>>>>>> class.
>>>>>>>>
>>>>>>>> xbean.xml
>>>>>>>>
>>>>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>>>>> xsi:schemaLocation="
>>>>>>>> http://www.springframework.org/schema/beans
>>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>>>> http://cxf.apache.org/bindings/soap
>>>>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>>>>> simple.xsd">
>>>>>>>>
>>>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>>>> soap.xml" />
>>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>>>>>> jetty.xml" />
>>>>>>>>
>>>>>>>> <simple:server id="PersonService"
>>>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>>> address="/PersonService">
>>>>>>>> <simple:serviceBean>
>>>>>>>> <bean
>>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>>> </simple:serviceBean>
>>>>>>>> </simple:server>
>>>>>>>> </beans>
>>>>>>>>
>>>>>>>> Person.java
>>>>>>>>
>>>>>>>> public interface Person {
>>>>>>>>
>>>>>>>> public String getPerson(String personId) ;
>>>>>>>> }
>>>>>>>>
>>>>>>>> PersonImpl .java
>>>>>>>>
>>>>>>>> public class PersonImpl implements Person {
>>>>>>>>
>>>>>>>> public String getPerson(String personId) {
>>>>>>>> if (personId == null || personId.length() == 0) {
>>>>>>>> return "null";
>>>>>>>> }
>>>>>>>> return personId = "success";
>>>>>>>> }
>>>>>>>> }
>>>>>>>>
>>>>>>>>
>>>>>>>> Then i am getting following error.
>>>>>>>>
>>>>>>>> INFO: Creating Service
>>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from
>>>>>>>> class
>>>>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>>>>> ERROR - CxfSeComponent -
>>>>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>>>>> creating bean
>>>>>>>> with name 'PersonService': Invocation of init method failed;
>>>>>>>> nested
>>>>>>>> exception is
>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>>> initDestination
>>>>>>>> INFO: Setting the server's publish address to be
>>>>>>>> http://localhost:8092/PersonService/
>>>>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>>> ERROR - AutoDeploymentService - Failed to update
>>>>>>>> Service
>>>>>>>> Assembly:
>>>>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>>>>> nested
>>>>>>>> exception is
>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</
>>>>>>>> loc-
>>>>>>>> message>
>>>>>>>>
>>>>>>>> <stack-trace><!
>>>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>>> init
>>>>>>>> method
>>>>>>>> failed; nested exception is
>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>>> 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:222)
>>>>>>>> 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:
>>>>>>>> 728)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .context
>>>>>>>> .support
>>>>>>>> .AbstractApplicationContext
>>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>>> 380)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .common
>>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>> 87)
>>>>>>>> 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:
>>>>>>>> 520)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>>> 255)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>> 658)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>> Caused by:
>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>> 127)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>> Method)
>>>>>>>> at
>>>>>>>> sun
>>>>>>>> .reflect
>>>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>>>>>>>> 39)
>>>>>>>> at
>>>>>>>> sun
>>>>>>>> .reflect
>>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>>>> 1414)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>>> ... 23 more
>>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>>> PersonService
>>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .http_jetty
>>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>>> 96)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .http_jetty
>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .http_jetty
>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>>> 90)
>>>>>>>> at
>>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>>> 69)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>> 106)
>>>>>>>> ... 30 more
>>>>>>>> ]]></stack-trace>
>>>>>>>> </msg-loc-info>
>>>>>>>> </exception-info>
>>>>>>>> </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-cxf-bc</component-name>
>>>>>>>> <component-task-result-details>
>>>>>>>> <task-result-details>
>>>>>>>> <task-id>deploy</task-id>
>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>> </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:
>>>>>>>> 555)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>>> 255)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>> 658)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>>>> Automatic
>>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>>>>> sa-3.3.1.zip
>>>>>>>> failed
>>>>>>>> javax.jbi.management.DeploymentException: Failed to update
>>>>>>>> Service
>>>>>>>> Assembly:
>>>>>>>> wsdl-first-cxf-sa
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>>> 255)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>> 658)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>>>>> nested
>>>>>>>> exception is
>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</
>>>>>>>> loc-
>>>>>>>> message>
>>>>>>>>
>>>>>>>> <stack-trace><!
>>>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>>> init
>>>>>>>> method
>>>>>>>> failed; nested exception is
>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>>> 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:222)
>>>>>>>> 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:
>>>>>>>> 728)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .context
>>>>>>>> .support
>>>>>>>> .AbstractApplicationContext
>>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>>> 380)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .common
>>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>>> 87)
>>>>>>>> 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:
>>>>>>>> 520)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>>> 255)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>>> 658)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>>> at
>>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>>> Caused by:
>>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>> 127)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>> Method)
>>>>>>>> at
>>>>>>>> sun
>>>>>>>> .reflect
>>>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>>>>>>>> 39)
>>>>>>>> at
>>>>>>>> sun
>>>>>>>> .reflect
>>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>>>> 1414)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .springframework
>>>>>>>> .beans
>>>>>>>> .factory
>>>>>>>> .support
>>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>>> ... 23 more
>>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>>> PersonService
>>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .http_jetty
>>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>>> 96)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .http_jetty
>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf
>>>>>>>> .transport
>>>>>>>> .http_jetty
>>>>>>>> .JettyHTTPTransportFactory
>>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>>> 90)
>>>>>>>> at
>>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>>> 69)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>>> 106)
>>>>>>>> ... 30 more
>>>>>>>> ]]></stack-trace>
>>>>>>>> </msg-loc-info>
>>>>>>>> </exception-info>
>>>>>>>> </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-cxf-bc</component-name>
>>>>>>>> <component-task-result-details>
>>>>>>>> <task-result-details>
>>>>>>>> <task-id>deploy</task-id>
>>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>>> </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:
>>>>>>>> 555)
>>>>>>>> at
>>>>>>>> org
>>>>>>>> .apache
>>>>>>>> .servicemix
>>>>>>>> .jbi
>>>>>>>> .framework
>>>>>>>> .AutoDeploymentService
>>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>>> ... 6 more
>>>>>>>>
>>>>>>>>
>>>>>>>> Can you give any help to fix this.
>>>>>>>> Thanks,
>>>>>>>> chris
>>>>>>>>
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>>> Nabble.com.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Freeman Fang
>>>>>>> ------------------------
>>>>>>> Open Source SOA: http://fusesource.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>> Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Freeman Fang
>>>>> ------------------------
>>>>> Open Source SOA: http://fusesource.com
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>> --
>>> Freeman Fang
>>> ------------------------
>>> Open Source SOA: http://fusesource.com
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27819063.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27845987.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
As aegis databinding require xmlschema 1.4.3 or higher, I'm going to
update xmlschema version to the latest released 1.4.5, create
SMXCOMP-721[1] to track it
[1]https://issues.apache.org/activemq/browse/SMXCOMP-721
Freeman
On 2010-3-8, at 下午5:48, chris charles harris wrote:
>
> Hi,
>
> did you find any solution.
>
> thanks,
> chris
>
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>>
>> I believe there must be a XmlSchme-1.3.2.jar somehow get loaded cause
>> this error.
>> Could you just remove SMX_HOME/data folder and try it again?
>> If you still see the problem, just send me your project which I can
>> build and deploy to reproduce this problem myself.
>>
>> Freeman
>>
>> On 2010-3-5, at 下午5:43, chris charles harris wrote:
>>
>>>
>>> Hi,
>>>
>>> I am using servicemix 3.3.1. But for my application I am using
>>> following
>>> components.
>>>
>>> servicemix-shared-2009.02-installer.zip
>>> servicemix-cxf-bc-2009.02-installer.zip
>>> servicemix-cxf-se-2009.02-installer.zip
>>>
>>> I think those are latest components.
>>> I checked the location u told. In that place there is a jar file
>>> called
>>> XmlSchema-1.4.2.jar(137kb).
>>> Thanks,
>>>
>>> chris
>>>
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>>
>>>> Hi,
>>>>
>>>> So, you are using smx 3.3.1, right?
>>>> This error comes from you use lower version XmlSchema.jar.
>>>>
>>>> Did you ever put lower version servicemix-shared-xxxxxx-
>>>> installer.zip
>>>> into SMX_HOME/hotdeploy folder?
>>>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>>>> shared/
>>>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>>>
>>>> Freeman
>>>>
>>>>
>>>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>>>
>>>>>
>>>>>
>>>>> Hi,
>>>>> Thanks for the quick reply. I changed the configuration as you
>>>>> said.
>>>>> But
>>>>> still i couldnt deployed it. Following shows the stackrace.
>>>>>
>>>>>
>>>>> INFO: Creating Service
>>>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from
>>>>> class
>>>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>>>> Mar 5, 2010 2:20:19 PM
>>>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>>>> getBeanName
>>>>> INFO: Could not determine bean name for instance of class
>>>>> org.apache.cxf.transport.jbi.JBIDestination.
>>>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>>>> initDestination
>>>>> INFO: Setting the server's publish address to be
>>>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>>>> ERROR - CxfSeComponent -
>>>>> java.lang.NoSuchMethodError:
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>> w3c/
>>>>> dom/Document;
>>>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>>>> initDestination
>>>>> INFO: Setting the server's publish address to be
>>>>> http://localhost:8092/PersonService/
>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>>> Assembly:
>>>>> wsdl-first-cxf-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-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
>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>> w3c/
>>>>> dom/Document;</loc-message>
>>>>>
>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>> w3c/
>>>>> dom/Document;
>>>>> at
>>>>> org
>>>>> .apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>> 109)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>> 267)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>> 188)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>> 148)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>> 362)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>> 58)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>> 55)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>>> 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:
>>>>> 520)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>> 255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> 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>
>>>>> <component-task-result
>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>> <component-task-result-details>
>>>>> <task-result-details>
>>>>> <task-id>deploy</task-id>
>>>>> <task-result>SUCCESS</task-result>
>>>>> </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:
>>>>> 555)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>> 255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>> Automatic
>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>> sa-3.3.1.zip
>>>>> failed
>>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>>> Assembly:
>>>>> wsdl-first-cxf-sa
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>> 255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>> 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-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
>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>>> w3c/
>>>>> dom/Document;</loc-message>
>>>>>
>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/
>>>>> w3c/
>>>>> dom/Document;
>>>>> at
>>>>> org
>>>>> .apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>> 109)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>> 267)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>> 188)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>> 148)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>> 362)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>> 58)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:
>>>>> 55)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>>> 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:
>>>>> 520)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>> 255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> 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>
>>>>> <component-task-result
>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>> <component-task-result-details>
>>>>> <task-result-details>
>>>>> <task-id>deploy</task-id>
>>>>> <task-result>SUCCESS</task-result>
>>>>> </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:
>>>>> 555)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> ... 6 more
>>>>>
>>>>>
>>>>> I think problem is the I havent supplied the mapping file for
>>>>> acegi
>>>>> binding.
>>>>> I dont know how to give a mapping for the service.
>>>>>
>>>>> Thanks a lot...!!
>>>>>
>>>>> chris
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> You can't use
>>>>>> <simple:server id="PersonService"
>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>> address="/PersonService">
>>>>>> <simple:serviceBean>
>>>>>> <bean
>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>> </simple:serviceBean>
>>>>>> </simple:server>
>>>>>>
>>>>>> in smx-cxf-se endpoint xbean.xml.
>>>>>> You should use something like
>>>>>>
>>>>>> <cxfse:endpoint useAegis="true">
>>>>>> <cxfse:pojo>
>>>>>> <bean
>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>>>> </bean>
>>>>>>
>>>>>> </cxfse:pojo>
>>>>>> </cxfse:endpoint>
>>>>>>
>>>>>> Notice I put useAegis="true" flag which generally used with
>>>>>> simple
>>>>>> frontend
>>>>>>
>>>>>> You may need also take a look at how to configure smx-cxf-se
>>>>>> endpoint
>>>>>> from [1]
>>>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>>>
>>>>>> Freeman
>>>>>>
>>>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>>>> Following shows my xbean.xml file, Interface and implementation
>>>>>>> class.
>>>>>>>
>>>>>>> xbean.xml
>>>>>>>
>>>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>>>> xsi:schemaLocation="
>>>>>>> http://www.springframework.org/schema/beans
>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>>> http://cxf.apache.org/bindings/soap
>>>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>>>> simple.xsd">
>>>>>>>
>>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>>> soap.xml" />
>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>>>>> jetty.xml" />
>>>>>>>
>>>>>>> <simple:server id="PersonService"
>>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>> address="/PersonService">
>>>>>>> <simple:serviceBean>
>>>>>>> <bean
>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>> </simple:serviceBean>
>>>>>>> </simple:server>
>>>>>>> </beans>
>>>>>>>
>>>>>>> Person.java
>>>>>>>
>>>>>>> public interface Person {
>>>>>>>
>>>>>>> public String getPerson(String personId) ;
>>>>>>> }
>>>>>>>
>>>>>>> PersonImpl .java
>>>>>>>
>>>>>>> public class PersonImpl implements Person {
>>>>>>>
>>>>>>> public String getPerson(String personId) {
>>>>>>> if (personId == null || personId.length() == 0) {
>>>>>>> return "null";
>>>>>>> }
>>>>>>> return personId = "success";
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> Then i am getting following error.
>>>>>>>
>>>>>>> INFO: Creating Service
>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from
>>>>>>> class
>>>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>>>> ERROR - CxfSeComponent -
>>>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>>>> creating bean
>>>>>>> with name 'PersonService': Invocation of init method failed;
>>>>>>> nested
>>>>>>> exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>> initDestination
>>>>>>> INFO: Setting the server's publish address to be
>>>>>>> http://localhost:8092/PersonService/
>>>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>> ERROR - AutoDeploymentService - Failed to update
>>>>>>> Service
>>>>>>> Assembly:
>>>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>>>> nested
>>>>>>> exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</
>>>>>>> loc-
>>>>>>> message>
>>>>>>>
>>>>>>> <stack-trace><!
>>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>> init
>>>>>>> method
>>>>>>> failed; nested exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>> 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:222)
>>>>>>> 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:
>>>>>>> 728)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .context
>>>>>>> .support
>>>>>>> .AbstractApplicationContext
>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>> 380)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>> 87)
>>>>>>> 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:
>>>>>>> 520)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> Caused by:
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>> 127)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>> Method)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>>>>>>> 39)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>>> 1414)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>> ... 23 more
>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>> PersonService
>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>> 96)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPTransportFactory
>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPTransportFactory
>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>> 90)
>>>>>>> at
>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>> 69)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>> 106)
>>>>>>> ... 30 more
>>>>>>> ]]></stack-trace>
>>>>>>> </msg-loc-info>
>>>>>>> </exception-info>
>>>>>>> </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-cxf-bc</component-name>
>>>>>>> <component-task-result-details>
>>>>>>> <task-result-details>
>>>>>>> <task-id>deploy</task-id>
>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>> </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:
>>>>>>> 555)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>>> Automatic
>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>>>> sa-3.3.1.zip
>>>>>>> failed
>>>>>>> javax.jbi.management.DeploymentException: Failed to update
>>>>>>> Service
>>>>>>> Assembly:
>>>>>>> wsdl-first-cxf-sa
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>>>> nested
>>>>>>> exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</
>>>>>>> loc-
>>>>>>> message>
>>>>>>>
>>>>>>> <stack-trace><!
>>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>>> Error creating bean with name 'PersonService': Invocation of
>>>>>>> init
>>>>>>> method
>>>>>>> failed; nested exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>> 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:222)
>>>>>>> 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:
>>>>>>> 728)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .context
>>>>>>> .support
>>>>>>> .AbstractApplicationContext
>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>> 380)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
>>>>>>> 87)
>>>>>>> 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:
>>>>>>> 520)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> Caused by:
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>> 127)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>> Method)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>>>>>>> 39)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>>> 1414)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>> ... 23 more
>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>> PersonService
>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>> 96)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPTransportFactory
>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPTransportFactory
>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>> 90)
>>>>>>> at
>>>>>>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>> 69)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>> 106)
>>>>>>> ... 30 more
>>>>>>> ]]></stack-trace>
>>>>>>> </msg-loc-info>
>>>>>>> </exception-info>
>>>>>>> </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-cxf-bc</component-name>
>>>>>>> <component-task-result-details>
>>>>>>> <task-result-details>
>>>>>>> <task-id>deploy</task-id>
>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>> </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:
>>>>>>> 555)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> ... 6 more
>>>>>>>
>>>>>>>
>>>>>>> Can you give any help to fix this.
>>>>>>> Thanks,
>>>>>>> chris
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>> Nabble.com.
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Freeman Fang
>>>>>> ------------------------
>>>>>> Open Source SOA: http://fusesource.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>
>>>>
>>>> --
>>>> Freeman Fang
>>>> ------------------------
>>>> Open Source SOA: http://fusesource.com
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27819063.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
did you find any solution.
thanks,
chris
Freeman Fang wrote:
>
> Hi,
>
>
> I believe there must be a XmlSchme-1.3.2.jar somehow get loaded cause
> this error.
> Could you just remove SMX_HOME/data folder and try it again?
> If you still see the problem, just send me your project which I can
> build and deploy to reproduce this problem myself.
>
> Freeman
>
> On 2010-3-5, at 下午5:43, chris charles harris wrote:
>
>>
>> Hi,
>>
>> I am using servicemix 3.3.1. But for my application I am using
>> following
>> components.
>>
>> servicemix-shared-2009.02-installer.zip
>> servicemix-cxf-bc-2009.02-installer.zip
>> servicemix-cxf-se-2009.02-installer.zip
>>
>> I think those are latest components.
>> I checked the location u told. In that place there is a jar file
>> called
>> XmlSchema-1.4.2.jar(137kb).
>> Thanks,
>>
>> chris
>>
>>
>>
>>
>> Freeman Fang wrote:
>>>
>>> Hi,
>>>
>>> So, you are using smx 3.3.1, right?
>>> This error comes from you use lower version XmlSchema.jar.
>>>
>>> Did you ever put lower version servicemix-shared-xxxxxx-installer.zip
>>> into SMX_HOME/hotdeploy folder?
>>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>>> shared/
>>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>>
>>> Freeman
>>>
>>>
>>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>>
>>>>
>>>>
>>>> Hi,
>>>> Thanks for the quick reply. I changed the configuration as you said.
>>>> But
>>>> still i couldnt deployed it. Following shows the stackrace.
>>>>
>>>>
>>>> INFO: Creating Service
>>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from
>>>> class
>>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>>> Mar 5, 2010 2:20:19 PM
>>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>>> getBeanName
>>>> INFO: Could not determine bean name for instance of class
>>>> org.apache.cxf.transport.jbi.JBIDestination.
>>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>>> initDestination
>>>> INFO: Setting the server's publish address to be
>>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>>> ERROR - CxfSeComponent -
>>>> java.lang.NoSuchMethodError:
>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;
>>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>>> initDestination
>>>> INFO: Setting the server's publish address to be
>>>> http://localhost:8092/PersonService/
>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>> Assembly:
>>>> wsdl-first-cxf-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-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
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;</loc-message>
>>>>
>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;
>>>> at
>>>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>> 109)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>> 267)
>>>> at
>>>> org
>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>> 188)
>>>> at
>>>> org
>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>> 148)
>>>> at
>>>> org
>>>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>> 362)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:
>>>> 58)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common
>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>> 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:520)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> 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>
>>>> <component-task-result
>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>> <component-name>servicemix-cxf-bc</component-name>
>>>> <component-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>SUCCESS</task-result>
>>>> </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:555)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>> at java.util.TimerThread.run(Timer.java:462)
>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>> Automatic
>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>> sa-3.3.1.zip
>>>> failed
>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>> Assembly:
>>>> wsdl-first-cxf-sa
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>> at java.util.TimerThread.run(Timer.java:462)
>>>> 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-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
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;</loc-message>
>>>>
>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;
>>>> at
>>>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>> 109)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>> 267)
>>>> at
>>>> org
>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>> 188)
>>>> at
>>>> org
>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>> 148)
>>>> at
>>>> org
>>>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>> 362)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:
>>>> 58)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common
>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>> 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:520)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> 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>
>>>> <component-task-result
>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>> <component-name>servicemix-cxf-bc</component-name>
>>>> <component-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>SUCCESS</task-result>
>>>> </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:555)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> ... 6 more
>>>>
>>>>
>>>> I think problem is the I havent supplied the mapping file for acegi
>>>> binding.
>>>> I dont know how to give a mapping for the service.
>>>>
>>>> Thanks a lot...!!
>>>>
>>>> chris
>>>>
>>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> You can't use
>>>>> <simple:server id="PersonService"
>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>> address="/PersonService">
>>>>> <simple:serviceBean>
>>>>> <bean
>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>> </simple:serviceBean>
>>>>> </simple:server>
>>>>>
>>>>> in smx-cxf-se endpoint xbean.xml.
>>>>> You should use something like
>>>>>
>>>>> <cxfse:endpoint useAegis="true">
>>>>> <cxfse:pojo>
>>>>> <bean
>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>>> </bean>
>>>>>
>>>>> </cxfse:pojo>
>>>>> </cxfse:endpoint>
>>>>>
>>>>> Notice I put useAegis="true" flag which generally used with simple
>>>>> frontend
>>>>>
>>>>> You may need also take a look at how to configure smx-cxf-se
>>>>> endpoint
>>>>> from [1]
>>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>>
>>>>> Freeman
>>>>>
>>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>>> Following shows my xbean.xml file, Interface and implementation
>>>>>> class.
>>>>>>
>>>>>> xbean.xml
>>>>>>
>>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>>> xsi:schemaLocation="
>>>>>> http://www.springframework.org/schema/beans
>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>> http://cxf.apache.org/bindings/soap
>>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>>> simple.xsd">
>>>>>>
>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>> soap.xml" />
>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>>>> jetty.xml" />
>>>>>>
>>>>>> <simple:server id="PersonService"
>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>> address="/PersonService">
>>>>>> <simple:serviceBean>
>>>>>> <bean
>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>> </simple:serviceBean>
>>>>>> </simple:server>
>>>>>> </beans>
>>>>>>
>>>>>> Person.java
>>>>>>
>>>>>> public interface Person {
>>>>>>
>>>>>> public String getPerson(String personId) ;
>>>>>> }
>>>>>>
>>>>>> PersonImpl .java
>>>>>>
>>>>>> public class PersonImpl implements Person {
>>>>>>
>>>>>> public String getPerson(String personId) {
>>>>>> if (personId == null || personId.length() == 0) {
>>>>>> return "null";
>>>>>> }
>>>>>> return personId = "success";
>>>>>> }
>>>>>> }
>>>>>>
>>>>>>
>>>>>> Then i am getting following error.
>>>>>>
>>>>>> INFO: Creating Service
>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from
>>>>>> class
>>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>>> ERROR - CxfSeComponent -
>>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>>> creating bean
>>>>>> with name 'PersonService': Invocation of init method failed;
>>>>>> nested
>>>>>> exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>>> initDestination
>>>>>> INFO: Setting the server's publish address to be
>>>>>> http://localhost:8092/PersonService/
>>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>>>> Assembly:
>>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>>> nested
>>>>>> exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>>>> message>
>>>>>>
>>>>>> <stack-trace><!
>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>> Error creating bean with name 'PersonService': Invocation of init
>>>>>> method
>>>>>> failed; nested exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>> 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:222)
>>>>>> 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:
>>>>>> 728)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .context
>>>>>> .support
>>>>>> .AbstractApplicationContext
>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>> 380)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common
>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>>>> 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:
>>>>>> 520)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> Caused by:
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>> 127)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>> Method)
>>>>>> at
>>>>>> sun
>>>>>> .reflect
>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>> at
>>>>>> sun
>>>>>> .reflect
>>>>>> .DelegatingMethodAccessorImpl
>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>> 1414)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>> ... 23 more
>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>> PersonService
>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>> 96)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty
>>>>>> .JettyHTTPTransportFactory
>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty
>>>>>> .JettyHTTPTransportFactory
>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>> at
>>>>>> org
>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>> 90)
>>>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>> 69)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>> 106)
>>>>>> ... 30 more
>>>>>> ]]></stack-trace>
>>>>>> </msg-loc-info>
>>>>>> </exception-info>
>>>>>> </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-cxf-bc</component-name>
>>>>>> <component-task-result-details>
>>>>>> <task-result-details>
>>>>>> <task-id>deploy</task-id>
>>>>>> <task-result>SUCCESS</task-result>
>>>>>> </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:
>>>>>> 555)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>> Automatic
>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>>> sa-3.3.1.zip
>>>>>> failed
>>>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>>>> Assembly:
>>>>>> wsdl-first-cxf-sa
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>>> nested
>>>>>> exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>>>> message>
>>>>>>
>>>>>> <stack-trace><!
>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>> Error creating bean with name 'PersonService': Invocation of init
>>>>>> method
>>>>>> failed; nested exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>> 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:222)
>>>>>> 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:
>>>>>> 728)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .context
>>>>>> .support
>>>>>> .AbstractApplicationContext
>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>> 380)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common
>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>>>> 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:
>>>>>> 520)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> Caused by:
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>> 127)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>> Method)
>>>>>> at
>>>>>> sun
>>>>>> .reflect
>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>> at
>>>>>> sun
>>>>>> .reflect
>>>>>> .DelegatingMethodAccessorImpl
>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>> 1414)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>> ... 23 more
>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>> PersonService
>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>> 96)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty
>>>>>> .JettyHTTPTransportFactory
>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty
>>>>>> .JettyHTTPTransportFactory
>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>> at
>>>>>> org
>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>> 90)
>>>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>> 69)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>> 106)
>>>>>> ... 30 more
>>>>>> ]]></stack-trace>
>>>>>> </msg-loc-info>
>>>>>> </exception-info>
>>>>>> </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-cxf-bc</component-name>
>>>>>> <component-task-result-details>
>>>>>> <task-result-details>
>>>>>> <task-id>deploy</task-id>
>>>>>> <task-result>SUCCESS</task-result>
>>>>>> </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:
>>>>>> 555)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> ... 6 more
>>>>>>
>>>>>>
>>>>>> Can you give any help to fix this.
>>>>>> Thanks,
>>>>>> chris
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>> Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Freeman Fang
>>>>> ------------------------
>>>>> Open Source SOA: http://fusesource.com
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>> --
>>> Freeman Fang
>>> ------------------------
>>> Open Source SOA: http://fusesource.com
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27819063.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
I changed the version of all the component to 2009.01. Then it is deploying
successfully. But still I am getting error. I think i havent able to
correctly wire the bc and se.
Mar 5, 2010 4:53:28 PM org.apache.cxf.transport.jbi.JBITransportFactory
setDeliveryChannel
INFO: configuring DeliveryChannel:
org.apache.servicemix.common.EndpointDeliveryChannel@184bc9b
ERROR - CxfSeComponent - Error processing exchange InOut[
id: ID:192.168.102.89-1272e0fba93-3:0
status: Active
role: provider
interface: {http://wsdl_first.samples.servicemix.apache.org/}Person
service: {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl
endpoint: PersonImplPort
operation: {http://wsdl_first.samples.servicemix.apache.org/}GetPerson
in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
xmlns:msg="http://wsdl_first.samples.servicemix.apache.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="GetPersonRequest" type="msg:GetPersonRequest"
version="1.0"><jbi:part><typ:GetPerson
xmlns:typ="http://servicemix.apache.org/samples/wsdl-first/types">
<typ:personId>sasasa</typ:personId>
</typ:GetPerson></jbi:part></jbi:message>
]
java.lang.NullPointerException
at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:359)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:535)
at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Mar 5, 2010 4:53:28 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now null
Following show my xbean.xml files.
BC xbean.xml
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:person="http://wsdl_first.samples.servicemix.apache.org/">
<cxfbc:consumer wsdl="classpath:person.wsdl"
targetService="person:PersonImpl"
targetInterface="person:Person"/>
</beans>
SE xbean.xml
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
xmlns:person="http://wsdl_first.samples.servicemix.apache.org/">
<cxfse:endpoint useAegis="true" service="person:PersonService"
endpoint="PersonService" interfaceName="person:Person">
<cxfse:pojo>
<bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
</cxfse:pojo>
</cxfse:endpoint>
</beans>
I have attached my wsdl also.
Thanks
chris http://old.nabble.com/file/p27792919/person.wsdl person.wsdl
chris charles harris wrote:
>
>
> Hi,
>
> I have attached my code with this.
> Thanks,
> chris
>
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>>
>> I believe there must be a XmlSchme-1.3.2.jar somehow get loaded cause
>> this error.
>> Could you just remove SMX_HOME/data folder and try it again?
>> If you still see the problem, just send me your project which I can
>> build and deploy to reproduce this problem myself.
>>
>> Freeman
>>
>> On 2010-3-5, at 下午5:43, chris charles harris wrote:
>>
>>>
>>> Hi,
>>>
>>> I am using servicemix 3.3.1. But for my application I am using
>>> following
>>> components.
>>>
>>> servicemix-shared-2009.02-installer.zip
>>> servicemix-cxf-bc-2009.02-installer.zip
>>> servicemix-cxf-se-2009.02-installer.zip
>>>
>>> I think those are latest components.
>>> I checked the location u told. In that place there is a jar file
>>> called
>>> XmlSchema-1.4.2.jar(137kb).
>>> Thanks,
>>>
>>> chris
>>>
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>>
>>>> Hi,
>>>>
>>>> So, you are using smx 3.3.1, right?
>>>> This error comes from you use lower version XmlSchema.jar.
>>>>
>>>> Did you ever put lower version servicemix-shared-xxxxxx-installer.zip
>>>> into SMX_HOME/hotdeploy folder?
>>>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>>>> shared/
>>>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>>>
>>>> Freeman
>>>>
>>>>
>>>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>>>
>>>>>
>>>>>
>>>>> Hi,
>>>>> Thanks for the quick reply. I changed the configuration as you said.
>>>>> But
>>>>> still i couldnt deployed it. Following shows the stackrace.
>>>>>
>>>>>
>>>>> INFO: Creating Service
>>>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from
>>>>> class
>>>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>>>> Mar 5, 2010 2:20:19 PM
>>>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>>>> getBeanName
>>>>> INFO: Could not determine bean name for instance of class
>>>>> org.apache.cxf.transport.jbi.JBIDestination.
>>>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>>>> initDestination
>>>>> INFO: Setting the server's publish address to be
>>>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>>>> ERROR - CxfSeComponent -
>>>>> java.lang.NoSuchMethodError:
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>>> dom/Document;
>>>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>>>> initDestination
>>>>> INFO: Setting the server's publish address to be
>>>>> http://localhost:8092/PersonService/
>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>>> Assembly:
>>>>> wsdl-first-cxf-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-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
>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>>> dom/Document;</loc-message>
>>>>>
>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>>> dom/Document;
>>>>> at
>>>>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>> 109)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>> 267)
>>>>> at
>>>>> org
>>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>> 188)
>>>>> at
>>>>> org
>>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>> 148)
>>>>> at
>>>>> org
>>>>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>> 362)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>> 58)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>>> 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:520)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> 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>
>>>>> <component-task-result
>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>> <component-task-result-details>
>>>>> <task-result-details>
>>>>> <task-id>deploy</task-id>
>>>>> <task-result>SUCCESS</task-result>
>>>>> </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:555)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>> Automatic
>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>> sa-3.3.1.zip
>>>>> failed
>>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>>> Assembly:
>>>>> wsdl-first-cxf-sa
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>> 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-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
>>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>>> dom/Document;</loc-message>
>>>>>
>>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>>> dom/Document;
>>>>> at
>>>>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>>> 109)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>>> 267)
>>>>> at
>>>>> org
>>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>> 188)
>>>>> at
>>>>> org
>>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>>> 148)
>>>>> at
>>>>> org
>>>>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>>> 362)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:
>>>>> 58)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>>> 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:520)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> 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>
>>>>> <component-task-result
>>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>>> <component-name>servicemix-cxf-bc</component-name>
>>>>> <component-task-result-details>
>>>>> <task-result-details>
>>>>> <task-id>deploy</task-id>
>>>>> <task-result>SUCCESS</task-result>
>>>>> </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:555)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> ... 6 more
>>>>>
>>>>>
>>>>> I think problem is the I havent supplied the mapping file for acegi
>>>>> binding.
>>>>> I dont know how to give a mapping for the service.
>>>>>
>>>>> Thanks a lot...!!
>>>>>
>>>>> chris
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Freeman Fang wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> You can't use
>>>>>> <simple:server id="PersonService"
>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>> address="/PersonService">
>>>>>> <simple:serviceBean>
>>>>>> <bean
>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>> </simple:serviceBean>
>>>>>> </simple:server>
>>>>>>
>>>>>> in smx-cxf-se endpoint xbean.xml.
>>>>>> You should use something like
>>>>>>
>>>>>> <cxfse:endpoint useAegis="true">
>>>>>> <cxfse:pojo>
>>>>>> <bean
>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>>>> </bean>
>>>>>>
>>>>>> </cxfse:pojo>
>>>>>> </cxfse:endpoint>
>>>>>>
>>>>>> Notice I put useAegis="true" flag which generally used with simple
>>>>>> frontend
>>>>>>
>>>>>> You may need also take a look at how to configure smx-cxf-se
>>>>>> endpoint
>>>>>> from [1]
>>>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>>>
>>>>>> Freeman
>>>>>>
>>>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>>>> Following shows my xbean.xml file, Interface and implementation
>>>>>>> class.
>>>>>>>
>>>>>>> xbean.xml
>>>>>>>
>>>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>>>> xsi:schemaLocation="
>>>>>>> http://www.springframework.org/schema/beans
>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>>> http://cxf.apache.org/bindings/soap
>>>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>>>> simple.xsd">
>>>>>>>
>>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>>> soap.xml" />
>>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>>>>> jetty.xml" />
>>>>>>>
>>>>>>> <simple:server id="PersonService"
>>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>>> address="/PersonService">
>>>>>>> <simple:serviceBean>
>>>>>>> <bean
>>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>>> </simple:serviceBean>
>>>>>>> </simple:server>
>>>>>>> </beans>
>>>>>>>
>>>>>>> Person.java
>>>>>>>
>>>>>>> public interface Person {
>>>>>>>
>>>>>>> public String getPerson(String personId) ;
>>>>>>> }
>>>>>>>
>>>>>>> PersonImpl .java
>>>>>>>
>>>>>>> public class PersonImpl implements Person {
>>>>>>>
>>>>>>> public String getPerson(String personId) {
>>>>>>> if (personId == null || personId.length() == 0) {
>>>>>>> return "null";
>>>>>>> }
>>>>>>> return personId = "success";
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> Then i am getting following error.
>>>>>>>
>>>>>>> INFO: Creating Service
>>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from
>>>>>>> class
>>>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>>>> ERROR - CxfSeComponent -
>>>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>>>> creating bean
>>>>>>> with name 'PersonService': Invocation of init method failed;
>>>>>>> nested
>>>>>>> exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>>>> initDestination
>>>>>>> INFO: Setting the server's publish address to be
>>>>>>> http://localhost:8092/PersonService/
>>>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>>>>> Assembly:
>>>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>>>> nested
>>>>>>> exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>>>>> message>
>>>>>>>
>>>>>>> <stack-trace><!
>>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>>> Error creating bean with name 'PersonService': Invocation of init
>>>>>>> method
>>>>>>> failed; nested exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>> 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:222)
>>>>>>> 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:
>>>>>>> 728)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .context
>>>>>>> .support
>>>>>>> .AbstractApplicationContext
>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>> 380)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>>>>> 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:
>>>>>>> 520)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> Caused by:
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>> 127)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>> Method)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>>> 1414)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>> ... 23 more
>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>> PersonService
>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>> 96)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPTransportFactory
>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPTransportFactory
>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>> 90)
>>>>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>> 69)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>> 106)
>>>>>>> ... 30 more
>>>>>>> ]]></stack-trace>
>>>>>>> </msg-loc-info>
>>>>>>> </exception-info>
>>>>>>> </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-cxf-bc</component-name>
>>>>>>> <component-task-result-details>
>>>>>>> <task-result-details>
>>>>>>> <task-id>deploy</task-id>
>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>> </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:
>>>>>>> 555)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>>> Automatic
>>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>>>> sa-3.3.1.zip
>>>>>>> failed
>>>>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>>>>> Assembly:
>>>>>>> wsdl-first-cxf-sa
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>>>> nested
>>>>>>> exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>>>>> message>
>>>>>>>
>>>>>>> <stack-trace><!
>>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>>> Error creating bean with name 'PersonService': Invocation of init
>>>>>>> method
>>>>>>> failed; nested exception is
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>>> 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:222)
>>>>>>> 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:
>>>>>>> 728)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .context
>>>>>>> .support
>>>>>>> .AbstractApplicationContext
>>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>>> 380)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>>>>> 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:
>>>>>>> 520)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>>> 255)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>>> 658)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>>> $800(AutoDeploymentService.java:63)
>>>>>>> at
>>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>>> Caused by:
>>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>> 127)
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>> Method)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>>> 1414)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>>> ... 23 more
>>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>>> PersonService
>>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>>> 96)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPTransportFactory
>>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf
>>>>>>> .transport
>>>>>>> .http_jetty
>>>>>>> .JettyHTTPTransportFactory
>>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>>> 90)
>>>>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>>> 69)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>>> 106)
>>>>>>> ... 30 more
>>>>>>> ]]></stack-trace>
>>>>>>> </msg-loc-info>
>>>>>>> </exception-info>
>>>>>>> </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-cxf-bc</component-name>
>>>>>>> <component-task-result-details>
>>>>>>> <task-result-details>
>>>>>>> <task-id>deploy</task-id>
>>>>>>> <task-result>SUCCESS</task-result>
>>>>>>> </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:
>>>>>>> 555)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .jbi
>>>>>>> .framework
>>>>>>> .AutoDeploymentService
>>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>>> ... 6 more
>>>>>>>
>>>>>>>
>>>>>>> Can you give any help to fix this.
>>>>>>> Thanks,
>>>>>>> chris
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>>> Nabble.com.
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Freeman Fang
>>>>>> ------------------------
>>>>>> Open Source SOA: http://fusesource.com
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>>
>>>>
>>>>
>>>> --
>>>> Freeman Fang
>>>> ------------------------
>>>> Open Source SOA: http://fusesource.com
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
> http://old.nabble.com/file/p27792140/cxf-wsdl-first.zip
> cxf-wsdl-first.zip
>
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27792919.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
I have attached my code with this.
Thanks,
chris
Freeman Fang wrote:
>
> Hi,
>
>
> I believe there must be a XmlSchme-1.3.2.jar somehow get loaded cause
> this error.
> Could you just remove SMX_HOME/data folder and try it again?
> If you still see the problem, just send me your project which I can
> build and deploy to reproduce this problem myself.
>
> Freeman
>
> On 2010-3-5, at 下午5:43, chris charles harris wrote:
>
>>
>> Hi,
>>
>> I am using servicemix 3.3.1. But for my application I am using
>> following
>> components.
>>
>> servicemix-shared-2009.02-installer.zip
>> servicemix-cxf-bc-2009.02-installer.zip
>> servicemix-cxf-se-2009.02-installer.zip
>>
>> I think those are latest components.
>> I checked the location u told. In that place there is a jar file
>> called
>> XmlSchema-1.4.2.jar(137kb).
>> Thanks,
>>
>> chris
>>
>>
>>
>>
>> Freeman Fang wrote:
>>>
>>> Hi,
>>>
>>> So, you are using smx 3.3.1, right?
>>> This error comes from you use lower version XmlSchema.jar.
>>>
>>> Did you ever put lower version servicemix-shared-xxxxxx-installer.zip
>>> into SMX_HOME/hotdeploy folder?
>>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>>> shared/
>>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>>
>>> Freeman
>>>
>>>
>>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>>
>>>>
>>>>
>>>> Hi,
>>>> Thanks for the quick reply. I changed the configuration as you said.
>>>> But
>>>> still i couldnt deployed it. Following shows the stackrace.
>>>>
>>>>
>>>> INFO: Creating Service
>>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from
>>>> class
>>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>>> Mar 5, 2010 2:20:19 PM
>>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>>> getBeanName
>>>> INFO: Could not determine bean name for instance of class
>>>> org.apache.cxf.transport.jbi.JBIDestination.
>>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>>> initDestination
>>>> INFO: Setting the server's publish address to be
>>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>>> ERROR - CxfSeComponent -
>>>> java.lang.NoSuchMethodError:
>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;
>>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>>> initDestination
>>>> INFO: Setting the server's publish address to be
>>>> http://localhost:8092/PersonService/
>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>> Assembly:
>>>> wsdl-first-cxf-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-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
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;</loc-message>
>>>>
>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;
>>>> at
>>>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>> 109)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>> 267)
>>>> at
>>>> org
>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>> 188)
>>>> at
>>>> org
>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>> 148)
>>>> at
>>>> org
>>>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>> 362)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:
>>>> 58)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common
>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>> 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:520)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> 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>
>>>> <component-task-result
>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>> <component-name>servicemix-cxf-bc</component-name>
>>>> <component-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>SUCCESS</task-result>
>>>> </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:555)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>> at java.util.TimerThread.run(Timer.java:462)
>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>> Automatic
>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>> sa-3.3.1.zip
>>>> failed
>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>> Assembly:
>>>> wsdl-first-cxf-sa
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>> at java.util.TimerThread.run(Timer.java:462)
>>>> 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-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
>>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;</loc-message>
>>>>
>>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>>> dom/Document;
>>>> at
>>>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>>> 109)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>>> 267)
>>>> at
>>>> org
>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>> 188)
>>>> at
>>>> org
>>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>>> 148)
>>>> at
>>>> org
>>>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>>> 362)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:
>>>> 58)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common
>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>>> 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:520)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> 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>
>>>> <component-task-result
>>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>>> <component-name>servicemix-cxf-bc</component-name>
>>>> <component-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>SUCCESS</task-result>
>>>> </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:555)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> ... 6 more
>>>>
>>>>
>>>> I think problem is the I havent supplied the mapping file for acegi
>>>> binding.
>>>> I dont know how to give a mapping for the service.
>>>>
>>>> Thanks a lot...!!
>>>>
>>>> chris
>>>>
>>>>
>>>>
>>>>
>>>> Freeman Fang wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> You can't use
>>>>> <simple:server id="PersonService"
>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>> address="/PersonService">
>>>>> <simple:serviceBean>
>>>>> <bean
>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>> </simple:serviceBean>
>>>>> </simple:server>
>>>>>
>>>>> in smx-cxf-se endpoint xbean.xml.
>>>>> You should use something like
>>>>>
>>>>> <cxfse:endpoint useAegis="true">
>>>>> <cxfse:pojo>
>>>>> <bean
>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>>> </bean>
>>>>>
>>>>> </cxfse:pojo>
>>>>> </cxfse:endpoint>
>>>>>
>>>>> Notice I put useAegis="true" flag which generally used with simple
>>>>> frontend
>>>>>
>>>>> You may need also take a look at how to configure smx-cxf-se
>>>>> endpoint
>>>>> from [1]
>>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>>
>>>>> Freeman
>>>>>
>>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>>> Following shows my xbean.xml file, Interface and implementation
>>>>>> class.
>>>>>>
>>>>>> xbean.xml
>>>>>>
>>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>>> xsi:schemaLocation="
>>>>>> http://www.springframework.org/schema/beans
>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>> http://cxf.apache.org/bindings/soap
>>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>>> simple.xsd">
>>>>>>
>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>>> soap.xml" />
>>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>>>> jetty.xml" />
>>>>>>
>>>>>> <simple:server id="PersonService"
>>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>>> address="/PersonService">
>>>>>> <simple:serviceBean>
>>>>>> <bean
>>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>>> </simple:serviceBean>
>>>>>> </simple:server>
>>>>>> </beans>
>>>>>>
>>>>>> Person.java
>>>>>>
>>>>>> public interface Person {
>>>>>>
>>>>>> public String getPerson(String personId) ;
>>>>>> }
>>>>>>
>>>>>> PersonImpl .java
>>>>>>
>>>>>> public class PersonImpl implements Person {
>>>>>>
>>>>>> public String getPerson(String personId) {
>>>>>> if (personId == null || personId.length() == 0) {
>>>>>> return "null";
>>>>>> }
>>>>>> return personId = "success";
>>>>>> }
>>>>>> }
>>>>>>
>>>>>>
>>>>>> Then i am getting following error.
>>>>>>
>>>>>> INFO: Creating Service
>>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from
>>>>>> class
>>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>>> ERROR - CxfSeComponent -
>>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>>> creating bean
>>>>>> with name 'PersonService': Invocation of init method failed;
>>>>>> nested
>>>>>> exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>>> initDestination
>>>>>> INFO: Setting the server's publish address to be
>>>>>> http://localhost:8092/PersonService/
>>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>>>> Assembly:
>>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>>> nested
>>>>>> exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>>>> message>
>>>>>>
>>>>>> <stack-trace><!
>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>> Error creating bean with name 'PersonService': Invocation of init
>>>>>> method
>>>>>> failed; nested exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>> 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:222)
>>>>>> 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:
>>>>>> 728)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .context
>>>>>> .support
>>>>>> .AbstractApplicationContext
>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>> 380)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common
>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>>>> 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:
>>>>>> 520)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> Caused by:
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>> 127)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>> Method)
>>>>>> at
>>>>>> sun
>>>>>> .reflect
>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>> at
>>>>>> sun
>>>>>> .reflect
>>>>>> .DelegatingMethodAccessorImpl
>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>> 1414)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>> ... 23 more
>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>> PersonService
>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>> 96)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty
>>>>>> .JettyHTTPTransportFactory
>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty
>>>>>> .JettyHTTPTransportFactory
>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>> at
>>>>>> org
>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>> 90)
>>>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>> 69)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>> 106)
>>>>>> ... 30 more
>>>>>> ]]></stack-trace>
>>>>>> </msg-loc-info>
>>>>>> </exception-info>
>>>>>> </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-cxf-bc</component-name>
>>>>>> <component-task-result-details>
>>>>>> <task-result-details>
>>>>>> <task-id>deploy</task-id>
>>>>>> <task-result>SUCCESS</task-result>
>>>>>> </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:
>>>>>> 555)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>>> Automatic
>>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>>> sa-3.3.1.zip
>>>>>> failed
>>>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>>>> Assembly:
>>>>>> wsdl-first-cxf-sa
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>>> nested
>>>>>> exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>>>> message>
>>>>>>
>>>>>> <stack-trace><!
>>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>>> Error creating bean with name 'PersonService': Invocation of init
>>>>>> method
>>>>>> failed; nested exception is
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>>> 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:222)
>>>>>> 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:
>>>>>> 728)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .context
>>>>>> .support
>>>>>> .AbstractApplicationContext
>>>>>> .refresh(AbstractApplicationContext.java:
>>>>>> 380)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .common
>>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>>>> 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:
>>>>>> 520)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>>> 255)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>>> 658)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>>> $800(AutoDeploymentService.java:63)
>>>>>> at
>>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>>> $1.run(AutoDeploymentService.java:622)
>>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>>> Caused by:
>>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>> 127)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>> Method)
>>>>>> at
>>>>>> sun
>>>>>> .reflect
>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>> at
>>>>>> sun
>>>>>> .reflect
>>>>>> .DelegatingMethodAccessorImpl
>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>>> 1414)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>>> at
>>>>>> org
>>>>>> .springframework
>>>>>> .beans
>>>>>> .factory
>>>>>> .support
>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>>> ... 23 more
>>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>>> PersonService
>>>>>> at java.net.URL.<init>(URL.java:567)
>>>>>> at java.net.URL.<init>(URL.java:464)
>>>>>> at java.net.URL.<init>(URL.java:413)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>>> 96)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty
>>>>>> .JettyHTTPTransportFactory
>>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf
>>>>>> .transport
>>>>>> .http_jetty
>>>>>> .JettyHTTPTransportFactory
>>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>>> at
>>>>>> org
>>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>>> 90)
>>>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>>> 69)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>>> 106)
>>>>>> ... 30 more
>>>>>> ]]></stack-trace>
>>>>>> </msg-loc-info>
>>>>>> </exception-info>
>>>>>> </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-cxf-bc</component-name>
>>>>>> <component-task-result-details>
>>>>>> <task-result-details>
>>>>>> <task-id>deploy</task-id>
>>>>>> <task-result>SUCCESS</task-result>
>>>>>> </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:
>>>>>> 555)
>>>>>> at
>>>>>> org
>>>>>> .apache
>>>>>> .servicemix
>>>>>> .jbi
>>>>>> .framework
>>>>>> .AutoDeploymentService
>>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>>> ... 6 more
>>>>>>
>>>>>>
>>>>>> Can you give any help to fix this.
>>>>>> Thanks,
>>>>>> chris
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>>> Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Freeman Fang
>>>>> ------------------------
>>>>> Open Source SOA: http://fusesource.com
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>> --
>>> Freeman Fang
>>> ------------------------
>>> Open Source SOA: http://fusesource.com
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
http://old.nabble.com/file/p27792140/cxf-wsdl-first.zip cxf-wsdl-first.zip
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27792140.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
I believe there must be a XmlSchme-1.3.2.jar somehow get loaded cause
this error.
Could you just remove SMX_HOME/data folder and try it again?
If you still see the problem, just send me your project which I can
build and deploy to reproduce this problem myself.
Freeman
On 2010-3-5, at 下午5:43, chris charles harris wrote:
>
> Hi,
>
> I am using servicemix 3.3.1. But for my application I am using
> following
> components.
>
> servicemix-shared-2009.02-installer.zip
> servicemix-cxf-bc-2009.02-installer.zip
> servicemix-cxf-se-2009.02-installer.zip
>
> I think those are latest components.
> I checked the location u told. In that place there is a jar file
> called
> XmlSchema-1.4.2.jar(137kb).
> Thanks,
>
> chris
>
>
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> So, you are using smx 3.3.1, right?
>> This error comes from you use lower version XmlSchema.jar.
>>
>> Did you ever put lower version servicemix-shared-xxxxxx-installer.zip
>> into SMX_HOME/hotdeploy folder?
>> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-
>> shared/
>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>>
>> Freeman
>>
>>
>> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>>
>>>
>>>
>>> Hi,
>>> Thanks for the quick reply. I changed the configuration as you said.
>>> But
>>> still i couldnt deployed it. Following shows the stackrace.
>>>
>>>
>>> INFO: Creating Service
>>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from
>>> class
>>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>>> Mar 5, 2010 2:20:19 PM
>>> org.apache.cxf.configuration.spring.ConfigurerImpl
>>> getBeanName
>>> INFO: Could not determine bean name for instance of class
>>> org.apache.cxf.transport.jbi.JBIDestination.
>>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>>> initDestination
>>> INFO: Setting the server's publish address to be
>>> jbi://ID-192-168-102-89-1272d83e896-28-0
>>> ERROR - CxfSeComponent -
>>> java.lang.NoSuchMethodError:
>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>> dom/Document;
>>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>>> initDestination
>>> INFO: Setting the server's publish address to be
>>> http://localhost:8092/PersonService/
>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>> ERROR - AutoDeploymentService - Failed to update Service
>>> Assembly:
>>> wsdl-first-cxf-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-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
>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>> dom/Document;</loc-message>
>>>
>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>> dom/Document;
>>> at
>>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>> 109)
>>> at
>>> org
>>> .apache
>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>> 267)
>>> at
>>> org
>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>> 188)
>>> at
>>> org
>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>> 148)
>>> at
>>> org
>>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>> 362)
>>> at
>>> org
>>> .apache
>>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:
>>> 58)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common
>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>> 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:520)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>> 658)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>> $800(AutoDeploymentService.java:63)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>> $1.run(AutoDeploymentService.java:622)
>>> 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>
>>> <component-task-result
>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>> <component-name>servicemix-cxf-bc</component-name>
>>> <component-task-result-details>
>>> <task-result-details>
>>> <task-id>deploy</task-id>
>>> <task-result>SUCCESS</task-result>
>>> </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:555)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>> 658)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>> $800(AutoDeploymentService.java:63)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>> $1.run(AutoDeploymentService.java:622)
>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>> at java.util.TimerThread.run(Timer.java:462)
>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>> Automatic
>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>> sa-3.3.1.zip
>>> failed
>>> javax.jbi.management.DeploymentException: Failed to update Service
>>> Assembly:
>>> wsdl-first-cxf-sa
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>> 658)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>> $800(AutoDeploymentService.java:63)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>> $1.run(AutoDeploymentService.java:622)
>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>> at java.util.TimerThread.run(Timer.java:462)
>>> 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-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
>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>> dom/Document;</loc-message>
>>>
>>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>>> dom/Document;
>>> at
>>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>>> 109)
>>> at
>>> org
>>> .apache
>>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:
>>> 267)
>>> at
>>> org
>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>> 188)
>>> at
>>> org
>>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>>> 148)
>>> at
>>> org
>>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>>> 362)
>>> at
>>> org
>>> .apache
>>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:
>>> 58)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common
>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>>> 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:520)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>> 658)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>> $800(AutoDeploymentService.java:63)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>> $1.run(AutoDeploymentService.java:622)
>>> 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>
>>> <component-task-result
>>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>>> <component-name>servicemix-cxf-bc</component-name>
>>> <component-task-result-details>
>>> <task-result-details>
>>> <task-id>deploy</task-id>
>>> <task-result>SUCCESS</task-result>
>>> </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:555)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>> ... 6 more
>>>
>>>
>>> I think problem is the I havent supplied the mapping file for acegi
>>> binding.
>>> I dont know how to give a mapping for the service.
>>>
>>> Thanks a lot...!!
>>>
>>> chris
>>>
>>>
>>>
>>>
>>> Freeman Fang wrote:
>>>>
>>>> Hi,
>>>>
>>>> You can't use
>>>> <simple:server id="PersonService"
>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>> address="/PersonService">
>>>> <simple:serviceBean>
>>>> <bean
>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>> </simple:serviceBean>
>>>> </simple:server>
>>>>
>>>> in smx-cxf-se endpoint xbean.xml.
>>>> You should use something like
>>>>
>>>> <cxfse:endpoint useAegis="true">
>>>> <cxfse:pojo>
>>>> <bean
>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>>> </bean>
>>>>
>>>> </cxfse:pojo>
>>>> </cxfse:endpoint>
>>>>
>>>> Notice I put useAegis="true" flag which generally used with simple
>>>> frontend
>>>>
>>>> You may need also take a look at how to configure smx-cxf-se
>>>> endpoint
>>>> from [1]
>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>>
>>>> Freeman
>>>>
>>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>>
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>>> Following shows my xbean.xml file, Interface and implementation
>>>>> class.
>>>>>
>>>>> xbean.xml
>>>>>
>>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>> xmlns="http://www.springframework.org/schema/beans"
>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>>> xsi:schemaLocation="
>>>>> http://www.springframework.org/schema/beans
>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>> http://cxf.apache.org/bindings/soap
>>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>>> simple.xsd">
>>>>>
>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-
>>>>> soap.xml" />
>>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>>> jetty.xml" />
>>>>>
>>>>> <simple:server id="PersonService"
>>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>>> address="/PersonService">
>>>>> <simple:serviceBean>
>>>>> <bean
>>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>>> </simple:serviceBean>
>>>>> </simple:server>
>>>>> </beans>
>>>>>
>>>>> Person.java
>>>>>
>>>>> public interface Person {
>>>>>
>>>>> public String getPerson(String personId) ;
>>>>> }
>>>>>
>>>>> PersonImpl .java
>>>>>
>>>>> public class PersonImpl implements Person {
>>>>>
>>>>> public String getPerson(String personId) {
>>>>> if (personId == null || personId.length() == 0) {
>>>>> return "null";
>>>>> }
>>>>> return personId = "success";
>>>>> }
>>>>> }
>>>>>
>>>>>
>>>>> Then i am getting following error.
>>>>>
>>>>> INFO: Creating Service
>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from
>>>>> class
>>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>>> ERROR - CxfSeComponent -
>>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>>> creating bean
>>>>> with name 'PersonService': Invocation of init method failed;
>>>>> nested
>>>>> exception is
>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>>> initDestination
>>>>> INFO: Setting the server's publish address to be
>>>>> http://localhost:8092/PersonService/
>>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>>> Assembly:
>>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed;
>>>>> nested
>>>>> exception is
>>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>>> message>
>>>>>
>>>>> <stack-trace><!
>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>> Error creating bean with name 'PersonService': Invocation of init
>>>>> method
>>>>> failed; nested exception is
>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>> 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:222)
>>>>> 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:
>>>>> 728)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .context
>>>>> .support
>>>>> .AbstractApplicationContext
>>>>> .refresh(AbstractApplicationContext.java:
>>>>> 380)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>>> 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:
>>>>> 520)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>> 255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>> Caused by:
>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>> 127)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>> Method)
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .DelegatingMethodAccessorImpl
>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>> 1414)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>> ... 23 more
>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>> PersonService
>>>>> at java.net.URL.<init>(URL.java:567)
>>>>> at java.net.URL.<init>(URL.java:464)
>>>>> at java.net.URL.<init>(URL.java:413)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf
>>>>> .transport
>>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>> 96)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf
>>>>> .transport
>>>>> .http_jetty
>>>>> .JettyHTTPTransportFactory
>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf
>>>>> .transport
>>>>> .http_jetty
>>>>> .JettyHTTPTransportFactory
>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>> at
>>>>> org
>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>> 90)
>>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>> 69)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>> 106)
>>>>> ... 30 more
>>>>> ]]></stack-trace>
>>>>> </msg-loc-info>
>>>>> </exception-info>
>>>>> </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-cxf-bc</component-name>
>>>>> <component-task-result-details>
>>>>> <task-result-details>
>>>>> <task-id>deploy</task-id>
>>>>> <task-result>SUCCESS</task-result>
>>>>> </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:
>>>>> 555)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>> 255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>>> Automatic
>>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>>> sa-3.3.1.zip
>>>>> failed
>>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>>> Assembly:
>>>>> wsdl-first-cxf-sa
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>> 255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>> 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-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 'PersonService': Invocation of init method failed;
>>>>> nested
>>>>> exception is
>>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>>> message>
>>>>>
>>>>> <stack-trace><!
>>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>>> Error creating bean with name 'PersonService': Invocation of init
>>>>> method
>>>>> failed; nested exception is
>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>>> 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:222)
>>>>> 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:
>>>>> 728)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .context
>>>>> .support
>>>>> .AbstractApplicationContext
>>>>> .refresh(AbstractApplicationContext.java:
>>>>> 380)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>>> 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:
>>>>> 520)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:
>>>>> 255)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .monitorDirectory(AutoDeploymentService.java:
>>>>> 658)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>>> $800(AutoDeploymentService.java:63)
>>>>> at
>>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>>> $1.run(AutoDeploymentService.java:622)
>>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>>> at java.util.TimerThread.run(Timer.java:462)
>>>>> Caused by:
>>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>> 127)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>> Method)
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .DelegatingMethodAccessorImpl
>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>>> 1414)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>>> ... 23 more
>>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>>> PersonService
>>>>> at java.net.URL.<init>(URL.java:567)
>>>>> at java.net.URL.<init>(URL.java:464)
>>>>> at java.net.URL.<init>(URL.java:413)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf
>>>>> .transport
>>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>>> 96)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf
>>>>> .transport
>>>>> .http_jetty
>>>>> .JettyHTTPTransportFactory
>>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf
>>>>> .transport
>>>>> .http_jetty
>>>>> .JettyHTTPTransportFactory
>>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>>> at
>>>>> org
>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>>> 90)
>>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>>> 69)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>>> 106)
>>>>> ... 30 more
>>>>> ]]></stack-trace>
>>>>> </msg-loc-info>
>>>>> </exception-info>
>>>>> </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-cxf-bc</component-name>
>>>>> <component-task-result-details>
>>>>> <task-result-details>
>>>>> <task-id>deploy</task-id>
>>>>> <task-result>SUCCESS</task-result>
>>>>> </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:
>>>>> 555)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .jbi
>>>>> .framework
>>>>> .AutoDeploymentService
>>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>>> ... 6 more
>>>>>
>>>>>
>>>>> Can you give any help to fix this.
>>>>> Thanks,
>>>>> chris
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>>> Sent from the ServiceMix - User mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>
>>>>
>>>> --
>>>> Freeman Fang
>>>> ------------------------
>>>> Open Source SOA: http://fusesource.com
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
I am using servicemix 3.3.1. But for my application I am using following
components.
servicemix-shared-2009.02-installer.zip
servicemix-cxf-bc-2009.02-installer.zip
servicemix-cxf-se-2009.02-installer.zip
I think those are latest components.
I checked the location u told. In that place there is a jar file called
XmlSchema-1.4.2.jar(137kb).
Thanks,
chris
Freeman Fang wrote:
>
> Hi,
>
> So, you are using smx 3.3.1, right?
> This error comes from you use lower version XmlSchema.jar.
>
> Did you ever put lower version servicemix-shared-xxxxxx-installer.zip
> into SMX_HOME/hotdeploy folder?
> Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-shared/
> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
>
> Freeman
>
>
> On 2010-3-5, at 下午5:00, chris charles harris wrote:
>
>>
>>
>> Hi,
>> Thanks for the quick reply. I changed the configuration as you said.
>> But
>> still i couldnt deployed it. Following shows the stackrace.
>>
>>
>> INFO: Creating Service
>> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from
>> class
>> org.apache.servicemix.samples.wsdl_first.PersonImpl
>> Mar 5, 2010 2:20:19 PM
>> org.apache.cxf.configuration.spring.ConfigurerImpl
>> getBeanName
>> INFO: Could not determine bean name for instance of class
>> org.apache.cxf.transport.jbi.JBIDestination.
>> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
>> initDestination
>> INFO: Setting the server's publish address to be
>> jbi://ID-192-168-102-89-1272d83e896-28-0
>> ERROR - CxfSeComponent - java.lang.NoSuchMethodError:
>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>> dom/Document;
>> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
>> initDestination
>> INFO: Setting the server's publish address to be
>> http://localhost:8092/PersonService/
>> INFO - DeploymentService - UnDeployed ServiceUnit
>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>> ERROR - AutoDeploymentService - Failed to update Service
>> Assembly:
>> wsdl-first-cxf-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-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
>> >org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>> dom/Document;</loc-message>
>>
>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>> dom/Document;
>> at
>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>> 109)
>> at
>> org
>> .apache
>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:267)
>> at
>> org
>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>> 188)
>> at
>> org
>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>> 148)
>> at
>> org
>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>> 362)
>> at
>> org
>> .apache
>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>> at
>> org
>> .apache
>> .servicemix
>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>> at
>> org
>> .apache
>> .servicemix
>> .common
>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>> 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:520)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:349)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>> 658)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>> $800(AutoDeploymentService.java:63)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>> $1.run(AutoDeploymentService.java:622)
>> 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>
>> <component-task-result
>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>> <component-name>servicemix-cxf-bc</component-name>
>> <component-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>SUCCESS</task-result>
>> </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:555)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:349)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>> 658)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>> $800(AutoDeploymentService.java:63)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>> $1.run(AutoDeploymentService.java:622)
>> at java.util.TimerThread.mainLoop(Timer.java:512)
>> at java.util.TimerThread.run(Timer.java:462)
>> WARN - AutoDeploymentService - Directory: hotdeploy:
>> Automatic
>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>> sa-3.3.1.zip
>> failed
>> javax.jbi.management.DeploymentException: Failed to update Service
>> Assembly:
>> wsdl-first-cxf-sa
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:364)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>> 658)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>> $800(AutoDeploymentService.java:63)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>> $1.run(AutoDeploymentService.java:622)
>> at java.util.TimerThread.mainLoop(Timer.java:512)
>> at java.util.TimerThread.run(Timer.java:462)
>> 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-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
>> >org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>> dom/Document;</loc-message>
>>
>> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
>> dom/Document;
>> at
>> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
>> 109)
>> at
>> org
>> .apache
>> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:267)
>> at
>> org
>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>> 188)
>> at
>> org
>> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
>> 148)
>> at
>> org
>> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
>> 362)
>> at
>> org
>> .apache
>> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>> at
>> org
>> .apache
>> .servicemix
>> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>> at
>> org
>> .apache
>> .servicemix
>> .common
>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>> 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:520)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:349)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>> 658)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>> $800(AutoDeploymentService.java:63)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>> $1.run(AutoDeploymentService.java:622)
>> 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>
>> <component-task-result
>> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
>> <component-name>servicemix-cxf-bc</component-name>
>> <component-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>SUCCESS</task-result>
>> </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:555)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:349)
>> ... 6 more
>>
>>
>> I think problem is the I havent supplied the mapping file for acegi
>> binding.
>> I dont know how to give a mapping for the service.
>>
>> Thanks a lot...!!
>>
>> chris
>>
>>
>>
>>
>> Freeman Fang wrote:
>>>
>>> Hi,
>>>
>>> You can't use
>>> <simple:server id="PersonService"
>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>> address="/PersonService">
>>> <simple:serviceBean>
>>> <bean
>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>> </simple:serviceBean>
>>> </simple:server>
>>>
>>> in smx-cxf-se endpoint xbean.xml.
>>> You should use something like
>>>
>>> <cxfse:endpoint useAegis="true">
>>> <cxfse:pojo>
>>> <bean
>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>>> </bean>
>>>
>>> </cxfse:pojo>
>>> </cxfse:endpoint>
>>>
>>> Notice I put useAegis="true" flag which generally used with simple
>>> frontend
>>>
>>> You may need also take a look at how to configure smx-cxf-se endpoint
>>> from [1]
>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>>
>>> Freeman
>>>
>>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>>> Following shows my xbean.xml file, Interface and implementation
>>>> class.
>>>>
>>>> xbean.xml
>>>>
>>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>> xmlns="http://www.springframework.org/schema/beans"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xmlns:simple="http://cxf.apache.org/simple"
>>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>>> xsi:schemaLocation="
>>>> http://www.springframework.org/schema/beans
>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>> http://cxf.apache.org/bindings/soap
>>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>>> simple.xsd">
>>>>
>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>>> jetty.xml" />
>>>>
>>>> <simple:server id="PersonService"
>>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>>> address="/PersonService">
>>>> <simple:serviceBean>
>>>> <bean
>>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>>> </simple:serviceBean>
>>>> </simple:server>
>>>> </beans>
>>>>
>>>> Person.java
>>>>
>>>> public interface Person {
>>>>
>>>> public String getPerson(String personId) ;
>>>> }
>>>>
>>>> PersonImpl .java
>>>>
>>>> public class PersonImpl implements Person {
>>>>
>>>> public String getPerson(String personId) {
>>>> if (personId == null || personId.length() == 0) {
>>>> return "null";
>>>> }
>>>> return personId = "success";
>>>> }
>>>> }
>>>>
>>>>
>>>> Then i am getting following error.
>>>>
>>>> INFO: Creating Service
>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from class
>>>> org.apache.servicemix.samples.wsdl_first.Person
>>>> ERROR - CxfSeComponent -
>>>> org.springframework.beans.factory.BeanCreationException: Error
>>>> creating bean
>>>> with name 'PersonService': Invocation of init method failed; nested
>>>> exception is
>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>>> initDestination
>>>> INFO: Setting the server's publish address to be
>>>> http://localhost:8092/PersonService/
>>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>>> ERROR - AutoDeploymentService - Failed to update Service
>>>> Assembly:
>>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed; nested
>>>> exception is
>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>> message>
>>>>
>>>> <stack-trace><!
>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>> Error creating bean with name 'PersonService': Invocation of init
>>>> method
>>>> failed; nested exception is
>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>> 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:222)
>>>> 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:
>>>> 728)
>>>> at
>>>> org
>>>> .springframework
>>>> .context
>>>> .support
>>>> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:
>>>> 380)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common
>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>> 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:520)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>> at java.util.TimerThread.run(Timer.java:462)
>>>> Caused by:
>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>> at
>>>> org
>>>> .apache
>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>> 127)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun
>>>> .reflect
>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> at
>>>> sun
>>>> .reflect
>>>> .DelegatingMethodAccessorImpl
>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>> 1414)
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>> ... 23 more
>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>> PersonService
>>>> at java.net.URL.<init>(URL.java:567)
>>>> at java.net.URL.<init>(URL.java:464)
>>>> at java.net.URL.<init>(URL.java:413)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf
>>>> .transport
>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>> 96)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf
>>>> .transport
>>>> .http_jetty
>>>> .JettyHTTPTransportFactory
>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf
>>>> .transport
>>>> .http_jetty
>>>> .JettyHTTPTransportFactory
>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>> at
>>>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>> 90)
>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>> 69)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>> 106)
>>>> ... 30 more
>>>> ]]></stack-trace>
>>>> </msg-loc-info>
>>>> </exception-info>
>>>> </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-cxf-bc</component-name>
>>>> <component-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>SUCCESS</task-result>
>>>> </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:555)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>> at java.util.TimerThread.run(Timer.java:462)
>>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>>> Automatic
>>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>>> sa-3.3.1.zip
>>>> failed
>>>> javax.jbi.management.DeploymentException: Failed to update Service
>>>> Assembly:
>>>> wsdl-first-cxf-sa
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>> at java.util.TimerThread.run(Timer.java:462)
>>>> 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-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 'PersonService': Invocation of init method failed; nested
>>>> exception is
>>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>>> message>
>>>>
>>>> <stack-trace><!
>>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>>> Error creating bean with name 'PersonService': Invocation of init
>>>> method
>>>> failed; nested exception is
>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>>> 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:222)
>>>> 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:
>>>> 728)
>>>> at
>>>> org
>>>> .springframework
>>>> .context
>>>> .support
>>>> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:
>>>> 380)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .common
>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>>> 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:520)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>>> 658)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>>> $800(AutoDeploymentService.java:63)
>>>> at
>>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>>> $1.run(AutoDeploymentService.java:622)
>>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>>> at java.util.TimerThread.run(Timer.java:462)
>>>> Caused by:
>>>> org.apache.cxf.service.factory.ServiceConstructionException
>>>> at
>>>> org
>>>> .apache
>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>> 127)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun
>>>> .reflect
>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>> at
>>>> sun
>>>> .reflect
>>>> .DelegatingMethodAccessorImpl
>>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>>> 1414)
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>>> at
>>>> org
>>>> .springframework
>>>> .beans
>>>> .factory
>>>> .support
>>>> .AbstractAutowireCapableBeanFactory
>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>>> ... 23 more
>>>> Caused by: java.net.MalformedURLException: no protocol: /
>>>> PersonService
>>>> at java.net.URL.<init>(URL.java:567)
>>>> at java.net.URL.<init>(URL.java:464)
>>>> at java.net.URL.<init>(URL.java:413)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf
>>>> .transport
>>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>>> 96)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf
>>>> .transport
>>>> .http_jetty
>>>> .JettyHTTPTransportFactory
>>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf
>>>> .transport
>>>> .http_jetty
>>>> .JettyHTTPTransportFactory
>>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>>> at
>>>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>>> 90)
>>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>>> 69)
>>>> at
>>>> org
>>>> .apache
>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>> 106)
>>>> ... 30 more
>>>> ]]></stack-trace>
>>>> </msg-loc-info>
>>>> </exception-info>
>>>> </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-cxf-bc</component-name>
>>>> <component-task-result-details>
>>>> <task-result-details>
>>>> <task-id>deploy</task-id>
>>>> <task-result>SUCCESS</task-result>
>>>> </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:555)
>>>> at
>>>> org
>>>> .apache
>>>> .servicemix
>>>> .jbi
>>>> .framework
>>>> .AutoDeploymentService
>>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>>> ... 6 more
>>>>
>>>>
>>>> Can you give any help to fix this.
>>>> Thanks,
>>>> chris
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>> --
>>> Freeman Fang
>>> ------------------------
>>> Open Source SOA: http://fusesource.com
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791804.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
So, you are using smx 3.3.1, right?
This error comes from you use lower version XmlSchema.jar.
Did you ever put lower version servicemix-shared-xxxxxx-installer.zip
into SMX_HOME/hotdeploy folder?
Could list the jar in $SMX_HOME/data/smx/sharedlibs/servicemix-shared/
version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar
Freeman
On 2010-3-5, at 下午5:00, chris charles harris wrote:
>
>
> Hi,
> Thanks for the quick reply. I changed the configuration as you said.
> But
> still i couldnt deployed it. Following shows the stackrace.
>
>
> INFO: Creating Service
> {http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from
> class
> org.apache.servicemix.samples.wsdl_first.PersonImpl
> Mar 5, 2010 2:20:19 PM
> org.apache.cxf.configuration.spring.ConfigurerImpl
> getBeanName
> INFO: Could not determine bean name for instance of class
> org.apache.cxf.transport.jbi.JBIDestination.
> Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl
> initDestination
> INFO: Setting the server's publish address to be
> jbi://ID-192-168-102-89-1272d83e896-28-0
> ERROR - CxfSeComponent - java.lang.NoSuchMethodError:
> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
> dom/Document;
> Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl
> initDestination
> INFO: Setting the server's publish address to be
> http://localhost:8092/PersonService/
> INFO - DeploymentService - UnDeployed ServiceUnit
> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
> ERROR - AutoDeploymentService - Failed to update Service
> Assembly:
> wsdl-first-cxf-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-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
> >org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
> dom/Document;</loc-message>
>
> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
> dom/Document;
> at
> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
> 109)
> at
> org
> .apache
> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:267)
> at
> org
> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
> 188)
> at
> org
> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
> 148)
> at
> org
> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
> 362)
> at
> org
> .apache
> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
> at
> org
> .apache
> .servicemix
> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
> 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:520)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:349)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 658)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:63)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:622)
> 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>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
> <component-name>servicemix-cxf-bc</component-name>
> <component-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>SUCCESS</task-result>
> </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:555)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:349)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 658)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:63)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:622)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> WARN - AutoDeploymentService - Directory: hotdeploy:
> Automatic
> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
> sa-3.3.1.zip
> failed
> javax.jbi.management.DeploymentException: Failed to update Service
> Assembly:
> wsdl-first-cxf-sa
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:364)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 658)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:63)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:622)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> 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-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
> >org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
> dom/Document;</loc-message>
>
> <stack-trace><![CDATA[java.lang.NoSuchMethodError:
> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/
> dom/Document;
> at
> org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:
> 109)
> at
> org
> .apache
> .cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:267)
> at
> org
> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
> 188)
> at
> org
> .apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:
> 148)
> at
> org
> .apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:
> 362)
> at
> org
> .apache
> .servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
> at
> org
> .apache
> .servicemix
> .common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
> 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:520)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:349)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 658)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:63)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:622)
> 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>
> <component-task-result
> xmlns="http://java.sun.com/xml/ns/jbi/management-message">
> <component-name>servicemix-cxf-bc</component-name>
> <component-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>SUCCESS</task-result>
> </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:555)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:349)
> ... 6 more
>
>
> I think problem is the I havent supplied the mapping file for acegi
> binding.
> I dont know how to give a mapping for the service.
>
> Thanks a lot...!!
>
> chris
>
>
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> You can't use
>> <simple:server id="PersonService"
>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>> address="/PersonService">
>> <simple:serviceBean>
>> <bean
>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>> </simple:serviceBean>
>> </simple:server>
>>
>> in smx-cxf-se endpoint xbean.xml.
>> You should use something like
>>
>> <cxfse:endpoint useAegis="true">
>> <cxfse:pojo>
>> <bean
>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
>> </bean>
>>
>> </cxfse:pojo>
>> </cxfse:endpoint>
>>
>> Notice I put useAegis="true" flag which generally used with simple
>> frontend
>>
>> You may need also take a look at how to configure smx-cxf-se endpoint
>> from [1]
>> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>>
>> Freeman
>>
>> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>>
>>>
>>>
>>> Hi,
>>>
>>> I was trying to use simple-frountend with servicemix-cxf-se.
>>> Following shows my xbean.xml file, Interface and implementation
>>> class.
>>>
>>> xbean.xml
>>>
>>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>> xmlns="http://www.springframework.org/schema/beans"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:simple="http://cxf.apache.org/simple"
>>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>>> xsi:schemaLocation="
>>> http://www.springframework.org/schema/beans
>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>> http://cxf.apache.org/bindings/soap
>>> http://cxf.apache.org/schemas/configuration/soap.xsd
>>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>>> simple.xsd">
>>>
>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>>> jetty.xml" />
>>>
>>> <simple:server id="PersonService"
>>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>>> address="/PersonService">
>>> <simple:serviceBean>
>>> <bean
>>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>>> </simple:serviceBean>
>>> </simple:server>
>>> </beans>
>>>
>>> Person.java
>>>
>>> public interface Person {
>>>
>>> public String getPerson(String personId) ;
>>> }
>>>
>>> PersonImpl .java
>>>
>>> public class PersonImpl implements Person {
>>>
>>> public String getPerson(String personId) {
>>> if (personId == null || personId.length() == 0) {
>>> return "null";
>>> }
>>> return personId = "success";
>>> }
>>> }
>>>
>>>
>>> Then i am getting following error.
>>>
>>> INFO: Creating Service
>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from class
>>> org.apache.servicemix.samples.wsdl_first.Person
>>> ERROR - CxfSeComponent -
>>> org.springframework.beans.factory.BeanCreationException: Error
>>> creating bean
>>> with name 'PersonService': Invocation of init method failed; nested
>>> exception is
>>> org.apache.cxf.service.factory.ServiceConstructionException
>>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>>> initDestination
>>> INFO: Setting the server's publish address to be
>>> http://localhost:8092/PersonService/
>>> INFO - DeploymentService - UnDeployed ServiceUnit
>>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>>> ERROR - AutoDeploymentService - Failed to update Service
>>> Assembly:
>>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed; nested
>>> exception is
>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>> message>
>>>
>>> <stack-trace><!
>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>> Error creating bean with name 'PersonService': Invocation of init
>>> method
>>> failed; nested exception is
>>> org.apache.cxf.service.factory.ServiceConstructionException
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>> 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:222)
>>> 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:
>>> 728)
>>> at
>>> org
>>> .springframework
>>> .context
>>> .support
>>> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:
>>> 380)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common
>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>> 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:520)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>> 658)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>> $800(AutoDeploymentService.java:63)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>> $1.run(AutoDeploymentService.java:622)
>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>> at java.util.TimerThread.run(Timer.java:462)
>>> Caused by:
>>> org.apache.cxf.service.factory.ServiceConstructionException
>>> at
>>> org
>>> .apache
>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>> 127)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun
>>> .reflect
>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at
>>> sun
>>> .reflect
>>> .DelegatingMethodAccessorImpl
>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>> 1414)
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>> ... 23 more
>>> Caused by: java.net.MalformedURLException: no protocol: /
>>> PersonService
>>> at java.net.URL.<init>(URL.java:567)
>>> at java.net.URL.<init>(URL.java:464)
>>> at java.net.URL.<init>(URL.java:413)
>>> at
>>> org
>>> .apache
>>> .cxf
>>> .transport
>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>> 96)
>>> at
>>> org
>>> .apache
>>> .cxf
>>> .transport
>>> .http_jetty
>>> .JettyHTTPTransportFactory
>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>> at
>>> org
>>> .apache
>>> .cxf
>>> .transport
>>> .http_jetty
>>> .JettyHTTPTransportFactory
>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>> at
>>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>> 90)
>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>> 69)
>>> at
>>> org
>>> .apache
>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>> 106)
>>> ... 30 more
>>> ]]></stack-trace>
>>> </msg-loc-info>
>>> </exception-info>
>>> </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-cxf-bc</component-name>
>>> <component-task-result-details>
>>> <task-result-details>
>>> <task-id>deploy</task-id>
>>> <task-result>SUCCESS</task-result>
>>> </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:555)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>> 658)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>> $800(AutoDeploymentService.java:63)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>> $1.run(AutoDeploymentService.java:622)
>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>> at java.util.TimerThread.run(Timer.java:462)
>>> WARN - AutoDeploymentService - Directory: hotdeploy:
>>> Automatic
>>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>>> sa-3.3.1.zip
>>> failed
>>> javax.jbi.management.DeploymentException: Failed to update Service
>>> Assembly:
>>> wsdl-first-cxf-sa
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:364)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>> 658)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>> $800(AutoDeploymentService.java:63)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>> $1.run(AutoDeploymentService.java:622)
>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>> at java.util.TimerThread.run(Timer.java:462)
>>> 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-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 'PersonService': Invocation of init method failed; nested
>>> exception is
>>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>>> message>
>>>
>>> <stack-trace><!
>>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>>> Error creating bean with name 'PersonService': Invocation of init
>>> method
>>> failed; nested exception is
>>> org.apache.cxf.service.factory.ServiceConstructionException
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>> 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:222)
>>> 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:
>>> 728)
>>> at
>>> org
>>> .springframework
>>> .context
>>> .support
>>> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:
>>> 380)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common
>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>>> 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:520)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>>> 658)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>>> $800(AutoDeploymentService.java:63)
>>> at
>>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>>> $1.run(AutoDeploymentService.java:622)
>>> at java.util.TimerThread.mainLoop(Timer.java:512)
>>> at java.util.TimerThread.run(Timer.java:462)
>>> Caused by:
>>> org.apache.cxf.service.factory.ServiceConstructionException
>>> at
>>> org
>>> .apache
>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>> 127)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun
>>> .reflect
>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at
>>> sun
>>> .reflect
>>> .DelegatingMethodAccessorImpl
>>> .invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
>>> 1414)
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>>> ... 23 more
>>> Caused by: java.net.MalformedURLException: no protocol: /
>>> PersonService
>>> at java.net.URL.<init>(URL.java:567)
>>> at java.net.URL.<init>(URL.java:464)
>>> at java.net.URL.<init>(URL.java:413)
>>> at
>>> org
>>> .apache
>>> .cxf
>>> .transport
>>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:
>>> 96)
>>> at
>>> org
>>> .apache
>>> .cxf
>>> .transport
>>> .http_jetty
>>> .JettyHTTPTransportFactory
>>> .createDestination(JettyHTTPTransportFactory.java:116)
>>> at
>>> org
>>> .apache
>>> .cxf
>>> .transport
>>> .http_jetty
>>> .JettyHTTPTransportFactory
>>> .getDestination(JettyHTTPTransportFactory.java:103)
>>> at
>>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:
>>> 90)
>>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>>> 69)
>>> at
>>> org
>>> .apache
>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>> 106)
>>> ... 30 more
>>> ]]></stack-trace>
>>> </msg-loc-info>
>>> </exception-info>
>>> </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-cxf-bc</component-name>
>>> <component-task-result-details>
>>> <task-result-details>
>>> <task-id>deploy</task-id>
>>> <task-result>SUCCESS</task-result>
>>> </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:555)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .jbi
>>> .framework
>>> .AutoDeploymentService
>>> .updateServiceAssembly(AutoDeploymentService.java:349)
>>> ... 6 more
>>>
>>>
>>> Can you give any help to fix this.
>>> Thanks,
>>> chris
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
Thanks for the quick reply. I changed the configuration as you said. But
still i couldnt deployed it. Following shows the stackrace.
INFO: Creating Service
{http://wsdl_first.samples.servicemix.apache.org/}PersonImpl from class
org.apache.servicemix.samples.wsdl_first.PersonImpl
Mar 5, 2010 2:20:19 PM org.apache.cxf.configuration.spring.ConfigurerImpl
getBeanName
INFO: Could not determine bean name for instance of class
org.apache.cxf.transport.jbi.JBIDestination.
Mar 5, 2010 2:20:19 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
jbi://ID-192-168-102-89-1272d83e896-28-0
ERROR - CxfSeComponent - java.lang.NoSuchMethodError:
org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/dom/Document;
Mar 5, 2010 2:20:21 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
http://localhost:8092/PersonService/
INFO - DeploymentService - UnDeployed ServiceUnit
wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
ERROR - AutoDeploymentService - Failed to update Service Assembly:
wsdl-first-cxf-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-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>org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/dom/Document;</loc-message>
<stack-trace><![CDATA[java.lang.NoSuchMethodError:
org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/dom/Document;
at
org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:109)
at
org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:267)
at
org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:188)
at
org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148)
at
org.apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:362)
at
org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
at
org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
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:520)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
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>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</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:555)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
WARN - AutoDeploymentService - Directory: hotdeploy: Automatic
install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-sa-3.3.1.zip
failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly:
wsdl-first-cxf-sa
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:364)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
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-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>org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/dom/Document;</loc-message>
<stack-trace><![CDATA[java.lang.NoSuchMethodError:
org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/dom/Document;
at
org.apache.cxf.service.model.SchemaInfo.getElement(SchemaInfo.java:109)
at
org.apache.cxf.wsdl11.ServiceWSDLBuilder.buildTypes(ServiceWSDLBuilder.java:267)
at
org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:188)
at
org.apache.cxf.wsdl11.ServiceWSDLBuilder.build(ServiceWSDLBuilder.java:148)
at
org.apache.servicemix.cxfse.CxfSeEndpoint.validate(CxfSeEndpoint.java:362)
at
org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
at
org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
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:520)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
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>
<component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</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:555)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
... 6 more
I think problem is the I havent supplied the mapping file for acegi binding.
I dont know how to give a mapping for the service.
Thanks a lot...!!
chris
Freeman Fang wrote:
>
> Hi,
>
> You can't use
> <simple:server id="PersonService"
> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
> address="/PersonService">
> <simple:serviceBean>
> <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
> </simple:serviceBean>
> </simple:server>
>
> in smx-cxf-se endpoint xbean.xml.
> You should use something like
>
> <cxfse:endpoint useAegis="true">
> <cxfse:pojo>
> <bean
> class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
> </bean>
>
> </cxfse:pojo>
> </cxfse:endpoint>
>
> Notice I put useAegis="true" flag which generally used with simple
> frontend
>
> You may need also take a look at how to configure smx-cxf-se endpoint
> from [1]
> [1]http://servicemix.apache.org/servicemix-cxf-se.html
>
> Freeman
>
> On 2010-3-5, at 下午3:44, chris charles harris wrote:
>
>>
>>
>> Hi,
>>
>> I was trying to use simple-frountend with servicemix-cxf-se.
>> Following shows my xbean.xml file, Interface and implementation class.
>>
>> xbean.xml
>>
>> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>> xmlns="http://www.springframework.org/schema/beans"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:simple="http://cxf.apache.org/simple"
>> xmlns:soap="http://cxf.apache.org/bindings/soap"
>> xsi:schemaLocation="
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans.xsd
>> http://cxf.apache.org/bindings/soap
>> http://cxf.apache.org/schemas/configuration/soap.xsd
>> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
>> simple.xsd">
>>
>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>> <import resource="classpath:META-INF/cxf/cxf-extension-http-
>> jetty.xml" />
>>
>> <simple:server id="PersonService"
>> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
>> address="/PersonService">
>> <simple:serviceBean>
>> <bean
>> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
>> </simple:serviceBean>
>> </simple:server>
>> </beans>
>>
>> Person.java
>>
>> public interface Person {
>>
>> public String getPerson(String personId) ;
>> }
>>
>> PersonImpl .java
>>
>> public class PersonImpl implements Person {
>>
>> public String getPerson(String personId) {
>> if (personId == null || personId.length() == 0) {
>> return "null";
>> }
>> return personId = "success";
>> }
>> }
>>
>>
>> Then i am getting following error.
>>
>> INFO: Creating Service
>> {http://wsdl_first.samples.servicemix.apache.org/}Person from class
>> org.apache.servicemix.samples.wsdl_first.Person
>> ERROR - CxfSeComponent -
>> org.springframework.beans.factory.BeanCreationException: Error
>> creating bean
>> with name 'PersonService': Invocation of init method failed; nested
>> exception is
>> org.apache.cxf.service.factory.ServiceConstructionException
>> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
>> initDestination
>> INFO: Setting the server's publish address to be
>> http://localhost:8092/PersonService/
>> INFO - DeploymentService - UnDeployed ServiceUnit
>> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
>> ERROR - AutoDeploymentService - Failed to update Service
>> Assembly:
>> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed; nested
>> exception is
>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>> message>
>>
>> <stack-trace><!
>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>> Error creating bean with name 'PersonService': Invocation of init
>> method
>> failed; nested exception is
>> org.apache.cxf.service.factory.ServiceConstructionException
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>> 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:222)
>> 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:728)
>> at
>> org
>> .springframework
>> .context
>> .support
>> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:
>> 380)
>> at
>> org
>> .apache
>> .servicemix
>> .common
>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>> 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:520)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:349)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>> 658)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>> $800(AutoDeploymentService.java:63)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>> $1.run(AutoDeploymentService.java:622)
>> at java.util.TimerThread.mainLoop(Timer.java:512)
>> at java.util.TimerThread.run(Timer.java:462)
>> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
>> at
>> org
>> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>> 127)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>> ... 23 more
>> Caused by: java.net.MalformedURLException: no protocol: /PersonService
>> at java.net.URL.<init>(URL.java:567)
>> at java.net.URL.<init>(URL.java:464)
>> at java.net.URL.<init>(URL.java:413)
>> at
>> org
>> .apache
>> .cxf
>> .transport
>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:96)
>> at
>> org
>> .apache
>> .cxf
>> .transport
>> .http_jetty
>> .JettyHTTPTransportFactory
>> .createDestination(JettyHTTPTransportFactory.java:116)
>> at
>> org
>> .apache
>> .cxf
>> .transport
>> .http_jetty
>> .JettyHTTPTransportFactory
>> .getDestination(JettyHTTPTransportFactory.java:103)
>> at
>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>> 69)
>> at
>> org
>> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>> 106)
>> ... 30 more
>> ]]></stack-trace>
>> </msg-loc-info>
>> </exception-info>
>> </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-cxf-bc</component-name>
>> <component-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>SUCCESS</task-result>
>> </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:555)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:349)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>> 658)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>> $800(AutoDeploymentService.java:63)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>> $1.run(AutoDeploymentService.java:622)
>> at java.util.TimerThread.mainLoop(Timer.java:512)
>> at java.util.TimerThread.run(Timer.java:462)
>> WARN - AutoDeploymentService - Directory: hotdeploy:
>> Automatic
>> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
>> sa-3.3.1.zip
>> failed
>> javax.jbi.management.DeploymentException: Failed to update Service
>> Assembly:
>> wsdl-first-cxf-sa
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:364)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>> 658)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>> $800(AutoDeploymentService.java:63)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>> $1.run(AutoDeploymentService.java:622)
>> at java.util.TimerThread.mainLoop(Timer.java:512)
>> at java.util.TimerThread.run(Timer.java:462)
>> 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-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 'PersonService': Invocation of init method failed; nested
>> exception is
>> org.apache.cxf.service.factory.ServiceConstructionException</loc-
>> message>
>>
>> <stack-trace><!
>> [CDATA[org.springframework.beans.factory.BeanCreationException:
>> Error creating bean with name 'PersonService': Invocation of init
>> method
>> failed; nested exception is
>> org.apache.cxf.service.factory.ServiceConstructionException
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>> 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:222)
>> 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:728)
>> at
>> org
>> .springframework
>> .context
>> .support
>> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:
>> 380)
>> at
>> org
>> .apache
>> .servicemix
>> .common
>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
>> 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:520)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:349)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
>> 658)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
>> $800(AutoDeploymentService.java:63)
>> at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService
>> $1.run(AutoDeploymentService.java:622)
>> at java.util.TimerThread.mainLoop(Timer.java:512)
>> at java.util.TimerThread.run(Timer.java:462)
>> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
>> at
>> org
>> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>> 127)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>> at
>> org
>> .springframework
>> .beans
>> .factory
>> .support
>> .AbstractAutowireCapableBeanFactory
>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>> ... 23 more
>> Caused by: java.net.MalformedURLException: no protocol: /PersonService
>> at java.net.URL.<init>(URL.java:567)
>> at java.net.URL.<init>(URL.java:464)
>> at java.net.URL.<init>(URL.java:413)
>> at
>> org
>> .apache
>> .cxf
>> .transport
>> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:96)
>> at
>> org
>> .apache
>> .cxf
>> .transport
>> .http_jetty
>> .JettyHTTPTransportFactory
>> .createDestination(JettyHTTPTransportFactory.java:116)
>> at
>> org
>> .apache
>> .cxf
>> .transport
>> .http_jetty
>> .JettyHTTPTransportFactory
>> .getDestination(JettyHTTPTransportFactory.java:103)
>> at
>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
>> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
>> 69)
>> at
>> org
>> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>> 106)
>> ... 30 more
>> ]]></stack-trace>
>> </msg-loc-info>
>> </exception-info>
>> </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-cxf-bc</component-name>
>> <component-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>SUCCESS</task-result>
>> </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:555)
>> at
>> org
>> .apache
>> .servicemix
>> .jbi
>> .framework
>> .AutoDeploymentService
>> .updateServiceAssembly(AutoDeploymentService.java:349)
>> ... 6 more
>>
>>
>> Can you give any help to fix this.
>> Thanks,
>> chris
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27791383.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
You can't use
<simple:server id="PersonService"
serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
address="/PersonService">
<simple:serviceBean>
<bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
</simple:serviceBean>
</simple:server>
in smx-cxf-se endpoint xbean.xml.
You should use something like
<cxfse:endpoint useAegis="true">
<cxfse:pojo>
<bean
class="org.apache.servicemix.samples.wsdl_first.PersonImpl">
</bean>
</cxfse:pojo>
</cxfse:endpoint>
Notice I put useAegis="true" flag which generally used with simple
frontend
You may need also take a look at how to configure smx-cxf-se endpoint
from [1]
[1]http://servicemix.apache.org/servicemix-cxf-se.html
Freeman
On 2010-3-5, at 下午3:44, chris charles harris wrote:
>
>
> Hi,
>
> I was trying to use simple-frountend with servicemix-cxf-se.
> Following shows my xbean.xml file, Interface and implementation class.
>
> xbean.xml
>
> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:simple="http://cxf.apache.org/simple"
> xmlns:soap="http://cxf.apache.org/bindings/soap"
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://cxf.apache.org/bindings/soap
> http://cxf.apache.org/schemas/configuration/soap.xsd
> http://cxf.apache.org/simple http://cxf.apache.org/schemas/
> simple.xsd">
>
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-http-
> jetty.xml" />
>
> <simple:server id="PersonService"
> serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
> address="/PersonService">
> <simple:serviceBean>
> <bean
> class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
> </simple:serviceBean>
> </simple:server>
> </beans>
>
> Person.java
>
> public interface Person {
>
> public String getPerson(String personId) ;
> }
>
> PersonImpl .java
>
> public class PersonImpl implements Person {
>
> public String getPerson(String personId) {
> if (personId == null || personId.length() == 0) {
> return "null";
> }
> return personId = "success";
> }
> }
>
>
> Then i am getting following error.
>
> INFO: Creating Service
> {http://wsdl_first.samples.servicemix.apache.org/}Person from class
> org.apache.servicemix.samples.wsdl_first.Person
> ERROR - CxfSeComponent -
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean
> with name 'PersonService': Invocation of init method failed; nested
> exception is
> org.apache.cxf.service.factory.ServiceConstructionException
> Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl
> initDestination
> INFO: Setting the server's publish address to be
> http://localhost:8092/PersonService/
> INFO - DeploymentService - UnDeployed ServiceUnit
> wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
> ERROR - AutoDeploymentService - Failed to update Service
> Assembly:
> wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed; nested
> exception is
> org.apache.cxf.service.factory.ServiceConstructionException</loc-
> message>
>
> <stack-trace><!
> [CDATA[org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'PersonService': Invocation of init
> method
> failed; nested exception is
> org.apache.cxf.service.factory.ServiceConstructionException
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> 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:222)
> 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:728)
> at
> org
> .springframework
> .context
> .support
> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:
> 380)
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
> 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:520)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:349)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 658)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:63)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:622)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
> at
> org
> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
> 127)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
> ... 23 more
> Caused by: java.net.MalformedURLException: no protocol: /PersonService
> at java.net.URL.<init>(URL.java:567)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)
> at
> org
> .apache
> .cxf
> .transport
> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:96)
> at
> org
> .apache
> .cxf
> .transport
> .http_jetty
> .JettyHTTPTransportFactory
> .createDestination(JettyHTTPTransportFactory.java:116)
> at
> org
> .apache
> .cxf
> .transport
> .http_jetty
> .JettyHTTPTransportFactory
> .getDestination(JettyHTTPTransportFactory.java:103)
> at
> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
> 69)
> at
> org
> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
> 106)
> ... 30 more
> ]]></stack-trace>
> </msg-loc-info>
> </exception-info>
> </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-cxf-bc</component-name>
> <component-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>SUCCESS</task-result>
> </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:555)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:349)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 658)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:63)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:622)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> WARN - AutoDeploymentService - Directory: hotdeploy:
> Automatic
> install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-
> sa-3.3.1.zip
> failed
> javax.jbi.management.DeploymentException: Failed to update Service
> Assembly:
> wsdl-first-cxf-sa
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:364)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 658)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:63)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:622)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> 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-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 'PersonService': Invocation of init method failed; nested
> exception is
> org.apache.cxf.service.factory.ServiceConstructionException</loc-
> message>
>
> <stack-trace><!
> [CDATA[org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'PersonService': Invocation of init
> method
> failed; nested exception is
> org.apache.cxf.service.factory.ServiceConstructionException
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> 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:222)
> 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:728)
> at
> org
> .springframework
> .context
> .support
> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:
> 380)
> at
> org
> .apache
> .servicemix
> .common
> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
> 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:520)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:349)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:
> 658)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access
> $800(AutoDeploymentService.java:63)
> at
> org.apache.servicemix.jbi.framework.AutoDeploymentService
> $1.run(AutoDeploymentService.java:622)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
> at
> org
> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
> 127)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
> ... 23 more
> Caused by: java.net.MalformedURLException: no protocol: /PersonService
> at java.net.URL.<init>(URL.java:567)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)
> at
> org
> .apache
> .cxf
> .transport
> .http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:96)
> at
> org
> .apache
> .cxf
> .transport
> .http_jetty
> .JettyHTTPTransportFactory
> .createDestination(JettyHTTPTransportFactory.java:116)
> at
> org
> .apache
> .cxf
> .transport
> .http_jetty
> .JettyHTTPTransportFactory
> .getDestination(JettyHTTPTransportFactory.java:103)
> at
> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
> at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:
> 69)
> at
> org
> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
> 106)
> ... 30 more
> ]]></stack-trace>
> </msg-loc-info>
> </exception-info>
> </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-cxf-bc</component-name>
> <component-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>SUCCESS</task-result>
> </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:555)
> at
> org
> .apache
> .servicemix
> .jbi
> .framework
> .AutoDeploymentService
> .updateServiceAssembly(AutoDeploymentService.java:349)
> ... 6 more
>
>
> Can you give any help to fix this.
> Thanks,
> chris
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
Hi,
I was trying to use simple-frountend with servicemix-cxf-se.
Following shows my xbean.xml file, Interface and implementation class.
xbean.xml
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:simple="http://cxf.apache.org/simple"
xmlns:soap="http://cxf.apache.org/bindings/soap"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/bindings/soap
http://cxf.apache.org/schemas/configuration/soap.xsd
http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
<simple:server id="PersonService"
serviceClass="org.apache.servicemix.samples.wsdl_first.Person"
address="/PersonService">
<simple:serviceBean>
<bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
</simple:serviceBean>
</simple:server>
</beans>
Person.java
public interface Person {
public String getPerson(String personId) ;
}
PersonImpl .java
public class PersonImpl implements Person {
public String getPerson(String personId) {
if (personId == null || personId.length() == 0) {
return "null";
}
return personId = "success";
}
}
Then i am getting following error.
INFO: Creating Service
{http://wsdl_first.samples.servicemix.apache.org/}Person from class
org.apache.servicemix.samples.wsdl_first.Person
ERROR - CxfSeComponent -
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'PersonService': Invocation of init method failed; nested
exception is org.apache.cxf.service.factory.ServiceConstructionException
Mar 5, 2010 1:03:54 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
http://localhost:8092/PersonService/
INFO - DeploymentService - UnDeployed ServiceUnit
wsdl-first-cxfbc-su from Component: servicemix-cxf-bc
ERROR - AutoDeploymentService - Failed to update Service Assembly:
wsdl-first-cxf-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-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 'PersonService': Invocation of init method failed; nested
exception is
org.apache.cxf.service.factory.ServiceConstructionException</loc-message>
<stack-trace><![CDATA[org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'PersonService': Invocation of init method
failed; nested exception is
org.apache.cxf.service.factory.ServiceConstructionException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
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:222)
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:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
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:520)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 23 more
Caused by: java.net.MalformedURLException: no protocol: /PersonService
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:96)
at
org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createDestination(JettyHTTPTransportFactory.java:116)
at
org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getDestination(JettyHTTPTransportFactory.java:103)
at
org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:69)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:106)
... 30 more
]]></stack-trace>
</msg-loc-info>
</exception-info>
</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-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</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:555)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
WARN - AutoDeploymentService - Directory: hotdeploy: Automatic
install of D:\apache-servicemix-3.3.1\hotdeploy\wsdl-first-cxf-sa-3.3.1.zip
failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly:
wsdl-first-cxf-sa
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:364)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
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-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 'PersonService': Invocation of init method failed; nested
exception is
org.apache.cxf.service.factory.ServiceConstructionException</loc-message>
<stack-trace><![CDATA[org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'PersonService': Invocation of init method
failed; nested exception is
org.apache.cxf.service.factory.ServiceConstructionException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
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:222)
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:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
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:520)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 23 more
Caused by: java.net.MalformedURLException: no protocol: /PersonService
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.<init>(JettyHTTPDestination.java:96)
at
org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createDestination(JettyHTTPTransportFactory.java:116)
at
org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.getDestination(JettyHTTPTransportFactory.java:103)
at
org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:69)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:106)
... 30 more
]]></stack-trace>
</msg-loc-info>
</exception-info>
</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-cxf-bc</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>SUCCESS</task-result>
</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:555)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
... 6 more
Can you give any help to fix this.
Thanks,
chris
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27790800.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Yeah, use cxf simple front end is my suggestion.
It's almost same as you use simple frontend with standalone cxf.
Simple frontend means building services from reflection. This is in
contrast to the JAX-WS frontend which requires you to annotate your
web service classes or create a WSDL first. The simple frontend will
use reflection to intelligently map your classes to a WSDL model.
So the pojo you used for cxf se endpoint is a real "pojo", you needn't
add annotations in the class. One thing you should know is if you use
simple frontend, generally you should use aegis databinding at the
same time , just add useAegis="true" attribute for your cxf se
endpoint configuration.
You may need take a look at [1] for more about how to use simple
frontend.
[1]http://cxf.apache.org/docs/simple-frontend.html
Freeman
On 2010-3-5, at 下午12:22, chris charles harris wrote:
>
> hi..,
>
> I can not go with servicemix-cxf-se because It is tightly coupled with
> annotations. Due to the requirement i need two service engine which
> expose
> same service with different namespaces. I tried several ways but
> could not
> be success. In servicemix-jsr181 component we can easily change
> namespace
> dynamically. Do u have any idea with that? If you need more
> information i
> can give you. appreciate your response.
>
> If we can use cxf simple frountend with servicemix-cxf-se it will
> solve my
> problem. Can you give any resource that explains how to use simple-
> frountend
> with servicemix-cxf-se ...
>
> Thnaks a lot
>
> chris
>
>
> Freeman Fang wrote:
>>
>> Hi,
>>
>> Could you use servicemix-cxf-se instead? As servicemix-jsr181 is
>> kinda
>> of deprecated.
>>
>> Freeman
>> On 2010-3-4, at 下午8:11, chris charles harris wrote:
>>
>>>
>>> Hi,
>>> I am going to use servicemix-jsr181 component for develop my
>>> application
>>> with "annotation = none" condition. I was able pass a string
>>> parameter
>>> according to their example. Now I want to pass a complex object to a
>>> method.
>>> I changed the wsdl and create classes.
>>>
>>> Lets say this is the method i want to expose as a service.
>>>
>>> public String processOrder(Order order );
>>>
>>>
>>> Order class :
>>>
>>> public class Order {
>>>
>>> protected String customerID;
>>> protected String itemID;
>>>
>>> .......
>>>
>>> }
>>>
>>> I implemented the method and deployed successfully in servicemix.
>>> Then i saw
>>> the generated wsdl it contains different namespace for the my order
>>> class
>>> even i define it the my wsdl. When i test the service with SOAPUI it
>>> always
>>> passes one parameter. Other one is not passing. Can anyone temm me
>>> how to
>>> pass complex object with servicemix-jsr181 componentand
>>> annotation=none
>>> condition.
>>>
>>> Thanks
>>> chris
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27779954.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27789792.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
Re: How to pass complex object in to a web service
Posted by chris charles harris <sn...@gmail.com>.
hi..,
I can not go with servicemix-cxf-se because It is tightly coupled with
annotations. Due to the requirement i need two service engine which expose
same service with different namespaces. I tried several ways but could not
be success. In servicemix-jsr181 component we can easily change namespace
dynamically. Do u have any idea with that? If you need more information i
can give you. appreciate your response.
If we can use cxf simple frountend with servicemix-cxf-se it will solve my
problem. Can you give any resource that explains how to use simple-frountend
with servicemix-cxf-se ...
Thnaks a lot
chris
Freeman Fang wrote:
>
> Hi,
>
> Could you use servicemix-cxf-se instead? As servicemix-jsr181 is kinda
> of deprecated.
>
> Freeman
> On 2010-3-4, at 下午8:11, chris charles harris wrote:
>
>>
>> Hi,
>> I am going to use servicemix-jsr181 component for develop my
>> application
>> with "annotation = none" condition. I was able pass a string parameter
>> according to their example. Now I want to pass a complex object to a
>> method.
>> I changed the wsdl and create classes.
>>
>> Lets say this is the method i want to expose as a service.
>>
>> public String processOrder(Order order );
>>
>>
>> Order class :
>>
>> public class Order {
>>
>> protected String customerID;
>> protected String itemID;
>>
>> .......
>>
>> }
>>
>> I implemented the method and deployed successfully in servicemix.
>> Then i saw
>> the generated wsdl it contains different namespace for the my order
>> class
>> even i define it the my wsdl. When i test the service with SOAPUI it
>> always
>> passes one parameter. Other one is not passing. Can anyone temm me
>> how to
>> pass complex object with servicemix-jsr181 componentand
>> annotation=none
>> condition.
>>
>> Thanks
>> chris
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27779954.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27789792.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: How to pass complex object in to a web service
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Could you use servicemix-cxf-se instead? As servicemix-jsr181 is kinda
of deprecated.
Freeman
On 2010-3-4, at 下午8:11, chris charles harris wrote:
>
> Hi,
> I am going to use servicemix-jsr181 component for develop my
> application
> with "annotation = none" condition. I was able pass a string parameter
> according to their example. Now I want to pass a complex object to a
> method.
> I changed the wsdl and create classes.
>
> Lets say this is the method i want to expose as a service.
>
> public String processOrder(Order order );
>
>
> Order class :
>
> public class Order {
>
> protected String customerID;
> protected String itemID;
>
> .......
>
> }
>
> I implemented the method and deployed successfully in servicemix.
> Then i saw
> the generated wsdl it contains different namespace for the my order
> class
> even i define it the my wsdl. When i test the service with SOAPUI it
> always
> passes one parameter. Other one is not passing. Can anyone temm me
> how to
> pass complex object with servicemix-jsr181 componentand
> annotation=none
> condition.
>
> Thanks
> chris
>
> --
> View this message in context: http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27779954.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com