Предупреждения журнала развертывания Wildfly 10.1 - PullRequest
0 голосов
/ 22 ноября 2018

Я получаю некоторые предупреждения при развертывании службы отдыха в wildfly 10.1, поэтому я ищу способ избавиться от них.Я новичок в этой теме и создал службу отдыха через шаблон maven (jersey-quickstart-webapp).

Предупреждения журнала Wildfly:

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!

Pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
     http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>package</groupId>
    <artifactId>converter</artifactId>
    <packaging>war</packaging>
    <version>0.0.1-SNAPSHOT</version>
    <name>converter</name>

    <build>
        <finalName>converter</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.5.1</version>
                <inherited>true</inherited>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.glassfish.jersey</groupId>
                <artifactId>jersey-bom</artifactId>
                <version>${jersey.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.glassfish.jersey.containers</groupId>
            <artifactId>jersey-container-servlet-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.inject</groupId>
            <artifactId>jersey-hk2</artifactId>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-json-binding</artifactId>
        </dependency>
    </dependencies>
    <properties>
        <jersey.version>2.27</jersey.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
</project>

Что я должен изменить, чтобы убрать эти предупреждения?Если вам нужна четкая часть кода, чтобы дать мне ответ, я могу добавить его позже.

...