Solved

JSP with Apache on WinXP

Posted on 2006-07-21
4
263 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
ID: 17158727
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
ID: 17163443
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lamba in java 8 9 244
HTML5 vs JSP - REST based application development 4 1,079
best way to search/remove a file from an EAR file 3 109
servlet example 17 32
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
February 24, 2017 — On February 23, Travis Ormandy, a vulnerability researcher at Google, reported on Twitter (https://twitter.com/taviso/status/834900838837411840) that massive stores of data have been leaked by CloudFlare, a company that provide…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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