Tomcat 8.5 / mod_cluster 1.3.1 : NoSuchMethodError: org.apache.catalina.Service.getContainer
nramos95 Apr 5, 2017 10:46 AMHi,
I try to implement mod_cluster 1.3.1 with tomcat 8.5.13 / openjdk 1.8 but without success.
Here is the exception :
05-Apr-2017 15:38:34.318 SEVERE [main] org.apache.catalina.startup.Catalina.load Catalina.start
org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[10101]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)
Caused by: java.lang.NoSuchMethodError: org.apache.catalina.Service.getContainer()Lorg/apache/catalina/Container;
at org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.addListeners(CatalinaEventHandlerAdapter.java:286)
at org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.init(CatalinaEventHandlerAdapter.java:274)
at org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.lifecycleEvent(CatalinaEventHandlerAdapter.java:210)
at org.jboss.modcluster.container.catalina.standalone.ModClusterListener.lifecycleEvent(ModClusterListener.java:136)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:395)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:108)
... 8 more
mod_cluster binaries in my tomcat lib are :
-rwxrwx--- 1 tomcat tomcat 55248 Apr 5 15:36 jboss-logging.jar
-rwxrwx--- 1 tomcat tomcat 39069 Apr 5 15:36 mod_cluster-container-catalina-1.3.1.Final.jar
-rwxrwx--- 1 tomcat tomcat 13516 Apr 5 15:36 mod_cluster-container-catalina-standalone-1.3.1.Final.jar
-rwxrwx--- 1 tomcat tomcat 7059 Apr 5 15:36 mod_cluster-container-spi-1.3.1.Final.jar
-rwxrwx--- 1 tomcat tomcat 14929 Apr 5 15:36 mod_cluster-container-tomcat8-1.3.1.Final.jar
-rwxrwx--- 1 tomcat tomcat 120396 Apr 5 15:36 mod_cluster-core-1.3.1.Final.jar
server.xml modcluster declaration :
<Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener" proxyList="${socle.modcluster.proxylist}"/>
Is tomcat 8.5.13 compatible with modcluster 1.3.1 ? Any workaround possible ?
I don't understand because the method org.apache.catalina.Service.getContainer() seems to be available.
Thanks for helping me !