Upgrading from 6.13 to 7.13 - HTTP 404
Asked by Ben Whitely:

Hi all.

I'm trying to upgrade Confluence on our dev server, it had 6.13 and I have run the 7.13 installer for the upgrade

I then replaced the newly made server.xml file with the server.xml file from 6.13, and made a new Windows service for 7.13 and removed the 6.13 Windows service

This is my first upgrade for Confluence, so I'm not sure where I'm going wrong. Obviously it seems like some sort of routing issue, but I'm not sure where else other than the server.xml file this would be configured?

The exact error is when I go to the Confluence URL in my browser:

HTTP 404 - The origin server did not find a current representation for the target resource or is not willing to disclose one that exists

Here is the confluence_stderr.log file content

<br />

2022-01-28 14:57:59 Apache Commons Daemon procrun stderr initialized.  
WARNING: An illegal reflective access operation has occurred  
WARNING: Illegal reflective access by com.atlassian.hibernate.adapter.proxy.BytecodeProviderImpl_ImplementV2Proxy (file:/D:/confluence/dom1/confluence/WEB-INF/lib/hibernate.adapter-1.0.3.jar) to field java.lang.reflect.Field.modifiers  
WARNING: Please consider reporting this to the maintainers of com.atlassian.hibernate.adapter.proxy.BytecodeProviderImpl_ImplementV2Proxy  
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations  
WARNING: All illegal access operations will be denied in a future release  
opertiesRule.begin Match \[Server/Service/Connector\] failed to set property \[maxProcessors\] to \[75\]  
28-Jan-2022 14:58:00.733 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match \[Server/Service/Connector\] failed to set property \[debug\] to \[0\]  
28-Jan-2022 14:58:00.733 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match \[Server/Service/Connector\] failed to set property \[useURIValidationHack\] to \[false\]  
28-Jan-2022 14:58:00.749 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match \[Server/Service/Engine\] failed to set property \[debug\] to \[0\]  
28-Jan-2022 14:58:00.749 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match \[Server/Service/Engine/Host\] failed to set property \[debug\] to \[0\]  
28-Jan-2022 14:58:00.796 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match \[Server/Service/Engine/Host/Context\] failed to set property \[debug\] to \[0\]  
28-Jan-2022 14:58:00.842 WARNING \[main\] org.apache.catalina.core.StandardContext.setPath A context path must either be an empty string or start with a '/' and do not end with a '/'. The path \[${confluence.context.path}/synchrony-proxy\] does not meet these criteria and has been changed to \[/${confluence.context.path}/synchrony-proxy\]  
28-Jan-2022 14:58:00.842 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match \[Server/Service/Engine/Host/Context\] failed to set property \[debug\] to \[0\]  
28-Jan-2022 14:58:01.358 INFO \[main\] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler \["http-nio-12581"\]  
28-Jan-2022 14:58:01.514 INFO \[main\] org.apache.catalina.startup.Catalina.load Server initialization in \[1090\] milliseconds  
28-Jan-2022 14:58:01.514 INFO \[main\] org.apache.catalina.core.StandardService.startInternal Starting service \[Tomcat-Standalone\]  
28-Jan-2022 14:58:01.514 INFO \[main\] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: \[Apache Tomcat/9.0.45\]  
28-Jan-2022 14:58:07.287 INFO \[Catalina-utility-2\] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.  
log4j:ERROR Could not find value for key log4j.appender.luceneQuery  
log4j:ERROR Could not instantiate appender named "luceneQuery".  
28-Jan-2022 14:58:07.895 INFO \[Catalina-utility-2\] org.apache.catalina.core.ApplicationContext.log 1 Spring WebApplicationInitializers detected on classpath  
28-Jan-2022 14:58:08.480 INFO \[Catalina-utility-2\] org.apache.catalina.core.ApplicationContext.log Initializing Spring DispatcherServlet 'dispatcher'  
28-Jan-2022 14:58:42.774 SEVERE \[Catalina-utility-1\] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file  
28-Jan-2022 14:58:42.775 SEVERE \[Catalina-utility-1\] org.apache.catalina.core.StandardContext.startInternal Context \[\] startup failed due to previous errors  
28-Jan-2022 14:58:43.137 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[com.mysql.jdbc.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
28-Jan-2022 14:58:43.138 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[org.h2.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
28-Jan-2022 14:58:43.138 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[org.hsqldb.jdbc.JDBCDriver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
28-Jan-2022 14:58:43.138 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[net.sourceforge.jtds.jdbc.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
28-Jan-2022 14:58:43.138 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[com.github.gquintana.metrics.sql.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
28-Jan-2022 14:58:43.138 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[com.microsoft.sqlserver.jdbc.SQLServerDriver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
28-Jan-2022 14:58:43.139 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application \[ROOT\] registered the JDBC driver \[org.postgresql.Driver\] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.  
28-Jan-2022 14:58:43.140 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-1\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.140 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-2\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.140 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-3\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.141 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-4\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.142 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-5\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.142 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-6\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.143 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-7\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.143 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-8\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.144 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-9\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.144 WARNING \[Catalina-utility-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[scheduler_Worker-10\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:  
java.base@11.0.12/java.lang.Object.wait(Native Method)  
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:543)  
28-Jan-2022 14:58:43.168 INFO \[Catalina-utility-1\] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor \[D:\\confluence\\dom1\\conf\\Standalone\\localhost\\synchrony-proxy.xml\]  
28-Jan-2022 14:58:43.171 WARNING \[Catalina-utility-1\] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value \[/synchrony-proxy\] in deployment descriptor \[D:\\confluence\\dom1\\conf\\Standalone\\localhost\\synchrony-proxy.xml\] has been ignored  
28-Jan-2022 14:58:43.177 WARNING \[Catalina-utility-1\] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match \[Context\] failed to set property \[debug\] to \[0\]  
28-Jan-2022 14:58:44.369 INFO \[Catalina-utility-1\] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.  
28-Jan-2022 14:58:44.610 INFO \[Catalina-utility-1\] org.apache.catalina.core.ApplicationContext.log 1 Spring WebApplicationInitializers detected on classpath  
28-Jan-2022 14:58:44.832 INFO \[Catalina-utility-1\] org.apache.catalina.core.ApplicationContext.log Initializing Spring DispatcherServlet 'dispatcher'  
28-Jan-2022 14:58:46.371 INFO \[Service Thread\] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load \[javax.management.openmbean.CompositeData\]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.  
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load \[javax.management.openmbean.CompositeData\]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.  
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1384)  
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1372)  
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1225)  
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1187)  
at com.atlassian.confluence.internal.diagnostics.GarbageCollectorListener.getGarbageCollectorDuration(GarbageCollectorListener.java:41)  
at com.atlassian.confluence.internal.diagnostics.GarbageCollectorListener.handleNotification(GarbageCollectorListener.java:36)  
at java.management/sun.management.NotificationEmitterSupport.sendNotification(Unknown Source)  
at jdk.management/com.sun.management.internal.GarbageCollectorExtImpl.createGCNotification(Unknown Source)  
28-Jan-2022 14:58:46.563 INFO \[Catalina-utility-1\] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor \[D:\\confluence\\dom1\\conf\\Standalone\\localhost\\synchrony-proxy.xml\] has finished in \[3,395\] ms  
28-Jan-2022 14:58:46.568 INFO \[main\] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler \["http-nio-12581"\]  
28-Jan-2022 14:58:46.579 INFO \[main\] org.apache.catalina.startup.Catalina.start Server startup in \[45063\] milliseconds


Answers:
author: Pramodh M
body: Hi [@Ben Whitely](/t5/user/viewprofilepage/user-id/4731894)

Welcome to Confluence!!

Only Upgrade the Server, we don't need to change anything.

If you set up a proxy or load balancer, keep the changed parameters in one place.

The customizations will be stored in home directory once you upgrade to later version, you can refer the file there for changes

Once the upgrade is completed, you need to change only those parameters in the place, replacing the file would result in an error

Please find the guide here on the upgrade

<https://confluence.atlassian.com/conf613/upgrading-confluence-964961659.html>

Thanks


Tags: confluence-server

server