Solved

org.apache.jasper.JasperException: Unable to compile class for JSP ....cannot resolve symbol .......

Posted on 2004-10-04
2
468 Views
Last Modified: 2008-03-04
The error I get is this

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

An error occurred at line: 1 in the jsp file: /Demo/test.jsp

Generated servlet error:
    [javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.30/work/Standalone/serrika.org/_/Demo/test_jsp.java:7: cannot resolve symbol
symbol  : class common
location: package Demo
import Demo.common;
            ^
/usr/local/jakarta-tomcat-4.1.30/work/Standalone/serrika.org/_/Demo/test_jsp.java:45: cannot resolve symbol
symbol  : class common
location: package Demo
      Demo.common inc = null;
          ^



An error occurred at line: 1 in the jsp file: /Demo/test.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.1.30/work/Standalone/serrika.org/_/Demo/test_jsp.java:47: cannot resolve symbol
symbol  : class common
location: package Demo
        inc = (Demo.common) pageContext.getAttribute("inc", PageContext.SESSION_SCOPE);
                   ^





An error occurred at line: 1 in the jsp file: /Demo/test.jsp

Generated servlet error:
/usr/local/jakarta-tomcat-4.1.30/work/Standalone/serrika.org/_/Demo/test_jsp.java:50: cannot resolve symbol
symbol  : class common
location: package Demo
            inc = (Demo.common) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Demo.common");
                       ^
4 errors



I have only ftp access to the above server


this is test.jsp

<%@ page language="java" import="Demo.*"  import="java.util.*" import="java.sql.*" %>
<jsp:useBean id="inc" scope="session" class="Demo.common" />
<jsp:setProperty name="inc" property="*" />

and this is the content of common class under Demo package


package Demo;

import java.util.*;
import java.sql.*;
import java.io.*;
import java.util.regex.*;
import java.security.SecureRandom;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class common  {

      String name="";
      String pass="";
      public Connection con;
      public Statement st;
      String hashval="";
      String prefix="";
      String join_dt="";

}

etc and etc

Please advise what is the best way to solve the above problem with ONLY ftp access ?

Or if it is unsolvable via ftp access only what instructions must I give to my hosting provider for solving this problem ?

0
Comment
Question by:christopher sagayam
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 12223864
you need to copy your class file to:

<webapp>/WEB-INF/classes/Demo
0
 
LVL 6

Author Comment

by:christopher sagayam
ID: 12234818
correct

I had to create the folder

/WEB-INF/classes/ folder in my web root and had to upload the class files there

worked perfect
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now