My Oracle Support Banner

Error "Cannot Find Closing Comment Tag To Match" on Custom index.ftl Page (Doc ID 2693648.1)

Last updated on JUNE 20, 2024

Applies to:

Oracle Commerce Cloud Service - Version 21.1.1 and later
Information in this document applies to any platform.

Symptoms

ISSUE STATEMENT

When the index swap feature is used it throws the following error

ERROR


STEPS TO REPLICATE


The issue can be reproduced at will with the following steps:

1. Raise an SR to Oracle Commerce Support and ask them to enable the "StaticContentManager" for this functionality.

2. Navigate to http://yourserverhost:port/occs-admin/#/developer and download the Storefront Libraries. (This is a big zip file containing copies of the current JS Framework files.)

3. Inside the zip file, you should also see a directory called freemarker - this contains a number of example Freemarker templates. One of these is called index.ftl.

4. The next step is to do a DCU grab with the latest version of DCU from main.

5. DCU has created a new empty directory called static. (The latter is mapped to a dedicated folder in the VFS.)

6. Put the index.ftl in the static directory and do a DCU put (other content can also be placed in this directory as needed e.g. additional JS files).

7. Go back at http://yourserverhost:port/occs-admin/#/developer, you will notice that a new Activate button can be seen on the screen.

8. Click on "Activate" Commerce Cloud will use your index.ftl instead of the default index.jsp.

9. Modify the index page behavior by editing index.ftl in the static directory and doing a DCU put.

More information about Static Content can be found here: How Can You Enable the Static Content Manager Feature (Doc ID 2707270.1).

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.