Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

springMVC dispatcher [springMvc] could not be started

Abhishek Ananthu June 22, 2020

Operating system used : Ubuntu 20.04

I'm also facing same error, can please provide more information about the way it can be fixed. I gone through the resolution given in 


https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-does-not-start-could-not-acquire-change-log-lock-779171307.html?_ga=2.127305668.850406909.1592303589-528389594.1590494093#
 
but it didnt help. I'm getting following error, when I followed steps for H2 Embedded Database
 
root@abhishek-ThinkPad-T490:/home/abhishek/Documents/dev/is-admin-merge-check# java -cp target/bitbucket/app/WEB-INF/lib/h2-1.3.176.jar org.h2.tools.Shell
Welcome to H2 Shell 1.3.176 (2014-04-05)
Exit with Ctrl+C
[Enter] jdbc:h2:~/test
URL jdbc:h2:file:///home/abhishek/Documents/dev/is-admin-merge-check/target/bitbucket/home/shared/data/db.h2.db;DB_CLOSE_ON_EXIT=TRUE
[Enter] org.h2.Driver
Driver
[Enter]
User sa
[Enter] Hide
Password
Password
Connected
Commands are case insensitive; SQL statements end with ';'
help or ? Display this help
list Toggle result list / stack trace mode
maxwidth Set maximum column width (default is 100)
autocommit Enable or disable autocommit
history Show the last 20 statements
quit or exit Close the connection and exit
sql> UPDATE databasechangeloglock SET LOCKED=false, LOCKGRANTED=null, LOCKEDBY=null where ID=1;
Error: org.h2.jdbc.JdbcSQLException: Table "DATABASECHANGELOGLOCK" not found; SQL statement:
 
atlassian-bitbucket.log is as follows
 
2020-06-17 19:24:34,184 INFO [main] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 12.957 seconds (JVM running for 14.365)
root@abhishek-ThinkPad-T490:/home/abhishek/Documents/dev/is-admin-merge-check/target/bitbucket/home/log# cat atlassian-bitbucket.log
2020-06-17 19:24:21,848 INFO [main] com.atlassian.stash.internal.project Switching to log level [WARN]
2020-06-17 19:24:21,854 INFO [main] c.a.stash.internal.scm.git.command Switching to log level [WARN]
2020-06-17 19:24:21,855 WARN [main] com.atlassian.plugin.util.WaitUntil Switching to log level [INFO]
2020-06-17 19:24:21,874 INFO [main] o.s.boot.SpringApplication
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.17.RELEASE)

2020-06-17 19:24:22,046 INFO [main] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication on abhishek-ThinkPad-T490 with PID 97997 (/home/abhishek/Documents/dev/is-admin-merge-check/target/bitbucket/app/WEB-INF/classes started by root in /home/abhishek/Documents/dev/is-admin-merge-check)
2020-06-17 19:24:22,046 INFO [main] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default
2020-06-17 19:24:23,045 INFO [main] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 5.16.0 (c03f0a7 built on Fri Nov 16 05:10:50 CET 2018)
2020-06-17 19:24:23,045 INFO [main] c.a.b.i.boot.log.BuildInfoLogger JVM: Ubuntu OpenJDK 64-Bit Server VM 11.0.7+10-post-Ubuntu-3ubuntu1
2020-06-17 19:24:27,424 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /home/abhishek/Documents/dev/is-admin-merge-check/target/bitbucket/home
2020-06-17 19:24:31,206 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /home/abhishek/Documents/dev/is-admin-merge-check/target/bitbucket/home/shared
2020-06-17 19:24:32,871 WARN [spring-startup] com.hazelcast.instance.Node [172.17.0.1]:5701 [root] [3.7.4-atlassian-43] No join method is enabled! Starting standalone.
2020-06-17 19:24:34,099 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 '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
2020-06-17 19:24:34,107 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /home/abhishek/Documents/dev/is-admin-merge-check/target/bitbucket/home/shared
2020-06-17 19:24:34,135 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /home/abhishek/Documents/dev/is-admin-merge-check/target/bitbucket/home
2020-06-17 19:24:34,141 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 '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
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:664)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at java.base/java.lang.Thread.run(Thread.java:834)
... 18 frames trimmed
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
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
... 5 common frames omitted
Caused by: 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
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1631)
... 5 common frames omitted
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.hibernate.boot.spi.XmlMappingBinderAccess.<init>(XmlMappingBinderAccess.java:43)
at org.hibernate.boot.MetadataSources.<init>(MetadataSources.java:87)
at org.springframework.orm.hibernate5.LocalSessionFactoryBean.getMetadataSources(LocalSessionFactoryBean.java:364)
at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:399)
... 5 common frames omitted
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94)
... 9 common frames omitted
 
 
I'm stuck here from 2weeks, please check and let me the solution.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events