• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Setting up to run servlets and JSP

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to all of this.
Could someone please confirm that - all I need to run servlets is the java SDK and the Enterprise edition.
Also, could someone please list ALL of the class paths that I need to set. I have been here for a couple of days and my helloWorldServlet still does not want to run
Thank you for all of your help
david
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All you need to run servlets is the SDK and a servlet engine such as Tomcat. I believe that a reasonably current version of Tomcat comes with the J2EE package.
Sun has greatly simplified the classpath situation, you should not have to set anything in order to get simple servlets to run. If you can get Tomcat to run your system should be fine.
Download the servlet and JSP API documents from java.sun.com to read the details of exactly what the servlet environments needs.
Bill
 
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
Could someone please confirm that - all I need to run servlets is the java SDK and the Enterprise edition.
Well, strictly, yes. You can do it this way. As Bill suggests, though, most people prefer to use a more powerful "servlet container" than the somewhat clumsy one supplied with the "Enterprise Edition". There are lots of good ones which are free to download for development use:
Tomcat ( from http://jakarta.apache.org/tomcat/ ) is the official "reference", and you'll find a lot of people with experience of using it both here and around the web. Check out our special Tomcat forum for configuration and installation questions.
My personal favourite is Resin ( from http://www.caucho.com/resin/ ). Many people find it sompler to install and configure than Tomcat, and it has many powerful features as well as strong compliance with the servlet and JSP specifications. We now have a forum for Resin questions, too.
There are lots of other free to download servlet and JSP containers, and most of the "big names" have on-line evaluation versions to try out.
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Frank.
The J2EE SDK ships with Tomcat. But you can get the latest and greatest version of Tomcat from the link that Frank provided.
If you are new to Servlets and JSP then Resin is the easiest way to get started. It comes with a free developers lic., and solid documentation.
Tomcat is open source so you can deploy it for free as well, but it is a little bit harder to get started.
I've used quite a few servlet containers and Resin is one of my favorites too.
 
Beauty is in the eye of the tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic