• Post Reply Bookmark Topic Watch Topic
  • New Topic

I am getting error while accessing beans through JSP

 
donepudi madhu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error while accessing Beans through JSP.
An error occurred at line: 8 in the jsp file: /netoffice/Home.jsp
Generated servlet error:
bad class file: C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\classes\netoffice\ListClients.class
class file contains wrong class: ListClients
Please remove or make sure it appears in the correct subdirectory of the
classpath.
netoffice.ListClients clients = null;
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you compiled that class, did it have this statement in it? It needs to:
package netoffice;
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!