File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes javax.servlet.* - cannot be resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "javax.servlet.* - cannot be resolved" Watch "javax.servlet.* - cannot be resolved" New topic
Author

javax.servlet.* - cannot be resolved

Matt Holloway
Ranch Hand

Joined: Oct 16, 2003
Posts: 53
I've read a few of the posts in this forum, but I'm still left a bit confused. I recently downloaded the J2EE SDK (with Sun Application Server Platform Edition 8). When I try to reference any of the servlet libraries, I get errors that they cannot be resolved.

Some of the posts here refer to JSDK, but according to what I can find on the Sun Java site, this (and many others) are bundled in the J2EE 1.4 SDK. I've done a search for servlet.jar, it does not appear in my Sun folder (or any folders within). Am I missing something basic here?

I have downloaded the JWSDP (Java Web Services Development Pack)as well, but no servlet.jar exists in it.

Previously, I have only done J2SE development, but I'm now trying to develop a web application with JSP and Servlets... any help with getting this environment working would be appreciated.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

Install Tomcat; preferably 5. It will contain all that you need; including docs.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Matt Holloway
Ranch Hand

Joined: Oct 16, 2003
Posts: 53
Thanks, I actually already have Tomcat 5.0 installed (it is what I'm using as a web server), but there seems to be no servlet.jar in the Tomcat install. I performed a search of my entire hard disk.
Rajan Chinna
Ranch Hand

Joined: Jul 01, 2004
Posts: 320
You will find servlet-api.jar in Tomcat lib folder.
Himanshu Bisht
Ranch Hand

Joined: Aug 27, 2004
Posts: 96
Check tomcat again.u will get it there for sure.
if still u have problem then u can search servlet.jar in google.
Matt Holloway
Ranch Hand

Joined: Oct 16, 2003
Posts: 53
Got it now... thanks. Question though... does anybody know the default administrator userid and password for tomcat (5.0.29)?
Matt Holloway
Ranch Hand

Joined: Oct 16, 2003
Posts: 53
Okay, I figured the Tomcat out. I had to go into tomcat-users.xml and add an admin user with the roles admin and manager (in case anybody needs to know).

I'm considering this a done deal now. Thanks.
Ramakrishnan Ponmudi
Ranch Hand

Joined: Apr 20, 2004
Posts: 72
hai take this tip,
just include
C:\Sun\AppServer\lib\j2ee.jar
in ur classpath (environment variables)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.servlet.* - cannot be resolved
 
Similar Threads
Need help getting servlet software working
Servlet Configuration Confusion
Issues Compiling With Javac
Compile problem not finding package javax.servlet.http
How to Upgrade GWT 2.0.4 to GWT 2.2.0