Howdy,
That's strange.  As a matter of practice, I would not install tomcat, or
have on my classpath, any directory with a space in it, e.g.
c:\...\tomcat 4.1\....  It's been a long time since I compiled on the
command-line, not using Ant or another tool, especially on windows.  Did
you try using Ant to build?  At least then you could run it with verbose
mode and clearly see the compilation classpath...

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, November 27, 2002 12:46 AM
>To: Tomcat Users List
>Subject: Re: servlet compilation
>
>Thanks, that worked, however when I implement an interafce thus:
>
>public class LoadAtStartup implements ServletContextListener {
>
>I get the errors:
>
>LoadAtStartup.java:9: cannot resolve symbol
>symbol  : class ServletContextListener
>location: class LoadAtStartup
>public class LoadAtStartup implements ServletContextListener {
>                                                              ^
>LoadAtStartup.java:11: cannot resolve symbol
>symbol  : class ServletContextEvent
>location: class LoadAtStartup
>public void contextInitialized(ServletContextEvent sce) { }
>                                                ^
>LoadAtStartup.java:13: cannot resolve symbol
>symbol  : class ServletContextEvent
>location: class LoadAtStartup
>public void contextDestroyed(ServletContextEvent sce) { }
>                                                           ^
>3 errors
>
>Not too intuitive. Servlet below:
>
>LoadAtStartup servlet:
>
>import java.io.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>public class LoadAtStartup implements ServletContextListener {
>
>    public void contextInitialized(ServletContextEvent sce) { }
>
>    public void contextDestroyed(ServletContextEvent sce) { }
>
>    }
>
>What is the problem here? I am using JVM 1.4.1_01. It looks like it has
a
>problem with the ServletContextListener  interface?
>
>thanks
>
>Paul

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to