Hello, Using Camel 2.9.2 I was not able to recreate your error. To verify, I created a JUnit test that used a pair of schemas where one was in a child directory and referenced an XSD file in the directory above just as you have presented below.
As to why it worked in 2.0 and not in 2.9.2, I can only ask that you please check the directory paths and file names and verify they match what is in your route. Also, can you verify that the schemas are getting included in your classpath? This could also cause the error below if one was missing. Best Regards, Scott ES 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-tp5713557p5713569.html Sent from the Camel - Users mailing list archive at Nabble.com.