Hello
I installed JDK, Atlassian SDK on windows machine, and created plugin by running "atlas-create-confluence-plugin"
After that i run "atlas-run" command, it started local web server with link
http://localhost:1990/confluence
But when i try to open it in browser, i get 404 error with following text:
Type Status Report
Message Not found
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Any ideas, what i did wrong?
Here is log from \target\container\tomcat9x\cargo-confluence-home\logs
127.0.0.1 - - [09/Nov/2020:13:54:10 +0300] "GET /cargocpc/index.html HTTP/1.1" 200 124
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:02:44 +0300] "GET /confluence HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:02:45 +0300] "GET /favicon.ico HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:36 +0300] "GET /confluence HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:36 +0300] "GET /favicon.ico HTTP/1.1" 404 1078
There is 5 directories in webapps,
cargocpc
confluence
host-manager
manager
synchrony-proxy
if i move index.html from cargocpc to any directory, webserver can reach it.
Excepts "confluence".
Debugging the issue, its observed that its a JAVA version issue. The current version of Java on my machine is 1.8 , whereas Confluence needs
Java 11 or Java 17
Refer - Supported Platforms | Confluence Data Center and Server 8.7 | Atlassian Documentation
So to resolve the issue below changes are needed in the pom.xml file
<confluence.version>8.5.0</confluence.version>
<confluence.data.version>8.5.0</confluence.data.version>
<amps.version>8.10.1</amps.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
Updating Java from 1.8 to 11 using the below steps did the trick
Steps to update Java on M1 Mac
Set Java 11 as the Default Version (if needed):
brew link --overwrite --force openjdk@11
Update the .bash_profile & .zshrc
vi ~/.bash_profile
vi ~/.zshrc
export PATH=/opt/homebrew/bin:/Users/actio/Library/Python/3.9/bin:/usr/bin/:$HOME/.cargo/bin:$PATH
export JAVA_HOME=/opt/homebrew/opt/openjdk@11
export PATH=$PATH:$JAVA_HOME/bin
Observe the JAVA_HOME changed to point to JDK 11
Verify the Installation:
Once installed, open a new Terminal window and type java -version
to check if Java 11 is the default version now. The output should show version 11.
Re-run mvn -v
:
Open a new Terminal window and run mvn -v
again to verify that Maven is now using Java 11. The Java version in the Maven output should reflect Java 11.
@Класс точностиdid you find any solution for the problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interested as well, I am trying to develop a plugin but continue to get this error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As information, using this post https://stackoverflow.com/questions/63290222/atlassian-confluence-sdk-problem-starting-app-404
Basically set the <confluence.version> and <confluence.data.version> to something higher than version 7.0 in the pom.xml file.
I got past the 404, but now just get a blank page. But some progress.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I decided to start fresh:
http://localhost:1990/confluence now results in a login screen.
Hope this helps you get past your issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Facing the blank screen issue after updating the confluence version. Do you know how to get past the blank screen issue ?
Cheers
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
\target\container\tomcat9x\cargo-confluence-home\logs
127.0.0.1 - - [09/Nov/2020:13:54:10 +0300] "GET /cargocpc/index.html HTTP/1.1" 200 124
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:02:44 +0300] "GET /confluence HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:02:45 +0300] "GET /favicon.ico HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:36 +0300] "GET /confluence HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:36 +0300] "GET /favicon.ico HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:36 +0300] "GET /confluence HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:37 +0300] "GET /confluence HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:37 +0300] "GET /confluence HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:37 +0300] "GET /confluence HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:37 +0300] "GET /favicon.ico HTTP/1.1" 404 1078
0:0:0:0:0:0:0:1 - - [09/Nov/2020:14:03:37 +0300] "GET /confluence HTTP/1.1" 404 1078
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.