This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi , I am using TOMCAT as a web server. I have a jsp that uses a extend directive to extend a super class. The .class file is in WEB-INF/classes subdirectory of the application home directory in teh server. Yet when I run the JSP i get a NoClassDefFound Error. Any idea why ?? This is the dir structure : jsptest (home) | -WEB-INF ||- classes |||- super.class | | -jsp |-direct |-thejspinquestion.jsp Thanks in advance Prasad
I suggest that you carefully examine the Java source code that Tomcat generated from your JSP page to see if you can figure out where it expects to find the base class. If you don't have the base class in a package, I suggest you put it in one. If the compiler sees a bare class name, it looks in the "current" directory instead of the WEB-INF/classes. This also affects Bean classes. Bill