Upgraded Confluence from 7.19 to 8.0.3 and getting this in catalina.out as soon as I start the application
Error: Could not find or load main class @.opt.atlassian.apps.confluence.current.confluence.WEB-INF.jpms-args.txt
Confluence does not start after that. Any ideas what could be the cause of this?
Here's more info that I could think of:
[atlassian@ip-172-31-12-42 logs]$ cat catalina.out
Error: Could not find or load main class @.opt.atlassian.apps.confluence.current.confluence.WEB-INF.jpms-args.txt
Error: Could not find or load main class @.opt.atlassian.apps.confluence.current.confluence.WEB-INF.jpms-args.txt
Error: Could not find or load main class @.opt.atlassian.apps.confluence.current.confluence.WEB-INF.jpms-args.txt
[atlassian@ip-172-31-12-42 logs]$ ll /opt/atlassian/apps/confluence/current/confluence/WEB-INF/
total 120
drwxr-xr-x 2 atlassian atlassian 24576 Jan 26 08:59 atlassian-bundled-plugins
drwxr-xr-x 2 atlassian atlassian 4096 Jan 26 08:59 atlassian-bundled-plugins-setup
drwxr-xr-x 3 atlassian atlassian 4096 Jan 26 09:08 classes
-rw-r--r-- 1 atlassian atlassian 6971 Jan 25 09:22 decorators.xml
-rw-r--r-- 1 atlassian atlassian 15163 Jan 25 09:22 glue-config.xml
-rw-r--r-- 1 atlassian atlassian 928 Jan 25 09:22 jpms-args.txt
drwxr-xr-x 2 atlassian atlassian 32768 Jan 26 08:59 lib
drwxr-xr-x 2 atlassian atlassian 4096 Jan 26 08:59 osgi-framework-bundles
drwxr-xr-x 2 atlassian atlassian 76 Jan 26 08:59 packages
-rw-r--r-- 1 atlassian atlassian 1968 Jan 25 09:22 server-config.wsdd
-rw-r--r-- 1 atlassian atlassian 1301 Jan 25 09:22 sitemesh.xml
-rw-r--r-- 1 atlassian atlassian 965 Jan 25 09:22 urlrewrite.xml
-rw-r--r-- 1 atlassian atlassian 1688 Jan 25 09:22 web.xml
[atlassian@ip-172-31-12-42 logs]$ cat /opt/atlassian/apps/confluence/current/confluence/WEB-INF/jpms-args.txt
# Add various JPMS arguments to allow Confluence to work on Java 17.
# These also work with Java 11, but are optional.
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens java.base/sun.net.www.protocol.jar=ALL-UNNAMED
--add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED
--add-opens java.base/sun.net.www.protocol.https=ALL-UNNAMED
--add-opens java.base/sun.util.locale=ALL-UNNAMED
--add-opens java.management/javax.management=ALL-UNNAMED
--add-exports java.base/sun.security.action=ALL-UNNAMED
--add-exports java.naming/com.sun.jndi.ldap=ALL-UNNAMED
--add-exports java.xml/com.sun.org.apache.xml.internal.utils=ALL-UNNAMED
--add-exports java.desktop/sun.font=ALL-UNNAMED
--add-exports java.base/sun.security.util=ALL-UNNAMED
Thanks!