I just try the cxf-wsdl-first example in 3.2.2 kit, add a busCfg file same folder with the cxf bc consumer xbean.xml, use busCfg="testbus.xml", it works.
Can't reproduce the error you see.

Could you post all your project?
The folder structure, the pom.xml?
Freeman

brijesh wrote:
hi Freeman,

no luck this time tooo , following is console log

1 name = ./schemaValidation.xml
1 name = ./schemaValidation.xml
1 name = ./schemaValidation.xml
Jan 6, 2009 2:07:28 PM org.apache.cxf.bus.spring.BusApplicationContext
getConfigResources
WARNING: Could not find the configuration file ./schemaValidation.xml on the
classpath.
Jan 6, 2009 2:07:29 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be
http://localhost:8092/ContractService
INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
contractSA
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
createContract-bc
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
createContract-dataMapperBean
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
createContract-POJO
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
createContract-EIP
INFO  - ServiceUnitLifeCycle           - Starting service unit:
createContract-bc
INFO  - ServiceUnitLifeCycle           - Starting service unit:
createContract-dataMapperBean
INFO  - ServiceUnitLifeCycle           - Starting service unit:
createContract-POJO
INFO  - ServiceUnitLifeCycle           - Starting service unit:
createContract-EIP
INFO  - AutoDeploymentService          - Directory: hotdeploy: Finished
installation of archive:  contractSA-1.0-SNAPSHOT.jar

config file as follws <cxfbc:consumer wsdl="classpath:contract.wsdl" busCfg="./schemaValidation.xml" service="eka:createContractService"
                                          targetService="eka:contractBeanRouter"
                                          useJBIWrapper="false" />




regards

Brijesh N K


Freeman Fang wrote:
brijesh wrote:
hi freeman,

All the files are in same folder as you mentioned in
..\src\main\resources

i tried prefixed classpath along with file name as follows busCfg="classpath:schemaValidation.xml"
How about use busCfg="./schemaValidation.xml"?
Freeman
but still give the same error thanks Brijesh

brijesh wrote:
hello, i have following setting in xbean.xml for servicemix-cxf-bc

 <cxfbc:consumer wsdl="classpath:contract.wsdl"
        service="eka:createContractService"
        targetService="eka:contractBeanRouter"
busCfg="schemaValidation.xml" useJBIWrapper="false" />


schemaValidation.xml as follows

<jaxws:endpoint name="eka:contractSchemaValidator" wsdlLocation="contract.wsdl" createdFromAPI="true"> <jaxws:properties> <entry key="schema-validation-enabled" value="true" /> </jaxws:properties> </jaxws:endpoint>


I need to validate incoming xml document based on wsdl , all the files
wsdl,schemavalidation.xml and xmlbean.xml are in same folder, but while i am deplying i am getting following error, in console ,
.................
Jan 6, 2009 12:05:32 PM org.apache.cxf.bus.spring.BusApplicationContext
getConfigResources
WARNING: Could not find the configuration file schemaValidation.xml on
the
classpath.


Any idea on this?

thanks brijesh N K




Reply via email to