• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP ERROR: 500

 
viral patel
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this New user registration form. I user AccountBean to store data from a form. and check make sure all fields are fill. and process.jsp use that bean..and send to retry.jsp or to success.jsp..I also put both AccountBean.java and Its .class file in WEB-INF class folder but its going to this error:
HTTP ERROR: 500 Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 2 in the jsp file: /jsp/ac/process.jsp Generated servlet error: /var/tmp/Jetty_0_0_0_0_8888__group24_j2ee/jsp/ac/process$jsp.java:61: Class org.apache.jsp.AccountBean not found. AccountBean formHandler = null; ^ An error occurred at line: 2 in the jsp file: /jsp/ac/process.jsp Generated servlet error: /var/tmp/Jetty_0_0_0_0_8888__group24_j2ee/jsp/ac/process$jsp.java:64: Class org.apache.jsp.AccountBean not found. formHandler= (AccountBean) ^ An error occurred at line: 2 in the jsp file: /jsp/ac/process.jsp Generated servlet error: /var/tmp/Jetty_0_0_0_0_8888__group24_j2ee/jsp/ac/process$jsp.java:69: Class org.apache.jsp.AccountBean not found. formHandler = (AccountBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "AccountBean"); ^ 3 errors, 1 warning

 
Bhushan Jawle
Ranch Hand
Posts: 249
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try putting your bean into a package and importing the package in JSP.
 
viral patel
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i done that it is still giving me error that it cant find AccountBean..
 
Piter john
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you successfully able to compile Accountbean.java ?
if yes then check the path where you stored that file. And try using <useBean property='application/page' />
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic