I'm returning to Spring after a long absence and I'm trying to get a simple web app up and running on Tomcat 6.0 with Hibernate as an ORM.
The error I am getting is:
SEVERE: Servlet.service() for servlet mvc-dispatcher threw exception
java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.view.viewAllEnquiries_jsp
It runs through my controller fine:
@Controller
@ComponentScan("com.intl.cigna.ecommerce.dao")
public class EnquiryController {
@Autowired
private EnquiryDao enquiryDao;
@RequestMapping("/viewAllEnquiries")
public String getAllEnquiries(Model m) {
List<Enquiry> enqs = enquiryDao.getAllEnquiries();
m.addAttribute("SEARCH_ENQUIRIES_RESULTS_KEY", enqs);
return "viewAllEnquiries";
}
}
But for some reason it appears not to compile the jsp. As when I rename or delete the jsp it cannot(obviously) find it.
The web.xml for the dispatcher is:
<servlet>
<servlet-name>mvc-dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>mvc-dispatcher</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
I must be missing something obvious...