Solved

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

Posted on 2004-10-04
2
475 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

752 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