On Sun, Dec 16, 2012 at 3:25 AM, raheem <raheemd...@gmail.com> wrote: > Hi, > I used the camel-archetype-web archetype to generate a war. I generated the > projec, built it and deployed. When deploying to a karaf-2.2.9 with camel > 2.10.2, I get the following exception: > Unexpected exception parsing XML document from ServletContext resource > [/WEB-INF/applicationContext.xml]; nested exception is > org.springframework.beans.FatalBeanException: Class > [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace > [http://camel.apache.org/schema/spring] does not implement the > [org.springframework.beans.factory.xml.NamespaceHandler] interface >
How do you deploy the WAR to Karaf ? Do you copy the .war to deploy directory, or install using the shell? If using the shell you need to use the war url handler The Karaf documentation about this is vauge http://karaf.apache.org/manual/2.2.9/users-guide/web-applications.html There is a better doc here about the war url handler http://fusesource.com/docs/esbent/7.0/esb_deploy_osgi/UrlHandlers-War.html > I only have one version of spring installed and I do not have camel-osgi > installed. Here is a partial listing: > karaf@root> list -t 1 | grep pring > ID State Blueprint Spring Level Name > [ 12] [Active ] [Created ] [ ] [ 28] Apache Karaf :: > Deployer :: Spring (2.2.9) > [ 51] [Active ] [ ] [ ] [ 30] Spring Core > (3.0.7.RELEASE) > [ 52] [Active ] [ ] [ ] [ 30] Spring ASM > (3.0.7.RELEASE) > [ 53] [Active ] [ ] [ ] [ 30] Spring Expression > Language (3.0.7.RELEASE) > [ 54] [Active ] [ ] [ ] [ 30] Spring Beans > (3.0.7.RELEASE) > [ 55] [Active ] [ ] [ ] [ 30] Spring AOP > (3.0.7.RELEASE) > [ 56] [Active ] [ ] [ ] [ 30] Spring Context > (3.0.7.RELEASE) > [ 57] [Active ] [ ] [ ] [ 30] Spring Context Support > (3.0.7.RELEASE) > [ 67] [Active ] [ ] [ ] [ 30] spring-osgi-io (1.2.1) > [ 68] [Active ] [ ] [ ] [ 30] spring-osgi-core > (1.2.1) > [ 69] [Active ] [ ] [ ] [ 30] spring-osgi-extender > (1.2.1) > [ 70] [Active ] [ ] [ ] [ 30] spring-osgi-annotation > (1.2.1) > [ 71] [Active ] [ ] [ ] [ 30] Spring Transaction > (3.0.7.RELEASE) > [ 73] [Active ] [ ] [ ] [ 50] camel-spring (2.10.2) > [ 104] [Active ] [ ] [ ] [ 30] Spring Web > (3.0.7.RELEASE) > [ 105] [Active ] [ ] [ ] [ 30] Spring Web Servlet > (3.0.7.RELEASE) > [ 107] [Active ] [ ] [ ] [ 30] Spring JMS > (3.0.7.RELEASE) > [ 286] [Active ] [ ] [ ] [ 80] Spring JDBC > (3.0.7.RELEASE) > karaf@root> list -t 1 | grep camel > [ 64] [Active ] [ ] [ ] [ 50] camel-core (2.10.2) > [ 65] [Active ] [Created ] [ ] [ 50] camel-karaf-commands > (2.10.2) > [ 73] [Active ] [ ] [ ] [ 50] camel-spring (2.10.2) > [ 74] [Active ] [Created ] [ ] [ 50] camel-blueprint > (2.10.2) > [ 75] [Active ] [ ] [ ] [ 50] camel-context (2.10.2) > [ 81] [Active ] [ ] [ ] [ 50] camel-quartz (2.10.2) > [ 108] [Active ] [ ] [ ] [ 50] camel-jms (2.10.2) > [ 167] [Active ] [ ] [ ] [ 50] camel-cxf-transport > (2.10.2) > [ 168] [Active ] [Created ] [ ] [ 50] camel-cxf (2.10.2) > [ 184] [Active ] [ ] [ ] [ 50] camel-http (2.10.2) > [ 185] [Active ] [ ] [ ] [ 50] camel-jetty (2.10.2) > [ 188] [Active ] [ ] [ ] [ 50] camel-ftp (2.10.2) > [ 191] [Active ] [ ] [ ] [ 50] camel-ssh (2.10.2) > [ 242] [Active ] [ ] [ ] [ 50] activemq-camel (5.7.0) > > Thanks! > Raheem > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Error-trying-to-deploy-war-tp5724157.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen