You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short:
The war file of the application is running fine on a tomcat server on my mac (no docker), but it is not working in the tomcat instance of a docker container.
Long:
We have a SpringBoot app which should run in a Tomcat instance in a Docker container, the problem is that the Spring app fails to startup on my MacOS host but successfully starts up on a Ubuntu host.
Log for Spring Application start:
2018-06-20 13:28:12.123 INFO 7 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1073 ms
2018-06-20 13:28:12.176 WARN 7 --- [ost-startStop-1] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletRegistrationBean' defined in class path resource [frontend/spring/report/BirtEngineServletConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.ServletRegistrationBean]: Factory method 'servletRegistrationBean' threw exception; nested exception is java.lang.ExceptionInInitializerError
Basically this type of error is happening everytime, even if I remove the whole Birt Stack of our application, then the faulty classes will be just some others.
This led me to the suspicion that my environment could cause the error, because the difference between my log to the log of my colleagues is that the following only appears on my host but not on the other hosts:
Caused by: java.lang.SecurityException: class "org.apache.commons.logging.LogConfigurationException"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:898) ~[na:1.8.0_161]
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668) ~[na:1.8.0_161]
at java.lang.ClassLoader.defineClass(ClassLoader.java:761) ~[na:1.8.0_161]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_161]
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2283) ~[catalina.jar:8.5.24]
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:811) ~[catalina.jar:8.5.24]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1260) ~[catalina.jar:8.5.24]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:8.5.24]
at java.lang.Class.getDeclaredConstructors0(Native Method) ~[na:1.8.0_161]
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[na:1.8.0_161]
at java.lang.Class.getConstructor0(Class.java:3075) ~[na:1.8.0_161]
at java.lang.Class.newInstance(Class.java:412) ~[na:1.8.0_161]
at org.apache.commons.discovery.tools.ClassUtils.newInstance(ClassUtils.java:157) ~[commons-discovery-0.2.jar-4.7.0.jar:0.2]
at org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterface.java:197) ~[commons-discovery-0.2.jar-4.7.0.jar:0.2]
at org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:579) ~[commons-discovery-0.2.jar-4.7.0.jar:0.2]
at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:418) ~[commons-discovery-0.2.jar-4.7.0.jar:0.2]
... 55 common frames omitted
It looks like you have Commons Logging classes in multiple places in your Tomcat instance in Docker. As you suspected this is an issue with your environment and is out of Spring Boot’s control.
Hello, i have the following problem / bug:
Short:
The war file of the application is running fine on a tomcat server on my mac (no docker), but it is not working in the tomcat instance of a docker container.
Log file
I hope it is okay to open this issue :)
Long:
We have a SpringBoot app which should run in a Tomcat instance in a Docker container, the problem is that the Spring app fails to startup on my MacOS host but successfully starts up on a Ubuntu host.
Log for Spring Application start:
This led me to the suspicion that my environment could cause the error, because the difference between my log to the log of my colleagues is that the following only appears on my host but not on the other hosts:
(This happens before the Spring application start)
I have tried a docker image from ubuntu with oracle java and tomcat manually installed and the official tomcat image.
The text was updated successfully, but these errors were encountered: