XSD files in the root of camel-spring-2.5.0.jar cannot be resolved within a 
OSGI container
------------------------------------------------------------------------------------------

                 Key: CAMEL-3706
                 URL: https://issues.apache.org/jira/browse/CAMEL-3706
             Project: Camel
          Issue Type: Bug
          Components: camel-spring
    Affects Versions: 2.5.0
         Environment: java6, Felix OSGI container
            Reporter: Ashwin Pejavar


camel-spring-2.5.0.jar includes the the spring app-context related schemas 
(camel-osgi.xsd, camel-spring.xsd...) in the root of the jar.

OSGI does not support resolving resources in the default package, or at least 
that is true of the osgi container I use, namely Felix.

So if I start my app without an internet connection, forcing the XSDs to be 
loaded from within the jar, the app will not start with a "Failed to read 
schema document" error.

If I repackage the jar after moving the XSDs to a package (say 
org.apache.camel.spring) and update the spring.schemas file correspondingly, 
everything works.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to