HelloWorld plugin - the origin server did not find a current representation for the target resource

Класс точности November 9, 2020

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:

HTTP Status 404 – Not Found


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.


Apache Tomcat/9.0.11

 

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".

 

3 answers

1 accepted

0 votes
Answer accepted
Ajay _view26_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 11, 2024

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 -

 

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 

  1. Set Java 11 as the Default Version (if needed):

    brew link --overwrite --force openjdk@11

  2. 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

:point_up_2: 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.

0 votes
Rolf Lader
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2023

@Класс точностиdid you find any solution for the problem?

James Watts March 15, 2023

Interested as well, I am trying to develop a plugin but continue to get this error.

Like Rolf Lader likes this
James Watts March 15, 2023

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.

Like Rolf Lader likes this
James Watts March 15, 2023

I decided to start fresh:

  1. atlas-create-confluence-plugin
  2. Update pom.xml and updated below:
    1. <confluence.version>7.20.1</confluence.version>
    2. <confluence.data.version>7.20.1</confluence.data.version>
  3. atlas-run

http://localhost:1990/confluence now results in a login screen.

Hope this helps you get past your issue.

Like Rolf Lader likes this
Ajay _view26_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 11, 2024

@James Watts ,

Facing the blank screen issue after updating the confluence version. Do you know how to get past the blank screen issue ?

Cheers

Ajay

0 votes
Класс точности November 9, 2020

\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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events