Bitbucket server SpringMVC dispatcher [springMvc] could not be started

cnp rayan November 9, 2021

I'm using bitbucket 7.18 docker image

after upgrading from 7.2.2

2021-11-09 12:23:30,509 INFO [main] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication v7.18.0 using Java 11.0.13 on b329b05a1a34 with PID 194 (/opt/atlassian/bitbucket/app/WEB-INF/classes started by bitbucket in /var/atlassian/application-data/bitbucket)
2021-11-09 12:23:30,517 INFO [main] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default
2021-11-09 12:23:31,746 INFO [main] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 7.18.0 (8beb11c built on Fri Nov 05 05:07:53 GMT 2021)
2021-11-09 12:23:31,746 INFO [main] c.a.b.i.boot.log.BuildInfoLogger JVM: Eclipse Adoptium OpenJDK 64-Bit Server VM 11.0.13+8
2021-11-09 12:23:33,723 INFO [main] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 5.17 seconds (JVM running for 6.118)
2021-11-09 12:23:39,322 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket
2021-11-09 12:23:55,299 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket/shared
2021-11-09 12:23:58,045 WARN [spring-startup] com.hazelcast.instance.Node [172.18.0.48]:5701 [bitbucket] [3.12.9] No join method is enabled! Starting standalone.
2021-11-09 12:24:26,468 WARN [spring-startup] o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'goGetFilter' defined in file [/opt/atlassian/bitbucket/app/WEB-INF/classes/com/atlassian/stash/internal/web/filters/GoGetFilter.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/repository/DefaultRepositoryService.class]: Unsatisfied dependency expressed through constructor parameter 8; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meshService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/mesh/DefaultMeshService.class]: Unsatisfied dependency expressed through constructor parameter 12; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userAdminService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultUserAdminService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'emailNotifier' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultEmailNotifier.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
2021-11-09 12:24:26,545 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket/shared
2021-11-09 12:24:26,556 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket
2021-11-09 12:24:26,563 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'goGetFilter' defined in file [/opt/atlassian/bitbucket/app/WEB-INF/classes/com/atlassian/stash/internal/web/filters/GoGetFilter.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/repository/DefaultRepositoryService.class]: Unsatisfied dependency expressed through constructor parameter 8; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meshService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/mesh/DefaultMeshService.class]: Unsatisfied dependency expressed through constructor parameter 12; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userAdminService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultUserAdminService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'emailNotifier' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultEmailNotifier.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at java.base/java.lang.Thread.run(Thread.java:829)
... 18 frames trimmed
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/repository/DefaultRepositoryService.class]: Unsatisfied dependency expressed through constructor parameter 8; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meshService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/mesh/DefaultMeshService.class]: Unsatisfied dependency expressed through constructor parameter 12; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userAdminService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultUserAdminService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'emailNotifier' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultEmailNotifier.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
... 6 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'meshService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/mesh/DefaultMeshService.class]: Unsatisfied dependency expressed through constructor parameter 12; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userAdminService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultUserAdminService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'emailNotifier' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultEmailNotifier.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
... 6 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userAdminService' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultUserAdminService.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'emailNotifier' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultEmailNotifier.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
... 6 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'emailNotifier' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-service-impl-7.18.0.jar!/com/atlassian/stash/internal/user/DefaultEmailNotifier.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
... 6 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786)
... 5 common frames omitted
Caused by: com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2048)
at com.google.common.cache.LocalCache.get(LocalCache.java:3952)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4958)
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4964)
at com.atlassian.cache.memory.DelegatingCachedReference.getUnderLock(DelegatingCachedReference.java:103)
at com.atlassian.cache.memory.DelegatingCachedReference.get(DelegatingCachedReference.java:88)
at com.atlassian.cache.hazelcast.HazelcastAsyncHybridCachedReference.get(HazelcastAsyncHybridCachedReference.java:65)
at com.atlassian.stash.internal.mail.MailServiceImpl.initMailSender(MailServiceImpl.java:119)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
... 5 common frames omitted
Caused by: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
at javax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:130)
at javax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:301)
at org.springframework.mail.javamail.ConfigurableMimeFileTypeMap.createFileTypeMap(ConfigurableMimeFileTypeMap.java:150)
at org.springframework.mail.javamail.ConfigurableMimeFileTypeMap.getFileTypeMap(ConfigurableMimeFileTypeMap.java:123)
at org.springframework.mail.javamail.ConfigurableMimeFileTypeMap.afterPropertiesSet(ConfigurableMimeFileTypeMap.java:110)
at org.springframework.mail.javamail.JavaMailSenderImpl.<init>(JavaMailSenderImpl.java:115)
at com.atlassian.stash.internal.mail.DefaultJavaMailSenderFactory.create(DefaultJavaMailSenderFactory.java:48)
at com.atlassian.stash.internal.mail.DefaultJavaMailSenderFactory.create(DefaultJavaMailSenderFactory.java:18)
at com.atlassian.stash.internal.mail.MailServiceImpl.buildMailSender(MailServiceImpl.java:452)
at com.atlassian.stash.internal.mail.MailServiceImpl.buildMailSender(MailServiceImpl.java:440)
at com.atlassian.cache.memory.MemoryCacheManager$1.load(MemoryCacheManager.java:120)
at com.atlassian.cache.memory.MemoryCacheManager$1.load(MemoryCacheManager.java:96)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3528)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2277)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2154)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2044)
... 16 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.sun.activation.registries.LogSupport
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
... 32 common frames omitted
2021-11-09 12:24:30,204 WARN [http-nio-7990-exec-3] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2021-11-09 12:24:30,205 WARN [http-nio-7990-exec-3] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
2021-11-09 12:24:54,579 WARN [http-nio-7990-exec-4] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
2021-11-09 12:24:54,579 WARN [http-nio-7990-exec-4] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available

 

1 answer

0 votes
cnp rayan November 9, 2021

after upgrading from 7.2.2

Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 8, 2023

please install java 8

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events