Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv java web service

Hello, I need to process an image on server side using a restful web service. I'm trying to use Jersey framework but when I use some OpenCV operation i get an error. Something like this:

javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: org/opencv/core/Mat

So i believe that I'm not importing in the right way my OpenCV library. Is there a particular code to write in web.xml file?

Thanks in advance

click to hide/show revision 2
retagged

updated 2016-05-27 04:53:54 -0600

berak gravatar image

Opencv java web service

Hello, I need to process an image on server side using a restful web service. I'm trying to use Jersey framework but when I use some OpenCV operation i get an error. Something like this:

javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: org/opencv/core/Mat

So i believe that I'm not importing in the right way my OpenCV library. Is there a particular code to write in web.xml file?

Thanks in advance