You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
upgrading bitbucket server from 7 to 8
catching error after start
2023-04-23 20:25:57,015 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 'fileServerServlet' defined in URL [jar:file:/opt/atlassian/bitbucket/8.9.0/app/WEB-INF/lib/bitbucket-platform-8.9.0.jar!/com/atlassian/stash/internal/plugin/FileServerServlet.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginResourceDownload' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'contentTypeResolver' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/8.9.0/app/WEB-INF/lib/bitbucket-platform-8.9.0.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
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
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(Unknown Source)
... 18 frames trimmed
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginResourceDownload' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'contentTypeResolver' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/8.9.0/app/WEB-INF/lib/bitbucket-platform-8.9.0.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
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)
... 5 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/8.9.0/app/WEB-INF/lib/bitbucket-platform-8.9.0.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
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
... 5 common frames omitted
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
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)
... 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 com.atlassian.stash.internal.plugin.SimpleContentTypeResolver.<init>(SimpleContentTypeResolver.java:25)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
... 5 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.sun.activation.registries.LogSupport
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
... 12 common frames omitted
helps write to start-bitbucket.sh
export ATLASSIAN_DIR="/opt/atlassian/bitbucket/app/WEB-INF/lib/WEB-INF/lib"
Hi @Алексей Волков ,
Seems like javax.activation-api-1.x.x.jar
doesn't have the package that previous Bitbucket versions had. You might want to consider upgrading to a different Bitbucket version or updating the javax.mail to the latest manually - take into consideration of CVE as well.
Best regards,
Baskar Annamalai
ServiceRocket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.