Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Configuration Confusion  RSS feed

 
Frank Manno
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!
 
Frank Carver
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".
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!