Comments (5)
Hi @HARSHITHARSH, thanks for the reporting.
I tested the same setup at my end, but couldn't reproduce the issue. Hawtio works just fine with 2 app routes & 1 route from an external jar.
I used the following route in a jar:
package com.example.hello;
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;
@Component
public class Hello extends RouteBuilder {
@Override
public void configure() throws Exception {
// Write your routes here, for example:
from("timer:java?period={{time:1000}}")
.setBody()
.simple("Hello Camel from ${routeId}")
.log("${body}");
}
}
then using the example project springboot imported the above project com.example:hello:1.0.0
and loaded the component from the startup application as follows:
@SpringBootApplication(scanBasePackages = {"io.hawt.example.spring.boot", "com.example"})
public class SampleSpringBootService {
So, maybe it's related to the way you build the jar and import it into the main app. Can you provide us with a reproducer?
from hawtio.
Can we try with spring dsl routes in both application and jar.
from hawtio.
@HARSHITHARSH What does "spring dsl routes" mean? Does it mean Spring XML DSL routes?
from hawtio.
Yes sir.
from hawtio.
@HARSHITHARSH Tried Spring XML DSL but nothing has changed. It works.
I suspect it's related to the way you've made the JAR. Can you show us the output of the following command?
$ jar -tf <name-of-the-jar>.jar
from hawtio.
Related Issues (20)
- SpringBootTest AutoConfigureMockMvc issue with config manager not found via SessionExpiryFilter HOT 7
- Hawtio JBang should launch `localhost:8080` instead of `0.0.0.0:8080`
- Camel - Source tab is broken HOT 1
- Provide Hawtio minimum console war HOT 1
- NoClassDefFoundError starting version 4.0-RC1 HOT 2
- Hawtio plugin failed to load from a remote location HOT 1
- hawtio-springboot doesn't work well with Spring Boot customization of paths HOT 1
- /favicon.ico is redirected to /login when authentication is enabled
- hawtio-springboot - connect plugin doesn't work HOT 2
- Confusing redirects, difference between WAR, Spring Boot and Quarkus HOT 2
- HawtioEndpointAutoConfiguration is not working with reactive web applications but is configured as ANY HOT 3
- Consider shorter stack traces HOT 1
- Improve integration with Spring Security HOT 3
- Can't configure standalone Jetty for hawtio authentication
- Handle redirects/forwards correctly for external authentication
- Add custom error page (404) for WAR/SpringBoot/Quarkus HOT 1
- Release 3.0.2 HOT 1
- hawtio is not showing logs even I had sent messages from IBM MQ and I am able to see records in DB HOT 3
- Browser got `Permissions policy violation: Synchronous requests are disabled by permissions policy` error with ActiveMQ artemis HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hawtio.