File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.servlet.* - cannot be resolved

 
Matt Holloway
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Install Tomcat; preferably 5. It will contain all that you need; including docs.
 
Matt Holloway
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 320
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will find servlet-api.jar in Tomcat lib folder.
 
Himanshu Bisht
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it now... thanks. Question though... does anybody know the default administrator userid and password for tomcat (5.0.29)?
 
Matt Holloway
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai take this tip,
just include
C:\Sun\AppServer\lib\j2ee.jar
in ur classpath (environment variables)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic