Hi
I am unable to run the
servlet version 2 given on page 85(of Head First Servlets and
JSP 2nd edition) even after building the directory structures as shown in the book. Specifically, i am unable to compile the servlet called BeerSelect.java. The error shown is "unable to find package com.example.model.*". I have checked and rechecked the directory structures. I am compiling the servlet from MyProjects/beerV1 directory with the command "javac -d classes src/com/example/web/BeerSelect.java" as i have already set the classpath elsewhere. Moreover version 1 of the same servlet is running fine.
Also i would like to report that the deployment descriptor given on page 30 in chapter 1 of the same book does not work well.
Tomcat 5.5 shows error in the first line of the web.xml file i.e. "<?xml version=�1.0� encoding=�ISO-8851-1� ?>". Upon removing this line the servlet runs fine.
Please help guys.