Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at com.jayway.restassured.config.ObjectMapperConfig.(ObjectMapperConfig.java:48) at com.jayway.restassured.config.RestAssuredConfig.(RestAssuredConfig.java:48) at com.jayway.restassured.RestAssured.config(RestAssured.java:1160) at com.jayway.restassured.RestAssured.createTestSpecification(RestAssured.java:1131) at com.jayway.restassured.RestAssured.given(RestAssured.java:746) at com.jayway.restassured.RestAssured.get(RestAssured.java:776) at br.com.caelum.leilao.teste.UsuariosWSTest.deveRetornarListaDeUsuarios(UsuariosWSTest.java:19) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ... 30 more

2 respostas
solução!

Resolvido, o problema era a versão do compilador. Estava 10, troquei para a 8 e funcionou.

Opa, Luís!

Isso mesmo!

Se você quiser saber mais detalhes sobre esse erro e sobre como resolver, recomendo esse post no blog da Caelum: http://blog.caelum.com.br/erros-com-jaxb-no-java-9/