Required services that are not installed:" => ["jboss.persistenceunit.\"myApp.ear/myApp-dom-0.0.1-SNAPSHOT.jar#myPersistenceUnitName\""]
pablocurty Sep 28, 2016 9:56 AMHello everyone ! I'm testing wildfly 10 in one of applications here. I have some problems to deploy the application and i need some help to understand it. (Since now my thanks for the attention).
Frist of all, it's the content of the dot failed(myapp.failed, in my case pocarchetype-ear.ear.failed ) inside the "my_path"\wildfly-10.1.0.Final\standalone\deployments :
{
"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"pocarchetype-ear.ear/pocarchetype-dom-0.0.1-SNAPSHOT.jar#pocPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"pocarchetype-ear.ear/pocarchetype-dom-0.0.1-SNAPSHOT.jar#pocPU\": java.lang.AbstractMethodError
Caused by: java.lang.AbstractMethodError"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"pocarchetype-ear.ear/pocarchetype-dom-0.0.1-SNAPSHOT.jar#pocPU\""],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
it's the vision inside my folder pocarchetype-ear.ear:
___________________________________________________________________________________________________________________
my datasource in standalone.xml :
<datasource jta="true" jndi-name="java:jboss/datasources/sc" pool-name="java/poc-ds" enabled="true" use-ccm="true">
<connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<driver>oracle</driver>
<security>
<user-name>USER</user-name>
<password>pass</password>
</security>
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
<background-validation>true</background-validation>
<stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
</validation>
</datasource>
___________________________________________________________________________________________________________
my persistence.xml in module pocarchetype-dom:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="pocPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<!-- <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> -->
<jta-data-source>java:jboss/datasources/sc</jta-data-source>
<mapping-file>META-INF/orm/GlobalConfig.orm.xml</mapping-file>
<mapping-file>META-INF/orm/meta/AtributoConsulta.orm.xml</mapping-file>
<mapping-file>META-INF/orm/meta/AtributoEntidade.orm.xml</mapping-file>
<mapping-file>META-INF/orm/meta/Consulta.orm.xml</mapping-file>
<mapping-file>META-INF/orm/meta/Entidade.orm.xml</mapping-file>
<mapping-file>META-INF/orm/meta/GrupoAtributo.orm.xml</mapping-file>
<mapping-file>META-INF/orm/meta/MembroGrupoAtributo.orm.xml</mapping-file>
<mapping-file>META-INF/orm/meta/PermissaoAtributoEntidade.orm.xml</mapping-file>
<mapping-file>META-INF/orm/meta/PermissaoEntidade.orm.xml</mapping-file>
<mapping-file>META-INF/orm/ca/PerfilAcesso.orm.xml</mapping-file>
<mapping-file>META-INF/orm/ca/Sistema.orm.xml</mapping-file>
<mapping-file>META-INF/orm/ca/Usuario.orm.xml</mapping-file>
<mapping-file>META-INF/orm/hr/Job.orm.xml</mapping-file>
<mapping-file>META-INF/orm/hr/Department.orm.xml</mapping-file>
<mapping-file>META-INF/orm/hr/Employee.orm.xml</mapping-file>
<mapping-file>META-INF/orm/hr/JobHistory.orm.xml</mapping-file>
<mapping-file>META-INF/orm/hr/Location.orm.xml</mapping-file>
<mapping-file>META-INF/orm/hr/Country.orm.xml</mapping-file>
<mapping-file>META-INF/orm/hr/Region.orm.xml</mapping-file>
<class>br.com.myEnterprise.commons.domain.entity.AbstractEntity</class>
<class>br.com.myEnterprise.commons.domain.entity.auditoria.RevisionEntity</class>
<class>br.com.myEnterprise.commons.domain.entity.auditoria.RevisionChangesEntity</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
<property name="hibernate.hbm2ddl.auto" value="validate" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<!-- jndi do database configurado no jboss satandalone.xml
<property name="hibernate.connection.datasource" value="java:jboss/datasources/sc"/> -->
<!-- AUDIT - Hibernate Envers Properties -->
<property name="org.hibernate.envers.audit_table_suffix" value="_" />
<property name="org.hibernate.envers.default_schema" value="AUD" />
<property name="org.hibernate.envers.revision_field_name" value="REV_ID_REVISION" />
<property name="org.hibernate.envers.revision_type_field_name" value="REV_TYPE_REVISION" />
<property name="org.hibernate.envers.revision_listener" value="br.com.myEnterprise.commons.infra.auditoria.RevisionEntityListener" />
</properties>
</persistence-unit>
</persistence>
___________________________________________________________________________________________________________________________
my pom.xml in the pocarchetype-ear module:
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.myEnterprise.pocarchetype</groupId>
<artifactId>pocarchetype-ear</artifactId>
<packaging>ear</packaging>
<name>Portal : myEnterprise Showcase :: Enterprise Application</name>
<parent>
<groupId>br.com.myEnterprise</groupId>
<artifactId>pocarchetype</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>br.com.myEnterprise</groupId>
<artifactId>commons</artifactId>
<version>${project.commons.version}</version>
<type>ejb</type>
<exclusions>
</dependency>
<dependency>
<groupId>br.com.myEnterprise.pocarchetype</groupId>
<artifactId>pocarchetype-srv</artifactId>
<version>${project.parent.version}</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>br.com.myEnterprise.pocarchetype</groupId>
<artifactId>pocarchetype-web</artifactId>
<version>${project.parent.version}</version>
<type>war</type>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>${maven.ear.plugin.version}</version>
<configuration>
<version>6</version>
<defaultLibBundleDir>lib</defaultLibBundleDir>
<generateApplicationXml>true</generateApplicationXml>
<generatedDescriptorLocation>${project.basedir}/src/main/application/META-INF</generatedDescriptorLocation>
<modules>
<ejbModule>
<groupId>br.com.myEnterprise.pocarchetype</groupId>
<artifactId>pocarchetype-srv</artifactId>
</ejbModule>
<ejbModule>
<groupId>br.com.myEnterprise</groupId>
<artifactId>commons</artifactId>
</ejbModule>
<jarModule>
<groupId>br.com.myEnterprise.pocarchetype</groupId>
<artifactId>pocarchetype-inf</artifactId>
<bundleDir>/lib</bundleDir>
<includeInApplicationXml>false</includeInApplicationXml>
<unpack>false</unpack>
</jarModule>
<jarModule>
<groupId>br.com.myEnterprise.pocarchetype</groupId>
<artifactId>pocarchetype-dom</artifactId>
<bundleDir>${dom.bundle.dir}</bundleDir> <!-- instantiated in this way in the parent pom <dom.bundle.dir>/lib</dom.bundle.dir> -->
<includeInApplicationXml>true</includeInApplicationXml>
<unpack>false</unpack>
</jarModule>
<webModule>
<groupId>br.com.myEnterprise.pocarchetype</groupId>
<artifactId>pocarchetype-web</artifactId>
<contextRoot>myEnterpriseShowcase</contextRoot>
<unpack>false</unpack>
</webModule>
</modules>
</configuration>
</plugin>
</plugins>
</build>
<profile>
<id>jboss</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>${com.sun.jersey.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
<version>${com.sun.jersey.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-servlet</artifactId>
<version>${com.sun.jersey.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey.contribs</groupId>
<artifactId>jersey-multipart</artifactId>
<version>${com.sun.jersey.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-json</artifactId>
<version>${com.sun.jersey.version}</version>
<scope>runtime</scope>
<exclusions>
<!-- Provido pelo Jboss -->
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-xc</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
</exclusion>
<exclusion>
<groupId>javax.xml.stream</groupId>
<artifactId>stax-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
______________________________________________________________________________________________________________________________
The structure of Deploy seams like the wildfly can't find the pocarchetype-dom-0.0.1-SNAPSHOT.jar
or can't find the presistence.xml in the pocarchetype-dom-0.0.1-SNAPSHOT.jar ?
What's happening???!!!
Since now my thanks for the attention!
Pablo Curty