Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-2047

Startup fail with management-console and openapi fraction

    Details

      Description

      Having the following fractions configured at the same time:

      		<dependency>
      			<groupId>org.wildfly.swarm</groupId>
      			<artifactId>management</artifactId>
      		</dependency>
      		<dependency>
      			<groupId>org.wildfly.swarm</groupId>
      			<artifactId>management-console</artifactId>
      		</dependency>
      		<dependency>
      			<groupId>org.wildfly.swarm</groupId>
      			<artifactId>microprofile-openapi</artifactId>
      		</dependency>
      

      causes at startup the following error:

      INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Swarm 2018.5.0 (WildFly Core 3.0.8.Final) started in 2001ms - Started 143 of 151 services (31 services are lazy, passive or on-demand)
      INFO  [org.wildfly.swarm.runtime.deployer] (main) deploying management-console-ui.war
      INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "management-console-ui.war" (runtime-name: "management-console-ui.war")
      WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.management-console-ui.war" is using a private module ("org.jboss.jts") which may be changed or removed in future versions without notice.
      WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.management-console-ui.war" is using a private module ("org.jboss.jts") which may be changed or removed in future versions without notice.
      INFO  [org.wildfly.swarm.microprofile.openapi.api.OpenApiDocument] (ServerService Thread Pool -- 5) OpenAPI document initialized: org.wildfly.swarm.microprofile.openapi.api.models.OpenAPIImpl@1e33c98
      INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 5) WFLYUT0021: Registered web context: '/console' for server 'default-server'
      INFO  [org.jboss.as.server] (main) WFLYSRV0010: Deployed "management-console-ui.war" (runtime-name : "management-console-ui.war")
      ERROR [stderr] (main) org.wildfly.swarm.container.DeploymentException: java.lang.IllegalStateException: Model already initialized
      ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
      ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
      ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
      ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
      ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.deploy(Swarm.java:473)
      ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.main(Swarm.java:744)
      ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      ERROR [stderr] (main)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      ERROR [stderr] (main)   at java.lang.reflect.Method.invoke(Unknown Source)
      ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
      ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
      ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
      ERROR [stderr] (main) Caused by: java.lang.IllegalStateException: Model already initialized
      ERROR [stderr] (main)   at org.wildfly.swarm.microprofile.openapi.api.OpenApiDocument.modelAlreadyInitialized(OpenApiDocument.java:200)
      ERROR [stderr] (main)   at org.wildfly.swarm.microprofile.openapi.api.OpenApiDocument.set(OpenApiDocument.java:193)
      ERROR [stderr] (main)   at org.wildfly.swarm.microprofile.openapi.api.OpenApiDocument.config(OpenApiDocument.java:103)
      ERROR [stderr] (main)   at org.wildfly.swarm.microprofile.openapi.runtime.OpenApiDeploymentProcessor.process(OpenApiDeploymentProcessor.java:92)
      ERROR [stderr] (main)   at org.wildfly.swarm.microprofile.openapi.runtime.OpenApiDeploymentProcessor$Proxy$_$$_WeldClientProxy.process(Unknown Source)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manovotn Matěj Novotný
                Reporter:
                ms_s75 M Schmitt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: