On Tuesday 13 April 2004 09:08, Thai Lam wrote:

> C:\Avalon\Merlin\tutorial\thai\src\java\tutorial\ConnectionPoolTestServlet.
>java:11: package javax.servlet.http does not exist
> import javax.servlet.http.HttpServlet;

When you compile manually, you have the servletapi included in the classpath 
somehow.
Maven doesn't use classpaths, and instead uses the <dependency> declarations 
in your project.xml. You will need a
    <dependency>
      <groupId>servletapi</groupId>
      <artifactId>servletapi</artifactId>
      <version>2.3</version>
    </dependency>
in your project.xml, under the <dependencies> (if not present) element.

This will pickup the Servlet API ver 2.3 from ibiblio.org.


Cheers
Niclas
-- 
+---------//-------------------+
|   http://www.bali.ac         |
|  http://niclas.hedhman.org   |
+------//----------------------+

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

Reply via email to