Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Integrating Tomcat And Apache On Windows

24,815 views

Published on

Configuration / Integrating Tomcat and Apache Web server or Apache HTTP server on Windows

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Its showing classNotFoundException: Mar 14, 2015 11:19:48 AM org.apache.catalina.startup.Catalina load WARNING: Catalina.start using conf/server.xml: Error at (146, 57) : org.apache.jk.config.ApacheConfig Mar 14, 2015 11:19:48 AM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:144) at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537) at org.apache.catalina.startup.Catalina.load(Catalina.java:601) at org.apache.catalina.startup.Catalina.start(Catalina.java:663) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi Mohanraj,

    Thanks for your presentation. It really helps me.

    I have one query, suppose I have one war file in my apache tomcat webapp called XYZ.war, if I want to access it using localhost/XYZ/ how & where can I set configurations.
    I had set configuraton in httpd.conf file like JkMount /XYZ XYZ but it does not work for me.

    Please advise.

    Thanks,
    Mayank
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Thanks a lot.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • I still need to add the following to the workers.properties for it to work

    worker.list=worker1
    worker.worker1.port=8009
    worker.worker1.host=localhost
    worker.worker1.type=ajp13
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Integrating Tomcat And Apache On Windows

  1. 1. Configuration / Integrating Tomcat and Apache Web server or Apache HTTP server on Windows The version I used is – 1. Java version quot;1.5.0_15quot; 2. Apache2.2 3. Apache-tomcat-6.0.16 4. Tomcat-connectors-1.2.27-src.zip 5. Apache Tomcat Connectors 1.2.27 for WIN32 Please follow the following step to configure successfully... 1) Installing Apache – a. Download “apache_2.2.10-win32-x86-openssl-0.9.8i.msi” b. Just simple wizard – follow next button c. Type http://localhost/ in browser i. You will get “it works!” ii. Ref : 2) Installing Tomcat a. Download “apache-tomcat-6.0.16.zip” b. Just unzip it c. Goto TOMCAT_HOME/bin and run or double click startup.bat i. For ex : C:apache-tomcat-6.0.16bin d. Type http://localhost:8080/ in browser i. You will get ii. Ref:
  2. 2. 3) Stop both servers now a. Stopping apache i. Right click apache service icon ii. And click “Open Apache Monitor”
  3. 3. iii. Click Stop button. b. Stopping tomcat i. Press “Ctrl^C” in the tomcat console 4) Download “Tomcat-connectors-1.2.27-src.zip” and unzip it. a. Copy the following files from “C:tomcat-connectors-1.2.27-srcconf” i. uriworkermap.properties ii. workers.properties iii. workers.properties.minimal b. Paste in here – “C:apache-tomcat-6.0.16conf” 5) Download “mod_jk-1.2.27-httpd-2.2.10.so” from the following path a. Path : http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk- 1.2.27/ b. Ref:
  4. 4. c. Rename from “mod_jk-1.2.27-httpd-2.2.10.so” to “mod_jk.so” d. Copy “mod_jk.so” and paste in here – “C:Program FilesApache Software FoundationApache2.2modules” 6) Configure Apache a. Open “httpd.conf” from “C:Program FilesApache Software FoundationApache2.2conf” b. Add the following code snippet at the end of the file “httpd.conf” LoadModule jk_module quot;C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.soquot; JkWorkersFile quot;C:/apache-tomcat-6.0.16/conf/workers.propertiesquot; JkLogFile quot;C:/apache-tomcat-6.0.16/conf/from_apache_mod_jk.logquot; JkLogLevel info JkLogStampFormat quot;[%a %b %d %H:%M:%S %Y]quot; # Send servlet for context /examples to worker named ajp13 JkMount /examples ajp13 # Send JSPs for context /examples/* to worker named ajp13
  5. 5. JkMount /examples/* ajp13 7) Configure Tomcat a. Open “server.xml” from “C:apache-tomcat-6.0.16confserver.xml” b. Add the following inside “<Server>” element <Listener className=quot;org.apache.jk.config.ApacheConfigquot; modJk=quot;C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.soquot; /> c. Add the following between “<Host>” “</Host>” <Listener className=quot;org.apache.jk.config.ApacheConfigquot; modJk=quot;C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.soquot; /> 8) Start tomcat 9) Wait sometime 5 or 10 seconds 10) Start apache a. Start apache i. Right click apache service icon ii. And click “Open Apache Monitor”
  6. 6. iii. Click Start button. 11) Type “http://localhost/examples/” a. Ref: b. Click “Servlets examples”

×