question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running a Camel-main batch application

See original GitHub issue

Hi. I have been trying to run a simple camel-main (new in CR3) application in java and kotlin. No luck. Any examples or pointers highly appreciated (in java or kotlin, both better hehehe).

Exception in thread "main" java.lang.RuntimeException: java.lang.LinkageError: loader constraint violation: loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @7068f7ca wants to load class io.quarkus.bootstrap.model.AppModel. A different class with the same name was previously loaded by 'app'. (io.quarkus.bootstrap.model.AppModel is in unnamed module of loader 'app') at io.quarkus.deployment.dev.DevModeMain.start(DevModeMain.java:130) at io.quarkus.deployment.dev.DevModeMain.main(DevModeMain.java:56) Caused by: java.lang.LinkageError: loader constraint violation: loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @7068f7ca wants to load class io.quarkus.bootstrap.model.AppModel. A different class with the same name was previously loaded by 'app'. (io.quarkus.bootstrap.model.AppModel is in unnamed module of loader 'app')

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gus-mauriziocommented, Jul 13, 2020

Aha!!! wonderful, might be good to add that in the documentation. your next Chianti is on me!

1reaction
lburgazzolicommented, Jul 13, 2020

you need camel-quarkus-bean extension, forgo to tell you that before

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to run Camel Main so it will keep running, and also use ...
I'm upgrading an old system that was a batch job that used Camel Main to continue running, so that it can basically loop...
Read more >
Main - Apache Camel
Name Description Default camel.main.autoConfiguration​Enabled true camel.main.autoStartup true camel.main.basePackageScan​Enabled Whether base package scan is enabled. true
Read more >
Configuring and Running a Job - Spring
As of Spring Batch 2.2.0, you can configure batch jobs by using the same Java configuration. There are three components for the Java-based ......
Read more >
[GitHub] [camel-quarkus] gus-maurizio opened a new issue ...
I have been trying to run a simple camel-main (new in CR3) application in java and kotlin. No luck. Any examples or pointers...
Read more >
Developing a simple transactional batch application - IBM
You can write a simple batch application using a batch job controller and Enterprise JavaBeans (EJB) data stream, the command line, or the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found