camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicolasduminil <nicolas.dumi...@simplex-software.fr>
Subject Re: How to run camel-cdi projects ?
Date Thu, 12 May 2016 10:10:17 GMT
Hi Antonin,

Many thanks again for your help. Using org.apache.camel.cdi.Main as a main
class for my uber jar seemed to me a very convenient option. So, I modified
my shade plugin config to include this and, after having built and ran it, I
got ClassNotFoundException on javax.servlet.HttpServletRequest. Then I
included a new dependency in my pom to javax.servlet-api and then the
required classes have been included in the jar but another
ClassNotFoundREference has been raised. It's
com.sun.jdi.request.EventRequest but I think that I add a new dependency to
it there will another one missing, etc.

It's probably not related at all to the camel-cdi stuff but more to the
apache shade maven plugin. However, there should be a way to package the app
with all its dependencies such that to run it in production.

I also made the following simple class:

public class CdiBoot {
  public static void main(String[] args) throws Exception {
    new Main().run();
  }
}

and running it from Eclipse works properly. But again, using this class as
the main class for my uber jar raises the same ClassNotFoundException. So
I'm confused as I can run the project from Eclipse or with camel:run but I
don't have a cloue about how the guys will run it in production.

If you have any suggestion then I would be very obliogated to you.

Kind regards,

Nicolas DUMINIL



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-run-camel-cdi-projects-tp5781727p5782484.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message