Confluence 10.0 release EAP is available now

@HarshitSharma check your version of struts2. There you should also have version 7. something to have a jakarta compliant API.
Something along these lines:

<dependency>
   <groupId>org.apache.struts</groupId>
   <artifactId>struts2-core</artifactId>
   <version>7.0.0-atlassian-m04</version>
   <scope>provided</scope>
</dependency>

Once again the version can be managed automatically using the bom, but there is the major version that works as far as I know. Atlassian has a repo for it: https://mvnrepository.com/artifact/org.apache.struts/struts2-core?repo=atlassian-artifacts

That worked, thanks! :raising_hands:
I was able to resolve it using the following two dependencies :

<dependency>
 <groupId>org.apache.struts</groupId>
 <artifactId>struts2-core</artifactId>
 <version>7.0.0-atlassian-m04</version>
 <scope>provided</scope>
</dependency>
<dependency>
 <groupId>org.apache.struts.xwork</groupId>
 <artifactId>xwork-core</artifactId>
 <version>2.3.37</version>
</dependency>

Hi @Kusal , @scott.dudley , @AndreaSerra

I am facing an issue when trying to use Struts2 in my Confluence plugin.

Here’s my configuration:
public class PageBulkDeleteAction extends ConfluenceActionSupport implements ServletRequestAware {
}
I have did all the migration from javax to jakarta with required dependencies added.

I noticed that ConfluenceActionSupport is still using some javax-based classes. Could this be the reason for the issue I am hitting or any alternatives to use?

I have already tried with:

  • Latest AMPS 9.3.6

  • <enableAchoo>false</enableAchoo>

  • <confluence.version>9.2.8</confluence.version>
    <confluence.data.version>9.2.8</confluence.data.version>
    <platform.version>8.0.0-jakarta-m030</platform.version>
    <amps.version>9.3.6</amps.version>

17:02:09,853 ERROR [http-nio-1990-exec-2 url: /confluence/admin/vea/settings/global-config.action; user: admin] [web.impl.DefaultWebInterfaceManager] filterFragmentsByCondition Could not evaluate condition ‘com.atlassian.plugin.web.conditions.AndCompositeCondition@3a97ce48’ for descriptor: system.header/left/confluence.dbconsole-link
– url: /confluence/admin/vea/settings/global-config.action | userName: admin | referer: http://vamhi-hp-2:1990/confluence/plugins/servlet/upm | traceId: 0f4920aa1733ece9
java.lang.NoSuchMethodError: ‘javax.servlet.http.HttpServletRequest com.atlassian.core.filters.ServletContextThreadLocal.getRequest()’

@Kusal @scott.dudley Any ideas wyat that happens?

The issue has been resolved. It appeared to be caused by an unknown source and not by our plugin. We hope this will be addressed in a future release of Confluence. Thank you :folded_hands: .