Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error 500: ClassNotFoundException  RSS feed

 
Parka Teoh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • 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?
 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • 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
  • 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) ----------

 
Julian Kennedy
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
  • 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
 
Arundhathi Menon
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!