How to disable web server in Quarkus app

777 views
Skip to first unread message

David Hoffer

unread,
Mar 26, 2021, 4:21:24 PM3/26/21
to Quarkus Development mailing list
I have a Quarkus app that has no web functionality so I just have these dependencies.

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-core</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.slf4j</groupId>
<artifactId>slf4j-jboss-logmanager</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-config-yaml</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-elytron-security-properties-file</artifactId>
</dependency>

Yet Quarkus is listening on port 8080.  So then I set this property quarkus.http.host-enabled: false

And now I get this at startup.  How can I disable all web behavior in my app?

2021-03-26 14:15:17,547 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.IllegalArgumentException: Must configure at least one of http, https or unix domain socket
        at io.quarkus.vertx.http.runtime.VertxHttpRecorder$WebDeploymentVerticle.start(VertxHttpRecorder.java:846)
        at io.vertx.core.Verticle.start(Verticle.java:66)
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$9(DeploymentManager.java:556)
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:834)

Stuart Douglas

unread,
Mar 28, 2021, 6:26:04 PM3/28/21
to David Hoffer, Quarkus Development mailing list
This is a bug, quarkus-elytron-security-properties-file has a dependency on vert.x-http. https://github.com/quarkusio/quarkus/pull/16078 will fix it.

Stuart

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/3a76f935-0b72-4ef1-8887-5334b3ae994dn%40googlegroups.com.

David Hoffer

unread,
Mar 28, 2021, 8:45:55 PM3/28/21
to Stuart Douglas, Quarkus Development mailing list
Great!  What release version will this be in?

-Dave

George Gastaldi

unread,
Mar 28, 2021, 9:22:16 PM3/28/21
to David Hoffer, Stuart Douglas, Quarkus Development mailing list
Since it's marked to be backported, I believe 1.13.1.Final

David Hoffer

unread,
Mar 28, 2021, 9:36:58 PM3/28/21
to George Gastaldi, Stuart Douglas, Quarkus Development mailing list
Reply all
Reply to author
Forward
0 new messages