Problems with libraries in the EAR file

0

I hope you can help me with this. For a long time in a personal project I try to use the PrettyFaces libraries to remove the extensions of the URLs of my application, but, I always run into the problem that when the EAR is generated that two of the three jar are not in the lib folder but in WEN-INF / lib and that way I do not recognize them and, for this reason, the server sends me the following error:

  

WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" = > {"jboss.undertow.deployment.default-server.default-host./project" = > "java.lang.NoClassDefFoundError: Failed to link org / ocpsoft / rewrite / faces / FacesBeanNameResolver (Module \" deployment.project.ear \ "from Service Module Loader): org / ocpsoft / rewrite / el / spi / BeanNameResolver       Caused by: java.lang.NoClassDefFoundError: Failed to link org / ocpsoft / rewrite / faces / FacesBeanNameResolver (Module \ "deployment.project.ear \" from Service Module Loader): org / ocpsoft / rewrite / el / spi / BeanNameResolver " }}

The structure in the build folder and in the ear file is as follows:

build o archivo ear
|-- lib
|---- rewrite-integration-faces-3.4.1.Final.jar
|-- war.war
|---- WEB-INF
|------ lib
|-------- rewrite-config-prettyfaces-3.4.1.Final.jar
|-------- rewrite-servlet-3.4.2.Final

This has been to date the only library with which I have this problem. I thank you in advance for the help and I give you additional information about the application:

  • Wildfly 11
  • JSF 2.2
  • Primefaces 6.2
  • Java EE 7
  • JDK 1.8
  • EJB 3.2
asked by darkpastiurs 30.06.2018 в 03:20
source

0 answers