home
NEWS       BLOGS       FORUMS       NEWSLETTERS       RESEARCH       EVENTS       DIGITAL LIBRARY       CAREERS  
Network Computing Network Computing Powered by InformationWeek Business Technology Network

IMMERSE YOURSELF:

SOA

  |

Data Center

  |

802.11n

  |

Data Privacy

  |
APO  |

Virtualization

  |

NAC

  |

Security

  |

Network Mgmt

  |

Enterprise Apps

  |

Storage & Servers



Features   | Tutorials   |  Books   |   Columns   |   Research   |

Workshop: Deploying Java Server Pages on Apache

October 23, 2000
By Lori MacVittie


Java Server Pages offer powerful server-side access to a multitude of databases and legacy systems. Available for several years now, they've only recently come into widespread use, now that tools to develop and deploy them have come of age. But still, getting a web server to correctly serve JSPs can be frustrating.

This workshop walks you through the process of installing the necessary software to provide an Apache Web server with the ability to serve up JSPs. You need a servlet engine as well as a set of classes to process JSPs. We'll use JServ 1.1.2 as our servlet engine, coupled with GNUJSP 1.0 to handle JSPs. Note that GNUJSP 1.0 supports JSP specification 1.0. For support of JSP 1.1, you'll want to use Jasper, which is a (part of Jakarta Tomcat).

How JSPs Are Served

When a Web server receives a request for a page, it looks through it's configuration settings to see if the requested page's MIME type or file extension needs to be handled by one of its containers. Normally, server administrators handle pages with a .jsp extension via a servlet container. The Web server hands a .jsp request off to the designated handler, which in turn will run the JSP handler (usually a class that will compile and execute the resulting code). This initial handler will then wait for the resulting HTML to be returned. Note, the servlet container can be running on the same host as the requested content or on a remote host. All that is required is the correct configuration in the Web server's configuration file to tell Apache where to send requests for JSPs.

Versioning

Before you can serve JSPs, you've got to find out what you can support and whether you'll need to upgrade or install the necessary components. We'll make the assumption that the only piece of the puzzle you've already installed is the Web server.

Here's what you'll need to get started:

  1. Apache 1.3.x or higher. (http://www.apache.org)
  2. JServ (http://java.apache.org) or Tomcat (http://jakarta.apache.org)
  3. A fully compliant Java 1.1 or greater runtime environment. The official list of compatible ports can be found at http://java.sun.com/cgi-bin/java-ports.cgi
  4. The JavaSoft JSDK 2.0 (Servlet Developer's Kit), available at http://java.sun.com/products/servlet/index.html
  5. A Java compiler. A list of supported compilers is available at http://java.apache.org/jserv/support.html, though we recommend you use IBM's Jikes compiler because it is faster and more efficient. It is available at http://www.alphaworks.ibm.com/tech/jikes.
  6. GNUJSP 1.0, available at: http://www.klomp.org/gnujsp/
  7. If you are building DSO (dynamic shared object) modules, you need to make sure that Perl 5.004 or later is installed because of the dependency on the Apache apxs (APache eXtenSion) module, which provides the ability to build DSO based modules outside of the Apache source tree. http://www.perl.com
The complete Apache JServ installation requires less than 2 MB of hard disk space. The compiled, uncompressed jar archive is approximately 100 KB. JServ works only with Apache 1.3.x and uses only standard Java classes (java.*).

The servlet engine (or container as it is often referred to in the documentation) can be installed as a dynamic module or compiled directly within the Apache binary. While we like dynamic module loading as a means of extensibility, we often compile modules into Apache, which is of course a more tedious process. We set up JSP support using both models, and there is little difference between them excepting the process of rebuilding Apache to include JServ support in a static build environment. Compiling modules reduces the ability to upgrade modules easily, but executes 5 percent faster than a DSO build.

So grab the tar files you need, and let's get moving. If you have any comments on or questions about this article, please message Lori MacVittie at lori@nandgate.com.

Page 1 | 2 | 3 | Next page






Ready to take that job and shove it?

Function:

Keyword(s):

State:
SPONSOR
RECENT JOB POSTINGS
CAREER NEWS
Go beyond Google and get vertical. These specialized search sites will help you find the business information you need -- fast.

Ari Balogh was named to the post of chief technology officer as the companys for a "realignment" of employees.










InformationWeek U.S. IT Salary Survey 2008
Salaries for business technology professionals are falling. Here's what you need to know in order to make good hiring decisions and personal career choices. Download Today
 
ROLLING RIGHT ALONG
Follow key Network Computing Reviews from conception to completion. This Week: Holistic APM.



Network Computing Reports Emerging Enterprise Podcast Series: Secrets to Success








TechSearch


Microsite of the Week


Powerful Information at Your Fingertips



InformationWeek Business Technology Network
InformationWeekInformationWeek 500InformationWeek 500 ConferenceInformationWeek AnalyticsInformationWeek CIO
InformationWeek EventsInformationWeek ReportsInformationWeek MagazinebMightyByte and SwitchDark Reading
Digital LibraryIntelligent EnterpriseInternet EvolutionNetwork ComputingNo JitterPlug Into The Cloud
space
Techweb Events Network
InteropVoiceConWeb 2.0 ExpoWeb 2.0 SummitEnterprise 2.0 ConferenceMobile Business ExpoSoftware ConferenceCSI - Computer Security Institute
Black HatGTECEnergy CampMashup CampStartup Camp
space
Light Reading Communications Network
Light ReadingLight Reading EuropeUnstrungLight Reading's Cable Digital NewsConstantinopleInternet EvolutionPyramid Research
Heavy ReadingLight Reading Live!Light Reading InsiderEthernet ExpoOptical ExpoTeleco TVTower Technology Summit
space
Financial Technology Network
Advanced TradingBank Systems & TechnologyInsurance & TechnologyWall Street & TechnologyAccelerating Wall StreetBank Systems & Technology Executive SummitBuyside Trading SummitInsurance & Technology Executive Summit
space
Microsoft Technology Network
MSDN MagazineTechNetThe Architecture Journal
space


App Infrastructure   |   Messaging & Collaboration   |   Network & Systems Mgmt   |   Network Infrastructure   |   Security  |   Storage & Servers   |   Wireless   |   Enterprise Apps
About Us  |  Contact Us  |  Site Map  |  Technology Marketing Solutions  |  Advertising Contacts  |   Briefing Centers
Copyright © 2008  United Business Media LLC  |  Privacy Statement  |  Terms of Service  |  Your California Privacy Rights