[
https://issues.apache.org/jira/browse/CAMEL-22163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959724#comment-17959724
]
Grzegorz Grzybek edited comment on CAMEL-22163 at 6/11/25 11:22 AM:
--------------------------------------------------------------------
Works on Windows:
{noformat}
c:\Dev\cjb-1>jbang -Dcamel.jbang.version=4.13.0-SNAPSHOT camel@apache/camel
jolokia CamelJBang
Started Jolokia for PID 6372
http://127.0.0.1:8778/jolokia/
c:\Dev\cjb-1>jbang -Dcamel.jbang.version=4.13.0-SNAPSHOT camel@apache/camel
jolokia CamelJBang
Jolokia is already attached to PID 6372
http://127.0.0.1:8778/jolokia/
{noformat}
For a moment I thought it's JDK 21 issue, but:
{noformat}
2025-06-11 14:20:02.783 INFO 6372 --- [ main]
org.apache.camel.main.MainSupport : Using Java 21.0.6 (Java HotSpot(TM)
64-Bit Server VM) with PID 6372
{noformat}
was (Author: gzres):
Works on Windows:
{noformat}
c:\Dev\cjb-1>jbang -Dcamel.jbang.version=4.13.0-SNAPSHOT camel@apache/camel
jolokia CamelJBang
Started Jolokia for PID 6372
http://127.0.0.1:8778/jolokia/
c:\Dev\cjb-1>jbang -Dcamel.jbang.version=4.13.0-SNAPSHOT camel@apache/camel
jolokia CamelJBang
Jolokia is already attached to PID 6372
http://127.0.0.1:8778/jolokia/
{noformat}
> On Windows, Camel JBang jolokia command is mentioning an error
> --------------------------------------------------------------
>
> Key: CAMEL-22163
> URL: https://issues.apache.org/jira/browse/CAMEL-22163
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.12.0
> Reporter: Aurélien Pupier
> Priority: Minor
>
> {noformat}
> jbang -Dcamel.jbang.version=4.13.0-SNAPSHOT camel@apache/camel jolokia demo
> Couldn't start agent for PID 10232
> Possible reason could be that port '8778' is already occupied.
> Please check the standard output of the target process for a detailed error
> message.
> {noformat}
> in th elog of the targeted route:
> {noformat}
> I> No access restrictor found, access to any MBean is allowed
> 2025-06-10 13:41:01.203 INFO 10232 --- [ - timer://yaml] demo.camel.yaml:9
> : Hello Camel from route1
> Jolokia: Agent started with URL http://127.0.0.1:8778/jolokia/
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)