Solved

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

Posted on 2004-10-04
2
465 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
jAVA SERVLETS CODE FOR ONLINE SUPERMARKE 2 193
report generation frameworks 1 58
Set up Wildfly 10 8 323
caughtSpeeding java challenge 16 132
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

21 Experts available now in Live!

Get 1:1 Help Now