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.


  • Download the latest frontier servlet war file from
  • 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


  • 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)(
    • 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://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