Solved

JSP with Apache on WinXP

Posted on 2006-07-21
4
256 Views
Last Modified: 2010-04-01

I have written simple bean with jsp running on tomacat win winXP

the import statement in the code is as follows
<%@ page import="business.User, data.UserIO" %>

They have been compiled and placed in appropriate directories.
The following errors are reported.

Any help regarding this is appreciated...

The error reported is below

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

An error occurred at line: 10 in the jsp file: /javaWjsp/show_mail.jsp

Generated servlet error:
    [javac] Compiling 1 source file

C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\_\javaWjsp\show_mail_jsp.java:7: package business does not exist
import business.User;
                ^
C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\_\javaWjsp\show_mail_jsp.java:8: package datas does not exist
import datas.UserIO;
             ^
C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\_\javaWjsp\show_mail_jsp.java:49: cannot resolve symbol
symbol  : class User
location: class org.apache.jsp.show_mail_jsp
User user=new User(firstName,lastName,emailAddress);
^

regard
neera
0
Comment
Question by:neerak
4 Comments
 
LVL 14

Accepted Solution

by:
boonleng earned 250 total points
Comment Utility
Where do you places the file User.class and UserIO.class?
The files should be palced in the classpath folder ../WEB-INF/classes/business/User.class and ../WEB-INF/classes/datas/UserIO.class
0
 
LVL 23

Assisted Solution

by:Siva Prasanna Kumar
Siva Prasanna Kumar earned 250 total points
Comment Utility
Are you sure that those class files exits at correct locations?

According to me the problem is even if the have placed the class file u need to have them in there respective packages. I think those package folders are missing just check that.

There Must be a folder named business and datas or data (u are not clear as u are importing data.UserIO.class but exception says datas.UserIO.class) inside the classes folder which is inside the WEB-INF folder.

Check that and get back.

Thank You.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
A procedure for exporting installed hotfix details of remote computers using powershell
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

11 Experts available now in Live!

Get 1:1 Help Now