I'm developing a Spring project and I need to call a function that is in another jar.
I have imported the jar, and tried to access the class:
- Imported the jar
- Create an object using the class.
The problem is that, when I run the program, it doesn't start because this error:
java.lang.ClassNotFoundException:
org.apache.ibatis.exceptions.PersistenceException
2016-11-09 16:07:33.867 ERROR 8912 --- [nio-9090-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] :
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed;
nested exception is java.lang.NoClassDefFoundError: org/apache/ibatis/exceptions/PersistenceException] with root cause
The problem is that my outer jar, is not working (it's programmed in Spring) because it can't load the context...
So my question is... Hoy can be the context loaded when I try to work with this classes?
Thanks
EDIT: one tip of Eclipse: The type org.apache.ibatis.session.SqlSession cannot be resolved. It is indirectly referenced from required .class files