users@glassfish.java.net

Re: need help with GlassFish install front-ended by Apache2 ...

From: <forums_at_java.net>
Date: Mon, 13 Feb 2012 12:15:33 -0600 (CST)

Hi Alexey,

See http://docs.oracle.com/cd/E18930_01/html/821-2416/ [1] and click on the
PDF link, turn to page 151 and see Steps 5 and 6, which shows to execute 3
lines of code, exactly as I've done here (see above). Amy's blod doesn't
comply with this 3.1.1 document. Is there an error in the document? Or, which
method is correct? The document creates both http-listener and
network-listener. Amy only creates http-listener, and the set command is
different between the two. I assume the 3.1.1 documentation to be more
relevant than Amy's blog, since it's a few years old.

What I did just now was:

asadmin> delete-http-listener gf_listener --port 4850

asadmin> delete-network-listener jk-connector --port 4850

asadmin> create-http-listener --listenerport 8009 --listeneraddress 0.0.0.0
--defaultvs server jk-connector --port 4850

asadmin> set
configs.config.server-config.network-config.network-listeners.network-listener.jk-connector.jk-enabled=true
--port 4850

following your recommendation, and I still have the same errors, except now
it's only for one listener instead of two. I guess that's an improvement if
indeed only the http-listener is required (and the network-listener is not;
can you confirm?). 

Here's the server.log snippet now:

[#|2012-02-13T09:58:34.900-0800|INFO|glassfish3.1.1|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=Thread-2;|Registered
org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
persistence-type = replicated in BackingStoreFactoryRegistry|#]
[#|2012-02-13T09:58:35.676-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=13;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 48ms - bound to [0.0.0.0:8080]|#]
[#|2012-02-13T09:58:35.676-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=12;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 15ms - bound to [0.0.0.0:3700]|#]
[#|2012-02-13T09:58:35.676-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=14;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 26ms - bound to [0.0.0.0:4850]|#]
[#|2012-02-13T09:58:35.676-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 10ms - bound to [0.0.0.0:7676]|#]
[#|2012-02-13T09:58:35.676-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=15;_ThreadName=Thread-2;|Grizzly
Framework 1.9.36 started in: 31ms - bound to [0.0.0.0:8181]|#]
[#|2012-02-13T09:58:35.747-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=10;_ThreadName=Thread-2;|The
Admin Console is already installed, but not yet loaded.|#]
[#|2012-02-13T09:58:36.098-0800|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0169:
Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#]
[#|2012-02-13T09:58:36.111-0800|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0169:
Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]|#]
[#|2012-02-13T09:58:36.121-0800|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0169:
Created HTTP listener [admin-listener] on host/port [0.0.0.0:4850]|#]
[#|2012-02-13T09:58:36.140-0800|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0170:
Apache mod_jk/jk2 attached to virtual-server [server] listening on port
[8,009]|#]
[#|2012-02-13T09:58:36.178-0800|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0171:
Created virtual server [server]|#]
[#|2012-02-13T09:58:36.181-0800|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0171:
Created virtual server [__asadmin]|#]
[#|2012-02-13T09:58:36.829-0800|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0172:
Virtual server [server] loaded default web module []|#]
[#|2012-02-13T09:58:37.005-0800|SEVERE|glassfish3.1.1|org.apache.jk.server.JkMain|_ThreadID=10;_ThreadName=Thread-2;|No
class name for worker.worker1 worker|#]
[#|2012-02-13T09:58:37.005-0800|SEVERE|glassfish3.1.1|org.apache.jk.server.JkMain|_ThreadID=10;_ThreadName=Thread-2;|No
class name for worker.worker1 worker|#]
[#|2012-02-13T09:58:37.005-0800|SEVERE|glassfish3.1.1|org.apache.jk.server.JkMain|_ThreadID=10;_ThreadName=Thread-2;|No
class name for worker worker|#]
[#|2012-02-13T09:58:37.006-0800|SEVERE|glassfish3.1.1|org.apache.jk.server.JkMain|_ThreadID=10;_ThreadName=Thread-2;|No
class name for worker.worker1 worker|#]
[#|2012-02-13T09:58:37.006-0800|INFO|glassfish3.1.1|org.apache.jk.common.ChannelSocket|_ThreadID=10;_ThreadName=Thread-2;|JK:
ajp13 listening on /0.0.0.0:8009|#]
[#|2012-02-13T09:58:37.012-0800|WARNING|glassfish3.1.1|org.apache.tomcat.util.threads.ThreadPool|_ThreadID=10;_ThreadName=Thread-2;|threadpool.max_threads_too_low|#]
[#|2012-02-13T09:58:37.026-0800|INFO|glassfish3.1.1|org.apache.jk.server.JkMain|_ThreadID=10;_ThreadName=Thread-2;|Jk
running ID=0 time=0/32 config=null|#]
[#|2012-02-13T09:58:37.603-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=10;_ThreadName=Thread-2;|core.start_container_done|#]
[#|2012-02-13T09:58:37.892-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-2;|SEC1002:
Security Manager is OFF.|#]
[#|2012-02-13T09:58:38.087-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-2;|SEC1010:
Entering Security Startup Service|#]
[#|2012-02-13T09:58:38.107-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-2;|SEC1143:
Loading policy provider
com.sun.enterprise.security.provider.PolicyWrapper.|#]
[#|2012-02-13T09:58:38.235-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-2;|SEC1115:
Realm [admin-realm] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created.|#]
[#|2012-02-13T09:58:38.244-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-2;|SEC1115:
Realm [file] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully
created.|#]
[#|2012-02-13T09:58:38.247-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-2;|SEC1115:
Realm [certificate] of classtype
[com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
successfully created.|#]
[#|2012-02-13T09:58:38.250-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-2;|SEC1011:
Security Service(s) Started Successfully|#]
[#|2012-02-13T09:58:38.905-0800|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-2;|WEB0671:
Loading application [hello] at [/hello]|#]
[#|2012-02-13T09:58:38.906-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-2;|CORE10010:
Loading application hello done in 1,248 ms|#]
[#|2012-02-13T09:58:38.907-0800|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-2;|GlassFish
Server Open Source Edition 3.1.1 (12) startup time : Felix (6,272ms), startup
services(4,541ms), total(10,813ms)|#]
 


[1] http://docs.oracle.com/cd/E18930_01/html/821-2416/

--
[Message sent by forum member 'gkk_gf']
View Post: http://forums.java.net/node/883417