Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: ERROR OCCURED :org.apache.jasper.JasperException: Unable to compile class for JSP:

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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:

     
    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...


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default 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?

Similar Threads

  1. [Compile Error] Whats wrong with that ?
    By Anomis in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 5th, 2011, 11:01 AM
  2. Compile Error, tried everything please help
    By cdub0 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 17th, 2011, 03:31 AM
  3. What's wrong. Compile Ok but error when execute.
    By hantuapi in forum What's Wrong With My Code?
    Replies: 7
    Last Post: April 1st, 2011, 05:33 AM
  4. [SOLVED] Picture won't go with the .jar (Wrong code or compile error?)
    By Fermen in forum Object Oriented Programming
    Replies: 3
    Last Post: March 15th, 2011, 05:22 PM
  5. Please solve my error occured java.lang.NullPointerExceptio
    By Viruthagiri in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: March 24th, 2010, 08:29 AM