Пытаюсь задеплоить на Wildfly сервер проект. При деплоинге war файла происходит ошибка. Использую persistence.xml. Датасорс файл и драйвер для бд postgresql лежит в директории wildfly/standalone/deployments. В чем может быть проблема ? Заранее спасибо.
Логи:
16:18:28,737 WARN [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0357: Notification of type deployment-undeployed is not described for the resource at the address []
16:18:28,745 INFO [org.jboss.as.repository] (DeploymentScanner-threads - 1) WFLYDR0002: Content removed from location C:\wildfly-10.1.0.Final\wildfly-10.1.0.Final\standalone\data\content\f8\0d6cd07f4c695d3c5d8c08c558128f3f44e5af\content
16:18:28,745 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "example-ds.xml" (runtime-name: "example-ds.xml")
16:18:28,746 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."example-ds.xml".FIRST_MODULE_USE
16:18:28,801 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment webapprest-1.0-SNAPSHOT.war (runtime-name: webapprest-1.0-SNAPSHOT.war) in 53ms
16:18:28,885 WARN [org.jboss.as.controller] (management-handler-thread - 3) WFLYCTL0357: Notification of type deployment-undeployed is not described for the resource at the address []
16:18:28,886 INFO [org.jboss.as.server] (management-handler-thread - 3) WFLYSRV0009: Undeployed "webapprest-1.0-SNAPSHOT.war" (runtime-name: "webapprest-1.0-SNAPSHOT.war")
16:18:28,887 INFO [org.jboss.as.controller] (management-handler-thread - 3) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."com.sun.faces.config.ConfigureListener".CREATE (missing) dependents: [service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."com.sun.faces.config.ConfigureListener".START]
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT", service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService]
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT", service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService]
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".CREATE (missing) dependents: [service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT", service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService]
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".ee.ComponentRegistry (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService]
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."com.sun.faces.config.ConfigureListener".START, service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START, service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.faces.webapp.FacetTag".START]
service jboss.persistenceunit."webapprest-1.0-SNAPSHOT.war#examplePU" (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT", service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."com.sun.faces.config.ConfigureListener".START, service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START, service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".deploymentCompleteService, WFLYCTL0208: ... and 4 more ]
service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT" (missing) dependents: [service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".deploymentCompleteService]
service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT"]
service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".codec (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService]
service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".session (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService]
service org.wildfly.request-controller.control-point."webapprest-1.0-SNAPSHOT.war".undertow (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService]
16:18:29,104 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0027: Starting deployment of "webapprest-1.0-SNAPSHOT.war" (runtime-name: "webapprest-1.0-SNAPSHOT.war")
16:18:29,338 INFO [org.jboss.as.jpa] (MSC service thread 1-8) WFLYJPA0002: Read persistence.xml for examplePU
16:18:29,486 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "webapprest-1.0-SNAPSHOT.war")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.jboss.ExampleDS"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"webapprest-1.0-SNAPSHOT.war#examplePU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jboss.ExampleDS]",
"jboss.persistenceunit.\"webapprest-1.0-SNAPSHOT.war#examplePU\" is missing [jboss.naming.context.java.jboss.ExampleDS]"
]
}
16:18:29,490 ERROR [org.jboss.as.server] (management-handler-thread - 3) WFLYSRV0021: Deploy of deployment "webapprest-1.0-SNAPSHOT.war" was rolled back with the following failure message:
{
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.jboss.ExampleDS"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"webapprest-1.0-SNAPSHOT.war#examplePU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jboss.ExampleDS]",
"jboss.persistenceunit.\"webapprest-1.0-SNAPSHOT.war#examplePU\" is missing [jboss.naming.context.java.jboss.ExampleDS]"
]
}
16:18:29,555 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028: Stopped deployment webapprest-1.0-SNAPSHOT.war (runtime-name: webapprest-1.0-SNAPSHOT.war) in 66ms
16:18:29,558 INFO [org.jboss.as.controller] (management-handler-thread - 3) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT", service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host."/webapprest-1.0-SNAPSHOT".UndertowDeploymentInfoService]
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.faces.webapp.FacetTag".CREATE (missing) dependents: [service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.faces.webapp.FacetTag".START]
service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (missing) dependents: [service jboss.deployment.unit."webapprest-1.0-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]
[2018-06-12 04:18:29,720] Artifact webapprest-1.0-SNAPSHOT.war: Error during artifact deployment. See server log for details.
[2018-06-12 04:18:29,742] Artifact webapprest-1.0-SNAPSHOT.war: java.lang.Exception: {"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.jboss.ExampleDS"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"webapprest-1.0-SNAPSHOT.war#examplePU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jboss.ExampleDS]","jboss.persistenceunit.\"webapprest-1.0-SNAPSHOT.war#examplePU\" is missing [jboss.naming.context.java.jboss.ExampleDS]"]}
16:27:57,481 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 1) WFLYDR0009: Content C:\wildfly-10.1.0.Final\wildfly-10.1.0.Final\standalone\data\content\8d\197dee0decbd44e79ed39d24283748cf500761 is obsolete and will be removed
16:27:57,534 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 1) WFLYDR0002: Content removed from location C:\wildfly-10.1.0.Final\wildfly-10.1.0.Final\standalone\data\content\8d\197dee0decbd44e79ed39d24283748cf500761\content
persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
<persistence-unit name="examplePU">
<jta-data-source>java:jboss/ExampleDS</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.format_sql" value="false" />
</properties>
</persistence-unit>
</persistence>
датасорс файл example-ds.xml
<?xml version="1.0"?>
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS">
<connection-url>jdbc:postgresql://localhost:5432/exdbnew</connection-url>
<driver>postgresql-42.0.0.jar</driver>
<driver-class>org.postgresql.Driver</driver-class>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>20</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>postgres</user-name>
<password>1</password>
</security>
</datasource>
</datasources>
Всем привет! Подскажите плиз! Пытаюсь разобрать один паттерн, пример использования Android Architecture Components, написанный на Koltin'e и столкнулся с синтаксисом,...