Adobe Coldfusion Railo OpenBD Apache Tomcat Multiple Sites
Posted
by
chris hough
on Server Fault
See other posts from Server Fault
or by chris hough
Published on 2009-08-27T05:57:53Z
Indexed on
2012/04/14
11:32 UTC
Read the original article
Hit count: 394
Here's what I am trying to do, unless I am crazy:
I am trying to use Tomcat with the multiple workers, so far I got OpenBD working, but having trouble with Railo, and will be tackling Adobe after.
- each engine deployed as a war
- separated by different workers
- I wanted to keep both the sites and engines inside my sites directory
- I have to remap the symlink for the WEB-INF when I switch engines = have not found a way around this
my thought is to have everything separated into modules and I want to be able to execute both cfm and php code in a single site. Ideally, it would be amazing if there would be a way to not have to remap the symlink as well.
thoughts? can this be done? I am trying to mimic how this would be setup on a live server, not using eclipse for example. here is what I am working with so far:
my apache workers.properties
worker.list=openbd, openbdadmin, railo, railoadmin
worker.openbd.type=ajp13
worker.openbd.host=local.mydev.openbd
worker.openbd.port=8009
worker.openbdadmin.type=ajp13
worker.openbdadmin.host=local.admin.openbd
worker.openbdadmin.port=8009
worker.railo.type=ajp13
worker.railo.host=local.mydev.railo
worker.railo.port=8009
worker.railoadmin.type=ajp13
worker.railoadmin.host=local.admin.railo
worker.railoadmin.port=8009
my tomcat servers.xml
< Host name="local.admin.openbd"
appBase="/Users/[myusername]/Websites/coldfusion.engines"
unpackWARs="false" autoDeploy="true" xmlValidation="true"
xmlNamespaceAware="false">
< Context path="" docBase="openbd/"
reloadable="true" privileged="true"
antiResourceLocking="false" anitJARLocking="false" allowLinking="true">
< /Host>
< Host name="local.admin.railo"
appBase="/Users/[my username]/Websites/coldfusion.engines"
unpackWARs="false" autoDeploy="true" xmlValidation="true" xmlNamespaceAware="false">
< Context path="" docBase="railo/"
reloadable="true" privileged="true" antiResourceLocking="false"
anitJARLocking="false" allowLinking="true">
< /Host>
< Host name="local.mydev.openbd"
appBase="/Users/[my username]/Websites/coldfusion.engines"
unpackWARs="false" autoDeploy="true" xmlValidation="true" xmlNamespaceAware="false">
< Context path="" docBase="/Users/[my username]/Websites/example.mydev/wwwroot/"
reloadable="true" privileged="true" antiResourceLocking="false"
anitJARLocking="false" allowLinking="true">< /Context>
< /Host>
< Host name="local.mydev.railo" appBase="/Users/[my username]/Websites/coldfusion.engines" unpackWARs="false" autoDeploy="true" xmlValidation="true" xmlNamespaceAware="false">
< Context path="" docBase="/Users/[my username]/Websites/example.mydev/wwwroot/"
reloadable="true" privileged="true" antiResourceLocking="false"
anitJARLocking="false" allowLinking="true">
< /Host>
my apache vhosts
ServerName local.admin.openbd
DocumentRoot /Users/[my username]/Websites/coldfusion.engines/openBD/
#Mount OpenBD and tell it to only server cfml files
JkMount /*.cfm openbdadmin
ErrorLog "/Users/[my username]/Websites/apache.logs/local_openbdadmin_error.log"
ServerName local.admin.railo
DocumentRoot /Users/[my username]/Websites/coldfusion.engines/railo/
#Mount Railo and tell it to only server cfml files
JkMount /*.cfm railoadmin
ErrorLog "/Users/[my username]/Websites/apache.logs/local_railoadmin_error.log"
ServerName local.mydev
DocumentRoot /Users/[my username]/Websites/example.mydev/wwwroot
ErrorLog "/Users/[my username]/Websites/apache.logs/local_example_mydev_error.log"
ServerName local.mydev.openbd
DocumentRoot /Users/[my username]/Websites/example.mydev/wwwroot
#Mount OpenBD and tell it to only server cfml files
JkMount /*.cfm openbd
ErrorLog "/Users/[my username]/Websites/apache.logs/local_example_mydev_openbd_error.log"
ServerName local.mydev.railo
DocumentRoot /Users/[my username]/Websites/example.mydev/wwwroot
JkMount /*.cfm railo
ErrorLog "/Users/[my username]/Websites/apache.logs/local_example_mydev_railo_error.log"
my folder structure I am using
websites/apache.logs/
websites/coldfusion.engines/
websites/coldfusion.engines/cfusion/
websites/coldfusion.engines/openBD/
websites/coldfusion.engines/railo/
websites/example.mydev/
websites/example.mydev/wwwroot/
websites/example.mydev/wwwroot/index.cfm
websites/example.mydev/wwwroot/index.htm
websites/example.mydev/wwwroot/index.php
error log output [Thu Aug 27 00:54:50.443 2009] [11279:2686719776] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized
[Thu Aug 27 00:54:51.346 2009] [11280:2686719776] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized
[Thu Aug 27 00:55:18.963 2009] [11284:2686719776] [info] jk_open_socket::jk_connect.c (594): connect to 127.0.0.1:8009 failed (errno=61)
[Thu Aug 27 00:55:18.963 2009] [11284:2686719776] [info] ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=61)
[Thu Aug 27 00:55:18.963 2009] [11284:2686719776] [error] ajp_send_request::jk_ajp_common.c (1507): (openbdadmin) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=61)
[Thu Aug 27 00:55:18.963 2009] [11284:2686719776] [info] ajp_service::jk_ajp_common.c (2447): (openbdadmin) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Thu Aug 27 00:55:19.063 2009] [11284:2686719776] [info] jk_open_socket::jk_connect.c (594): connect to 127.0.0.1:8009 failed (errno=61)
[Thu Aug 27 00:55:19.063 2009] [11284:2686719776] [info] ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=61)
[Thu Aug 27 00:55:19.063 2009] [11284:2686719776] [error] ajp_send_request::jk_ajp_common.c (1507): (openbdadmin) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=61)
[Thu Aug 27 00:55:19.063 2009] [11284:2686719776] [info] ajp_service::jk_ajp_common.c (2447): (openbdadmin) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Thu Aug 27 00:55:19.063 2009] [11284:2686719776] [error] ajp_service::jk_ajp_common.c (2466): (openbdadmin) connecting to tomcat failed.
[Thu Aug 27 00:55:19.063 2009] [11284:2686719776] [info] jk_handler::mod_jk.c (2615): Service error=-3 for worker=openbdadmin
[Thu Aug 27 00:55:20.377 2009] [11283:2686719776] [info] jk_open_socket::jk_connect.c (594): connect to 127.0.0.1:8009 failed (errno=61)
[Thu Aug 27 00:55:20.377 2009] [11283:2686719776] [info] ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=61)
[Thu Aug 27 00:55:20.377 2009] [11283:2686719776] [error] ajp_send_request::jk_ajp_common.c (1507): (railoadmin) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=61)
[Thu Aug 27 00:55:20.377 2009] [11283:2686719776] [info] ajp_service::jk_ajp_common.c (2447): (railoadmin) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Thu Aug 27 00:55:20.477 2009] [11283:2686719776] [info] jk_open_socket::jk_connect.c (594): connect to 127.0.0.1:8009 failed (errno=61)
[Thu Aug 27 00:55:20.477 2009] [11283:2686719776] [info] ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening socket to (127.0.0.1:8009) (errno=61)
[Thu Aug 27 00:55:20.477 2009] [11283:2686719776] [error] ajp_send_request::jk_ajp_common.c (1507): (railoadmin) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=61)
[Thu Aug 27 00:55:20.477 2009] [11283:2686719776] [info] ajp_service::jk_ajp_common.c (2447): (railoadmin) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Thu Aug 27 00:55:20.477 2009] [11283:2686719776] [error] ajp_service::jk_ajp_common.c (2466): (railoadmin) connecting to tomcat failed.
[Thu Aug 27 00:55:20.477 2009] [11283:2686719776] [info] jk_handler::mod_jk.c (2615): Service error=-3 for worker=railoadmin
© Server Fault or respective owner