Hi Claus,

Thanks for the response!  Unfortunately, your response got put in spam
while all other emails from the list were coming through.  Sorry for not
responding earlier!  I tried your suggestion, and things are getting
further, but ultimately fails with a 'java.lang.ClassNotFoundException:
javax.xml.bind.JAXBContext' exception.  I am running this inside of Karaf
on Java 8, which should not have a problem with JAXB - so I am not sure
what is causing this issue.  If I attempt to add the JAXB classes manually,
Karaf will not start.  I will attempt to deal with the Karaf issues.
Again, thanks for your help!

--Ron

On Thu, Feb 4, 2021 at 2:09 AM Claus Ibsen <claus.ib...@gmail.com> wrote:

> Hi
>
> If you use karaf then spring xml is via spring-dm which has been
> deprecated, and its also not installed by default (I think anymore).
> You may try to install camel-spring-dm feature.
>
> However you should consider migrating to osgi blueprint xml files
> instead, that is the only xml supported in camel 3.x on karaf and
> spring-dm is as said a dead project.
>
> On Wed, Feb 3, 2021 at 8:33 PM Ron Fulkerson <ron.fulker...@gmail.com>
> wrote:
> >
> > Hello,
> > I am attempting to upgrade an application from Camel 2.15.2 to Camel
> 2.25.3
> > (along with other dependencies).  I am using camel-spring to scan a
> package
> > for RouteBuilder implementations, which then set up a route.  This worked
> > well with Camel 2.15, but is not working after the upgrade.  No errors
> are
> > generated, and there is no indication from the logs that the RouteBuilder
> > implementations are being instantiated.
> >
> > Below is an example of my META-INF/spring/camel-context.xml file:
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <beans xmlns="http://www.springframework.org/schema/beans";
> >  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >  xmlns:camel="http://camel.apache.org/schema/spring";
> >  xmlns:cxf="http://camel.apache.org/schema/cxf";
> >  xsi:schemaLocation="
> >  http://www.springframework.org/schema/beans
> > http://www.springframework.org/schema/beans/spring-beans.xsd
> >  http://camel.apache.org/schema/spring
> > http://camel.apache.org/schema/spring/camel-spring.xsd
> >  http://camel.apache.org/schema/cxf
> > http://camel.apache.org/schema/cxf/camel-cxf.xsd";>
> >
> >  <cxf:rsServer id="myServer" address="http://0.0.0.0:9292/service";
> > serviceClass="com.mycompany.service.server.ServiceServer"/>
> >
> >  <camelContext id="my-server-camel-context" xmlns="
> > http://camel.apache.org/schema/spring";>
> >  <package>com.mycompany.service.server</package>
> >  </camelContext>
> > </beans>
> >
> > This application is running within Karaf, and the camel:context-list
> > command does not return any contexts, making me believe that Spring is
> not
> > being utilized as it should.  I am not using Spring Boot, so my
> > understanding is that including the above file is sufficient to set up
> the
> > context.
> >
> > Have there been significant changes from Camel 2.15 to 2.25 which would
> > prevent this from working?
> >
> > Thanks,
> > Ron
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Reply via email to