While debugging an application that uses my jar, for which I have provided source path as well, I am getting error when I add a “watch” for one of values, e.g. req.
I am watching value req and below + sign I have following text.
The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
NOW THIS IS INTERESTING !
During the same debug session, at the same time, window “variables” does show value of req variable.
How is this possible? I need watch window as usually there I test new commands e.g.
req.getAttribute(“Liferay_Portal_blablabla”);
So this feature is important !
Recently I was moving jars from webapp/ROOT/WEB-INF/lib to tomcat/lib/ext in order to have single class loader for all applications in application server. Is this possible cause of this strange behaviour. Does MyEclipse have issue while “watching” classes loaded by common class loader ?