Confluence 8.7 release EAP available now

Hi everyone,

A Confluence 8.7 EAP milestone is available now! EAP releases provide a snapshot of our work-in-progress and give you an opportunity to test and fix your apps before the final release.

As usual, we’ll be releasing weekly milestones and betas during the development of Confluence 8.7, so head to Preparing for Confluence 8.7 to find out what’s changed.

Get the latest EAP

If you have any problems with an EAP release, please raise an issue to let us know. The earlier we know about problems, the more time we’ll have to fix them before the final release.

Enjoy!

1 Like

Thanks @Wendy!

Could you ask the person who published this EAP image to docker (under the ‘eap’ label) if they think all is well with that image?

It is not working for me and I don’t know if it’s just me or the docker image: Docker

When I pulled the new image and started it it is acting like a brand new server that is unaware of the previous DB and other basic config like ‘is this a single node or a cluster’.

I can’t get past the first screen for “Choose your deployment type” and the browser dev console is full of errors.

I normally just “docker-compose stop”, “docker-compose pull”, and “docker-compose up -d” and I’ve got a server that is upgraded to the latest image for the ‘eap’ label… the server has my old database, old config, old pages, etc.

This time it is acting like a completely new and broken server. Again, not sure if it is something I did or if the docker image is weird but this is normally a simple operation after someone uploads a new image to the ‘eap’ label and something might be broken this time.

Thanks!

When I start the Confluence server via atlas-debug, version 8.7.0-m46 I get (after downloading the war artifact successfully) the following error message:

Execution null of goal com.atlassian.maven.plugins:confluence-maven-plugin:8.11.4:debug failed: Container tomcat${tomcat.version.major}x not supported

This worked in previous versions (8.6.x, …). I use JDK 11. I get the same result with m41. Using m47, I can build, but I cannot get the war artifact: Unable to find/resolve artifact.: Could not find artifact com.atlassian.confluence:confluence-webapp:war:8.7.0-m47 (but this may be no issue tomorrow).

Is this an issue in my configuration, revealed with version 8.7.0, or is something missing in the milestone I use?

Hi @turehoefner_appfire

I’ve shared your question with the product team and have asked them to jump in to respond directly. Let’s wait to hear the fix.

Thanks,
Wendy

Hi @rr1 , I’ve also passed your question on to the product team. They’ll respond directly with the answer.

1 Like

Hello @rr1,

I’m the developer responsible for this change, specifically the Container tomcat${tomcat.version.major}x not supported error message. It appears that this is a bug, but to confirm this I would like to get the full context of how you are invoking the confluence-maven-plugin. Are you able to provide more details so I can reproduce this?

Thanks,
Carlin

1 Like

HI @Carlin

Unfortunately, I also have this problem with the standard development process and atlas-run command.

atlas-version

ATLAS Version:    8.2.7
ATLAS Home:       /Applications/Atlassian/atlassian-plugin-sdk
ATLAS Scripts:    /Applications/Atlassian/atlassian-plugin-sdk/bin
ATLAS Maven Home: /Applications/Atlassian/atlassian-plugin-sdk/apache-maven
AMPS Version:     8.1.2
--------
Executing: /Applications/Atlassian/atlassian-plugin-sdk/apache-maven/bin/mvn --version -gs /Applications/Atlassian/atlassian-plugin-sdk/apache-maven/conf/settings.xml
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /Applications/Atlassian/atlassian-plugin-sdk/apache-maven
Java version: 11.0.20.1, vendor: Azul Systems, Inc., runtime: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
Default locale: en_PL, platform encoding: UTF-8
OS name: "mac os x", version: "14.1", arch: "aarch64", family: "mac"

