aspose file tools*
The moose likes Tomcat and the fly likes 500 internal Server Error when integrate Apache 2.2.17 with tomcat 6.0.29 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "500 internal Server Error when integrate Apache 2.2.17 with tomcat 6.0.29" Watch "500 internal Server Error when integrate Apache 2.2.17 with tomcat 6.0.29" New topic
Author

500 internal Server Error when integrate Apache 2.2.17 with tomcat 6.0.29

Kire Andreev
Greenhorn

Joined: Dec 31, 2010
Posts: 1
Dear all,

I have installed j2SE Development kit 5.0 Update 14, J2SE Runtime Environment 5.0 Update 14, Apache 2.217 and Tomcat 6.0.29.After installation of Apache i was tested with http://localhost and result was "It is work".Also after installation of Tomcat i was tested with http://localhost:8080 and opened home page of Tomcat.After that i started with configurations.
1. Download “Tomcat-connectors-1.2.31-src.zip” and unzip it
2.I was copy the following files from “C:\tomcat-connectors-1.2.31-src\conf”
i. uriworkermap.properties
ii. workers.properties
iii. workers.properties.minimal
iiii. httpd.conf
3. I was paste in here – “C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf
4. Download “mod_jk-1.2.31-httpd-2.2.3.so” from the following path http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.31/
5. Rename from “mod_jk-1.2.31-httpd-2.2.3.so” to “mod_jk.so
Configure Apache
a. Open “httpd.conf” from “C:\Program Files\Apache Software
Foundation\Apache2.2\conf”
b. Add the following code snippet at the end of the file “httpd.conf”
LoadModule jk_module "C:/Program Files/Apache Software
Foundation/Apache2.2/modules/mod_jk.so"
JkWorkersFile "C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\workers.properties"
JkLogFile "C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\from_apache_mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# Send servlet for context /examples to worker named ajp13
JkMount /examples ajp13
# Send JSPs for context /examples/* to worker named ajp13 JkMount /examples/* ajp13
Configure Tomcat
a.Open “server.xml” from “C:\apache-tomcat-6.0.16\conf\server.xml”
b. Add the following inside “<Server>” element
<Listener className="org.apache.jk.config.ApacheConfig" modJk="C:\Program Files\Apache Software Foundation\Apache2.2\modules\mod_jk.so" />
c. Add the following between “<Host>” “</Host>”
<Listener className="org.apache.jk.config.ApacheConfig" modJk="C:\Program Files\Apache Software Foundation\Apache2.2\modules\mod_jk.so" />

6) I was Start tomcat
7) Wait sometime 5 or 10 seconds
8) Start apache
9) I was Type “http://localhost/examples/”
10)Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, kireandreev@yahoo.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I would like to give me any body explanation where i have mistake

Best regards.
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Kire Andreev wrote:More information about this error may be available in the server error log


Did you check the log?
 
 
subject: 500 internal Server Error when integrate Apache 2.2.17 with tomcat 6.0.29