Atlassian Confluence SDK启动应用程序时出现404错误。

huangapple go评论79阅读模式
英文:

Atlassian Confluence SDK Problem starting App 404

问题

在启动Confluence插件时,我总是遇到以下错误:

[INFO] [talledLocalContainer] 2020-08-06 20:48:58,116 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.<clinit>(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.<clinit>(CompareMode.java:57)
[INFO] [talledLocalContainer] 	at org.h2.engine.SessionRemote.<init>(SessionRemote.java:95)
[INFO] [talledLocalContainer] 	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:116)
[INFO] [talledLocalContainer] Aug 06, 2020 8:48:58 PM org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] 	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:100)
[INFO] [talledLocalContainer] 	at org.h2.Driver.connect(Driver.java:69)
[INFO] [talledLocalContainer] SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
[INFO] [talledLocalContainer] 	at org.h2.server.TcpServer.initManagementDb(TcpServer.java:92)
[INFO] [talledLocalContainer] 	at org.h2.server.TcpServer.start(TcpServer.java:238)
[INFO] [talledLocalContainer] Aug 06, 2020 8:48:58 PM org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] 	at org.h2.tools.Server.start(Server.java:484)
[INFO] [talledLocalContainer] SEVERE: Context [/confluence] startup failed due to previous errors
[...]
[INFO] [talledLocalContainer] Aug 06, 2020 8:49:07 PM org.apache.coyote.AbstractProtocol start
[INFO] [talledLocalContainer] INFO: Starting ProtocolHandler ["http-nio-1990"]
[INFO] [talledLocalContainer] Aug 06, 2020 8:49:07 PM org.apache.coyote.AbstractProtocol start
[INFO] [talledLocalContainer] INFO: Starting ProtocolHandler ["ajp-nio-8009"]
[INFO] [talledLocalContainer] Aug 06, 2020 8:49:07 PM org.apache.catalina.startup.Catalina start
[INFO] [talledLocalContainer] INFO: Server startup in 29245 ms
[INFO] [talledLocalContainer] Tomcat 9.x started on port [1990]
[INFO] confluence started successfully in 103s at http://localhost:1990/confluence
[INFO] Type Ctrl-C to shutdown gracefully

我尝试了多个插件,包括在Windows、Mac和Ubuntu上尝试。不幸的是,无论我使用当前版本还是较早版本的SDK,都会在启动时遇到此错误。我尝试了Oracle和OpenJdk,两者的版本都是8。结果在调用http://127.0.0.1:1990/confluence时会显示404页面。

我的设置如下:

ATLAS Version:    8.2.2
ATLAS Home:       /usr/share/atlassian-plugin-sdk-8.2.2
ATLAS Scripts:    /usr/share/atlassian-plugin-sdk-8.2.2/bin
ATLAS Maven Home: /usr/share/atlassian-plugin-sdk-8.2.2/apache-maven-3.5.4
AMPS Version:     8.1.0
--------
Executing: /usr/share/atlassian-plugin-sdk-8.2.2/apache-maven-3.5.4/bin/mvn --version -gs /usr/share/atlassian-plugin-sdk-8.2.2/apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: /usr/share/atlassian-plugin-sdk-8.2.2/apache-maven-3.5.4
Java version: 1.8.0_265, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-42-generic", arch: "amd64", family: "unix"

Tomcat日志中没有包含任何错误信息。

你是否遇到相同的问题,或者你知道解决方法?

英文:

when starting a Confluence plugin I always get the following error:

[INFO] [talledLocalContainer] 2020-08-06 20:48:58,116 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.<clinit>(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.<clinit>(CompareMode.java:57)
[INFO] [talledLocalContainer] 	at org.h2.engine.SessionRemote.<init>(SessionRemote.java:95)
[INFO] [talledLocalContainer] 	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:116)
[INFO] [talledLocalContainer] Aug 06, 2020 8:48:58 PM org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] 	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:100)
[INFO] [talledLocalContainer] 	at org.h2.Driver.connect(Driver.java:69)
[INFO] [talledLocalContainer] SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
[INFO] [talledLocalContainer] 	at org.h2.server.TcpServer.initManagementDb(TcpServer.java:92)
[INFO] [talledLocalContainer] 	at org.h2.server.TcpServer.start(TcpServer.java:238)
[INFO] [talledLocalContainer] Aug 06, 2020 8:48:58 PM org.apache.catalina.core.StandardContext startInternal
[INFO] [talledLocalContainer] 	at org.h2.tools.Server.start(Server.java:484)
[INFO] [talledLocalContainer] SEVERE: Context [/confluence] startup failed due to previous errors
[...]
[INFO] [talledLocalContainer] Aug 06, 2020 8:49:07 PM org.apache.coyote.AbstractProtocol start
[INFO] [talledLocalContainer] INFO: Starting ProtocolHandler ["http-nio-1990"]
[INFO] [talledLocalContainer] Aug 06, 2020 8:49:07 PM org.apache.coyote.AbstractProtocol start
[INFO] [talledLocalContainer] INFO: Starting ProtocolHandler ["ajp-nio-8009"]
[INFO] [talledLocalContainer] Aug 06, 2020 8:49:07 PM org.apache.catalina.startup.Catalina start
[INFO] [talledLocalContainer] INFO: Server startup in 29245 ms
[INFO] [talledLocalContainer] Tomcat 9.x started on port [1990]
[INFO] confluence started successfully in 103s at http://localhost:1990/confluence
[INFO] Type Ctrl-C to shutdown gracefully

I have tried several plugins and in Windows, Mac and Ubuntu. Unfortunately I always get this error when starting the current and also an older SDK. I have tried Oracle and OpenJdk, both version 8.
The result is a 404 page when calling http://127.0.0.1:1990/confluence

My Setting

ATLAS Version:    8.2.2
ATLAS Home:       /usr/share/atlassian-plugin-sdk-8.2.2
ATLAS Scripts:    /usr/share/atlassian-plugin-sdk-8.2.2/bin
ATLAS Maven Home: /usr/share/atlassian-plugin-sdk-8.2.2/apache-maven-3.5.4
AMPS Version:     8.1.0
--------
Executing: /usr/share/atlassian-plugin-sdk-8.2.2/apache-maven-3.5.4/bin/mvn --version -gs /usr/share/atlassian-plugin-sdk-8.2.2/apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: /usr/share/atlassian-plugin-sdk-8.2.2/apache-maven-3.5.4
Java version: 1.8.0_265, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-42-generic", arch: "amd64", family: "unix"

The Tomcat log does not contain any errors...

Do you have the same problem, or do you know a solution?

答案1

得分: 4

解决此问题的方法是使用Java 8版本早于u261或Confluence版本大于7.0.0。

英文:

For all who also have this problem - the solution is to use a Java 8 version older than u261 or a Confluence version bigger than 7.0.0

答案2

得分: 4

只需帮助其他遇到与我们相同问题的人,您需要编辑 pom.xml 文件并更新以下属性:

  • project > properties > confluence.version
  • project > properties > confluence.data.version

这些值可以在 Confluence 服务器页面 上找到。
最后,确保运行 atlas-clean,然后可以运行 atlas-run

英文:

Just to help others who come to this question as well with the same issue as both of us, You need to edit the pom.xml file and update the following properties:

  • project > properties > confluence.version
  • project > properties > confluence.data.version

The values are the version found on the confluence server page.
Finally, make sure to run atlas-clean then you can run atlas-run.

huangapple
  • 本文由 发表于 2020年8月7日 03:06:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/63290222.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定