• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.servlet.* - cannot be resolved

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Install Tomcat; preferably 5. It will contain all that you need; including docs.
 
Matt Holloway
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will find servlet-api.jar in Tomcat lib folder.
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai take this tip,
just include
C:\Sun\AppServer\lib\j2ee.jar
in ur classpath (environment variables)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic