Eukon05
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
Sorry for a late response, I've just tried it and the tests went through! Thank you so much!
31 replies
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
31 replies
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
I tried to check if it's being loaded by the class loader with this in an @BeforeAll block:
But it fails and gives an error:
java.lang.IllegalAccessError: superclass access check failed: class org.jboss.logging.JBossLogRecord (in module org.jboss.logging) cannot access class java.util.logging.LogRecord (in module java.logging) because module org.jboss.logging does not read module java.logging
31 replies
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
I also tried making a copy of the persistence.xml file in the test dir. but it did nothing
31 replies
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
It didn't help, I also get a warning before the error:
WARNING: jakarta.persistence.spi::No valid providers found.
31 replies
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
Ok, let me try that
31 replies
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
Should I create another persistence.xml file in the test/resources directory?
31 replies
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
Now it went through, but then gave me another error:
31 replies
JCHJava Community | Help. Code. Learn.
•Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
31 replies