When running a rest service in native mode I get a class org.apache.commons.logging.impl.LogFactoryImpl not found exception. It's running fine with the openjdk mode.
I have write a small service rest to repoduce the problem.
The service Rest :
package org.acme.rest.json;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import io.quarkus.deployment.builditem.substrate.ReflectiveClassBuildItem;
import io.quarkus.deployment.annotations.BuildStep;
@Path("/logs")
public class LogResource {
private Log log = LogFactory.getLog(LogResource.class);
@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
log.info("jello");
return "hello";
}
}
When invoking this file I get
xception handling request 04cf25a8-aafb-4b2a-978e-47a24009b22d-1 to /logs: org.jboss.resteasy.spi.UnhandledException: org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl (Caused by java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl)