• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple application error

 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error message . I dont know what to do?






index.jsp


web.xml


servlet.java
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is the file "registration.class"?

Assuming it is in WEB-INF/classes/com/servlet, have you restarted the web app since putting it there?
 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Where is the file "registration.class"?

Assuming it is in WEB-INF/classes/com/servlet, have you restarted the web app since putting it there?


I have tried to restart the web app , but no effect . Its still showing the same error message ..............
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the log file, like the error message suggest?
 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Have you looked at the log file, like the error message suggest?


This the log file

I even changed my folder from com.classes to just classes.servlet1
And made all the changes in the web.xml and jsp as well Still dont know what is the issue with this application from running

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like the error message says Tomcat cant find some essential class file.

A typical Tomcat installation includes a "class-loader-howto.html" file which explains in detail how Tomcat finds and loads classes. Study it.

IF your class name is registration (small initial character - bad practice, use initial Cap to keep classes clearly differentiated from packages)
THEN under WEB-INF/classes, tomcat expects a com subdirectory having a servlet subdirectory having a registration.class file.

Furthermore, under WEB-INF there must be the valid web.xml file.

Why did you try such odd-ball things as a com/classes directory or classes/servlet1 when the package appears to be "com.servlet"

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic