2017-03-02 4 views
0

내 프로젝트를 배포하는 데 문제가 있습니다. 오류가있는 wildfly 서버를 시작할 수는 있지만 프로젝트를 배포 할 수는 없습니다. 다음은 오류 메시지입니다.wildfly 10.1.0.Final, hibernate ogm 5.0.10.Final 및 Cassandra 3.0.9를 사용하여 wildfly 서버를 시작하고 프로젝트를 시작하려고하면 오류가 발생합니다. 3.0.9

[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Final:deploy (default-cli) on project aigateway: Failed to execute goal deploy: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"aigateway.war#JPAService\".FIRST_PHASE" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"aigateway.war#JPAService\".FIRST_PHASE: java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.envers.boot.internal.EnversIntegrator not a subtype [ERROR] Caused by: java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.envers.boot.internal.EnversIntegrator not a subtype"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"aigateway.war#JPAService\".FIRST_PHASE"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}}} [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

내 종속성과의 호환성 문제가 있습니다. 그러나 나는 그 문제가 무엇인지 모른다. 여기

<jboss-deployment-structure> 
<deployment> 
    <dependencies> 
     <module name="org.hibernate.ogm" slot="5.0" services="export" /> 
     <module name="org.hibernate.ogm.cassandra" slot="main" services="export" /> 
    </dependencies> 
</deployment> 
내 pom.xml 파일입니다 : 여기

내 JBoss에 배포-structure.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>com.sensorhound</groupId> 
<artifactId>aigateway</artifactId> 
<version>0.0.1-SNAPSHOT</version> 
<packaging>war</packaging> 
<name>AI Gateway Maven Webapp</name> 
<url>http://maven.apache.org</url> 

<properties> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <jetty.version>9.3.12.v20160915</jetty.version> 
    <jersey.version>2.23.2</jersey.version> 
    <ogm.version>5.0.4.Final</ogm.version> 
    <hibernate.version>5.0.4.Final</hibernate.version> 
</properties> 

<dependencyManagement> 
    <dependencies> 
     <dependency> 
      <groupId>org.hibernate.ogm</groupId> 
      <artifactId>hibernate-ogm-bom</artifactId> 
      <version>5.0.4.Final</version> 
      <type>pom</type> 
      <scope>import</scope> 
     </dependency> 
    </dependencies> 
</dependencyManagement> 

<dependencies> 
    <!-- hibernate --> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-core</artifactId> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-search-orm</artifactId> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-entitymanager</artifactId> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-search-infinispan</artifactId> 
     <version>5.1.1.Final</version> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate.ogm</groupId> 
     <artifactId>hibernate-ogm-cassandra</artifactId> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>dom4j</groupId> 
     <artifactId>dom4j</artifactId> 
     <version>1.6.1</version> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.jboss.logging</groupId> 
     <artifactId>jboss-logging</artifactId> 
     <version>3.3.0.Final</version> 
    </dependency> 

    <!-- hibernate ogm --> 
    <!-- Hibernate OGM Infinispan module; pulls in the OGM core module --> 
    <dependency> 
     <groupId>org.hibernate.ogm</groupId> 
     <artifactId>hibernate-ogm-infinispan</artifactId> 
    </dependency> 
    <!-- standard APIs dependencies - provided in a Java EE container --> 
    <dependency> 
     <groupId>org.hibernate.javax.persistence</groupId> 
     <artifactId>hibernate-jpa-2.1-api</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.jboss.spec.javax.transaction</groupId> 
     <artifactId>jboss-transaction-api_1.2_spec</artifactId> 
    </dependency> 
    <!-- Add the Narayana Transactions Manager 
    an implementation would be provided in a Java EE container, 
    but this works nicely in Java SE as well --> 
    <dependency> 
     <groupId>org.jboss.narayana.jta</groupId> 
     <artifactId>narayana-jta</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.jboss</groupId> 
     <artifactId>jboss-transaction-spi</artifactId> 
     <version>7.5.0.Final</version> 
    </dependency> 
    <dependency> 
     <groupId>jboss</groupId> 
     <artifactId>jbossjta</artifactId> 
     <version>4.2.2.GA</version> 
    </dependency> 
    <dependency> 
     <groupId>org.eclipse.jetty</groupId> 
     <artifactId>jetty-server</artifactId> 
     <version>${jetty.version}</version> 
    </dependency> 
    <!-- dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlet</artifactId> 
     <version>${jetty.version}</version> </dependency --> 
    <dependency> 
     <groupId>org.glassfish.jersey.core</groupId> 
     <artifactId>jersey-server</artifactId> 
     <version>${jersey.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.glassfish.jersey.containers</groupId> 
     <artifactId>jersey-container-servlet-core</artifactId> 
     <version>${jersey.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.glassfish.jersey.containers</groupId> 
     <artifactId>jersey-container-jetty-http</artifactId> 
     <version>${jersey.version}</version> 
    </dependency> 
    <dependency> 
     <groupId>org.fusesource.leveldbjni</groupId> 
     <artifactId>leveldbjni-all</artifactId> 
     <version>1.8</version> 
    </dependency> 
    <dependency> 
     <groupId>junit</groupId> 
     <artifactId>junit</artifactId> 
     <version>4.12</version> 
    </dependency> 
    <!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api --> 
    <dependency> 
     <groupId>javax.ws.rs</groupId> 
     <artifactId>javax.ws.rs-api</artifactId> 
     <version>2.0</version> 
    </dependency> 
    <dependency> 
     <groupId>javax.servlet</groupId> 
     <artifactId>javax.servlet-api</artifactId> 
     <version>3.0.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate.javax.persistence</groupId> 
     <artifactId>hibernate-jpa-2.0-api</artifactId> 
     <version>1.0.1.Final</version> 
    </dependency> 
    <dependency> 
     <groupId>com.googlecode.json-simple</groupId> 
     <artifactId>json-simple</artifactId> 
     <version>1.1.1</version> 
    </dependency> 
    <dependency> 
     <groupId>javax.ejb</groupId> 
     <artifactId>ejb-api</artifactId> 
     <version>3.0</version> 
    </dependency> 
    <dependency> 
     <groupId>javax</groupId> 
     <artifactId>javaee-api</artifactId> 
     <version>7.0</version> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>com.google.guava</groupId> 
     <artifactId>guava</artifactId> 
     <version>19.0</version> 
    </dependency> 
</dependencies> 
<build> 
    <finalName>aigateway</finalName> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-compiler-plugin</artifactId> 
      <version>3.1</version> 
      <configuration> 
       <source>1.8</source> 
       <target>1.8</target> 
      </configuration> 
     </plugin> 
     <plugin> 
      <groupId>org.wildfly.plugins</groupId> 
      <artifactId>wildfly-maven-plugin</artifactId> 
      <version>1.1.0.Final</version> 
    </plugins> 
</build> 

그리고 내 최대 절전 디렉토리 아래의 디렉토리가 있습니다 :

5.0, 공유지 - 주석, envers, HQL, infinispan, jipijapa-hibernate5, 메인, OGM, 검색, 검증

이 문제를 해결하기 위해, 나는 최대 절전 모드 디렉토리에 envers에 관련된 몇 병이나 디렉토리를 찾았다. 최대 절전 모드 코어-5.0.4.Final.jar라는 두 개의 항아리와 함께

<?xml version="1.0" encoding="UTF-8"?> 
<module xmlns="urn:jboss:module:1.3" name="org.hibernate" slot="5.0"> 
<resources> 
    <resource-root path="hibernate-core-5.0.4.Final.jar"/> 
    <resource-root path="hibernate-envers-5.0.4.Final.jar"/> 
</resources> 

<dependencies> 
    <module name="asm.asm"/> 
    <module name="com.fasterxml.classmate"/> 
    <module name="javax.api"/> 
    <module name="javax.annotation.api"/> 
    <module name="javax.enterprise.api"/> 
    <module name="javax.persistence.api"/> 
    <module name="javax.transaction.api"/> 
    <module name="javax.validation.api"/> 
    <module name="javax.xml.bind.api"/> 
    <module name="org.antlr"/> 
    <module name="org.dom4j"/> 
    <module name="org.javassist"/> 
    <module name="org.jboss.as.jpa.spi"/> 
    <module name="org.jboss.jandex"/> 
    <module name="org.jboss.logging"/> 
    <module name="org.jboss.vfs"/> 
    <module name="org.hibernate.commons-annotations"/> 
    <module name="org.hibernate.infinispan" services="import" optional="true"/> 
    <module name="org.hibernate.jipijapa-hibernate5" services="import"/> 
</dependencies> 

, 최대 절전 모드 : 여기

내을 Module.xml 최대 절전/5.0/주에 같이 무엇인가 -envers-5.0.4.Final.jar
.

<?xml version="1.0" encoding="UTF-8"?> 
<module-alias xmlns="urn:jboss:module:1.3" name="org.hibernate.envers" target-name="org.hibernate"/> 

그리고 최대 절전 모드 디렉토리에 envers와 더 관련이 아무것도 :

내가 주 최대 절전/envers /에있는 아무 병이없는이 주 최대 절전/envers에서을 Module.xml는 /입니다. 그래서 나는 그 문제가 무엇인지 모른다.

누군가 나를 도와주세요!

답변

관련 문제