Hi,

I have hit this problem previously with smx4 and after debugging the problem
down it wasn't that it couldn't find the xml file but it didnt have all the
cxf classes on the classpath. In cxf if it can't find the classes on the
classpath it attempts to try another solution and then the original error
gets lost and this error is output.

What version of Servcemix are you using as the above issue is only with CXF
2.1.x which smx 4 uses ?

This is fixed on trunk of Servicemix 4.

cheers, Edell.



On Tue, Jan 6, 2009 at 8:50 AM, brijesh <[email protected]> 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
> >>>
> >>>
> >>
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Could-not-find-the-configuration-file-tp21305517p21306669.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to