Quote:
Originally Posted by gilead
Tomcat is now part of the Apache software foundation so Tomcat and Apache-Tomcat are the same thing. Download the core version, the others should not be necessary.
If the Apache-Tomcat and Apache (httpd server) packages are available via yum and you're familiar with yum it may be easier to do it that way. Otherwise the earlier posts in this thread should have enough info.
|
thanks for everything. i just download core version and also download mod_jk connector what u define. have u any documentation for configuring this connector? how it configure? i used two types of method for same but still not working.. i cannot use 80 port for both html and jsp files.. So please have u any documentation for configure this connector, please send me...
thank you again and sorry for giving you little more trouble.
now i configure all the things..
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(Ch annelSocket.java:492)
at org.apache.jk.common.ChannelSocket.pause(ChannelSo cket.java:289)
at org.apache.jk.server.JkMain.pause(JkMain.java:681)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyot eHandler.java:163)
at org.apache.catalina.connector.Connector.pause(Conn ector.java:1032)
at org.apache.catalina.core.StandardService.stop(Stan dardService.java:489)
at org.apache.catalina.core.StandardServer.stop(Stand ardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina .java:602)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.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
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
now what should i do?