Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed Deployment WAR using jboss EAP 7.4 #194

Open
jacobsuberza opened this issue Jan 10, 2022 · 1 comment
Open

Failed Deployment WAR using jboss EAP 7.4 #194

jacobsuberza opened this issue Jan 10, 2022 · 1 comment

Comments

@jacobsuberza
Copy link

Hi Everyone im traing to deploy the project using Jboss but i get this error, someone please could help me? Thanks a lot

{"WFLYCTL0080: Servicios fallidos" => {"jboss.persistenceunit."geonetwork.war#default"" => "javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.collection.OneToManyPersister
Caused by: org.hibernate.HibernateException: Unable to parse order-by fragment
Caused by: java.lang.ClassCastException: class antlr.CommonToken cannot be cast to class antlr.Token (antlr.CommonToken is in unnamed module of loader 'deployment.geonetwork.war' @1ba96c42; antlr.Token is in unnamed module of loader '[email protected]' @3ea4211e)"}}

@gutomantovani
Copy link

gutomantovani commented Jan 21, 2023

Hi Jacob, try to change the JAVA_OPTS using:

JAVA_OPTS="$JAVA_OPTS -DANTLR_USE_DIRECT_CLASS_LOADING=true"

In WildFly server, the file to change is bin/standalone.conf

After changing it, the error changes to me. Now I'm facing: java.lang.LinkageError: Failed to link org/jboss/logging/Logger$Level

Please, if somebody knows how to solve my new problem, help me!

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants