Opa, Alex!
Testei por aqui e deu certo.
Meu ambiente foi o seguinte:
- JDK Oracle 1.8.0_171
- Wildfly 12.0.0.Final
- Eclipse Java EE IDE for Web Developers. Photon (4.8.0)
Abri o Eclipse e fiz conforme a seguir.
A) Instalei o JBoss Tools
Servers > New Server... > Red Hat JBoss Middleware > JBoss AS, Wildfly & EAP Server Tools
Esperei por vários minutos e reiniciei o Eclipse.
B) Importei o projeto
File > Import > Existing Projects into Workspace > Select archive file > livraria.zip
C) Na aba Markers, os seguintes erros
Faceted Project Problem:
Target runtime JBoss 7.1 Runtime is not defined.
Java Build Path Problems:
Unbound classpath container: 'JRE System Library [ Java SE 7 [1.7.0_17]]' in project 'livraria'
Java Problems:
The project cannot be built until build path errors are resolved
D) Corrigi o Built Path
Projeto > Properties... > Java Build Path
E) Outros Erros na aba Markers
Faceted Project Problem:
Target runtime JBoss 7.1 Runtime is not defined.
Faceted Project Problem (Java Version Mismatch):
Java compiler level does not match the version of the installed Java project facet.
F) Corrigir Project Facets
Projeto > Properties... > Project Facets
- Java: trocar para 1.8
- Aba Runtimes: trocar para WildFly 12.0 Runtime
G) Na aba Servers
Aba Servers > WildFly 12 > Add And Remove... > livraria
Iniciar WildFly 12
H) Na aba Console
16:04:59,178 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) started in 6004ms - Started 292 of 513 services (308 services are lazy, passive or on-demand)
16:06:23,571 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) WFLYDS0004: Found livraria.war in deployment directory. To trigger deployment create a file called livraria.war.dodeploy
16:06:23,610 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "livraria.war" (runtime-name: "livraria.war")
16:06:24,496 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment livraria.war
16:06:24,536 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-7) HV000001: Hibernate Validator 5.3.6.Final
16:06:25,022 INFO [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900: 3.0.3 (Final)
16:06:25,184 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-6) ISPN000128: Infinispan version: Infinispan 'Bastille' 9.1.6.Final
16:06:25,576 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-2) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI 1.1!
16:06:25,594 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 26) WFLYCLINF0002: Started client-mappings cache from ejb container
16:06:25,614 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-2) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor is deprecated from CDI 1.1!
16:06:25,632 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-2) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.jberet.creation.BatchBeanProducer is deprecated from CDI 1.1!
16:06:26,315 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 66) Initializing Mojarra 2.2.13.SP5 for context '/livraria'
16:06:27,477 INFO [org.primefaces.webapp.PostConstructApplicationEventListener] (ServerService Thread Pool -- 66) Running on PrimeFaces 4.0
16:06:27,515 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 66) WFLYUT0021: Registered web context: '/livraria' for server 'default-server'
16:06:27,583 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0010: Deployed "livraria.war" (runtime-name : "livraria.war")
I) Acessar sistema
Acessar:
http://localhost:8080/livraria/login.xhtml
Login: admin
Senha: pass
Deu tudo certinho!