在wildfly 10.1中部署Rest服务时,我会收到一些警告,因此我正在寻找一种方法来摆脱这些警告。我是这个主题的新手,并通过maven模板(jersey-quickstart-webapp)创建了其余服务。
Wildfly日志警告
client:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt:/etc/letsencrypt
Pom.xml
13:04:39,947 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
13:04:57,330 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0003: Could not index class module-info.class at /content/converter.war/WEB-INF/lib/javax.json-1.1.jar: java.lang.IllegalStateException: Unknown tag! pos=4 poolCount = 18
13:04:57,344 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0003: Could not index class module-info.class at /content/converter.war/WEB-INF/lib/yasson-1.0.jar: java.lang.IllegalStateException: Unknown tag! pos=4 poolCount = 20
13:04:57,540 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0003: Could not index class module-info.class at /content/converter.war/WEB-INF/lib/javax.json-api-1.1.jar: java.lang.IllegalStateException: Unknown tag! pos=4 poolCount = 18
13:04:57,641 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0003: Could not index class module-info.class at /content/converter.war/WEB-INF/lib/javax.json.bind-api-1.0.jar: java.lang.IllegalStateException: Unknown tag! pos=4 poolCount = 28
13:04:58,145 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0059: Class Path entry univocity-parsers-2.5.9.jar in /content/converter.war/WEB-INF/lib/org.junit.jupiter.params_5.1.0.v20180327-1502.jar does not point to a valid jar for a Class-Path reference.
13:05:04,532 WARN [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 2) WELD-000167: Class org.glassfish.jersey.jsonb.internal.JsonBindingProvider is annotated with @ApplicationScoped but it does not declare an appropriate constructor therefore is not registered as a bean!
要清除这些警告,我需要更改什么?如果您需要代码的显式部分才能给我答案,则可以在以后添加。