build

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  36.079 s
[INFO] Finished at: 2023-11-14T06:49:08+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:confluence-maven-plugin:8.10.1:run (default-cli) on project extender: Execution default-cli of goal com.atlassian.maven.plugins:confluence-maven-plugin:8.10.1:run failed: Container tomcat${tomcat.version.major}x not supported -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[INFO] Running Shutdown Hook
[INFO] confluence: Shutting down
Exception in thread "AMPS product shutdown" java.lang.IllegalStateException: Unable to shut down products in shutdown hook
	at com.atlassian.maven.plugins.amps.RunMojo.lambda$addStopProductsShutdownHook$0(RunMojo.java:244)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception while stopping the products
	at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.stopProducts(AbstractProductHandlerMojo.java:928)
	at com.atlassian.maven.plugins.amps.RunMojo.lambda$addStopProductsShutdownHook$0(RunMojo.java:242)
	... 1 more
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Container tomcat${tomcat.version.major}x not supported
	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205)
	at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.shutDown(AbstractProductHandlerMojo.java:949)
	at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.stopProducts(AbstractProductHandlerMojo.java:921)
	... 2 more
Caused by: java.lang.IllegalArgumentException: Container tomcat${tomcat.version.major}x not supported
	at com.atlassian.maven.plugins.amps.product.manager.Containers.findContainer(Containers.java:56)
	at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.getCustomContainer(WebAppManagerImpl.java:279)
	at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.getContainer(WebAppManagerImpl.java:354)
	at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.stopWebapp(WebAppManagerImpl.java:441)
	at com.atlassian.maven.plugins.amps.product.AbstractWebappProductHandler.stop(AbstractWebappProductHandler.java:55)
	at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.lambda$shutDown$1(AbstractProductHandlerMojo.java:943)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	... 1 more

