• 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

Servlet Configuration Confusion

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic