View Single Post
  #1 (permalink)  
Old June 9th, 2003, 05:36 AM
dutchman dutchman is offline
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning J2EE 1.4

I'm interested in IBM's WebSphere App Server but need to check out what J2EE actually means, and so I bought this book.
I'm hoping that someone else has got this book, ir that the authors can help out. Basically, I'm stuck on Chapter 3 where a JSP is being built. One of the Java source files is called FaqCategories.java. This was created. Then using the 'deploytool' to create a WAR file you're asked to add various files one of which is FaqCategories.class. The problem is that this file does not exist and nowhere does it mention you should compile the java. Anyway, after the deploy and trying to run it, it failed.
So, I manually compiled it and added it to the WAR file. After another deploy, it now states it can't find the package called 'Ch03'. This package happens to be the first lihe of the above java code. here is the error:

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

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Compiling 1 source file
C:\j2sdkee1.4\web\repository\Standard-Engine\localhost\Ch03\welcome_jsp.java:8: package Ch03 does not exist
import Ch03.FaqCategories;
            ^
:(

Any ideas?