pom.xml

 <dependencies>
        <dependency>
            <groupId>jakarta.xml.bind</groupId>
            <artifactId>jakarta.xml.bind-api</artifactId>
            <version>4.0.0</version>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>4.0.3</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.16.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.mail</groupId>
            <artifactId>atlassian-mail</artifactId>
            <version>5.2.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-space-ia</artifactId>
            <version>17.12.12</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-text</artifactId>
            <version>1.10.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>licensing-api</artifactId>
            <version>5.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>upm-api</artifactId>
            <version>5.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.templaterenderer</groupId>
            <artifactId>atlassian-template-renderer-api</artifactId>
            <version>4.0.2</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>4.0.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-annotation</artifactId>
            <version>${atlassian.spring.scanner.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>confluence-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <ajpPort>8110</ajpPort> <!-- default 8009 -->
                    <productVersion>${confluence.version}</productVersion>
                    <productDataVersion>${confluence.data.version}</productDataVersion>
                    <jvmArgs>-Xms2048m -Xmx6072m -Duser.language=en -Duser.country=US -Dconfluence.browser.language.enabled=false</jvmArgs>
                    <enableQuickReload>true</enableQuickReload>
                    <quickReloadVersion>3.0.1</quickReloadVersion>
                    <skipRestDocGeneration>true</skipRestDocGeneration>
                    <allowGoogleTracking>false</allowGoogleTracking>
                    <skipManifestValidation>true</skipManifestValidation>
                    <instructions>
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                    <extractDependencies>false</extractDependencies>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <scannedDependencies>
                        <dependency>
                            <groupId>com.atlassian.plugin</groupId>
                            <artifactId>atlassian-spring-scanner-external-jar</artifactId>
                        </dependency>
                    </scannedDependencies>
                    <verbose>false</verbose>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <properties>
        <confluence.version>8.7.0-m41</confluence.version>
        <confluence.data.version>${confluence.version}</confluence.data.version>
        <amps.version>8.10.1</amps.version>
        <atlassian.spring.scanner.version>2.2.0</atlassian.spring.scanner.version>
        <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

If you need additional data, let me know.

Cheers
Adam

1 Like

Hi @Carlin,

Thank you for looking into this!

C:\>atlas-version

ATLAS Version:    8.2.7
ATLAS Home:       C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7
ATLAS Scripts:    C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\bin
ATLAS Maven Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4
AMPS Version:     8.1.2
--------
Executing: "C:\d\apache-maven\apache-maven-3.8.6\bin\mvn.cmd" --version -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.8.6

Please note that I set AMPs version in the POM.
EDIT: I also set ATLAS_MVN (and M2_HOME) to Maven 3.8.6.

Relevant parts from our pom.xml:

    <amps.version>8.11.4</amps.version>
    <confluence.data.version>${version.confluence}</confluence.data.version>
    <confluence-editor.version>${version.confluence}</confluence-editor.version>
    <version.rest-api-browser>3.2.3</version.rest-api-browser>
    <version.confluence-source-editor>2.0.0</version.confluence-source-editor>
    <version.quick.reload>5.0.2</version.quick.reload>

<!-- SNIP -->

    <profile>
      <id>8.7.x</id>
      <activation>
        <property>
          <name>env.CONFLUENCE_VERSION</name>
          <value>8.7.x</value>
        </property>
      </activation>
      <properties>
        <version.confluence>8.7.0-m47</version.confluence>
        <jdk.version>11</jdk.version>
      </properties>
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>${maven-compiler-plugin.version}</version>
              <configuration>
                <release>11</release>
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    </profile>

<!-- SNIP -->

<plugin>
  <groupId>com.atlassian.maven.plugins</groupId>
  <artifactId>confluence-maven-plugin</artifactId>
  <version>${amps.version}</version>
  <extensions>true</extensions>
  <configuration>
    <archive>
      <manifest>
        <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
        <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
      </manifest>
      <manifestFile>target/classes/META-INF/MANIFEST.MF</manifestFile>
    </archive>

    <productVersion>${version.confluence}</productVersion>
    <productDataVersion>${confluence.data.version}</productDataVersion>
    <httpPort>1990</httpPort>

    <enableDevToolbox>false</enableDevToolbox>
    <enablePde>false</enablePde>
    <skipRestDocGeneration>false</skipRestDocGeneration>
    <allowGoogleTracking>false</allowGoogleTracking>
    <skipManifestValidation>true</skipManifestValidation>
    <extractDependencies>false</extractDependencies>
    <skipManifestValidation>true</skipManifestValidation>
    <skipTests>true</skipTests>

    <jvmArgs>-Xms4096m -Xmx4096m</jvmArgs>
    <pluginArtifacts>
      <pluginArtifact>
        <groupId>com.atlassian.labs</groupId>
        <artifactId>rest-api-browser</artifactId>
        <version>${version.rest-api-browser}</version>
      </pluginArtifact>
      <pluginArtifact>
        <groupId>com.atlassian.confluence.plugins.editor</groupId>
        <artifactId>confluence-source-editor</artifactId>
        <version>${version.confluence-source-editor}</version>
      </pluginArtifact>
      <pluginArtifact>
        <groupId>com.atlassian.labs.plugins</groupId>
        <artifactId>quickreload</artifactId>
        <version>${version.quick.reload}</version>
      </pluginArtifact>
    </pluginArtifacts>

    <products>
      <product>
        <id>confluence</id>
        <instanceId>confluence</instanceId>
        <version>${version.confluence}</version>
        <dataVersion>${confluence.data.version}</dataVersion>
        <server>localhost</server>
      </product>
    </products>

    <instructions>
      <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}</Atlassian-Plugin-Key>
      <Spring-Context>*</Spring-Context>
      <Import-Package>
        com.atlassian.confluence.api.service.accessmode;resolution:="optional",
        com.atlassian.confluence.impl.content.render.xhtml.analytics;resolution:="optional",
        *;resolution:="optional"
      </Import-Package>
      <Export-Package>
        de.smartics*
      </Export-Package>
    </instructions>
  </configuration>
</plugin>

I am starting the server in debug mode.

atlas-debug -Dmaven.test.skip

I hope this includes everything needed to reproduce my configuration issue. It worked with previous versions of Confluence so I assume there is an issue with my configuration that prevents it from working with the current milestones.

