ERROR OCCURED :org.apache.jasper.JasperException: Unable to compile class for JSP:
hi all
actually im developing a project using jsp . and im using package with in my .jsp page . The Code is executed correctly on localhost but its not working on server side(internet). it shows the some error as that is as follows:
Code :
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 9 in the generated java file
Syntax error on tokens, delete these tokens
An error occurred at line: 53 in the jsp file: /web/SearchHindi-Punjabi.jsp
HPDiction cannot be resolved to a type
50: //int count=0;
51: java.util.List result;
52: try {
53: HPDiction dict = new HPDiction(val);
54: result = dict.generate();
55: // display(result,val,count);
56: int size = result.size();
An error occurred at line: 53 in the jsp file: /web/SearchHindi-Punjabi.jsp
HPDiction cannot be resolved to a type
50: //int count=0;
51: java.util.List result;
52: try {
53: HPDiction dict = new HPDiction(val);
54: result = dict.generate();
55: // display(result,val,count);
56: int size = result.size();
An error occurred at line: 59 in the jsp file: /web/SearchHindi-Punjabi.jsp
HPWords cannot be resolved to a type
56: int size = result.size();
57:
58: if (val != null) {
59: HPWords w = (HPWords) result.get(cnt);
60: cnt = cnt + 1;
61:
62: %>
An error occurred at line: 59 in the jsp file: /web/SearchHindi-Punjabi.jsp
HPWords cannot be resolved to a type
56: int size = result.size();
57:
58: if (val != null) {
59: HPWords w = (HPWords) result.get(cnt);
60: cnt = cnt + 1;
61:
62: %>
please tell me how to solve such problem...
Re: ERROR OCCURED :org.apache.jasper.JasperException: Unable to compile class for JSP
Look closely at the error message: "HPDiction cannot be resolved to a type" is fairly explanatory...do you have libraries locally that are not on your server? Libraries or packages which contain this class?