O Sistema que desenvolvo esta Utilizando o Jboss 7, onde dentro da pasta deployments, tem esse arquivo(postgresjdbc-ds.xml) de configuração :
[CODE]
<?xml version='1.0' encoding='UTF-8'?> <datasources>
<datasource jta="true" jndi-name="java:jboss/datasources/PostgreSqlDSMaximus" pool-name="PostgreSqlDS" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:postgresql://localhost:5432/maximus</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<driver>postgresql</driver>
<security>
<user-name>postgres</user-name>
<password>xxxxxxxxxxxxxxxxx</password>
</security>
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
</validation>
<statement>
<share-prepared-statements>false</share-prepared-statements>
</statement>
</datasource>
</datasources>
[/CODE]
Porém esta dando falha no deploy :
09:02:19,744 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.jdbc-driver.postgresql (missing) dependents: [service jboss.data-source.java:jboss/datasources/PostgreSqlDSMaximus]
09:02:19,986 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9999/management
09:02:19,987 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9999
09:02:19,988 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.1.0.Final “Kenny” started (with errors) in 4375ms - Started 249 of 313 services (3 services failed or missing dependencies, 97 services are lazy, passive or on-demand)
09:02:20,038 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-6) HV000001: Hibernate Validator 5.1.0.Final
09:02:20,078 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010409: Unbound data source [java:jboss/datasources/PostgreSqlDSMaximus]
09:02:20,080 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment postgresjdbc-ds.xml (runtime-name: postgresjdbc-ds.xml) in 69ms
09:02:20,242 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed “postgresjdbc-ds.xml” (runtime-name: “postgresjdbc-ds.xml”)
09:02:20,243 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.data-source.reference-factory.java:jboss/datasources/PostgreSqlDSMaximus (missing) dependents: [service jboss.naming.context.java.jboss.datasources.PostgreSqlDSMaximus]
Obs. no Jboss, funciona normalmente.
Precisa criar um data-source no wildfly ???
Alguem pode me ajudar
Evandro