Please let me know if you need further information!

Cheers,
Robert

EDIT 2: I tried m49 today, with the same result, albeit it is slightly different from what Adam posted (but I am running debug mode):

com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:debug (default-cli) on project XXX: Unable to execute mojo: Execution null of goal com.atlassian.maven.plugins:confluence-maven-plugin:8.11.4:debug failed: Container tomcat${tomcat.version.major}x not supported

The amps-dispatcher-maven-plugin is in version 8.1.2 where I would expect it to be 8.11.4. I ran the atlas-update again, and reinstalled version 8.2.7 (because of an update warning during the build). This is the result after the (probably unnecessary) update.

The whole error message:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  26.760 s
[INFO] Finished at: 2023-11-14T11:53:48+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:debug (default-cli) on project XXX: Unable to execute mojo: Execution null of goal com.atlassian.maven.plugins:confluence-maven-plugin:8.11.4:debug failed: Container tomcat${tomcat.version.major}x not supported -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] Running Shutdown Hook
[INFO] confluence: Shutting down
Exception in thread "AMPS product shutdown" java.lang.IllegalStateException: Unable to shut down products in shutdown hook
        at com.atlassian.maven.plugins.amps.RunMojo.lambda$addStopProductsShutdownHook$0(RunMojo.java:244)
        at java.lang.Thread.run(Thread.java:750)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception while stopping the products
        at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.stopProducts(AbstractProductHandlerMojo.java:930)
        at com.atlassian.maven.plugins.amps.RunMojo.lambda$addStopProductsShutdownHook$0(RunMojo.java:242)
        ... 1 more
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Container tomcat${tomcat.version.major}x not supported
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:206)
        at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.shutDown(AbstractProductHandlerMojo.java:951)
        at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.stopProducts(AbstractProductHandlerMojo.java:923)
        ... 2 more
Caused by: java.lang.IllegalArgumentException: Container tomcat${tomcat.version.major}x not supported
        at com.atlassian.maven.plugins.amps.product.manager.Containers.findContainer(Containers.java:56)
        at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.getCustomContainer(WebAppManagerImpl.java:279)
        at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.getContainer(WebAppManagerImpl.java:354)
        at com.atlassian.maven.plugins.amps.product.manager.WebAppManagerImpl.stopWebapp(WebAppManagerImpl.java:441)
        at com.atlassian.maven.plugins.amps.product.AbstractWebappProductHandler.stop(AbstractWebappProductHandler.java:55)
        at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.lambda$shutDown$1(AbstractProductHandlerMojo.java:945)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        ... 1 more

And even if I unset the ATLAS_MVN environment variable, I get the following:

C:\p\production\smartics-projectdoc-confluence>atlas-debug    
[INFO] Project POM found
[INFO] Resolving plugin info, may take a while on the first run.
Der Befehl ""C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" --batch-mode org.apache.maven.plugins:maven-dependency-plugin:3.1.2:resolve-plugins -DincludeGroupIds=com.atlassian.maven.plugins -DexcludeTransitive=true" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
[INFO] Project defined AMPS version detected: "8.1.2"
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:debug -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml

Der Befehl ist entweder falsch geschrieben oder konnte nicht gefunden werden.” translates to that the command is either misspelled or cannot be found. Maybe there are some redundant double quotes?

Thanks for this, I’ll let you know once I’ve figured this one out

1 Like

Thanks for this, I’ll let you know once I’ve figured this one out.

Cheers,
Carlin

Hi @Carlin,

I checked the latest RC1 with AMPS 8.12.0 (not sure if this update is required) and it works!

I have to set the JAVA_HOME environment correctly (seems not to work with toolchain as did with previous versions or it never worked, but did no harm) and it runs like a charm.

Thank you very much for fixing this!

EDIT: It also works if JAVA_HOME is not set to a wrong Java version. It is not required to be set.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.