Hello, I am deploying an update Tomcat/JK/Apache 2 environment and have run into an issue with the most recent Tomcat Connector deployment. There is, also. a linux component to this system that is working fine. I have tried many variations in the config file, but started with one that looks almost identical to the one working on HostC. The debug log shows that it tries to connect to hostB and instantly errors. This tells me that either A: mod_jk is not able to open a socket (port?) for some reason. B: HostA is giving an error back to the mod_jk/apache C: some other networking issue. I am inclined to think that this is a problem with Solaris on Sparc, but the configure did note that it was a Solaris system and apeears to have set HAVE_SYS_FILIO_H appropriately. I have one small error during the compile. Yes, the log file has been mangled to provide confidentiality.
Any assistance that can be provided would be appreciated. As I finish this email, I am reminded about a strange permissions problem on Solaris with users opening sockets, but I can't remember the details. Just thought I would throw that out there to see if it tweeked anyones memory. Oh, I also get apxs errors when I run Config, but I set the APRINCLUDEDIR by hand. Thanks! -Doug Background: Solaris 10, recently patched. [oracle@]>uname -a SunOS 5.10 Generic_147440-24 sun4u sparc SUNW,SPARC-Enterprise Oracle Server version: Oracle-HTTP-Server/2.2.15 (Unix) Server built: Apr 3 2011 00:01:58 Server label: unknown Tomcat 7.0.29 Host A: Apache on Solaris Host B: Tomcat on Solaris port 8013 Host C: Apache on Linux JK: 1.2.37 Build with Oracle Sun Studio (cc) Solaris make, ld, as Host C to Host B (Apache-JK-tomcat) works fine. Host A to Host B ( pache-JK-tomcat) does not work. Test: telnet HostB 8013 is successful and produces an error in the tomcat log. Debug log from mod_jk: [Wed Nov 14 15:58:14.356 2012] [28892:30] [debug] mod_jk.c (2621): Into handler jakarta-servlet worker=lb2 r->proxyreq=0 [Wed Nov 14 15:58:14.356 2012] [28892:30] [debug] jk_worker.c (115): found a worker lb2 [Wed Nov 14 15:58:14.356 2012] [28892:30] [debug] jk_worker.c (292): Found worker type 'lb' [Wed Nov 14 15:58:14.356 2012] [28892:30] [debug] mod_jk.c (1097): Service protocol=HTTP/1.1 method=POST ssl=true host=(null) addr=x.x.x.x name=hostb port=80 auth=(null) user=(null) laddr=x.x.x.x raddr=x.x.x.x uri=/firstmap/index.jsp [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_lb_worker.c (1201): service sticky_session=1 id='4B6A8B72040FA1A8FF55DB6EDC037CBC.worker6 [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_lb_worker.c (1012): searching worker for partial sessionid 4B6A8B72040FA1A8FF55DB6EDC037CBC.worker6 [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_lb_worker.c (1020): searching worker for session route worker6 [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_lb_worker.c (1035): found worker worker6 (worker6) for route worker6 and partial sessionid 4B6A8B72040FA1A8FF55DB 6EDC037CBC.worker6 [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_lb_worker.c (1246): service worker=worker6 route=worker6 [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_ajp_common.c (3161): acquired connection pool slot=0 after 0 retries [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_ajp_common.c (626): ajp marshaling done [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_ajp_common.c (2450): processing pol6 with 2 retries [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_ajp_common.c (1624): (worker6) all endpoints are disconnected. [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_connect.c (485): socket TCP_NODELAY set to On [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_connect.c (522): socket SO_KEEPALIVE set to On [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_connect.c (574): timeout 5 set for socket=27 [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_connect.c (609): trying to connect socket 27 to x.x.x.x:8013 [Wed Nov 14 15:58:14.357 2012] [28892:30] [info] jk_connect.c (627): connect to x.x.x.x:8013 failed (errno=0) [Wed Nov 14 15:58:14.357 2012] [28892:30] [info] jk_ajp_common.c (995): Failed opening socket to (x.x.x.x:8013) (errno=0) [Wed Nov 14 15:58:14.357 2012] [28892:30] [error] jk_ajp_common.c (1630): (worker6) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=0) [Wed Nov 14 15:58:14.357 2012] [28892:30] [info] jk_ajp_common.c (2623): (worker6) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1) [Wed Nov 14 15:58:14.357 2012] [28892:30] [debug] jk_ajp_common.c (2472): retry 1, sleeping for 100 ms before retrying Compile Error: cc -O -DNO_RC2 -DNO_RC5 -DNO_IDEA -DBSAFE -fPIC -I/apps/oracle/middleware/weblogic/10.3.6/Oracle_FR1/ohs/include -m64 -DHAVE_CONFIG_H -DLINUX=260 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -I/include -DEAPI -D_LARGEFILE64_SOURCE -DUSE_EXPAT -I../lib/expat-lite -DHAVE_APR /apps/oracle/middleware/weblogic/10.3.6/Oracle_FR1/ohs/include -m64 -DHAVE_CONFIG_H -c jk_ajp_common.c -KPIC -DPIC -o .libs/jk_ajp_common.o "jk_ajp_common.c", line 2281: warning: statement not reached configure errors: apxs:Error: Invalid query string `APR_INCLUDEDIR' apxs:Error: Invalid query string `APU_INCLUDEDIR' APRINCLUDEDIR is /apps/oracle/middleware/weblogic/10.3.6/Oracle_FR1/ohs/include apxs:Error: Invalid query string `EXTRA_CFLAGS' apxs:Error: Invalid query string `EXTRA_CPPFLAGS' apxs:Error: Invalid query string `LDFLAGS' apxs:Error: Invalid query string `exp_installbuilddir' apxs:Error: Invalid query string `LIBTOOL'