Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Simple application error

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting this error message . I dont know what to do?






index.jsp


web.xml


servlet.java
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you looked at the log file, like the error message suggest?
 
Varun Nayudu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic