Return-Path: Delivered-To: apmail-servicemix-users-archive@www.apache.org Received: (qmail 96533 invoked from network); 5 Mar 2010 10:15:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Mar 2010 10:15:57 -0000 Received: (qmail 37145 invoked by uid 500); 5 Mar 2010 10:15:44 -0000 Delivered-To: apmail-servicemix-users-archive@servicemix.apache.org Received: (qmail 36900 invoked by uid 500); 5 Mar 2010 10:15:43 -0000 Mailing-List: contact users-help@servicemix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@servicemix.apache.org Delivered-To: mailing list users@servicemix.apache.org Received: (qmail 36892 invoked by uid 99); 5 Mar 2010 10:15:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 10:15:42 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Mar 2010 10:15:35 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NnUYr-0005sN-RW for users@servicemix.apache.org; Fri, 05 Mar 2010 02:15:13 -0800 Message-ID: <27792140.post@talk.nabble.com> Date: Fri, 5 Mar 2010 02:15:13 -0800 (PST) From: chris charles harris To: users@servicemix.apache.org Subject: Re: How to pass complex object in to a web service In-Reply-To: <3A783095-40A3-43EB-8585-F1692ED13215@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: snrpriyadarshanaq@gmail.com References: <27779954.post@talk.nabble.com> <27789792.post@talk.nabble.com> <27790800.post@talk.nabble.com> <27791383.post@talk.nabble.com> <27791804.post@talk.nabble.com> <3A783095-40A3-43EB-8585-F1692ED13215@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have attached my code with this. Thanks, chris Freeman Fang wrote: >=20 > Hi, >=20 >=20 > I believe there must be a XmlSchme-1.3.2.jar somehow get loaded cause =20 > 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 =20 > build and deploy to reproduce this problem myself. >=20 > Freeman >=20 > On 2010-3-5, at =E4=B8=8B=E5=8D=885:43, chris charles harris wrote: >=20 >> >> Hi, >> >> I am using servicemix 3.3.1. But for my application I am using =20 >> 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 =20 >> 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-=20 >>> shared/ >>> version_1/lib/ folder? There should be a XmlSchema-1.4.2.jar >>> >>> Freeman >>> >>> >>> On 2010-3-5, at =E4=B8=8B=E5=8D=885: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 - =20 >>>> 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: >>>> >>> version=3D"1.0"> >>>> >>>> >>>> >>>> >>>> deploy >>>> FAILED >>>> ERROR >>>> >>>> >>>> >>>> >>> xmlns=3D"http://java.sun.com/xml/ns/jbi/management-message"> >>>> servicemix-cxf-se >>>> >>>> >>>> deploy >>>> FAILED >>>> ERROR >>>> >>>> >>>> >>>> Could not deploy xbean service unit >>>> >>>> >>>> >>>> 1 >>>> >>>> >>>> >>>> >>> message >>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/ >>>> dom/Document; >>>> >>>> >>> 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:=20 >>>> 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:=20 >>>> 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:=20 >>>> 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) >>>> ]]> >>>> >>>> >>>> >>>> >>>> >>>> >>> xmlns=3D"http://java.sun.com/xml/ns/jbi/management-message"> >>>> servicemix-cxf-bc >>>> >>>> >>>> deploy >>>> SUCCESS >>>> >>>> >>>> >>>> >>>> >>>> >>>> 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: >>> encoding=3D"UTF-8"?> >>>> >>> version=3D"1.0"> >>>> >>>> >>>> >>>> >>>> deploy >>>> FAILED >>>> ERROR >>>> >>>> >>>> >>>> >>> xmlns=3D"http://java.sun.com/xml/ns/jbi/management-message"> >>>> servicemix-cxf-se >>>> >>>> >>>> deploy >>>> FAILED >>>> ERROR >>>> >>>> >>>> >>>> Could not deploy xbean service unit >>>> >>>> >>>> >>>> 1 >>>> >>>> >>>> >>>> >>> message >>>>> org.apache.ws.commons.schema.XmlSchema.getSchemaDocument()Lorg/w3c/ >>>> dom/Document; >>>> >>>> >>> 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:=20 >>>> 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:=20 >>>> 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:=20 >>>> 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) >>>> ]]> >>>> >>>> >>>> >>>> >>>> >>>> >>> xmlns=3D"http://java.sun.com/xml/ns/jbi/management-message"> >>>> servicemix-cxf-bc >>>> >>>> >>>> deploy >>>> SUCCESS >>>> >>>> >>>> >>>> >>>> >>>> >>>> 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 >>>>> >>>> =09=09serviceClass=3D"org.apache.servicemix.samples.wsdl_first.Person= " >>>>> =09=09address=3D"/PersonService"> >>>>> =09=09 >>>>> =09=09=09>>>> class=3D"org.apache.servicemix.samples.wsdl_first.PersonImpl" /> >>>>> =09=09 >>>>> =09 >>>>> >>>>> in smx-cxf-se endpoint xbean.xml. >>>>> You should use something like >>>>> >>>>> >>>>> >>>>> >>>> class=3D"org.apache.servicemix.samples.wsdl_first.PersonImpl"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Notice I put useAegis=3D"true" flag which generally used with simple >>>>> frontend >>>>> >>>>> You may need also take a look at how to configure smx-cxf-se =20 >>>>> endpoint >>>>> from [1] >>>>> [1]http://servicemix.apache.org/servicemix-cxf-se.html >>>>> >>>>> Freeman >>>>> >>>>> On 2010-3-5, at =E4=B8=8B=E5=8D=883: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 >>>>>> >>>>>> >>>>> xmlns=3D"http://www.springframework.org/schema/beans" >>>>>> =09xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >>>>>> xmlns:simple=3D"http://cxf.apache.org/simple" >>>>>> =09xmlns:soap=3D"http://cxf.apache.org/bindings/soap" >>>>>> =09xsi:schemaLocation=3D" >>>>>> 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"> >>>>>> >>>>>> =09 >>>>>> =09>>>>> soap.xml" /> >>>>>> =09>>>>> jetty.xml" /> >>>>>> >>>>>> =09>>>>> =09=09serviceClass=3D"org.apache.servicemix.samples.wsdl_first.Perso= n" >>>>>> =09=09address=3D"/PersonService"> >>>>>> =09=09 >>>>>> =09=09=09>>>>> class=3D"org.apache.servicemix.samples.wsdl_first.PersonImpl" /> >>>>>> =09=09 >>>>>> =09 >>>>>> >>>>>> >>>>>> Person.java >>>>>> >>>>>> public interface Person { >>>>>> >>>>>> =09public String getPerson(String personId) ; >>>>>> } >>>>>> >>>>>> PersonImpl .java >>>>>> >>>>>> public class PersonImpl implements Person { >>>>>> >>>>>> public String getPerson(String personId) { >>>>>> =09=09if (personId =3D=3D null || personId.length() =3D=3D 0) { >>>>>> return "null"; >>>>>> } >>>>>> return personId =3D "success"; >>>>>> =09} >>>>>> } >>>>>> >>>>>> >>>>>> Then i am getting following error. >>>>>> >>>>>> INFO: Creating Service >>>>>> {http://wsdl_first.samples.servicemix.apache.org/}Person from =20 >>>>>> 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; =20 >>>>>> 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: >>>>>> >>>>> message" >>>>>> version=3D"1.0"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> deploy >>>>>> FAILED >>>>>> ERROR >>>>>> >>>>>> >>>>>> >>>>>> >>>>> xmlns=3D"http://java.sun.com/xml/ns/jbi/management-message"> >>>>>> servicemix-cxf-se >>>>>> >>>>>> >>>>>> deploy >>>>>> FAILED >>>>>> ERROR >>>>>> >>>>>> >>>>>> >>>>>> Could not deploy xbean service unit >>>>>> >>>>>> >>>>>> >>>>>> 1 >>>>>> >>>>>> >>>>>> Error creating >>>>>> bean >>>>>> with name 'PersonService': Invocation of init method failed; =20 >>>>>> nested >>>>>> exception is >>>>>> org.apache.cxf.service.factory.ServiceConstructionException>>>>> message> >>>>>> >>>>>> >>>>> [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:=20 >>>>>> 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=20 >>>>>> .refresh(AbstractApplicationContext.java: >>>>>> 380) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .common >>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .common=20 >>>>>> .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:=20 >>>>>> 520) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService >>>>>> .updateServiceAssembly(AutoDeploymentService.java:349) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:=20 >>>>>> 255) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService=20 >>>>>> .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 =20 >>>>>> 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.(URL.java:567) >>>>>> at java.net.URL.(URL.java:464) >>>>>> at java.net.URL.(URL.java:413) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .cxf >>>>>> .transport >>>>>> .http_jetty.JettyHTTPDestination.(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=20 >>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java: >>>>>> 90) >>>>>> at org.apache.cxf.endpoint.ServerImpl.(ServerImpl.java: >>>>>> 69) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java: >>>>>> 106) >>>>>> ... 30 more >>>>>> ]]> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> xmlns=3D"http://java.sun.com/xml/ns/jbi/management-message"> >>>>>> servicemix-cxf-bc >>>>>> >>>>>> >>>>>> deploy >>>>>> SUCCESS >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:=20 >>>>>> 125) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:=20 >>>>>> 111) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .DeploymentService.deployServiceAssembly(DeploymentService.java:=20 >>>>>> 555) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService >>>>>> .updateServiceAssembly(AutoDeploymentService.java:349) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:=20 >>>>>> 255) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService=20 >>>>>> .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:=20 >>>>>> 255) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService=20 >>>>>> .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: >>>>> encoding=3D"UTF-8"?> >>>>>> >>>>> message" >>>>>> version=3D"1.0"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> deploy >>>>>> FAILED >>>>>> ERROR >>>>>> >>>>>> >>>>>> >>>>>> >>>>> xmlns=3D"http://java.sun.com/xml/ns/jbi/management-message"> >>>>>> servicemix-cxf-se >>>>>> >>>>>> >>>>>> deploy >>>>>> FAILED >>>>>> ERROR >>>>>> >>>>>> >>>>>> >>>>>> Could not deploy xbean service unit >>>>>> >>>>>> >>>>>> >>>>>> 1 >>>>>> >>>>>> >>>>>> Error creating >>>>>> bean >>>>>> with name 'PersonService': Invocation of init method failed; =20 >>>>>> nested >>>>>> exception is >>>>>> org.apache.cxf.service.factory.ServiceConstructionException>>>>> message> >>>>>> >>>>>> >>>>> [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:=20 >>>>>> 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=20 >>>>>> .refresh(AbstractApplicationContext.java: >>>>>> 380) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .common >>>>>> .xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .common=20 >>>>>> .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:=20 >>>>>> 520) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService >>>>>> .updateServiceAssembly(AutoDeploymentService.java:349) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService.updateArchive(AutoDeploymentService.java:=20 >>>>>> 255) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService=20 >>>>>> .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 =20 >>>>>> 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.(URL.java:567) >>>>>> at java.net.URL.(URL.java:464) >>>>>> at java.net.URL.(URL.java:413) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .cxf >>>>>> .transport >>>>>> .http_jetty.JettyHTTPDestination.(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=20 >>>>>> .apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java: >>>>>> 90) >>>>>> at org.apache.cxf.endpoint.ServerImpl.(ServerImpl.java: >>>>>> 69) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java: >>>>>> 106) >>>>>> ... 30 more >>>>>> ]]> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> xmlns=3D"http://java.sun.com/xml/ns/jbi/management-message"> >>>>>> servicemix-cxf-bc >>>>>> >>>>>> >>>>>> deploy >>>>>> SUCCESS >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:=20 >>>>>> 125) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi.framework.ManagementSupport.failure(ManagementSupport.java:=20 >>>>>> 111) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .DeploymentService.deployServiceAssembly(DeploymentService.java:=20 >>>>>> 555) >>>>>> at >>>>>> org >>>>>> .apache >>>>>> .servicemix >>>>>> .jbi >>>>>> .framework >>>>>> .AutoDeploymentService >>>>>> .updateServiceAssembly(AutoDeploymentService.java:349) >>>>>> ... 6 more >>>>>> >>>>>> >>>>>> Can you give any help to fix this. >>>>>> Thanks, >>>>>> chris >>>>>> >>>>>> --=20 >>>>>> View this message in context: >>>>>> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-servic= e-tp27779954p27790800.html >>>>>> Sent from the ServiceMix - User mailing list archive at =20 >>>>>> Nabble.com. >>>>>> >>>>> >>>>> >>>>> --=20 >>>>> Freeman Fang >>>>> ------------------------ >>>>> Open Source SOA: http://fusesource.com >>>>> >>>>> >>>>> >>>> >>>> --=20 >>>> 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. >>>> >>> >>> >>> --=20 >>> Freeman Fang >>> ------------------------ >>> Open Source SOA: http://fusesource.com >>> >>> >>> >> >> --=20 >> View this message in context: >> http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp= 27779954p27791804.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >=20 >=20 > --=20 > Freeman Fang > ------------------------ > Open Source SOA: http://fusesource.com >=20 >=20 >=20 http://old.nabble.com/file/p27792140/cxf-wsdl-first.zip cxf-wsdl-first.zip= =20 --=20 View this message in context: http://old.nabble.com/How--to-pass-complex-ob= ject-in-to-a-web-service-tp27779954p27792140.html Sent from the ServiceMix - User mailing list archive at Nabble.com.