Hi,
I am quite new to the subject of
servlets,
JSP and
J2EE in general.
I have been working through the excellent Head First Servlets & JSP book and I am currently trying to complete the tutorial on context listeners.
I have created a new webapp called listenerTest in
Tomcat 5.5, creating the following directory structure
webapps/listenerTest/WEB-INF\classes\com\example
In example directory I have created three classes - Dog.java, MyServletContextListener.java and ListenerTester.java, all of which
import package com.example;
Dog.java compiles fine as it does not reference either of the other 2 classes but when I try and compile the others (which both take an object of type Dog) neither can find the symbol 'Dog'.,
The error msg is as follows
ListenerTester.java:19: cannot find symbol
symbol : class Dog
location class com.example.ListenerTester
I am thinking it has something to do with either my classpath or the import statement but I cannot get to the bottom of it.
Can anyone suggest where I could look to resolve this?
Thanks in advance
Owen Giles