Java in Linux web applications (2)

  Abstract: java under Linux web applications (2) 

  Based on RedHat gnujsp1.0.0 in the installation of apache jserv 

  First you have already installed confirmed apache jserv, if you do not have a apache jserv, please refer to "install RedHat apache jserv 1.1.2," a text. 
  Default jserv installed in / usr / local / jserv, jserv.conf in / usr / local / jserv / conf under 

  First, the need to obtain the software from http://www.klomp.org/gnujsp/ gnujsp-1.0.0.tar.gz 

  2. 

  # Cp gnujsp-1.0.0.tar.gz / usr / local 
  # Tar xvzf gnujsp-1.0.0.tar.gz 
  # Ln-s gnujsp-1.0.0 gnujsp 
  # Cd / usr / local / jserv / etc 
  # Cp zone.properties alph.properties 
  # Vi alph.properties alph.properties revised Accession: 

  # List of Repositories 
#######################

  Repositories = / usr/local/gnujsp-1.0.0/lib/gnujsp10.jar 
  Repositories = / usr/local/gnujsp-1.0.0/lib/servlet-2.0-plus.jar 
  Repositories = / your / jdbcbeans / javabean your path # path 
  # Repositories = / home / heyl / lib / java / Acme.jar 
  # Repositories = / usr/local/webl-3.0/lib/WebL.jar 

  # Classloader parameters 
#########################

  Autoreload.classes = true 

  # Enable servlet resourced autoreloading (properties and other 
  # Loaded resources) 
  Autoreload.file = true 

  # Servlet Aliases 

##################
  # Note: if using webl or Acme stuff, add the jars here too 
  # If you added them to the repositories above (alph) 
  # In my real settings I added: usepackages = true, language = de, de country = 
  # But I guess you may prefer the default locale :-) (alph) 

  Servlet.gnujsp.code = org.gjt.jsp.JspServlet 
  Checkclass servlet.gnujsp.initArgs = = true, pagebase = / usr / local / www / doc, 
  Scratchdir = / var / local / apache / jsp, debug = true, compiler = builtin-javac 
  Classpath-classpath%%:%% scratchdir: / usr/local/gnujsp-1.0.0/lib/servlet-2.0-plus.jar: 
  / Usr/local/gnujsp-1.0.0/lib/gnujsp10.jar: / your / jdbcbeans / path 
  Scratchdir-d%%% source%-deprecation 
  # $ Scratchdir for jsp which documents generated java class files and directories 

  Archiving 

  3. 
  Join # vi jserv.properties 
  Wrapper.classpath = / usr / lib / jdk / lib / tools.zip 
  Wrapper.classpath = / usr / local / jserv / lib / ApacheJServ.jar 
  Wrapper.classpath = / usr / local / JSDK / lib / jsdk.jar 

……

  = Root zones, alph 

……

  Alph.properties = / usr/local/apache-1.3.6/conf/alph.properties 

……

  Log.file = / usr / local / apache / logs / log files jserv.log # 

  Fourth, in the / usr / local / jserv / etc / jserv.conf added in the 

  ApJServMount / alph / alph 
  Action jsp-handler / servlet / gnujsp 
  AddHandler jsp-handler jsp 

  5. 

  Start your apache 
  To / usr / local / gnujsp / copy examples of documents released to the web directory, a browser called 
  Http://yourserver/dir/date.jsp 
  Http://yourserver/dir/hello.jap 
  Http://yourserver/dir/snoop.jsp 
  How kind, the results did not come out? 
  Then you change these documents, joined Chinese test, and in redhat servlet under the same test that showed Chinese gnujsp no problem. 

  Related servlet / jsp information, visit java.sun.com access to relevant information 

  ↑ 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