Solved

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

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The recent Petya-like ransomware attack served a big blow to hundreds of banks, corporations and government offices The Acronis blog takes a closer look at this damaging worm to see what’s behind it – and offers up tips on how you can safeguard your…
Part One of the two-part Q&A series with MalwareTech.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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