
Eu tenho um projeto Java Dynamic Web que executo usando Glassfish 5. Depois de configurá-lo para ser um projeto JPA (com EclipseLink), não consigo implantá-lo. Estou tendo o erro a seguir:
cannot Deploy EcommerceAdmin
deploy is failing=Error occurred during deployment:
Exception while loading the app : java.lang.IllegalStateException:
ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
java.lang.RuntimeException:
javax.faces.FacesException: Unable to find CDI BeanManager.
Please see server.log for more details.
Meu persistence.xml é este:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="EcommerceAdmin" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>TIWDS</jta-data-source>
<properties>
<property name="eclipselink.logging.level" value="FINE"/>
<property name="javax.persistence.schema-generation.database.action" value="create"/>
<property name="eclipselink.logging.parameters" value="true"/>
</properties>
</persistence-unit>
</persistence>