java - Tomcat + Grails cluster doesnt work -
i have tomcat cluster on debian jessie, tomcat 8.0.29 2 instances , postgresql 9.5 ,apache 2.4 , mod_jk. when try run project in environment eerror. tested examples project , works fine. log iis this
01-feb-2016 19:07:39.474 severe [main] org.apache.catalina.ha.deploy.farmwardeployer.start farmwardeployer can work host cluster subelement! 01-feb-2016 19:07:39.537 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar despliegue del archivo /opt/tomcat8_nodo1/webapps/clusterjsp.war de la aplicación web 01-feb-2016 19:07:40.886 info [messagedispatch15interceptor.messagedispatchthread1] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:1 messages sent:0.00 mb (total) sent:0.00 mb (application) time:0.01 seconds tx speed:0.06 mb/sec (total) txspeed:0.06 mb/sec (application) error msg:0 rx msg:2 messages rx speed:0.00 mb/sec (since 1st msg) received:0.00 mb] 01-feb-2016 19:07:42.068 info [localhost-startstop-1] org.apache.catalina.util.sessionidgeneratorbase.createsecurerandom creation of securerandom instance session id generation using [sha1prng] took [1.489] milliseconds. 01-feb-2016 19:07:42.088 info [localhost-startstop-1] org.apache.catalina.tribes.tipis.abstractreplicatedmap.init initializing abstractreplicatedmap context name:localhost#/clusterjsp-map 01-feb-2016 19:07:42.310 info [localhost-startstop-1] org.apache.catalina.tribes.tipis.abstractreplicatedmap.init abstractreplicatedmap[localhost#/clusterjsp-map] initialization completed in 222 ms. 01-feb-2016 19:07:42.585 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar deployment of web application archive /opt/tomcat8_nodo1/webapps/clusterjsp.war has finished in 3.048 ms 01-feb-2016 19:07:45.652 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar despliegue del archivo /opt/tomcat8_nodo1/webapps/abacus.war de la aplicación web 01-feb-2016 19:14:05.387 info [localhost-startstop-1] org.apache.jasper.servlet.tldscanner.scanjars al menos un jar, que se ha explorado buscando tlds, aún no contenía tlds. activar historial de depuración para este historiador para una completa lista de los jars que fueron explorados y de los que nos se halló tlds. saltarse jars no necesarios durante la exploración puede dar lugar una mejora de tiempo significativa en el arranque y compilación de jsp . feb 01, 2016 7:14:05 pm org.apache.catalina.core.applicationcontext log informaciÓn: initializing atmosphereframework feb 01, 2016 7:14:05 pm org.apache.catalina.core.applicationcontext log informaciÓn: no spring webapplicationinitializer types detected on classpath feb 01, 2016 7:14:06 pm org.apache.catalina.core.applicationcontext log informaciÓn: initializing spring root webapplicationcontext feb 01, 2016 7:14:54 pm org.apache.tomcat.jdbc.pool.connectionpool init advertencia: maxactive smaller 1, setting maxactive to: 100 <strong> 2016-02-01 19:14:59,345 [localhost-startstop-1] error context.grailscontextloaderlistener - error initializing application: error creating bean name 'org.springframework.context.annotation.internalasyncannotationprocessor' defined in class path resource [org/springframework/scheduling/annotation/proxyasyncconfiguration.class]: instantiation of bean failed; nested exception org.springframework.beans.factory.beandefinitionstoreexception: factory method [public org.springframework.scheduling.annotation.asyncannotationbeanpostprocessor org.springframework.scheduling.annotation.proxyasyncconfiguration.asyncadvisor()] threw exception; nested exception java.lang.illegalargumentexception: @enableasync annotation metadata not injected org.springframework.beans.factory.beancreationexception: error creating bean name 'org.springframework.context.annotation.internalasyncannotationprocessor' defined in class path resource [org/springframework/scheduling/annotation/proxyasyncconfiguration.class]: instantiation of bean failed; nested exception org.springframework.beans.factory.beandefinitionstoreexception: factory method [public org.springframework.scheduling.annotation.asyncannotationbeanpostprocessor org.springframework.scheduling.annotation.proxyasyncconfiguration.asyncadvisor()] threw exception; nested exception java.lang.illegalargumentexception: @enableasync annotation metadata not injected @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: org.springframework.beans.factory.beandefinitionstoreexception: factory method [public org.springframework.scheduling.annotation.asyncannotationbeanpostprocessor org.springframework.scheduling.annotation.proxyasyncconfiguration.asyncadvisor()] threw exception; nested exception java.lang.illegalargumentexception: @enableasync annotation metadata not injected ... 5 more caused by: java.lang.illegalargumentexception: @enableasync annotation metadata not injected ... 5 more 2016-02-01 19:14:59,346 [localhost-startstop-1] error context.grailscontextloaderlistener - error initializing grails: error creating bean name 'org.springframework.context.annotation.internalasyncannotationprocessor' defined in class path resource [org/springframework/scheduling/annotation/proxyasyncconfiguration.class]: instantiation of bean failed; nested exception org.springframework.beans.factory.beandefinitionstoreexception: factory method [public org.springframework.scheduling.annotation.asyncannotationbeanpostprocessor org.springframework.scheduling.annotation.proxyasyncconfiguration.asyncadvisor()] threw exception; nested exception java.lang.illegalargumentexception: @enableasync annotation metadata not injected org.springframework.beans.factory.beancreationexception: error creating bean name 'org.springframework.context.annotation.internalasyncannotationprocessor' defined in class path resource [org/springframework/scheduling/annotation/proxyasyncconfiguration.class]: instantiation of bean failed; nested exception org.springframework.beans.factory.beandefinitionstoreexception: factory method [public org.springframework.scheduling.annotation.asyncannotationbeanpostprocessor org.springframework.scheduling.annotation.proxyasyncconfiguration.asyncadvisor()] threw exception; nested exception java.lang.illegalargumentexception: @enableasync annotation metadata not injected @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: org.springframework.beans.factory.beandefinitionstoreexception: factory method [public org.springframework.scheduling.annotation.asyncannotationbeanpostprocessor org.springframework.scheduling.annotation.proxyasyncconfiguration.asyncadvisor()] threw exception; nested exception java.lang.illegalargumentexception: @enableasync annotation metadata not injected ... 5 more caused by: java.lang.illegalargumentexception: @enableasync annotation metadata not injected ... 5 more feb 01, 2016 7:14:59 pm org.apache.catalina.core.standardcontext listenerstart grave: excepción enviando evento inicializado de contexto instancia de escuchador de clase org.codehaus.groovy.grails.web.context.grailscontextloaderlistener org.springframework.beans.factory.beancreationexception: error creating bean name 'org.springframework.context.annotation.internalasyncannotationprocessor' defined in class path resource [org/springframework/scheduling/annotation/proxyasyncconfiguration.class]: instantiation of bean failed; nested exception org.springframework.beans.factory.beandefinitionstoreexception: factory method [public org.springframework.scheduling.annotation.asyncannotationbeanpostprocessor org.springframework.scheduling.annotation.proxyasyncconfiguration.asyncadvisor()] threw exception; nested exception java.lang.illegalargumentexception: @enableasync annotation metadata not injected @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: org.springframework.beans.factory.beandefinitionstoreexception: factory method [public org.springframework.scheduling.annotation.asyncannotationbeanpostprocessor org.springframework.scheduling.annotation.proxyasyncconfiguration.asyncadvisor()] threw exception; nested exception java.lang.illegalargumentexception: @enableasync annotation metadata not injected ... 5 more caused by: java.lang.illegalargumentexception: @enableasync annotation metadata not injected ... 5 more 01-feb-2016 19:14:59.347 severe [localhost-startstop-1] org.apache.catalina.core.standardcontext.startinternal 1 or more listeners failed start. full details found in appropriate container log file 01-feb-2016 19:14:59.349 severe [localhost-startstop-1] org.apache.catalina.core.standardcontext.startinternal falló en arranque del contexto [/abacus] debido errores previos feb 01, 2016 7:14:59 pm org.apache.catalina.core.applicationcontext log informaciÓn: closing spring root webapplicationcontext 01-feb-2016 19:14:59.363 warning [localhost-startstop-1] org.apache.catalina.loader.webappclassloaderbase.clearreferencesjdbc la aplicación web [abacus] registró el conductor jdbc [org.postgresql.driver] pero falló al anular el registro mientras la aplicación web estaba parada. para prevenir un fallo de memoria, se ha anulado el registro del conductor jdbc por la fuerza. </strong> 01-feb-2016 19:14:59.371 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar deployment of web application archive /opt/tomcat8_nodo1/webapps/abacus.war has finished in 433.719 ms 01-feb-2016 19:14:59.373 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory despliegue del directorio /opt/tomcat8_nodo1/webapps/root de la aplicación web 01-feb-2016 19:14:59.434 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory /opt/tomcat8_nodo1/webapps/root has finished in 61 ms 01-feb-2016 19:14:59.435 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory despliegue del directorio /opt/tomcat8_nodo1/webapps/manager de la aplicación web 01-feb-2016 19:14:59.479 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory /opt/tomcat8_nodo1/webapps/manager has finished in 45 ms 01-feb-2016 19:14:59.479 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory despliegue del directorio /opt/tomcat8_nodo1/webapps/examples de la aplicación web 01-feb-2016 19:14:59.726 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory /opt/tomcat8_nodo1/webapps/examples has finished in 247 ms 01-feb-2016 19:14:59.726 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory despliegue del directorio /opt/tomcat8_nodo1/webapps/host-manager de la aplicación web 01-feb-2016 19:14:59.743 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deployment of web application directory /opt/tomcat8_nodo1/webapps/host-manager has finished in 17 ms 01-feb-2016 19:14:59.750 info [main] org.apache.coyote.abstractprotocol.start starting protocolhandler ["ajp-nio-8009"] 01-feb-2016 19:14:59.760 info [main] org.apache.catalina.startup.catalina.start server startup in 442905 ms 01-feb-2016 22:35:59.831 info [tribes-task-receiver-5] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:10,000 messages sent:6.81 mb (total) sent:6.81 mb (application) time:2.39 seconds tx speed:2.85 mb/sec (total) txspeed:2.85 mb/sec (application) error msg:0 rx msg:10,000 messages rx speed:0.00 mb/sec (since 1st msg) received:6.81 mb] 01-feb-2016 22:35:59.832 info [tribes-task-receiver-5] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:10,000 messages sent:6.81 mb (total) sent:6.81 mb (application) time:2.39 seconds tx speed:2.85 mb/sec (total) txspeed:2.85 mb/sec (application) error msg:0 rx msg:10,001 messages rx speed:0.00 mb/sec (since 1st msg) received:6.81 mb] 02-feb-2016 02:04:23.818 info [tribes-task-receiver-1] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:20,000 messages sent:13.62 mb (total) sent:13.62 mb (application) time:4.07 seconds tx speed:3.35 mb/sec (total) txspeed:3.35 mb/sec (application) error msg:0 rx msg:20,000 messages rx speed:0.00 mb/sec (since 1st msg) received:13.62 mb] 02-feb-2016 02:04:23.820 info [groupchannel-heartbeat-1] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:20,000 messages sent:13.62 mb (total) sent:13.62 mb (application) time:4.07 seconds tx speed:3.35 mb/sec (total) txspeed:3.35 mb/sec (application) error msg:0 rx msg:20,000 messages rx speed:0.00 mb/sec (since 1st msg) received:13.62 mb] 02-feb-2016 05:32:47.761 info [tribes-task-receiver-6] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:30,000 messages sent:20.43 mb (total) sent:20.43 mb (application) time:5.72 seconds tx speed:3.57 mb/sec (total) txspeed:3.57 mb/sec (application) error msg:0 rx msg:30,000 messages rx speed:0.00 mb/sec (since 1st msg) received:20.42 mb] 02-feb-2016 05:32:47.763 info [tribes-task-receiver-6] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:30,000 messages sent:20.43 mb (total) sent:20.43 mb (application) time:5.72 seconds tx speed:3.57 mb/sec (total) txspeed:3.57 mb/sec (application) error msg:0 rx msg:30,001 messages rx speed:0.00 mb/sec (since 1st msg) received:20.42 mb] 02-feb-2016 09:01:11.617 info [tribes-task-receiver-5] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:40,000 messages sent:27.23 mb (total) sent:27.24 mb (application) time:7.38 seconds tx speed:3.69 mb/sec (total) txspeed:3.69 mb/sec (application) error msg:0 rx msg:40,000 messages rx speed:0.00 mb/sec (since 1st msg) received:27.23 mb] 02-feb-2016 09:01:11.618 info [groupchannel-heartbeat-1] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:40,001 messages sent:27.24 mb (total) sent:27.24 mb (application) time:7.38 seconds tx speed:3.69 mb/sec (total) txspeed:3.69 mb/sec (application) error msg:0 rx msg:40,002 messages rx speed:0.00 mb/sec (since 1st msg) received:27.23 mb] 02-feb-2016 12:29:35.561 info [tribes-task-receiver-2] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:49,999 messages sent:34.04 mb (total) sent:34.04 mb (application) time:8.99 seconds tx speed:3.79 mb/sec (total) txspeed:3.79 mb/sec (application) error msg:0 rx msg:50,000 messages rx speed:0.00 mb/sec (since 1st msg) received:34.04 mb] 02-feb-2016 12:29:36.108 info [groupchannel-heartbeat-1] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:50,000 messages sent:34.04 mb (total) sent:34.05 mb (application) time:8.99 seconds tx speed:3.79 mb/sec (total) txspeed:3.79 mb/sec (application) error msg:0 rx msg:50,001 messages rx speed:0.00 mb/sec (since 1st msg) received:34.04 mb] 02-feb-2016 15:57:59.873 info [tribes-task-receiver-1] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:59,999 messages sent:40.85 mb (total) sent:40.85 mb (application) time:10.64 seconds tx speed:3.84 mb/sec (total) txspeed:3.84 mb/sec (application) error msg:0 rx msg:60,000 messages rx speed:0.00 mb/sec (since 1st msg) received:40.85 mb] 02-feb-2016 15:58:00.431 info [groupchannel-heartbeat-1] org.apache.catalina.tribes.group.interceptors.throughputinterceptor.report throughputinterceptor report[ tx msg:60,000 messages sent:40.85 mb (total) sent:40.85 mb (application) time:10.64 seconds tx speed:3.84 mb/sec (total) txspeed:3.84 mb/sec (application) error msg:0 rx msg:60,001 messages rx speed:0.00 mb/sec (since 1st msg) received:40.85 mb]
there many different possible causes problem. 2 top suspects are:
- you using plug-in triggering component scan of spring classes.
- your code has added component scan hitting spring classes.
a search "component-scan" throughout project can check 2 causes.
Comments
Post a Comment