Hi everyone.

I am trying to config tomcat nodes in a cluster enviroment, according
official documentation, a basic cluster can be achieved by uncomment the
tag: *<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>* in
the *server.xml* file. (
https://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html
<https://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html>  )

Until here, there is not problem. On logs files, you can see the cluster
connection between nodes.

But, when I try deploy *tomee.war* in a tomcat node, the following error
appears:


/feb 12, 2018 2:12:04 PM org.apache.catalina.startup.HostConfig deployWAR
INFORMACIÓN: Despliegue del archivo
LOCAL_PATH/apache-tomcat-7.0.75/webapps/tomee.war de la aplicación web
feb 12, 2018 2:12:05 PM org.apache.catalina.startup.TldConfig execute
INFORMACIÓN: At least one JAR was scanned for TLDs yet contained no TLDs.
Enable debug logging for this logger for a complete list of JARs that were
scanned but no TLDs were found in them. Skipping unneeded JARs during
scanning can improve startup time and JSP compilation time.
OpenEJB Loader init-params:
        There are no initialization parameters.
feb 12, 2018 2:12:05 PM org.apache.openejb.util.OptionsLog info
INFORMACIÓN: Using 'openejb.embedder.source=LoaderServlet'
feb 12, 2018 2:12:05 PM org.apache.openejb.util.OptionsLog info
INFORMACIÓN: Using 'openejb.embedder.source=LoaderServlet'
feb 12, 2018 2:12:05 PM org.apache.catalina.ha.session.JvmRouteBinderValve
stopInternal
INFORMACIÓN: JvmRouteBinderValve parada
feb 12, 2018 2:12:05 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
startInternal
INFORMACIÓN: Cluster is about to start
feb 12, 2018 2:12:05 PM org.apache.catalina.core.StandardPipeline addValve
GRAVE: StandardPipeline.addValve: start: 
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was
attempted ([before_start]) for component
[org.apache.catalina.ha.session.JvmRouteBinderValve[Catalina]] in state
[DESTROYED]
        at
org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:395)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
        at
org.apache.catalina.core.StandardPipeline.addValve(StandardPipeline.java:352)
        at
org.apache.catalina.ha.tcp.SimpleTcpCluster.registerClusterValve(SimpleTcpCluster.java:731)
        at
org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.java:684)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at
org.apache.catalina.core.ContainerBase.setCluster(ContainerBase.java:572)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.manageCluster(TomcatWebAppBuilder.java:364)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.<init>(TomcatWebAppBuilder.java:307)
        at 
org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:222)
        at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.openejb.loader.Embedder.init(Embedder.java:80)
        at org.apache.tomee.loader.TomcatHook.hook(TomcatHook.java:189)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tomee.loader.TomcatEmbedder.embed(TomcatEmbedder.java:104)
        at org.apache.tomee.loader.LoaderServlet.init(LoaderServlet.java:71)
        at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1269)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1182)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1072)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5368)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5660)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

feb 12, 2018 2:12:05 PM org.apache.catalina.core.StandardPipeline addValve
GRAVE: StandardPipeline.addValve: start: 
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was
attempted ([before_start]) for component
[org.apache.catalina.ha.tcp.ReplicationValve[Catalina]] in state [DESTROYED]
        at
org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:395)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
        at
org.apache.catalina.core.StandardPipeline.addValve(StandardPipeline.java:352)
        at
org.apache.catalina.ha.tcp.SimpleTcpCluster.registerClusterValve(SimpleTcpCluster.java:731)
        at
org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.java:684)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at
org.apache.catalina.core.ContainerBase.setCluster(ContainerBase.java:572)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.manageCluster(TomcatWebAppBuilder.java:364)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.<init>(TomcatWebAppBuilder.java:307)
        at 
org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:222)
        at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.openejb.loader.Embedder.init(Embedder.java:80)
        at org.apache.tomee.loader.TomcatHook.hook(TomcatHook.java:189)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tomee.loader.TomcatEmbedder.embed(TomcatEmbedder.java:104)
        at org.apache.tomee.loader.LoaderServlet.init(LoaderServlet.java:71)
        at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1269)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1182)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1072)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5368)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5660)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)/

The deployment cause an error with the valves:
*org.apache.catalina.ha.session.JvmRouteBinderValve* and
*org.apache.catalina.ha.tcp.ReplicationValve*

Can somebody help me ?

Thanks.




--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Reply via email to