Online Shopping

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

30 of 48 people (63%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How do you configure Apache to run with Tomcat 4.0?

Mar 31st, 2009 10:26
engatoo engatoo, seo webmaster, osama said, i can do it, Dave Goose, Tim Cooke, Raymond Monroe, Dave Goose


A. Install the JDK. Make sure you have JDK 1.3 or 1.4 installed and 
your
PATH set so that both 
   "java -version" and "javac -help" give a result. 
B. Configure Tomcat: 
1. Download the software: 
   Go to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/
and download and unpack the zip file for the 
   latest version (4.1.24 as of last revision of this page). 
2. Enable the ROOT context. Edit install_dir/conf/server.xml and
uncomment this line: <Context path="" 
   docBase="ROOT" debug="0"/>. Not necessary in Tomcat 4.0.3 and
earlier. In Tomcat 5.0.3, the element is missing the 
   trailing slash and you need to add it. 
3. Enable the invoker servlet. Go to install_dir/conf/web.xml and
uncomment the servlet-mapping element that maps the 
   invoker servlet to /servlet/*. Not necessary prior to Tomcat 
4.1.12. 
4. Change the port to 80. Edit install_dir/conf/server.xml and change
the port attribute of the Connector element 
   from 8080 to 80. 
5. Turn on servlet reloading. Edit install_dir/conf/server.xml and add 
a
DefaultContext subelement to the main 
   Service element and supply true for the reloadable attribute. 
6. Set the JAVA_HOME variable. Set it to refer to the base JDK
directory, not the bin subdirectory. 
7. Change the DOS memory settings. If you get an "Out of Environment
Space" error message when you start the server, 
   right-click on install_dir/bin/startup.bat, select Properties, 
select
Memory, and change the Initial Environment 
   entry from Auto to at least 2816. Repeat the process for
install_dir/bin/shutdown.bat. 
8. Set the CATALINA_HOME variable. Optionally, set CATALINA_HOME to
refer to the top-level Tomcat installation directory. 
C. Test the server:
1.Verify that you can start the server. Double-click
install_dir/bin/startup.bat and try accessing http://localhost/. 
2. Check that you can access your own HTML & JSP pages. Drop some 
simple
HTML and JSP pages into 
   install_dir/webapps/ROOT and access them with 
http://localhost/filename. 
D. Set up your development environment:
1. Create a development directory. Put it anywhere except within the
Tomcat installation hierarchy. 
2. Make shortcuts to the Tomcat startup & shutdown Scripts. Put
shortcuts to install_dir/bin/startup.bat and 
   install_dir/bin/shutdown.bat in your development directory and/or on
your desktop. 
3. Set your CLASSPATH. Include the current directory ("."),
install_dir/common/lib/servlet.jar, and the 
   main development directory. 
4. Bookmark the servlet & JSP javadocs. Add
install_dir/webapps/tomcat-docs/servletapi/index.html to your 
   bookmarks/favorites list. 
E. Compile and test some simple servlets:
1. Test a packageless servlet. Compile a simple servlet, put the .class
file in install_dir/webapps/ROOT/WEB-INF/classes, 
   and access it with http://localhost/servlet/ServletName. 
2. Test a servlet that uses packages. Compile the servlet, put the
.class file in install_dir/webapps/ROOT/WEB-INF
   /classes/packageName, and access it with
http://localhost/servlet/packageName.ServletName. 
3. Test a servlet that uses packages and utility classes. Follow the
same procedure as the second step above. 
   This third step verifies that the CLASSPATH includes the top level 
of
your development directory. 
F. Establish a simplified deployment method:
1. Copy to a shortcut. Make a shortcut to install_dir/webapps/ROOT. 
Copy
packageless .class files directly there. 
   With packages, copy the entire directory there. 
2. Use the -d option of javac. Use -d to tell Java where the deployment
directory is. 
3. Let your IDE take care of deployment. Tell your IDE where the
deployment directory is and let it copy the 
   necessary files. 
4. Use ant or a similar tool. Use the Apache make-like tool to automate
copying of files.
Dave
http://www.webhosting-rated.com
http://www.stupidarticles.com
http://www.halazona.com
http://www.shikapika.com
http://www.stakoza.com
http://www.uploadarticles.com
http://www.ganazat.com
http://www.damima.com
http://www.tarabiza.com
http://www.articlesxarticles.com
http://www.articlesfreedirectory.com
http://wellcene.blogspot.com/
http://hindisongsdownloading.blogspot.com/
http://firstseomaster.blogspot.com/
http://bell-phones.blogspot.com/
http://more-poker-7u.blogspot.com/
http://jobs-online-blogs.blogspot.com/
http://threx.blogspot.com/
http://mobile-phone-service.blogspot.com/
http://msfunny.blogspot.com/
http://television-online-blogs.blogspot.com/
http://movies-online-blogs.blogspot.com/
http://music-online-blogs.blogspot.com/
http://business-online-blogs.blogspot.com/
http://software-online-blogs.blogspot.com/
http://gambling-online-blogs.blogspot.com/
http://hardware-online-blogs.blogspot.com/
http://computers-online-blogs.blogspot.com/
http://games-online-blogs.blogspot.com/
http://videogames-online-blogs.blogspot.com/
http://health-online-blogs.blogspot.com/
http://astrology-love.blogspot.com/
http://onlinemakefriends.blogspot.com/
http://marketingseo2008.blogspot.com/
http://mobile-phone-service.blogspot.com/
http://directorysubmissionlist.blogspot.com/
http://twenty-twenty-worldcup.blogspot.com/
http://tour-honeymoon.blogspot.com/
http://rajasthan-tour-travels.blogspot.com/
http://wallpaperblogs.blogspot.com/
http://ringsgemstone.blogspot.com/
http://wholesaleflowerblogs.blogspot.com/
http://giftsblogs.blogspot.com/
http://kitchenfurnitureblogs.blogspot.com/
http://shershayarighazal.blogspot.com/
http://addictionsblogs.blogspot.com/
http://agingblogs.blogspot.com/ 
http://allnursingblog.blogspot.com 
http://alternativeblogs.blogspot.com/ 
http://apartmentlivingblogs.blogspot.com/ 
http://beautyandblog.blogspot.com 
http://childhealthblogs.blogspot.com/ 
http://conditionsanddiseases.blogspot.com/ 
http://conferencesblogs.blogspot.com/feeds/ 
http://consumerinformationblogs.blogspot.com/ 
http://cooking4blogs.blogspot.com 
http://disabilitiesblogs.blogspot.com 
http://childeducationblogs.blogspot.com/ 
http://emergencypreparationblogs.blogspot.com/ 
http://employmentsblog.blogspot.com 
http://environmentalhealthblogs.blogspot.com/ 
http://famiesblogs.blogspot.com 
http://fitnesblogs.blogspot.com/ 
http://gardeninghomeblogs.blogspot.com/ 
http://healthcareindustryblogs.blogspot.com/ 
http://homeautomationblogs.blogspot.com/ 
http://homeandbusinessblog.blogspot.com/
http://homebuyersblogs.blogspot.com/ 
http://insurance4blog.blogspot.com/ 
http://medicaltourismblogs.blogspot.com/ 
http://medicinesblog.blogspot.com/ 
http://menshealthblogs.blogspot.com 
http://mentalhealthblogs.blogspot.com/ 
http://newsandmediablogs.blogspot.com/ 
http://occupationalhealthandsafetyblog.blogspot.com 
http://organizationsblogs.blogspot.com/ 
http://pharmacyblogs.blogspot.com/ 
http://productsandshoppingblogs.blogspot.com/ 
http://regionalblogs.blogspot.com/ 
http://teenhealthblogs.blogspot.com/ 
http://travelhealthblogs.blogspot.com 
http://weight-lossblogs.blogspot.com 
http://womenshealthblogs.blogspot.com 
http://homeimprovementblogs.blogspot.com/
http://homemakingblogs.blogspot.com/
http://homeownersblogs.blogspot.com/
http://personalfinancesblogs.blogspot.com/
http://personalorganizationblogs.blogspot.com/
http://pet4blogs.blogspot.com/
http://shopingblogs.blogspot.com/
http://businessandsocietyblogs.blogspot.com/
http://customerservicesblogs.blogspot.com/
http://e-commerceblogs.blogspot.com/
http://educationandtrainingblogs.blogspot.com/
http://humanresourcesblogs.blogspot.com/
http://healthcaresblogs.blogspot.com/
http://automotivesblogs.blogspot.com/
http://realestatesblogs.blogspot.com/
http://electronicsandelectricalblogs.blogspot.com/
http://telecommunication2blog.blogspot.com/
http://merchantaccountservicesblogs.blogspot.com/
http://internetmarketingsblogs.blogspot.com/
http://www.roo7e.com
http://www.roo7e.com
http://www.al33ab.com
http://ksacam.com
http://chat.ksacam.com
http://ksacam.info
http://oo2o.com
http://s4cam.com
http://saudi4cam.com				
http://voice.ksacam.com
http://سعودي-كام.oo2o.com
http://سعوديكام.com
http://xn--mgbply5cnrr.com
http://www.3rabstarz.com/vb
http://www.3rabstarz.com/vb
http://www.3rabstarz.com/
http://www.3rabstarz.com/vb
http://www.3rabstarz.com/
http://www.dir.3rabstarz.com/
http://www.up.3rabstarz.com
http://www.3rabstarz.com/vb/forumdisplay.php?f=5
http://www.3rabstarz.com/vb/forumdisplay.php?f=116
http://www.3rabstarz.com/vb/forumdisplay.php?f=66
http://www.3rabstarz.com/vb/forumdisplay.php?f=78
http://www.3rabstarz.com/vb/forumdisplay.php?f=147
http://www.3rabstarz.com/vb/forumdisplay.php?f=2
http://www.3rabstarz.com/vb/forumdisplay.php?f=31
http://www.3rabstarz.com/vb/forumdisplay.php?f=136
http://www.3rabstarz.com/vb/forumdisplay.php?f=34
http://www.3rabstarz.com/vb/forumdisplay.php?f=89
http://www.3rabstarz.com/vb/forumdisplay.php?f=26
http://www.3rabstarz.com/vb/forumdisplay.php?f=72
http://www.3rabstarz.com/vb/forumdisplay.php?f=73
http://www.3rabstarz.com/vb/forumdisplay.php?f=149
http://www.3rabstarz.com/vb/forumdisplay.php?f=150
http://www.3rabstarz.com/vb/forumdisplay.php?f=151
http://www.3rabstarz.com/vb/forumdisplay.php?f=152
http://www.3rabstarz.com/vb/forumdisplay.php?f=67
http://www.3rabstarz.com/vb/forumdisplay.php?f=3
http://www.3rabstarz.com/vb/forumdisplay.php?f=37
http://www.3rabstarz.com/vb/forumdisplay.php?f=115
http://www.3rabstarz.com/vb/forumdisplay.php?f=76
http://www.3rabstarz.com/vb/forumdisplay.php?f=77
http://www.3rabstarz.com/vb/forumdisplay.php?f=36
http://www.3rabstarz.com/vb/forumdisplay.php?f=153
http://www.3rabstarz.com/vb/forumdisplay.php?f=122
http://www.3rabstarz.com/vb/forumdisplay.php?f=118
http://www.3rabstarz.com/vb/forumdisplay.php?f=119
http://www.3rabstarz.com/vb/forumdisplay.php?f=120
http://www.3rabstarz.com/vb/forumdisplay.php?f=121
http://www.3rabstarz.com/vb/forumdisplay.php?f=35
http://www.3rabstarz.com/vb/forumdisplay.php?f=65
http://www.3rabstarz.com/vb/forumdisplay.php?f=7
http://www.3rabstarz.com/vb/forumdisplay.php?f=9
http://www.3rabstarz.com/vb/forumdisplay.php?f=11
http://www.3rabstarz.com/vb/forumdisplay.php?f=142
http://www.3rabstarz.com/vb/forumdisplay.php?f=143
http://www.3rabstarz.com/vb/forumdisplay.php?f=146
http://www.3rabstarz.com/vb/forumdisplay.php?f=140
http://www.3rabstarz.com/vb/forumdisplay.php?f=137
http://www.3rabstarz.com/vb/forumdisplay.php?f=114
http://www.3rabstarz.com/vb/forumdisplay.php?f=117
http://www.3rabstarz.com/vb/forumdisplay.php?f=113
http://www.3rabstarz.com/vb/forumdisplay.php?f=51
http://www.3rabstarz.com/vb/forumdisplay.php?f=84
http://www.3rabstarz.com/vb/forumdisplay.php?f=138
http://www.3rabstarz.com/vb/forumdisplay.php?f=139
http://www.3rabstarz.com/vb/forumdisplay.php?f=15
http://www.3rabstarz.com/vb/forumdisplay.php?f=130
http://www.3rabstarz.com/vb/forumdisplay.php?f=97
http://www.3rabstarz.com/vb/forumdisplay.php?f=102
http://www.3rabstarz.com/vb/forumdisplay.php?f=101
http://www.3rabstarz.com/vb/forumdisplay.php?f=104
http://www.3rabstarz.com/vb/forumdisplay.php?f=131
http://www.3rabstarz.com/vb/forumdisplay.php?f=103
http://www.3rabstarz.com/vb/forumdisplay.php?f=99
http://www.3rabstarz.com/vb/forumdisplay.php?f=59
http://www.3rabstarz.com/vb/forumdisplay.php?f=60
http://www.3rabstarz.com/vb/forumdisplay.php?f=39
http://www.3rabstarz.com/vb/forumdisplay.php?f=40
http://www.3rabstarz.com/vb/forumdisplay.php?f=42
http://www.3rabstarz.com/vb/forumdisplay.php?f=4
http://www.3rabstarz.com/vb/forumdisplay.php?f=1
http://www.3rabstarz.com/vb/forumdisplay.php?f=88
http://www.3rabstarz.com/vb/forumdisplay.php?f=148
http://www.3rabstarz.com/vb/forumdisplay.php?f=62
http://www.3rabstarz.com/vb/forumdisplay.php?f=63
http://www.3rabstarz.com/vb/forumdisplay.php?f=64
http://www.3rabstarz.com/vb/forumdisplay.php?f=6
http://www.3rabstarz.com/vb/forumdisplay.php?f=12
http://www.3rabstarz.com/vb/forumdisplay.php?f=96
http://www.3rabstarz.com/vb/forumdisplay.php?f=58
http://www.3rabstarz.com/vb/forumdisplay.php?f=38