• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Servlet Configuration Confusion

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey All,
I'm very new to the Servlet side of Java programming... I'm taking a course and am trying to setup my development environment. I downloaded the WebLogic Workshop IDE, but was unable to get my Servlet running... I'm not sure if I'm missing something in the setup, but it was very daunting.
I've elected to go about doing this the right way... Writing my servlets, and manually configuring the server to run it. I've chosen Resin as my server, and have successfully run it.
My problem, however, is when I go to compile the Servlet, it notifies me that "javax.servlet.*" and "javax.servlet.http.*" do not exist. I've searched these forums, and come up with some previously discussed issues. Unfortunately, none were fixes for me.
Here's my system setup: I'm running J2SDK 1.4.1_03... I've searched my system, and have been unable to locate the needed "servlet.jar" file.
My question is this: _must_ I download the J2EE SDK, or can I continue with my current configuration, and install the servlet.jar file? Also, I've been unable to locate the "servlet.jar" file on Sun's site. I found this link, and mistakingly downloaded the Servlet specifications.
Any help would be appreciated on how to go about setting this up.

Thanks!
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The file you want is not always called "servlet.jar". In particuler, modern containers tend to make the servlet API version explicit in the name of the jar file.
If you have installed Resin 2.1, look for a file in Resin's lib directory called "jsdk23.jar". If you have installed Resin 3.0, look for a file in Resin's lib directory called "jsdk-24.jar".
 
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!