[ https://issues.apache.org/jira/browse/CAMEL-14740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062405#comment-17062405 ]
Claus Ibsen commented on CAMEL-14740: ------------------------------------- Should be fixed in Camel 3.2, but can you verify with SNAPSHOT, you can build from source or try the apache snapshot repo > Error binding property in servlet-starter > ----------------------------------------- > > Key: CAMEL-14740 > URL: https://issues.apache.org/jira/browse/CAMEL-14740 > Project: Camel > Issue Type: Bug > Components: camel-servlet > Reporter: Efanov Alexey > Priority: Trivial > Labels: starter > > Hi, > I have this dependencies > {code:java} > // Camel > implementation 'org.apache.camel.springboot:camel-spring-boot-starter:3.1.0' > implementation 'org.apache.camel.springboot:camel-jackson-starter:3.1.0' > implementation 'org.apache.camel.springboot:camel-jacksonxml-starter:3.1.0' > implementation 'org.apache.camel.springboot:camel-activemq-starter:3.1.0' > implementation 'org.apache.camel.springboot:camel-servlet-starter:3.1.0' > implementation 'org.apache.camel.springboot:camel-rest-starter:3.1.0' {code} > My application.properties > {code:java} > camel.component.servlet.mapping.enabled=true > camel.component.servlet.mapping.context-path=/rest/* > camel.rest.component=servlet > camel.rest.binding-mode=json{code} > When i run application i see this stacktrace > {code:java} > Exception in thread "CamelMainRunController" java.lang.RuntimeException: > org.apache.camel.PropertyBindingException: Error binding property > (camel.component.servlet.mapping.enabled=true) with name: mapping.enabled on > bean: org.apache.camel.component.servlet.ServletComponent@62562970 with > value: true > at > org.apache.camel.spring.boot.CamelSpringBootApplicationController.run(CamelSpringBootApplicationController.java:90) > at > org.apache.camel.spring.boot.CamelMainRunController$DaemonTask.run(CamelMainRunController.java:53) > at java.base/java.lang.Thread.run(Thread.java:834) > Caused by: org.apache.camel.PropertyBindingException: Error binding property > (camel.component.servlet.mapping.enabled=true) with name: mapping.enabled on > bean: org.apache.camel.component.servlet.ServletComponent@62562970 with > value: true > at > org.apache.camel.main.BaseMainSupport.setPropertiesOnTarget(BaseMainSupport.java:176) > at > org.apache.camel.main.BaseMainSupport.autoConfigurationFromProperties(BaseMainSupport.java:993) > at > org.apache.camel.main.BaseMainSupport.autoconfigure(BaseMainSupport.java:545) > at > org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:587) > at > org.apache.camel.main.BaseMainSupport.initCamelContext(BaseMainSupport.java:423) > at org.apache.camel.main.Main.doInit(Main.java:109) > at > org.apache.camel.support.service.ServiceSupport.init(ServiceSupport.java:83) > at > org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:112) > at org.apache.camel.main.MainSupport.run(MainSupport.java:82) > at > org.apache.camel.spring.boot.CamelSpringBootApplicationController.run(CamelSpringBootApplicationController.java:85) > ... 2 more > {code} > It always throw error on any first servlet property in configuration but all > servlet properties binds correctly and works. -- This message was sent by Atlassian Jira (v8.3.4#803005)