After upgrading confluence from 7.18.1 to 7.19.16, getting HTTP Status 404 - Not Found error
Asked by prathyush pavan:

Atlassian-confulence.log

2023-11-22 20:02:27,503 WARN \[main\] \[atlassian.confluence.setup.ConfluenceAnnotationConfigWebApplicationContext\] refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'asymmetricKeyFactory' defined in class path resource \[securityContext.xml\]: Cannot resolve reference to bean 'encryptionProvider' while setting bean property 'encryptionProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionProvider' defined in class path resource \[securityContext.xml\]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.security.auth.trustedapps.BouncyCastleEncryptionProvider  
2023-11-22 20:02:27,582 INFO \[main\] \[com.atlassian.confluence.lifecycle\] destroy Shutting down long running task service  
2023-11-22 20:02:27,593 INFO \[main\] \[com.atlassian.bonnie.LuceneConnection\] close Closing connection to org.apache.lucene.store.MMapDirectory@/opt/APT/data/confluence/index/change lockFactory=org.apache.lucene.store.NativeFSLockFactory@4494ed08  
2023-11-22 20:02:27,596 INFO \[main\] \[com.atlassian.bonnie.LuceneConnection\] close Closing connection to org.apache.lucene.store.MMapDirectory@/opt/APT/data/confluence/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@7e383712  
2023-11-22 20:02:27,615 WARN \[main\] \[beans.factory.support.DisposableBeanAdapter\] destroy Invocation of close method failed on bean with name 'sessionFactory5': com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted \[public abstract void org.hibernate.SessionFactory.close() throws org.hibernate.HibernateException\] is not allowed.  
2023-11-22 20:02:27,615 INFO \[main\] \[com.atlassian.confluence.lifecycle\] shutdownCacheManager Shutting down EhCache cache manager  
2023-11-22 20:02:27,623 INFO \[main\] \[com.atlassian.confluence.lifecycle\] shutdownCacheManager Shutting down EhCache cache manager  
2023-11-22 20:02:27,626 ERROR \[main\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Context initialization failed  
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'asymmetricKeyFactory' defined in class path resource \[securityContext.xml\]: Cannot resolve reference to bean 'encryptionProvider' while setting bean property 'encryptionProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionProvider' defined in class path resource \[securityContext.xml\]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.security.auth.trustedapps.BouncyCastleEncryptionProvider  
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)  
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1707)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1452)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)  
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)  
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)  
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:399)  
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:278)  
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)  
at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32)  
at com.atlassian.confluence.setup.ConfluenceBootstrappedContextLoaderListener.contextInitialized(ConfluenceBootstrappedContextLoaderListener.java:40)  
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4462)  
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4914)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)  
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)  
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)  
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)  
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)  
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)  
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)  
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)  
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)  
at org.apache.catalina.startup.Catalina.start(Catalina.java:772)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)


Answers:
author: ????????? ??????? ????????????
body: Hello [prathyush pavan](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5370830) !

Please tell me, did you manage to solve this problem?


Tags: confluence-server

server