ClassNotFound exception - servlets
My project structure goes like this. In the webmodule, 'ModDownload' contains the following: index.jsp, downloadServlet.java and downloaditem.java. The index.jsp page is having the form action attribute as '/ModDownload/downloadServlet'. Then the downloadServlet(servletpage) is having the form action attibute as '/ModDownload/downloadItem'. Till here the execution is successful.
Now the downloadItem.java is creating an instance of a class(ItemRequest.java) in the package, com.code.xi.interfaces. In this step am receiving an error : java.lang.ClassNotFoundException: com.code.xi.interfaces.ItemRequest
Why downloadItem.java is not able to recognise the ItemRequest class in the package com.code.xi.interfaces?
Am using eclipse and tomcat.
Looking forward for your help.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL