I created an atlassian plugin SDK , i followed this tutorial Getting started
but when i try to start the plugin at Localhost
error 404
I’m having the same issue -
Errors displayed in the log:
[INFO] [talledLocalContainer] May 01, 2022 5:10:15 PM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deploying web application archive [D:\bncs\source\repos\PageNewWindow\pagenewwindow\target\container\tomcat9x\cargo-confluence-home\webapps\confluence.war]
[WARNING] [talledLocalContainer] log4j:WARN No such property [bufferedIO] in com.atlassian.confluence.logging.ConfluenceHomeLogAppender.
[INFO] [talledLocalContainer] 2022-05-01 17:10:29,674 INFO [main] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.14.0 [build 7901 based on commit hash 9eed016aaa593220cd98620fec88bcbd9fd55893] - synchrony version 2.1.0-master-9d112c9d
[INFO] [talledLocalContainer] 2022-05-01 17:10:32,481 ERROR [main] [ContainerBase.[Catalina].[localhost].[/confluence]] log Exception sending context initialized event to listener instance of class [com.atlassian.confluence.setup.ConfluenceConfigurationListener]
[INFO] [talledLocalContainer] java.lang.ExceptionInInitializerError
[INFO] [talledLocalContainer] at com.ibm.icu.text.Collator.(Collator.java:946)
[INFO] [talledLocalContainer] at java.lang.Class.forName0(Native Method)
[INFO] [talledLocalContainer] at java.lang.Class.forName(Class.java:264)
[INFO] [talledLocalContainer] at org.h2.value.CompareMode.(CompareMode.java:57)
[INFO] [talledLocalContainer] at org.h2.engine.SessionRemote.(SessionRemote.java:95)
[INFO] [talledLocalContainer] at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:116)
[INFO] [talledLocalContainer] at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:100)
[INFO] [talledLocalContainer] at org.h2.Driver.connect(Driver.java:69)
[INFO] [talledLocalContainer] at org.h2.server.TcpServer.initManagementDb(TcpServer.java:92)
[INFO] [talledLocalContainer] at org.h2.server.TcpServer.start(TcpServer.java:238)
[INFO] [talledLocalContainer] at org.h2.tools.Server.start(Server.java:484)
[INFO] [talledLocalContainer] at com.atlassian.h2.ServerLifecycle.start(ServerLifecycle.java:83)
[INFO] [talledLocalContainer] at com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateConfig.getHibernateProperties(ConfluenceHibernateConfig.java:51)
[INFO] [talledLocalContainer] at com.atlassian.confluence.setup.DefaultBootstrapManager.getHibernateProperties(DefaultBootstrapManager.java:660)
[INFO] [talledLocalContainer] at com.atlassian.confluence.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:343)
[INFO] [talledLocalContainer] at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:81)
[INFO] [talledLocalContainer] at com.atlassian.confluence.setup.DefaultBootstrapManager.init(DefaultBootstrapManager.java:190)
[INFO] [talledLocalContainer] at com.atlassian.config.util.BootstrapUtils.init(BootstrapUtils.java:36)
[INFO] [talledLocalContainer] at com.atlassian.confluence.setup.ConfluenceConfigurationListener.initialiseBootstrapContext(ConfluenceConfigurationListener.java:133)
[INFO] [talledLocalContainer] at com.atlassian.confluence.setup.ConfluenceConfigurationListener.contextInitialized(ConfluenceConfigurationListener.java:64)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1858)
[INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[INFO] [talledLocalContainer] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:772)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:426)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:969)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
[INFO] [talledLocalContainer] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
[INFO] [talledLocalContainer] Caused by: java.lang.IllegalArgumentException: Invalid version number: Version number may be negative or greater than 255
[INFO] [talledLocalContainer] at com.ibm.icu.util.VersionInfo.getInstance(VersionInfo.java:191)
[INFO] [talledLocalContainer] at com.ibm.icu.impl.ICUDebug.getInstanceLenient(ICUDebug.java:65)
[INFO] [talledLocalContainer] at com.ibm.icu.impl.ICUDebug.(ICUDebug.java:69)
[INFO] [talledLocalContainer] May 01, 2022 5:10:33 PM org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] … 61 more
[INFO] [talledLocalContainer] SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
[INFO] [talledLocalContainer] 2022-05-01 17:10:32,507 INFO [main] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextInitialized Initialising plugin system
[INFO] [talledLocalContainer] May 01, 2022 5:10:33 PM org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] 2022-05-01 17:10:32,507 FATAL [main] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set
[INFO] [talledLocalContainer] SEVERE: Context [/confluence] startup failed due to previous errors
[INFO] [talledLocalContainer] 2022-05-01 17:10:32,508 ERROR [main] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextInitialized Error initialising plugin manager: Spring Application context has not been set
[INFO] [talledLocalContainer] May 01, 2022 5:10:33 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
[INFO] [talledLocalContainer] java.lang.IllegalStateException: Spring Application context has not been set
[WARNING] [talledLocalContainer] WARNING: The web application [confluence] 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.
It seems related to this error: Confluence template plugin tutorial: 404 error
You can either:
- downgrade your JDK to a version with a minor version number < 255
- force the upgrade of ICU
- upgrade to a more recent version of Confluence, aka in pom.xml something like
<confluence.api.version>7.14.0</confluence.api.version> <confluence.runtime.version>7.14.0</confluence.runtime.version>