Hi Team,
I am working on confluence migration from 9.2.3 to 10.2.3. After spooling the instance with confluence version 10.2.3 and amps version 9.6.1 and jdk.version as 21 , confluence instance spooled successfully however my rest api's are not working at all. http://localhost:1990/confluence/rest/project_context/latest/myapp/content gives me 404 not found. Is this for local instance https protocol is recommended with confluence 10.2 version? Please confirm Note: http://localhost:1990/confluence/rest/project_context/latest/myapp/content url path is not having any issues . this is working fine with confluence 9.2.3 version with 200 ok response
Tomcat: 10.1.49
Ignore this. I am able to solve the issue. The above issue i faced is due to incompatibility between JSR 311 and JAKARTA EE specifications with respect to REST V2 changes. After adjusting all the dependencies to JAKARTA EE im able to see successfully rest response as 200 OK.
<dependency>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
<version>${jakarta.ws.rs.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugins.rest</groupId>
<artifactId>atlassian-rest-v2-api</artifactId>
<version>${rest.v2.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.inject</groupId>
<artifactId>jakarta.inject-api</artifactId>
<version>${jakarta.inject.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${jakarta.annotation.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${fasterxml.jackson.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${fasterxml.jackson.version}</version></<dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
</dependency> This issue is resolved. Thankyou.. i am able to get response with HTTP protocol only in local instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.