hello frends I m using Fedora core 6 and installed httpd2.2*. rpm -qa tomcat* tomcat5-server-lib-5.5.23-0jpp.2.fc6 tomcat5-servlet-2.4-api-5.5.23-0jpp.2.fc6 tomcat5-webapps-5.5.23-0jpp.2.fc6 tomcat5-jasper-5.5.23-0jpp.2.fc6 tomcat5-common-lib-5.5.23-0jpp.2.fc6 tomcat5-5.5.23-0jpp.2.fc6 tomcat5-admin-webapps-5.5.23-0jpp.2.fc6 tomcat5-jsp-2.0-api-5.5.23-0jpp.2.fc6 rpm -qa java* java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.110 java_cup-javadoc-0.10-0.k.6jpp.1 java-1.4.2-gcj-compat-src-1.4.2.0-40jpp.110 java_cup-0.10-0.k.6jpp.1 java_cup-manual-0.10-0.k.6jpp.1 java-1.4.2-gcj-compat-1.4.2.0-40jpp.110 java-1.4.2-gcj-compat-javadoc-1.4.2.0-40jpp.110 after that i comment off from /ete/httpd/conf.d/proxy_ajp.conf cat /etc/httpd/cpnf.d/proxy_ajp.conf ProxyPass /GMS ajp://localhost:8080/GMS GMS is our project name. now i add /etc/http/conf/conf.d <VirtualHost *:80> ServerName dharanetworks.com ServerAlias www.dharanetworks.com ProxyPass / ajp://127.0.0.1:8080/GMS ProxyPassReverse / ajp://127.0.0.1:8080/GMS </VirtualHost> After all when u open localhost:8080 then apache-tomcat jsp page is displayed but now what should i do for run on default http 80 port for both .html and .jsp and .php file run. and tell me about above configuration is that ne wrong in it? please help me for above topic. and i m confused between tomcat5 and apache-tomcat. Is any diffrence between them and which is suitable for fedora core 6.
Doesn't it work with these directives? Code: ProxyPass / ajp://127.0.0.1:8080/GMS ProxyPassReverse / ajp://127.0.0.1:8080/GMS Any errors in Apache's error log?
thanx for giving me reply Now i configured apache-tomcat 5.5 and httpd 2.2 and mod_jk_1.2.26. all configuration i did and first start tomcat and then httpd. now i can access localhost and localhost:8080 both.. and both are showing me apache and tomcat pages.but when i click localhost/jsp-examples then it show me error as below [Wed Feb 06 07:07:59 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Feb 06 07:08:00 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:08:00 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/test.jsp' [Wed Feb 06 07:08:00 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Feb 06 07:08:00 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:08:00 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/test.jsp' [Wed Feb 06 07:08:00 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Feb 06 07:08:01 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:08:01 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/test.jsp' [Wed Feb 06 07:08:01 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Feb 06 07:08:01 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:08:01 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/test.jsp' [Wed Feb 06 07:08:01 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Feb 06 07:11:02 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:11:02 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/test.jsp' [Wed Feb 06 07:11:02 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Feb 06 07:11:02 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:11:02 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/test.jsp' [Wed Feb 06 07:11:02 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Feb 06 07:11:03 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:11:03 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/test.jsp' [Wed Feb 06 07:11:03 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Wed Feb 06 07:11:03 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:11:03 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/test.jsp' [Wed Feb 06 07:11:03 2008] [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match and now when i shutdown tomcat then show error as below Feb 6, 2008 7:36:15 AM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Feb 6, 2008 7:36:15 AM org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:492) at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:289) at org.apache.jk.server.JkMain.pause(JkMain.java:681) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163) at org.apache.catalina.connector.Connector.pause(Connector.java:1032) at org.apache.catalina.core.StandardService.stop(StandardService.java:489) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734) at org.apache.catalina.startup.Catalina.stop(Catalina.java:602) at org.apache.catalina.startup.Catalina.start(Catalina.java:577) 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:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Feb 6, 2008 7:36:16 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Feb 6, 2008 7:36:16 AM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Feb 6, 2008 7:36:16 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime now please read error and tell me what should i do? and how can i access localhost/jsp-examples thank you and on web browser..it shows internal server error..please contact admin when i m trying to access localhost/jsp-examples/test.jsp then webbrowser show 500 internal server error please contact your admin and tail -f /var/log/httpd/mod_jk.log shows me [Wed Feb 06 07:56:18 2008] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Wed Feb 06 07:56:18 2008] [jk_uri_worker_map.c (459)]: Attempting to map URI '/jsp-examples/test.jsp' [Wed Feb 06 07:56:18 2008] [jk_uri_worker_map.c (483)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 -> /jsp-examples/ [Wed Feb 06 07:56:18 2008] [mod_jk.c (1689)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=137915680 worker=worker1 [Wed Feb 06 07:56:18 2008] [jk_worker.c (90)]: Into wc_get_worker_for_name worker1 [Wed Feb 06 07:56:18 2008] [jk_worker.c (94)]: wc_get_worker_for_name, done found a worker [Wed Feb 06 07:56:18 2008] [mod_jk.c (472)]: agsp=80 agsn=192.168.1.1 hostn=192.168.1.1 shostn=www.dharanetworks.com cbsport=0 sport=0 [Wed Feb 06 07:56:18 2008] [jk_ajp12_worker.c (201)]: Into jk_worker_t::get_endpoint [Wed Feb 06 07:56:18 2008] [jk_ajp12_worker.c (96)]: Into jk_endpoint_t::service [Wed Feb 06 07:56:18 2008] [jk_connect.c (136)]: Into jk_open_socket [Wed Feb 06 07:56:18 2008] [jk_connect.c (143)]: jk_open_socket, try to connect socket = 19 to 127.0.0.1:8007 [Wed Feb 06 07:56:18 2008] [jk_connect.c (159)]: jk_open_socket, after connect ret = -1 [Wed Feb 06 07:56:18 2008] [jk_connect.c (188)]: jk_open_socket, connect() failed errno = 111 [Wed Feb 06 07:56:18 2008] [jk_ajp12_worker.c (110)]: In jk_endpoint_t::service, sd = -1 [Wed Feb 06 07:56:18 2008] [jk_ajp12_worker.c (128)]: In jk_endpoint_t::service, Error sd = -1 [Wed Feb 06 07:56:18 2008] [jk_ajp12_worker.c (139)]: Into jk_endpoint_t::done [Wed Feb 06 07:56:18 2008] worker1 192.168.1.1 0.000357