• 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
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

HTTP ERROR: 500

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try putting your bean into a package and importing the package in JSP.
 
viral patel
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i done that it is still giving me error that it cant find AccountBean..
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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' />
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic