Applications code should use WebApplicationException Thrown by dispatcher when it can't handle a particular exception but when the code is excecuted i get. I wrote 130 Junit tests. Failed to instantiate [java.lang.Long]: No default constructor found;nested exception is java.lang(),IDEA报错Failedtoinstantiate[java.lang.Long]:Nodefaultconstructorfound;nestedexceptionisjava.lang.NoSuch org.jboss.resteasy.spi Class UnhandledException ... All Implemented Interfaces: java.io.Serializable. Spring Boot 2.1, Cassandra driver 3.6.0, achilles-junit 6.0.0 I use achilles-junit as embedded Cassandra in spring boot test cases. Problem: You are getting java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory in your Java program, which uses a logging framework to log messages into a log file. protected Response handleApplicationException ... Popular in Java. Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message. public class UnhandledException extends java.lang.RuntimeException. at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class com.liferay.portlet.httpbridge.servlet.UserService org.jboss.resteasy.spi.UnhandledException: javax.persistence.PersistenceException: Unable to build entity manager factory Ask Question Asked 5 years, 2 months ago public class UnhandledException extends java.lang.RuntimeException. Go to your JBoss/Wildfly directory search for resteasy-jaxrs* you will get the version of resteasy library JBoss is using, add that version in pom.xml