You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/09/09 07:51:00 UTC

[jira] [Commented] (CAMEL-16934) apiContextIdListing option does not work in camel-openapi-java

    [ https://issues.apache.org/jira/browse/CAMEL-16934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17412417#comment-17412417 ] 

Claus Ibsen commented on CAMEL-16934:
-------------------------------------

Yes its for classic app servers like jboss, tomcat, karaf where you can deploy war/bundles etc in the same JVM.
It requires to have JMX enabled to function.

> apiContextIdListing option does not work in camel-openapi-java
> --------------------------------------------------------------
>
>                 Key: CAMEL-16934
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16934
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-openapi-java
>            Reporter: James Netherton
>            Priority: Major
>
> Seems there's no test coverage for this feature, so it not working has gone unnoticed:
> https://camel.apache.org/components/latest/others/openapi-java.html#_contextidlisting_enabled
> If you add the relevant XML parser components to the classpath and try to specify the context to fetch the OpenApi spec for, then you get an exception.
> Since Camel 3 moved to mandating a single CamelContext per 'deployment', I wonder how useful this feature is and whether it should be removed? It maybe has some use in containers where there could be multiple deployments, but otherwise I don't see a use for it.
> I've not checked camel-swagger-java but I assume the same issue is present there too.
> {code}
> org.apache.camel.xml.io.XmlPullParserException: Unexpected attribute '{http://camel.apache.org/schema/spring}rest'
>         at org.apache.camel.xml.in.BaseParser.handleUnexpectedAttribute(BaseParser.java:183) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.BaseParser.doParse(BaseParser.java:90) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.ModelParser.doParseRouteDefinition(ModelParser.java:997) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.ModelParser.lambda$verbDefinitionElementHandler$190(ModelParser.java:2751) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.BaseParser.doParse(BaseParser.java:106) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.ModelParser.doParseGetVerbDefinition(ModelParser.java:2813) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.ModelParser.lambda$doParseRestDefinition$72(ModelParser.java:1047) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.BaseParser.doParse(BaseParser.java:106) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.ModelParser.doParseRestDefinition(ModelParser.java:1029) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.ModelParser.lambda$doParseRestsDefinition$209(ModelParser.java:3022) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.BaseParser.doParse(BaseParser.java:106) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.ModelParser.doParseRestsDefinition(ModelParser.java:3019) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.xml.in.ModelParser.parseRestsDefinition(ModelParser.java:3000) ~[camel-xml-io-3.12.0-20210909.030146-274.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.dsl.xml.io.XmlRoutesDefinitionLoader.loadRestsDefinition(XmlRoutesDefinitionLoader.java:51) ~[camel-xml-io-dsl-3.12.0-20210909.052526-248.jar:3.12.0-SNAPSHOT]
>         at org.apache.camel.openapi.jmx.JmxRestDefinitionsResolver.getRestDefinitions(JmxRestDefinitionsResolver.java:72) ~[classes/:?]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)