Well, I have achieved to solve the problem. It is needed to override
method 'service' from HttpServlet:
@Override
protected void service(HttpServletRequest req, HttpServletResponse
resp)
throws ServletException, IOException {
// Cache the current thread
Thread currentThread = Thread.currentThread();
// We are going to swap the class loader
ClassLoader oldContextClassLoader =
currentThread.getContextClassLoader();
currentThread.setContextClassLoader(this.getClass().getClassLoader());
super.service(req, resp);
currentThread.setContextClassLoader(oldContextClassLoader);
}
Thus, the application runs on Equinox!!
On May 26, 9:45 am, Jose Luis Hernandez <
jose.hernande...@gmail.com>