linux - Using Mod_proxy Redhat 6 Apache 2.2.15 to Tomcat 7 multiple java webapps issue -


i have apache 2.2.15 front end trying pass code tomcat7 mod_proxy fire off 2 different webapps different base paths. think i'm close, i'm still not getting web page returned. i'm getting 404 requested resource not available. sure hoping simple, after week , half of banging head against wall, have become log blind. posting in hopes can see can't, or can correct fundamental misunderstanding might having how can work.

bmc remedy arsys http://rmdy-mtr-p1.domain.com/arsys/ port 8080. webapp base located @ /opt/local/bmc/arsystem/midtier/

http://rmd-mtr-p1.domain.com/kinetic/ base at: /opt/apache/tomcat7.0/webapps/kinetic/ port 8009.

httpd.conf:

pidfile run/httpd.pid timeout 5400 proxytimeout 5400 keepalive off maxkeepaliverequests 100 keepalivetimeout 15 listen 80 loadmodule proxy_module modules/mod_proxy.so loadmodule proxy_balancer_module modules/mod_proxy_balancer.so loadmodule proxy_ftp_module modules/mod_proxy_ftp.so loadmodule proxy_http_module modules/mod_proxy_http.so loadmodule proxy_ajp_module modules/mod_proxy_ajp.so loadmodule proxy_connect_module modules/mod_proxy_connect.so loadmodule cache_module modules/mod_cache.so include conf.d/*.conf user apache group apache ### section 2: 'main' server configuration serveradmin root@localhost usecanonicalname off <directory /> options followsymlinks allowoverride none     order deny,allow     allow </directory>  <directory "/var/www/html"> options indexes     options +indexes allowoverride none order deny,allow allow </directory>  hostnamelookups off  errorlog logs/error_log  loglevel debug  <ifmodule mod_proxy.c> proxyrequests on <proxy *> order deny,allow deny allow .sandia.gov </proxy>  <virtualhost *:80> servername rmdy-mtr-p1.domain.com serveralias rmdy-mtr-p1 proxyrequests     off proxypreservehost on  proxypass /arsys/ ajp://localhost:8080/opt/local/bmc/arsystem/midtier/   retry=1 acquire=3000 timeout=600 keepalive=on proxypassreverse /arsys/ ajp://localhost:80/opt/local/bmc/arsystem/midtier/  proxypass /kinetic/ ajp://localhost:8009/opt/apache/tomcat7.0/webapps/kinetic/ retry=1 acquire=3000 timeout=600 keepalive=on proxypassreverse /kinetic/ ajp://localhost:80/opt/apache/tomcat7.0/webapps/kinetic/  </virtualhost> 

server.xml file:

<?xml version="1.0" encoding="iso-8859-1"?> <server port="8006" shutdown="shutdown"> <listener classname="org.apache.catalina.core.aprlifecyclelistener"/> <listener classname="org.apache.catalina.mbeans.globalresourceslifecyclelistener"/> <!-- global jndi resources --> <globalnamingresources> <!-- test entry demonstration purposes --> <environment name="simplevalue" type="java.lang.integer" value="30"/> <resource auth="container" description="user database can updated , saved"             factory="org.apache.catalina.users.memoryuserdatabasefactory"             name="userdatabase"             pathname="conf/tomcat-users.xml"             type="org.apache.catalina.userdatabase"/> </globalnamingresources>  <!-- define tomcat stand-alone service --> <service name="catalina"> <connector port="8080" maxhttpheadersize="65000" uriencoding="utf-8"            maxthreads="150" minsparethreads="25" maxsparethreads="75"            enablelookups="false" protocol="ajp/1.3" redirectport="8080" acceptcount="100" connectiontimeout="20000" disableuploadtimeout="false" />   <!-- define non-ssl http/1.1 connector on port 8009 --> <connector port="8009" maxhttpheadersize="65000" uriencoding="utf-8"            maxthreads="150" minsparethreads="25" maxsparethreads="75"            enablelookups="false" protocol="ajp/1.3" redirectport="8009" acceptcount="100"            connectiontimeout="20000" disableuploadtimeout="false" /> 

in catalina.out log seeing several different issues. believe the:

11 may 2015 09:17:44 - connects rmdy-ars-p1:2222 through java rpc failed with: error (90): cannot establish network connection ar system server; connection timed out rmdy-ars-p1:2222 

is because connection between midtier , ars server hasn't been set yet. whole log since restarted morning , tested yet again is:

may 11, 2015 8:51:57 org.apache.catalina.startup.setallpropertiesrule begin warning: [setallpropertiesrule]{server/service/connector} setting property 'maxhttpheadersize' '65000' did not find matching property. may 11, 2015 8:51:57 org.apache.catalina.startup.setallpropertiesrule begin warning: [setallpropertiesrule]{server/service/connector} setting property 'maxsparethreads' '75' did not find matching property. may 11, 2015 8:51:57 org.apache.catalina.startup.setallpropertiesrule begin warning: [setallpropertiesrule]{server/service/connector} setting property 'disableuploadtimeout' 'false' did not find matching property. may 11, 2015 8:51:57 org.apache.catalina.startup.setallpropertiesrule begin warning: [setallpropertiesrule]{server/service/connector} setting property 'maxhttpheadersize' '65000' did not find matching property. may 11, 2015 8:51:57 org.apache.catalina.startup.setallpropertiesrule begin warning: [setallpropertiesrule]{server/service/connector} setting property 'maxsparethreads' '75' did not find matching property. may 11, 2015 8:51:57 org.apache.catalina.startup.setallpropertiesrule begin warning: [setallpropertiesrule]{server/service/connector} setting property 'disableuploadtimeout' 'false' did not find matching property. may 11, 2015 8:51:58 org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host} setting property 'xmlnamespaceaware' 'false' did not find matching property. may 11, 2015 8:51:58 org.apache.tomcat.util.digester.setpropertiesrule begin warning: [setpropertiesrule]{server/service/engine/host} setting property 'xmlvalidation' 'false' did not find matching property. may 11, 2015 8:51:58 org.apache.catalina.startup.setcontextpropertiesrule begin warning: [setcontextpropertiesrule]{context} setting property 'deployonstartup' 'true' did not find matching property. -------------------------- last shutdown state :{state=viewstat_completed, cache_timestamp=1431027208192} validating cache..... valid cache found in path: /opt/local/bmc/arsystem/midtier/cache/1431027208192 11 may 2015 08:52:27 - root webapplicationcontext: initialization started 11 may 2015 08:52:27 - refreshing org.springframework.web.context.support.xmlwebapplicationcontext@2f035cf2: display name [root webapplicationcontext]; startup date [mon may 11 08:52:27 mdt 2015]; root of context hierarchy 11 may 2015 08:52:27 - loading xml bean definitions class path resource [meta-inf/applicationcontext.xml] 11 may 2015 08:52:28 - bean factory application context [org.springframework.web.context.support.xmlwebapplicationcontext@2f035cf2]: org.springframework.beans.factory.support.defaultlistablebeanfactory@27aaa0d4 11 may 2015 08:52:28 - pre-instantiating singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@27aaa0d4: defining beans [proxytemplate,configuration,formcache,fieldmapcache,formfieldcache,goatfiel mapcache,activelinkcache,fieldgraphcache,htmldatacache,jsdatacache,vfhtmldatacache,vfjsdatacache,aruserpreferencescache,arusersearchescache,skindefcache,skinscache,iformservicecacheaspect,iformfieldservicecacheaspect,ifieldmapservicecacheaspect,igoatfieldmapservicecacheaspect,iactivelinkservicecacheaspect,ifieldgraphservicecacheaspect,idhtmlservicecacheaspect,iaruserpreferencesservicecacheaspect,iarusersearchesservicecacheaspect,iskinservicecacheaspect,controlfieldaspect,trimfieldaspect,panelfieldaspect,datafieldaspect,vertnavbaraspect,viewinfoaspect,viewfieldaspect,attachmentfieldaspect,tablefieldaspect,applistaspect,formservice,fieldmapservice,formfieldservice,goatfieldfactory,goatfieldmapservice,goatfieldservice,emitterfactory,fieldgraphservice,skinservice,activelinkservice,aruserpreferencesservice,arusersearchesservice,dhtmlservice,dhtmlrequestservice,com.remedy.arsys.goat.form#0,com.remedy.arsys.goat.form#1,com.remedy.arsys.goat.field.goatfield#0,com.remedy.arsys.goat.field.fieldgraph#0,com.remedy.arsys.goat.activelink#0,com.remedy.arsys.stubs.goatservlet#0,com.remedy.arsys.stubs.goatservlet#1]; root of factory hierarchy 11 may 2015 08:52:28 - trying load configuration arsys_api.xml 11 may 2015 08:52:28 - not load optional configuration arsys_api.xml 11 may 2015 08:52:28 - trying load configuration default.xml 11 may 2015 08:52:28 - jrpcmode: true 11 may 2015 08:52:28 - jniloadmode: 1 11 may 2015 08:52:28 - apirecordingmode: 0 11 may 2015 08:52:28 - apirecordinglogdir: 11 may 2015 08:52:28 - useconnectionpooling: true 11 may 2015 08:52:28 - maxproxiesperserver: 80 11 may 2015 08:52:28 - idleconnectionsperserver: 5 11 may 2015 08:52:28 - connectiontimeout: 0 11 may 2015 08:52:28 - connectionlifespan: 0 11 may 2015 08:52:28 - timeunit: minutes 11 may 2015 08:52:28 - minimumsupportedserverrpcversion: 12 11 may 2015 08:52:28 - connectionmaxretries: 1 11 may 2015 08:52:28 - timelagbetweenretriesmillsec: 100 11 may 2015 08:52:28 - stringizefieldassignments: false 11 may 2015 08:52:28 - stringizesetifqualification: false 11 may 2015 08:52:28 - uselegacyqualparser: false 11 may 2015 08:52:28 - uselegacyassignparser: false 11 may 2015 08:52:28 - uselegacyqualformatter: false 11 may 2015 08:52:28 - uselegacyassignformatter: false 11 may 2015 08:52:28 - usepooling: true 11 may 2015 08:52:28 - , pool setting info: , # maxproxyperserver- 80, # idleconnectionsperserver- 5, connectiontimeout setting- 00:00:00, connectionlifespan setting- 00:00:00 11 may 2015 08:52:28 - currently, connection pooling true 11 may 2015 08:52:28 - client adjusts connection variables maximumpoolsize = 80 minidleproxysize = 5 connectiontimeout = 0 timeunit = null 11 may 2015 08:52:28 - client sets useconnectionpooling : true 11 may 2015 08:52:29 - root webapplicationcontext: initialization completed in 1338 ms 11 may 2015 08:52:29 - currently, connection pooling true 11 may 2015 08:52:29 - client sets connection limits per server :80 11 may 2015 08:52:29 - usepooling: true 11 may 2015 08:52:29 - , pool setting info: , # maxproxyperserver- 80, # idleconnectionsperserver- 5, connectiontimeout setting- 00:00:00, connectionlifespan setting- 00:00:00 11 may 2015 08:52:29 - client sets useconnectionpooling : true 11 may 2015 08:52:29 - apitimeout system property : null 11 may 2015 08:52:29 - apitimeout environment : null 11 may 2015 08:52:29 - aroverlaygroups system property : null 11 may 2015 08:52:29 - aroverlaygroups environment : null 11 may 2015 08:52:29 - fipsproviderjsafejce installed = false 11 may 2015 08:54:36 - trying load configuration arsys_api.xml 11 may 2015 08:54:36 - not load optional configuration arsys_api.xml 11 may 2015 08:54:36 - trying load configuration default.xml 11 may 2015 08:54:37 - connects rmdy-ars-p1:2222 through java rpc failed with: error (90): cannot establish network connection ar system server; connection timed out rmdy-ars-p1:2222 11 may 2015 08:54:37 - running on mid tier version 8.1.02 201408260235 11 may 2015 08:56:43 - connects rmdy-ars-p1:2222 through java rpc failed with: error (90): cannot establish network connection ar system server; connection timed out rmdy-ars-p1:2222   11 may 2015 09:00:56 - unable find required classes (javax.activation.datahandler , javax.mail.internet.mimemultipart). attachment support disabled. may 11, 2015 9:01:08 com.sun.xml.ws.transport.http.deploymentdescriptorparser parseadapters warning: wsservlet17: duplicate endpoint name may 11, 2015 9:01:09 org.glassfish.gmbal.impl.jmxregistrationmanager resumeregistration 2015-05-11 09:01:09,156  info [localhost-startstop-1 ] - starting kinetic task. 2015-05-11 09:01:09,167  info [localhost-startstop-1 ] - preparing kinetic task engine runtime. 2015-05-11 09:01:15,167  info [localhost-startstop-1 ] - preparing remedy api. 2015-05-11 09:01:16,514  info [localhost-startstop-1 ] - loading configuration manager using data directory: /opt/apache/tomcat7.0/webapps/kinetictask/web-inf/data 2015-05-11 09:01:16,533 debug [localhost-startstop-1 ] - loading properties file: /opt/apache/tomcat7.0/webapps/kinetictask/web-inf/data/config.properties 2015-05-11 09:01:16,533  warn [localhost-startstop-1 ] - properties file not exist: /opt/apache/tomcat7.0/webapps/kinetictask/web-inf/data/config.properties 2015-05-11 09:01:16,537  info [localhost-startstop-1 ] - web application instance has not yet been configured. not create log file null created default console logger skipping cache initialization in surveyinit. loaderror: no such file load -- file:/opt/apache/tomcat7.0/webapps/kinetic/web-inf/lib/kinetic-cloner-lib.jar!/lib/kinetic_cloner/cloner require @ org/jruby/rubykernel.java:1038 require @ file:/opt/apache/tomcat7.0/webapps/kinetic/web-inf/lib/jruby-complete-1.6.5.jar!/meta-inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36  __file__ @ lib/kinetic_cloner.rb:15   each @ org/jruby/rubyarray.java:1612 (root) @ lib/kinetic_cloner.rb:14 require @ org/jruby/rubykernel.java:1038 (root) @ file:/opt/apache/tomcat7.0/webapps/kinetic/web-inf/lib/kinetic-cloner-lib.jar!/kinetic-cloner.rb:1 require @ org/jruby/rubykernel.java:1038 (root) @ file:/opt/apache/tomcat7.0/webapps/kinetic/web-inf/lib/kinetic-cloner-lib.jar!/kinetic-cloner.rb:1 11 may 2015 09:03:01 - connects rmdy-ars-p1:2222 through java rpc failed with: error (90): cannot establish network connection ar system server; connection timed out rmdy-ars-p1:2222 arerr [90] cannot establish network connection ar system server : connection timed out rmdy-ars-p1:2222     @ com.remedy.arsys.stubs.serverlogin.<init>(serverlogin.java:297)     @ com.remedy.arsys.stubs.serverlogin.get(serverlogin.java:135)     @ com.remedy.arsys.stubs.serverlogin.getadmin(serverlogin.java:167)     @ com.remedy.arsys.stubs.serverlogin.getadmin(serverlogin.java:148)     @ com.remedy.arsys.share.serverinfo.get(serverinfo.java:352)     @ com.remedy.arsys.share.cache$serverreaper$1.run(cache.java:850) caused by: error (90): cannot establish network connection ar system server; connection timed out rmdy-ars-p1:2222     @ com.bmc.arsys.apitransport.apiproxyjrpcbase.connectiontry(unknown source)     @ com.bmc.arsys.api.proxyjrpc.getrpcclient(unknown source)     @ com.bmc.arsys.api.proxyjrpc.<init>(unknown source)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)     @ java.lang.reflect.constructor.newinstance(constructor.java:422)     @ com.bmc.arsys.apitransport.connection.c.a(unknown source)     @ com.bmc.arsys.apitransport.connection.c.createproxy(unknown source)     @ com.bmc.arsys.api.proxymanager.createproxy(unknown source)     @ com.bmc.arsys.api.proxypool.createproxy(unknown source)     @ com.bmc.arsys.apitransport.connection.a.get(unknown source)     @ com.bmc.arsys.apitransport.connection.b.getproxy(unknown source)     @ com.bmc.arsys.api.poolingproxymanager.getproxy(unknown source)     @ com.bmc.arsys.apitransport.connection.b.getproxy(unknown source)     @ com.bmc.arsys.api.arserveruser.useprivaterpcqueue(unknown source)     @ com.remedy.arsys.stubs.serverlogin.<init>(serverlogin.java:279)     ... 5 more  11 may 2015 09:17:44 - connects rmdy-ars-p1:2222 through java rpc failed with: error (90): cannot establish network connection ar system server; connection timed out rmdy-ars-p1:2222 

i have tried bunch of things. tried doing mod_ajp first, because i'm more used it. it's better suited situations app1.company.com , app2.company.com , not company.com/app1 , company.com/app2. make 1 work, not 2 or 3 (my ultimate goal).

speaking of situations, third web app deployed in webapps folder kinetictask, , don't know why firing off in log files when have no mention of in current config. want these 2 working first , add it....so don't know why that's coming @ all.

the /var/log/httpd/error.log:

[mon may 11 10:24:00 2015] [debug] mod_proxy_ajp.c(45): proxy: ajp: canonicalising url //localhost:8080/opt/local/bmc/arsystem/midtier/ [mon may 11 10:24:00 2015] [debug] proxy_util.c(1521): [client 134.253.176.154] proxy: ajp: found worker ajp://localhost:8080/opt/local/bmc/arsystem/midtier/ ajp://localhost:8080/opt/local/bmc/arsystem/midtier/ [mon may 11 10:24:00 2015] [debug] mod_proxy.c(1020): running scheme ajp handler (attempt 0) [mon may 11 10:24:00 2015] [debug] mod_proxy_http.c(1957): proxy: http: declining url ajp://localhost:8080/opt/local/bmc/arsystem/midtier/ [mon may 11 10:24:00 2015] [debug] mod_proxy_ajp.c(709): proxy: ajp: serving url ajp://localhost:8080/opt/local/bmc/arsystem/midtier/ [mon may 11 10:24:00 2015] [debug] proxy_util.c(2026): proxy: ajp: has acquired connection (localhost) [mon may 11 10:24:00 2015] [debug] proxy_util.c(2082): proxy: connecting ajp://localhost:8080/opt/local/bmc/arsystem/midtier/ localhost:8080 [mon may 11 10:24:00 2015] [debug] proxy_util.c(2209): proxy: connected /opt/local/bmc/arsystem/midtier/ localhost:8080 [mon may 11 10:24:00 2015] [debug] proxy_util.c(2460): proxy: ajp: fam 10 socket created connect localhost [mon may 11 10:24:00 2015] [debug] ajp_header.c(224): ajp_marshal_into_msgb [mon may 11 10:24:00 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[0] [accept] = [text/html, application/xhtml+xml, */*] [mon may 11 10:24:00 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[1] [accept-language] = [en-us] [mon may 11 10:24:00 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[2] [user-agent] = [mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; rv:11.0) gecko] [mon may 11 10:24:00 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[3] [accept-encoding] = [gzip, deflate] [mon may 11 10:24:00 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[4] [host] = [rmdy-mtr-p1.sandia.gov] [mon may 11 10:24:00 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[5] [dnt] = [1] [mon may 11 10:24:00 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[6] [connection] = [keep-alive] [mon may 11 10:24:00 2015] [debug] ajp_header.c(450): ajp_marshal_into_msgb: done [mon may 11 10:24:00 2015] [debug] mod_proxy_ajp.c(269): proxy: apr_bucket_is_eos [mon may 11 10:24:00 2015] [debug] mod_proxy_ajp.c(274): proxy: data read (max 8186 @ 4) [mon may 11 10:24:00 2015] [debug] mod_proxy_ajp.c(289): proxy: got 0 bytes of data [mon may 11 10:24:00 2015] [debug] ajp_header.c(687): ajp_read_header: ajp_ilink_received 04 [mon may 11 10:24:00 2015] [debug] ajp_header.c(697): ajp_parse_type: got 04 [mon may 11 10:24:00 2015] [debug] ajp_header.c(516): ajp_unmarshal_response: status = 404 [mon may 11 10:24:00 2015] [debug] ajp_header.c(537): ajp_unmarshal_response: number of headers = 3 [mon may 11 10:24:00 2015] [debug] ajp_header.c(599): ajp_unmarshal_response: header[0] [content-type] = [text/html;charset=utf-8] [mon may 11 10:24:00 2015] [debug] ajp_header.c(609): ajp_unmarshal_response: ap_set_content_type done [mon may 11 10:24:00 2015] [debug] ajp_header.c(599): ajp_unmarshal_response: header[1] [content-language] = [en] [mon may 11 10:24:00 2015] [debug] ajp_header.c(599): ajp_unmarshal_response: header[2] [content-length] = [1013] [mon may 11 10:24:00 2015] [debug] ajp_header.c(687): ajp_read_header: ajp_ilink_received 03 [mon may 11 10:24:00 2015] [debug] ajp_header.c(697): ajp_parse_type: got 03 [mon may 11 10:24:00 2015] [debug] ajp_header.c(687): ajp_read_header: ajp_ilink_received 05 [mon may 11 10:24:00 2015] [debug] ajp_header.c(697): ajp_parse_type: got 05 [mon may 11 10:24:00 2015] [debug] mod_proxy_ajp.c(616): proxy: got response (null) (localhost) [mon may 11 10:24:00 2015] [debug] proxy_util.c(2044): proxy: ajp: has released connection (localhost)  [mon may 11 10:24:07 2015] [debug] mod_proxy_ajp.c(45): proxy: ajp: canonicalising url //localhost:8009/opt/apache/tomcat7.0/webapps/kinetic/ [mon may 11 10:24:07 2015] [debug] proxy_util.c(1521): [client 134.253.176.154] proxy: ajp: found worker ajp://localhost:8009/opt/apache/tomcat7.0/webapps/kinetic/ ajp://localhost:8009/opt/apache/tomcat7.0/webapps/kinetic/ [mon may 11 10:24:07 2015] [debug] mod_proxy.c(1020): running scheme ajp handler (attempt 0) [mon may 11 10:24:07 2015] [debug] mod_proxy_http.c(1957): proxy: http: declining url ajp://localhost:8009/opt/apache/tomcat7.0/webapps/kinetic/ [mon may 11 10:24:07 2015] [debug] mod_proxy_ajp.c(709): proxy: ajp: serving url ajp://localhost:8009/opt/apache/tomcat7.0/webapps/kinetic/ [mon may 11 10:24:07 2015] [debug] proxy_util.c(2026): proxy: ajp: has acquired connection (localhost) [mon may 11 10:24:07 2015] [debug] proxy_util.c(2082): proxy: connecting ajp://localhost:8009/opt/apache/tomcat7.0/webapps/kinetic/ localhost:8009 [mon may 11 10:24:07 2015] [debug] proxy_util.c(2209): proxy: connected /opt/apache/tomcat7.0/webapps/kinetic/ localhost:8009 [mon may 11 10:24:07 2015] [debug] proxy_util.c(2460): proxy: ajp: fam 10 socket created connect localhost [mon may 11 10:24:07 2015] [debug] ajp_header.c(224): ajp_marshal_into_msgb [mon may 11 10:24:07 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[0] [accept] = [text/html, application/xhtml+xml, */*] [mon may 11 10:24:07 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[1] [accept-language] = [en-us] [mon may 11 10:24:07 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[2] [user-agent] = [mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; rv:11.0) gecko] [mon may 11 10:24:07 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[3] [accept-encoding] = [gzip, deflate] [mon may 11 10:24:07 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[4] [host] = [rmdy-mtr-p1.sandia.gov] [mon may 11 10:24:07 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[5] [dnt] = [1] [mon may 11 10:24:07 2015] [debug] ajp_header.c(290): ajp_marshal_into_msgb: header[6] [connection] = [keep-alive] [mon may 11 10:24:07 2015] [debug] ajp_header.c(450): ajp_marshal_into_msgb: done [mon may 11 10:24:07 2015] [debug] mod_proxy_ajp.c(269): proxy: apr_bucket_is_eos [mon may 11 10:24:07 2015] [debug] mod_proxy_ajp.c(274): proxy: data read (max 8186 @ 4) [mon may 11 10:24:07 2015] [debug] mod_proxy_ajp.c(289): proxy: got 0 bytes of data [mon may 11 10:24:07 2015] [debug] ajp_header.c(687): ajp_read_header: ajp_ilink_received 04 [mon may 11 10:24:07 2015] [debug] ajp_header.c(697): ajp_parse_type: got 04 [mon may 11 10:24:07 2015] [debug] ajp_header.c(516): ajp_unmarshal_response: status = 404 [mon may 11 10:24:07 2015] [debug] ajp_header.c(537): ajp_unmarshal_response: number of headers = 3  [mon may 11 10:24:07 2015] [debug] ajp_header.c(599): ajp_unmarshal_response: header[0] [content-type] = [text/html;charset=utf-8] [mon may 11 10:24:07 2015] [debug] ajp_header.c(609): ajp_unmarshal_response: ap_set_content_type done [mon may 11 10:24:07 2015] [debug] ajp_header.c(599): ajp_unmarshal_response: header[1] [content-language] = [en] [mon may 11 10:24:07 2015] [debug] ajp_header.c(599): ajp_unmarshal_response: header[2] [content-length] = [1025] [mon may 11 10:24:07 2015] [debug] ajp_header.c(687): ajp_read_header: ajp_ilink_received 03 [mon may 11 10:24:07 2015] [debug] ajp_header.c(697): ajp_parse_type: got 03 [mon may 11 10:24:07 2015] [debug] ajp_header.c(687): ajp_read_header: ajp_ilink_received 05 [mon may 11 10:24:07 2015] [debug] ajp_header.c(697): ajp_parse_type: got 05 [mon may 11 10:24:07 2015] [debug] mod_proxy_ajp.c(616): proxy: got response (null) (localhost) [mon may 11 10:24:07 2015] [debug] proxy_util.c(2044): proxy: ajp: has released connection (localhost) 

so using mod_jk kept simple. httpd.conf file needs redirect commands call tomcat work. using virtual hosts entry confuses issue. in virtual host section apache work with. jkmount go directly tomcat. httpd.conf needs see is:

loadmodule jk_module  /etc/httpd/modules/mod_jk_apache_2.2.linux_64.so jkworkersfile  /opt/apache/tomcat7.0/conf/worker.properties jklogfile  /etc/httpd/logs/mod_jk.log jkloglevel  info jklogstampformat  "[%a %b %d %h:%m:%s %y]" jkoptions  +forwarduriescaped +forwarduricompatunparsed jkmountcopy on jkmount  /arsys/* worker1 jkmount  /kinetic/* worker2 jkmount  /kinetictask/* worker3 

so if hit webserver.com/arsys/ hits httpd.conf, sees jkmount command. redirects worker1 property in worker.properties like:

worker.list=worker1 worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 

keep in mind must on different port avoid conflict other 2 are:

worker.list=worker2 worker.worker1.port=8019 worker.worker1.host=localhost worker.worker1.type=ajp13  worker.list=worker3 worker.worker1.port=8099 worker.worker1.host=localhost worker.worker1.type=ajp13 

so request going here , see worker should listening on port 8009 in tomcat. note: thought each worker property needed reflect worker# (1, 2, 3, etc...) thought example worker.worker1.port=8099 should worker.worker3, doesn't seem matter.

so have in server.xml open ports. kiss...keep simple:

 <!-- define ajp 1.3 connector on port 8009 --> <connector port="8009" uriencoding="utf-8" enablelookups="false" redirectport="8443" protocol="ajp/1.3" />  <!-- define ajp 1.3 connector on port 8019 --> <connector port="8019" uriencoding="utf-8" enablelookups="false" redirectport="8443" protocol="ajp/1.3" />  <!-- define ajp 1.3 connector on port 8099 --> <connector port="8099" uriencoding="utf-8" enablelookups="false" redirectport="8443" protocol="ajp/1.3" /> 

tomcat rest if there war file in webapp folder.

the redirectport threw me off. stay "8443" if don't use ssl. shouldn't loop itself, ie, connector port="8099" redirectport="8099" bad.

that got me working.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -