How to install a new servlet in a Frontier server

This page contains instructions on how to install a new servlet in a Frontier server that is already running.

Installation

  • Download the latest frontier servlet war file from http://edge.fnal.gov:8888/frontier/
  • Connect as root to the frontier node where you want to install the new servlet
  • Assuming tomcat is installed under /usr/share/tomcat5, copy the war file to /usr/share/tomcat5/webapps
    • If tomcat is running, it will automatically unpack the war file and try to put it online
    • If the war file is not unpacked, unpack it manually: mkdir Frontier_3.4; cp Frontier_3.4.war Frontier_3.4; cd Frontier_3.4; jar xvf Frontier_3.4.war
  • Remove the war file
  • Rename the created folder to the name of the new servlet (e.g. intr): mv Frontier_3.4/ intr

Configuration:

  • Files:
    • $TOMCAT_DIR/webapps//WEB-INF/web.xml
    • $TOMCAT_DIR/conf/Catalina/localhost/.xml (needs to be created)

  • web.xml
    • In <servlet-mapping> change <url-pattern> to the one desired (e.g. )

  • .xml
    • In change the attribute path to the pattern defined in web.xml (e.g. path="/intr")
    • Change the connect string to the BD you want the servlet to connect (e.g. jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=intr1-v.cern.ch)(PORT=10121))(ADDRESS=(PROTOCOL=TCP)(HOST=intr2-v.cern.ch)(PORT=10121))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=intr.cern.ch)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)(RETRIES=200)(DELAY=15)))))
    • In the bottom of the file, change the DB username and password.

Try it

  • Restart tomcat with 'service tomcat5 restart'
  • Open your browser and chek if it is working:
http://atlasfrontier.cern.ch:8080/intr/Frontier?type=frontier_request:1:DEFAULT&encoding=BLOB&p1=eNoLdvVxdQ5RCHF08nGN93P0dVVwC-L3VXD08YkHiwUrhHu4Brkq.If7uQYp2Cqoq3MBAGviDUs_ (http://ip:8080//Frontier?....)


This topic: PSSGroup > PhysicsDatabasesSection > LCG3DWiki > ServiceDocs > FroNtierSetupAtTier0 > HowToInstallANewServletInAFrontierServer
Topic revision: r1 - 2007-02-15 - LuisRamos
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback