If you build a fat JAR yourself then make sure to provide correct main class it should call. If you want to call a main from camel then make sure camel-spring etc is included in your fatjar.
It looks like you build your fat jar wrong. Search the internet how to build fat jars with maven. On Thu, Mar 24, 2016 at 10:58 AM, fabrizio.spataro <[email protected]> wrote: > Hello, > > i am using camel-maven-plugin with camel version 2.16.3-SNAPSHOT, but my > executable jar don't have enough MANIFEST 's entries (for example > camel-spring is missing!!) > > With camel 2.16.2 it is all ok! > > It's a bug? > > Output: > > $ java -jar myFantasticCamelApplication.jar > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/camel/spring/Main > at com.xxxxx.SpringMain.boot(SpringMain.java:25) > at com.xxxxx.SpringMain.main(SpringMain.java:19) > Caused by: java.lang.ClassNotFoundException: org.apache.camel.spring.Main > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 2 more > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-maven-plugin-executable-jar-MANIFEST-entry-is-missing-tp5779625.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
