To-DO: how to run w external tomcat/deploy WARs to have well known Then start normallyī) Setup eclipse to use debug apps using mozilla+apache:ġ) Setup a new HTTP server resource prefs->server->installed runtimes->add HTTP - suggest you define a prefix so that all your HTML projects get deployed into a specific directory mapped somewhere in local diskĢ) Edit nf to setup new document root that map the prefix to some directory on your local HDġ) Get _3.2.1 - copy into plugin directoryĢ) Start Eclipse and go to Preferences-> tomcat and configure the tomcathome plugin for 5.xģ) Pref->Server->Install runtime Apache Tomcat 5.5.xĤ) Create HelloWorld.jsp using New->Project->Web->DynamicWeb
$CATALINA_HOME/conf///admin.xmlĥ) Setup a simple webserver access log so you can track who's on your site: In $CATALINA_HOME/conf/server.xml add this line within the Engine default host:Ħ) Start tomcat using the bin/startup.sh and /bin/shutdown.sh scripts and go to - provide uid/pwd as per above and you should see the manager app.ĭebugging simple HTTP+javascript apps using local OS X apache:Ī) Install the Ajax Toolkit framework ( ATF) for nice debugging of ajax apps and javascript in Firefox/Mozilla - detailed instructions on the eclipse site - summary here:Ģ) Help -> Software Updates -> Find and Install.ģ) Select Search for new features to install then Select Next then Select New Archived Site.Ĥ) Select the location of the downloaded update site zip file then Select Finishĥ) Make sure all ATF features are selected and Follow the remaining prompts to install ATFĦ) restart elipse form cmdline using eclipse - clean and close. Valve classname=".RemoteAddrValve" allow="127.0.0.1" valve $CATALINA_HOME/conf///manager.xml add this within the segment
User username="admin" password="changeme" roles="admin,manager"Ĥ ) Configure tomcat admin and manager to only accept local requests (just in case you're wide open on the internet.): Ln - s /usr/local/apache-tomcat-5.5.23 /usr/local/tomcatįor more fancy readers - you can setup a special tomcat account and change owner of the whole tomcat dir to tomcat.ģ) Create a user with the admin and manager roles to the default user database in $CATALINA_HOME/conf/tomcat-users.xml - example sh scripts to 755 (executable) and create a symlink for tomcat so you easily can move between versions: Get the 2 zip files Core and Admin (only needed if you want to use the admin app)Ģ) Unzip these files to /usr/local (typical unix location) ,change the attrib for. In this example I picked 5.x (specifically 5.5.23).
1) Get your preferred tomcat version from here.