How to solve this error?
Asked by limin feng:

jiras-bitbucket-1 \| 2023-10-18 16:26:05,321 WARN \[spring-startup\] o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL \[jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-8.4.4.jar!/com/atlassian/stash/internal/plugin/SimpleContentTypeResolver.class\]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.atlassian.stash.internal.plugin.SimpleContentTypeResolver\]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport  
jiras-bitbucket-1 \| 2023-10-18 16:26:06,037 INFO \[spring-startup\] c.a.s.i.s.g.m.DefaultSidecarManager Sidecar has stopped (Exit code: 0)  
jiras-bitbucket-1 \| 2023-10-18 16:26:06,102 INFO \[spring-startup\] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket/shared  
jiras-bitbucket-1 \| 2023-10-18 16:26:06,700 INFO \[spring-startup\] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket  
jiras-bitbucket-1 \| 2023-10-18 16:26:06,705 ERROR \[spring-startup\] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher \[springMvc\] could not be started  
jiras-bitbucket-1 \| org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL \[jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-8.4.4.jar!/com/atlassian/stash/internal/plugin/SimpleContentTypeResolver.class\]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.atlassian.stash.internal.plugin.SimpleContentTypeResolver\]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport  
jiras-bitbucket-1 \| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)  
jiras-bitbucket-1 \| at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)  
jiras-bitbucket-1 \| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)  
jiras-bitbucket-1 \| at javax.servlet.GenericServlet.init(GenericServlet.java:158)  
jiras-bitbucket-1 \| at java.base/java.lang.Thread.run(Thread.java:829)  
jiras-bitbucket-1 \| ... 16 frames trimmed  
jiras-bitbucket-1 \| Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate \[com.atlassian.stash.internal.plugin.SimpleContentTypeResolver\]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport  
jiras-bitbucket-1 \| at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)  
jiras-bitbucket-1 \| ... 5 common frames omitted  
jiras-bitbucket-1 \| Caused by: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport  
jiras-bitbucket-1 \| at javax.activation.MimetypesFileTypeMap.\<init\>(MimetypesFileTypeMap.java:130)  
jiras-bitbucket-1 \| at javax.activation.MimetypesFileTypeMap.\<init\>(MimetypesFileTypeMap.java:301)  
jiras-bitbucket-1 \| at com.atlassian.stash.internal.plugin.SimpleContentTypeResolver.\<init\>(SimpleContentTypeResolver.java:25)  
jiras-bitbucket-1 \| at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
jiras-bitbucket-1 \| at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)  
jiras-bitbucket-1 \| at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
jiras-bitbucket-1 \| at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)  
jiras-bitbucket-1 \| ... 5 common frames omitted  
jiras-bitbucket-1 \| Caused by: java.lang.ClassNotFoundException: com.sun.activation.registries.LogSupport  
jiras-bitbucket-1 \| at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)  
jiras-bitbucket-1 \| at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)  
jiras-bitbucket-1 \| ... 12 common frames omitted


Answers:
author: Gonchik Tsymzhitov
body: Please add app

comments: author: ali r
body: bitbucket


Tags: bitbucket-server

server