HelloWorld plugin - the origin server did not find a current representation for the target resource
Asked by ????? ????????:

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 {#toc-hId--1299887219}
---------------------------------------------------

*** ** * ** ***

**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 {#toc-hId--609325745}

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


Answers:
author: Ajay _view26_
body: 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 - [![](https://confluence.atlassian.com/staticassets/4.5.5/dist/common/images/favicon.png)Supported Platforms \| Confluence Data Center and Server 8.7 \| Atlassian Documentation](https://confluence.atlassian.com/doc/supported-platforms-207488198.html)

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:$PATHexport JAVA_HOME=/opt/homebrew/opt/openjdk@11export 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.


author: Rolf Lader
body: [@????? ????????](/t5/user/viewprofilepage/user-id/4096676)did you find any solution for the problem?

comments: author: James Watts
body: Interested as well, I am trying to develop a plugin but continue to get this error.


author: James Watts
body: 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.


author: James Watts
body: 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.


author: Ajay _view26_
body: [@James Watts](/t5/user/viewprofilepage/user-id/4715620) ,

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

Cheers

Ajay


author: ????? ????????
body: \\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


Tags: app

confluence-server

server