cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

b2c_acc_dockerized startup fails for all hybris images

Former Member
0 Likes
497

Hybris version 1811, macOS 10.14.3

When I lookup at the logs for b2c_acc_dockerized_platformacceleratorstorefront1, catalina logs to be specific (there were no console*.log file created), I see the following startup errors

 SEVERE: Catalina.start
 org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[8005]]
     at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
     at org.apache.catalina.startup.Catalina.load(Catalina.java:632)
     at org.apache.catalina.startup.Catalina.load(Catalina.java:655)
     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:309)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
 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
 
 Feb 04, 2019 9:28:20 AM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 1015 ms
 Feb 04, 2019 9:28:20 AM org.apache.catalina.startup.Catalina start
 SEVERE: The required Server component failed to start so Tomcat is unable to start.
 org.apache.catalina.LifecycleException: Failed to stop component [StandardServer[8005]]
     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:238)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:142)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:681)
     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.start(Bootstrap.java:353)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
 Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardService[Catalina]] in state [INITIALIZED]
     at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:402)
     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:213)
     at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:814)
     at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
     ... 8 more
 

Also my frontend load balancer did not start with the following error:

 Error response from daemon: driver failed programming external connectivity on endpoint b2c_acc_dockerized_load_balancer_frontend_1 (5daafd57c64487b2ad737899e9ae14c896bb2123c3c598726d0a6f0dd5edf835): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
 

There I changed to host port and then I could access the frontend like this: https://electronics.localhost:7001/yacceleratorstorefront but since the hybris servers are not up I get the bellow message

yacceleratorstorefront electronics is sorry yacceleratorstorefront electronics is currently under maintenance. Please come back later!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Apparently the Jboss cluster libraries (mod_cluster*) in the recipe was not compatible with tomcat 8.5

I update the libraries from 1.3.5 -> 1.4 and everything started working like a charm

Answers (0)