You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2026/03/30 16:11:00 UTC

[jira] [Assigned] (CAMEL-23272) `--management-port` is overriding `restConfiguration > port`

     [ https://issues.apache.org/jira/browse/CAMEL-23272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Cosentino reassigned CAMEL-23272:
----------------------------------------

    Assignee: Andrea Cosentino

> `--management-port` is overriding `restConfiguration > port`
> ------------------------------------------------------------
>
>                 Key: CAMEL-23272
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23272
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.18.0, 4.18.1
>            Reporter: Ricardo Martinez
>            Assignee: Andrea Cosentino
>            Priority: Minor
>
> {code:java}
> - restConfiguration:
>     port: "9000"
> - rest:
>     id: rest-1641
>     get:
>       - id: get-2806
>         path: hola
>         to:
>           uri: direct
>           parameters:
>             name: getOperation
> - route:
>     from:
>       uri: direct
>       parameters:
>         name: getOperation
>       steps:
>         - log:
>             id: log-1490
>             message: ${body}
>     id: route-1721
> {code}
> Specifying 
> {noformat}
> --management-port=34835
> {noformat}
> forces the HTTP server to use the same port, ignoring what was written in the rest defintion.
> {noformat}
> camel run '--source-dir=/temp/rest' --console --management-port=34835 --dev --port=9000 '--local-kamelet-dir=/temp/rest'"
> {noformat}
> {noformat}
> bq. 2026-03-30 17:28:03.274  INFO 245883 --- [ntloop-thread-0] tform.http.vertx.VertxPlatformHttpServer : Vert.x HttpServer started on 0.0.0.0:35011
> bq. 2026-03-30 17:28:03.347  WARN 245883 --- [           main] .plugin.DefaultJolokiaPlatformHttpPlugin : No access restrictor found at: classpath:/jolokia-access.xml, access to all MBeans is allowed. Mind that this is an unsecure and dangerous configuration that you may only want to use for development environments. NEVER use this in a production environment as it would expose sensitive information with no authentication and is a potential vector of remote attacks.
> bq. 2026-03-30 17:28:03.364  INFO 245883 --- [           main] .plugin.DefaultJolokiaPlatformHttpPlugin : Creating DefaultJolokiaPlatformHttpPlugin with Restrictor: org.jolokia.server.core.restrictor.AllowAllRestrictor@5da57a64
> bq. 2026-03-30 17:28:03.411  INFO 245883 --- [           main] upport.FileWatcherResourceReloadStrategy : Live route reloading enabled (directory: /temp/rest)
> bq. 2026-03-30 17:28:03.490  INFO 245883 --- [           main] e.camel.impl.engine.AbstractCamelContext : Routes startup (total:1 rest-dsl:1)
> bq. 2026-03-30 17:28:03.491  INFO 245883 --- [           main] e.camel.impl.engine.AbstractCamelContext :     Started route-1129 (rest://get:/hola)
> bq. 2026-03-30 17:28:03.491  INFO 245883 --- [           main] e.camel.impl.engine.AbstractCamelContext : Apache Camel 4.18.1 (rest-example) started in 377ms (build:0ms init:0ms start:377ms boot:442ms)
> bq. 2026-03-30 17:28:03.492  INFO 245883 --- [           main] nt.platform.http.main.MainHttpServerUtil : HTTP Management endpoints summary
> bq. 2026-03-30 17:28:03.493  INFO 245883 --- [           main] nt.platform.http.main.MainHttpServerUtil :     http://0.0.0.0:35011/observe/health     (GET)        (produce:application/json)
> bq. 2026-03-30 17:28:03.493  INFO 245883 --- [           main] nt.platform.http.main.MainHttpServerUtil :     http://0.0.0.0:35011/observe/info       (GET)        (produce:application/json)
> bq. 2026-03-30 17:28:03.493  INFO 245883 --- [           main] nt.platform.http.main.MainHttpServerUtil :     http://0.0.0.0:35011/observe/jolokia    (GET,POST)   (produce:text/plain,application/json)
> bq. 2026-03-30 17:28:03.493  INFO 245883 --- [           main] nt.platform.http.main.MainHttpServerUtil :     http://0.0.0.0:35011/q/dev              (GET)        (produce:text/plain,application/json)
> bq. 2026-03-30 17:28:03.493  INFO 245883 --- [           main] nt.platform.http.main.MainHttpServerUtil :     http://0.0.0.0:35011/q/download         (GET)        (produce:text/plain,application/octet-stream)
> bq. 2026-03-30 17:28:03.493  INFO 245883 --- [           main] nt.platform.http.main.MainHttpServerUtil :     http://0.0.0.0:35011/q/upload           (PUT,DELETE) (accept:multipart/form-data)
> bq. 2026-03-30 17:28:45.974  WARN 245883 --- [rReloadStrategy] upport.FileWatcherResourceReloadStrategy : Error reloading routes from file: /temp/rest/.camel-jbang/camel-jbang-run.properties due to: /temp/rest/home/ricmarti/repos/temp/rest/.camel-jbang/camel-jbang-run.properties does not exist. This exception is ignored.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)