Oi pessoal, estou tentando publicar uma aplicação feita em Java 8, Postgres 12, JSF 2 no Glassfish 4.1.2 mas sempre tenho esse erro:
Error occurred during deployment: Exception while preparing the app : Invalid resource : sigec_teste__pm. Please see server.log for more details. Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method : java.lang.RuntimeException: Invalid resource : sigec_teste__pm Invalid resource : sigec_teste__pm Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method : java.lang.RuntimeException: Invalid resource : sigec_teste__pm Invalid resource : sigec_teste__pm
Conteúdo do glassfish_resources:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<resources>
<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="org.postgresql.ds.PGSimpleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="post-gre-sql_sigec_local_postgresPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
<property name="serverName" value="192.168.0.240"/>
<property name="portNumber" value="5432"/>
<property name="databaseName" value="sigec"/>
<property name="User" value="postgres"/>
<property name="Password" value=""/>
<property name="URL" value="jdbc:postgresql://localhost:5432/sigec"/>
<property name="driverClass" value="org.postgresql.Driver"/>
</jdbc-connection-pool>
<jdbc-resource enabled="true" jndi-name="sigec_teste" object-type="user" pool-name="post-gre-sql_sigec_local_postgresPool"/>
Criei no glassfish uma pool com o nome sigecPool e na opção JDBC Resources criei um jdbc/sigec_teste
Já pesquisei bastante, já tentei várias opções mas o erro continua.
Agradeço a quem puder ajudar.