tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: package javax.servlet does not exist import javax.servlet.* ;
Date Mon, 02 Feb 2009 17:04:00 GMT
> From: Shaolin [mailto:shaolinfinest@gmail.com]
> Subject: Re: package javax.servlet does not exist import
> javax.servlet.* ;
>
> 1. Im using 6.0.18 64 bit with windows xp 64  and Java SDK SE
> 6 update 11 (64bit).

Did you install Tomcat from the .exe download or the .zip one?  You will need the 64-bit versions
of tomcat6.exe and tomcat6w.exe if you want to run Tomcat as a service.  I would recommend
running it from the command line using the startup.bat and shutdown.bat scripts (from the
.zip downloads) until you get the bugs worked out.  After that, get the 64-bit versions here:
http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/amd64/

Rename them, changing the 5 to 6.

> 3. The servlet-api jar is in the tomcat lib dir and not in app lib dir
> 4. Didnt find the j2ee jar in the tomcat folder.

Do the servlet and JSP examples that come with Tomcat work?  If so, and it's just your webapp
that's failing with the package does not exist error, then something is odd with your webapp.

It just struck me: this is a compilation message, not a run-time one.  You'll need to tell
javac (or whatever IDE you're using) where the servlet-api.jar is.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message