camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sengland <sully6...@yahoo.com>
Subject Re: org.apache.camel.RuntimeCamelException: java.io.FileNotFoundException: Cannot find resource in classpath for URI
Date Fri, 25 May 2012 17:29:08 GMT
Sorry RE version.  I see it now.


sengland wrote
> 
> Just for completeness, did you try the absolute paths to see if that
> worked correctly?
> 
> Also, what version of Camel are you using?
> 
> 
> pitani wrote
>> 
>> I have 2 schema files. Sabre_OTA_Profile.xsd and
>> Sabre_OTA_ProfileOrchestratedReadRQ.xsd.
>> Sabre_OTA_ProfileOrchestratedReadRQ.xsd is inside orchestrated folder.
>> EX:
>> 
>> ./Sabre_OTA_Profile.xsd
>> ./orchestrated/Sabre_OTA_ProfileOrchestratedReadRQ.xsd
>> 
>> In Sabre_OTA_ProfileOrchestratedReadRQ.xsd, I have..<xs:include
>> schemaLocation="../Sabre_OTA_Profile.xsd"/> 
>> 
>> I am getting following error..when I am trying to load
>> Sabre_OTA_ProfileOrchestratedReadRQ.xsd file. This is working in Camel
>> 2.0, This is not working in Came 2.9.X version.
>> 
>> Caused by: org.apache.camel.RuntimeCamelException:
>> java.io.FileNotFoundException: Cannot find resource in classpath for URI:
>> orchestrated/../Sabre_OTA_Profile.xsd
>> 	at
>> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1221)
>> 	at
>> org.apache.camel.component.validator.DefaultLSResourceResolver$DefaultLSInput.getByteStream(DefaultLSResourceResolver.java:95)
>> 	at org.apache.xerces.util.DOMEntityResolverWrapper.resolveEntity(Unknown
>> Source)
>> 	at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
>> 	at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown
>> Source)
>> 	at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown
>> Source)
>> 	at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
>> Source)
>> 	at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
>> Source)
>> 	at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
>> 	at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
>> 	at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
>> 	at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown
>> Source)
>> 	at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:594)
>> 	at
>> org.apache.camel.processor.validation.ValidatingProcessor.createSchema(ValidatingProcessor.java:233)
>> 	at
>> org.apache.camel.processor.validation.ValidatingProcessor.loadSchema(ValidatingProcessor.java:105)
>> 	at
>> org.apache.camel.component.validator.ValidatorComponent.createEndpoint(ValidatorComponent.java:54)
>> 	at
>> org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:91)
>> 	at
>> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:437)
>> 	... 164 more
>> Caused by: java.io.FileNotFoundException: Cannot find resource in
>> classpath for URI: orchestrated/../Sabre_OTA_Profile.xsd
>> 	at
>> org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:89)
>> 	at
>> org.apache.camel.component.validator.DefaultLSResourceResolver$DefaultLSInput.getByteStream(DefaultLSResourceResolver.java:93)
>> 	... 180 more
>> 
> 


--
View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-java-io-FileNotFoundException-Cannot-find-resource-in-classpaI-tp5713557p5713565.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message