Hi The trick is in the top of the XML file with all those namespace mappings. What you must do is to use http uris which is included in that spring file in the .jar in META-INF/spring.schemas
And I think AMQ (if you use AMQ) had an issue with a missing entry in their jar so you may have to use the latest version for it to work. On Fri, Apr 23, 2010 at 1:26 PM, Krystian Szczesny <[email protected]> wrote: > > Hi, > > I have to deploy my applictaion on a server with no internet access. > When using schemaLocation pointing to the web spring will throw errorsduring > processing of applicationContext.xml file. > It was easy enough to fix the problem for spring, I simply changed http:// > location to: > classpath:org/springframework/beans/factory/xml/spring-beans-2.0.xsd > > Unfortunately it's not that easy when it comes to camel. > I know that the camel-spring.xsd is in the root of camel-spring.jar, however > it seems I cannot configure it properly. > I have tried: > classpath:camel-spring.xsd > but it gives me the same error as usual: > Nested in org.springframework.beans.factory.BeanDefinitionStoreException: > Unexpected exception parsing XML document from ServletContext resource > [/WEB-INF/applicationContext.xml]; nested exception is > org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class > [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace > [http://camel.apache.org/schema/spring] > > I have also tried: > classpath:META-INF/camel-spring.xsd > this however gave me following error: > > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line > 76 in XML document from ServletContext resource > [/WEB-INF/applicationContext.xml] is invalid; nested exception is > org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard > is strict, but no declaration can be found for element 'camel:camelContext'. > > I am not sure how to get pass this. > Any help will be appreciated. > > Krystian > -- > View this message in context: > http://old.nabble.com/Using-local-camel-schema-on-server-with-no-internet-access-tp28340101p28340101.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
