Lab 18 Notes: Part 1: Works fine in Eclipse. Part 3: Step 3 and 4: Replace with the steps in eclipse-lab16.txt to create context.xml and update web.xml. Step 5c: The "data_source" property should be: Step 6b: The correct code for the init() method is: public void init() { try { String resource = "/WEB-INF/mybatis-config.xml"; InputStream inputStream = getServletContext().getResourceAsStream(resource); sqlSessionFactory = new SqlSessionFactoryBuilder() .build(inputStream); System.out.println("Session factory created successfully"); } catch (Exception e) { e.printStackTrace(); } }