I am trying to create a Repository Merge Check Plugin for BitBucket Server.
I am following the following guide: https://developer.atlassian.com/server/bitbucket/tutorials-and-examples/controlling-when-pull-requests-can-be-merged/
After I make the changes as specified, when I run `atlas-run` I get the following error/warning
2023-01-27 07:49:13,977 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
[INFO] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'crowdAliasDao': Unsatisfied dependency expressed through method 'setSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'sessionFactoryPrototype' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoryPrototype' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
[INFO] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:664)
[INFO] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
[INFO] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
[INFO] at javax.servlet.GenericServlet.init(GenericServlet.java:158)
[INFO] at java.base/java.lang.Thread.run(Thread.java:829)
[INFO] ... 18 frames trimmed
[INFO] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'sessionFactoryPrototype' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoryPrototype' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
[INFO] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
[INFO] ... 5 common frames omitted
When I try to connect with my browser I get the following response
A fatal error has occurred
The following problem occurred, which prevents Atlassian Bitbucket from starting:
SpringMVC dispatcher [springMvc] could not be started
This is then logged on the console
[INFO] 2023-01-27 08:02:08,023 WARN [http-nio-7990-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
[INFO] 2023-01-27 08:02:08,023 WARN [http-nio-7990-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
[INFO] 2023-01-27 08:02:08,031 WARN [http-nio-7990-exec-3] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
I have tried this in a clean docker container, but also now inside a WSL Ubuntu install.
I see other related posts like SpringMVC dispatcher could not be started but that is related to a proper Bitbucket installation, not for developing using the SDK.
Is there perhaps a guide that describes how to configure my development environment and Bitbucket before I must run `atlas-run` (which are not covered nor mentioned in the guide)?
Any assistance would be appreciated.