• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Error 500: ClassNotFoundException

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have 2 pages, login.jsp & login.htm.

Upon logging in using login.htm, the browser gives me this Error 500: java.lang.ClassNotFoundException: org.apache.jsp.login.jsp

What does this mean?

I've put both into ROOT folder.
Has it got something to do with the web.xml?
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems like something's up with your configuration. Hard to tell without the code. Do you refer to org.apache.jsp.login.jsp anywhere, either in your code or in web.xml? It doesn't look like a class name. Shouldn't it be login$jsp anyway? Maybe you could simplify your code and post the relevant bits using the UBB [C0DE] and [/C0DE] tags.

Jules
 
Parka Teoh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As usual, I've tried copying the pre-packaged JSP examples from Tomcat into the ROOT. They throw up the same Error500 too. Hmmmmm....

Here's the login.htm



---------- login.jsp (for checking the validity of password) ----------

 
JulianInactive KennedyInactive
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, I get it. Your login.jsp is failing to compile. I don't think the problem's in the code snippet you posted; it's probably further up. Where do you refer to "login.jsp" within login.jsp? You might also want to change "Charactor"; that's not how you spell it.

Jules
 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

The JSP at time fails to complie if you do not add this tag ..try it

<%@ page contentType="text/html;charset=UTF-8" language="java" session="true" %>

regards
Menon
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic