On Tue, Nov 17, 2009 at 1:50 PM, Ian de Beer <i...@zenaptix.com> wrote: > > Hi Claus > I have tried with "http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd", but the > problem persists. > The puzzling part is that it works when the full classpath is specified > (referencing the jars in the maven repo). Obviously the fat jar, containing > all dependencies, is the only jar on the classpath and then it fails. The > jar does contain the CamelNamespaceHandler.class. > Regards > Ian >
Ah you need to copy the spring namespace files in the fat jar. In camel-spring there are some files in META-INF somewhere that has the mapping from those XSDs. > > Claus Ibsen-2 wrote: >> >> Hi >> >> You can change to use a fixed 2.0.0 version of the XSD >> >> http://camel.apache.org/schema/spring >> http://camel.apache.org/schema/spring/camel-spring.xsd"> >> >> Should be >> >> http://camel.apache.org/schema/spring >> http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd"> >> >> >> > > -- > View this message in context: > http://old.nabble.com/The-dreaded%3A-Unable-to-locate-Spring-NamespaceHandler-for-XML-schema-tp26388081p26389361.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus