|
|
|||||||||||||||||||||||||||||||||||||||||||||
Amy Roh's Blog
Running GlassFish V3 with Apache httpdPosted by amyroh on June 24, 2009 at 04:36 PM | Permalink | Comments (4)GlassFish V3 has improved the way to front GlassFish with Apache HTTP Server. Unlike the V2 way where users had to copy tomcat-ajp.jar and commons-*.jar, you can just enable mod_jk in V3 using the network-listener's attribute "jk-enabled" without copying any additional jars into its lib directory. You can also create jk-connectors under different virtual-servers (not just default virtual-server "server" in V2) using the network-listener's "jk-enabled" attribute. Here are instructions. (1) Install Apache HTTP Server and mod_jk (2) Configure workers.properties and httpd.conf For example, apache2/config/workers.properties
# Define 1 real worker using ajp13
apache2/conf/httpd.conf
LoadModule jk_module /Users/Amy/apache2/modules/mod_jk-1.2.25-httpd-2.2.4.so
(3) Start Apache HTTP Server (4) Enable mod_jk using the following command
asadmin create-http-listener --listenerport 8009 --listeneraddress 0.0.0.0 --defaultvs server my-connector
(5) If you are using the glassfish-jk.properties file and not referencing it in httpd.conf, point to it using the following command:
asadmin create-jvm-options
-Dcom.sun.enterprise.web.connector.enableJK.propertyFile=domain-dir/config/glassfish-jk.properties
(6) Restart GlassFish The network-listener attribute "jk-enabled" is available from V3 b53 or later. |
June 2009
Search this blog:CategoriesCommunityCommunity: Glassfish Community: Java Enterprise J2EE Open Source Archives
June 2009 Recent EntriesRunning GlassFish V3 with Apache httpd Context (webapp) configuration in GlassFish GlassFish supports configurable AJP Connector. | ||||||||||||||||||||||||||||||||||||||||||||
|
|