Java in Linux web applications (1)

  Abstract: java under Linux web applications (1) 

  Java in Linux web applications (1) 
  In RedHat 1.1.2 installed apache jserv 

  Although apache jserv development teams are now engaged in the development of tomcat, and apache jserv servlet 2.0 only supports the standards, and to increase other software (gnujsp) can support jsp, but at this stage than apache jserv tomcat stability, so now apache jserv + gnujsp more suitable for web.    If you want to use servlet2.2 and jsp1.1 so, please use the tomcat, see tomcat installation.    This paper introduces apache jserv 1.1.1 installed in the RedHat. 

  First, the software needed: 
  Jdk_1.2.2 downloaded from http://java.sun.com 
  Apache_1.3.12 downloaded from www.apache.org 
  Apache jserv-1.1.1 download from java.apache.org 
  Jsdk2.0 (only 2.0) download from http://java.sun.com 

  Second, the installation process 

  Please jdk installed, the specific reference jdk installed, and the provision of good CLASSPATH PATH 
  Copy apache, apache jserv source package to / tmp under 
  # Tar xvzf apache_1.3.12.tar.gz 
  # Tar xvzf ApacheJServ-1.1.2.tar.gz 

  1, static compiler that compiled into apache 
  # Cd apache_1.3.12 
  #. / Configure - prefix = / usr / local / apache 

  Apache jserv compiler configuration parameters 
  # Cd ../ApacheJServ-1.1.2 
  #. / Configure \ 
  — Prefix = / usr / local / jserv \ 
  — With-apache-src =.. / apache_1.3.12 \ 
  — With-jdk-home = / usr / local / jdk \ 
  — With-java-platform = 2 \ 
  — With-JSDK = / usr / local / JSDK / lib / jsdk.jar 
  # Make 
  # Make install 

  Compiler apache and apache jserv 
  # Cd ../apache_1.3.12 
  #. / Configure \ 
  — Prefix = / usr / local / apache \ 
  — Activate-module = src / modules / jserv / libjserv.a 
  # Make 
  # Make install 
  Operation # / www / bin / httpd-l check mod_jserv is compiled into the apache 

  2, dynamic compiler (DSO mode) 

  # Cd apache_1.3.12 
  #. / Configure 
  — Prefix = / usr / local / apache 
  — Enable-shared = max 
  # Make 
  # Make install 

  Apache jserv compiler configuration parameters 
  # Cd ../ApacheJServ-1.1.2 
  #. / Configure \ 
  — Prefix = / usr / local / jserv \ 
  — With-apxs = / usr / local / apache / bin / apxs \ 
  — With-jdk-home = / usr / local / jdk \ 
  — With-java-platform = 2 \ 
  — With-JSDK = / usr / local / JSDK / lib / jsdk.jar 
  # Make 
  # Make install 
  If you want to use mod_ssl Please join - with options-EAPI 

  Third, changes in the configuration file / www / conf / httpd.conf added 
  Include / usr / local / jserv / etc / jserv.conf 
  If you DSO mode installation, then in the jserv.conf 
  LoadModule jserv_module / usr / local / jserv / libexec / mod_jserv.so removed in front of Notes 

  Start apache 
  Browser test http://yourserver/servlets/IsItWorking 
  See Yes, Its working!?    You success!    ! 
  You can change the jserv.conf 

  SetHandler jserv-status 
  Order deny, allow 
  Deny from all 

  Host joined the trust you allow from xxxx 
  This confidence in the mainframe through http://yourserver/jserv/ (Note behind this / not less) you can see the apache jserv configuration information. 
  Then / usr / local / jserv / servlets under Add your own servlet class experiments to effect it, test results show that under no redhat6.2 Chinese that the problem, all ok! 

  On the other servlet zone settings, load balance, etc. Please refer to documents and java.apache.org apache jserv website 

  Copyright China Linux Forum 

  ↑ Back 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags: , ,

Releated Java Articles

Comments

Leave a Reply