X-Frames clickacking JVM propery not working anymore since upgrade
Asked by eridur:

Hi,

since the upgrade from Confluence 6.8.2 to 6.11.2 (self hosted server edition) the click jacking property does not appear in System Information Overview (/admin/systeminfo.action) within confluence admin site. I upated the service.bat file after upgrade and added the JVM argument the same way i did in 6.8.2. The parameter name did not change according to Atlassian Documentation <https://confluence.atlassian.com/doc/recognized-system-properties-190430.html>

;-Dconfluence.clickjacking.protection.disable=true

Has somebody an idea how to fix this? Due to my starter 10 persons license i am not allowed to raise a support ticket at Atlassian.

regards and thanks, Mario


Answers:
author: Shannon S
body: Hi Mario,

The property should be modified in in the setenv file unless you're running as a Windows service.

Have a look at the following articles for more information.

* [Configuring System Properties](https://confluence.atlassian.com/conf611/configuring-system-properties-956138487.html)
* [Confluence page does not display in an iframe \> Resolution 1](https://confluence.atlassian.com/confkb/confluence-page-does-not-display-in-an-iframe-827335781.html)

Regards,

Shannon

comments: author: eridur
body: Hi Shannon. Thanks for the feedback. I set it in both files but i am using Windows Service only.

    -Dconfluence.clickjacking.protection.disable=true 

was set accordingly. It worked in the previous version. Now when i start up the instance the JVM parameter list does not show this argument. There is no mistyping or missing semicolon in my config. It's weird. I also removed the windows service and reinstalled it using the service.bat

hm.. :-(

regards, Mario


author: Shannon S
body: Mario,

On the first article I sent, there are [two methods to add when running Confluence as a service](https://confluence.atlassian.com/conf611/configuring-system-properties-956138487.html?_ga=2.255992331.1663747538.1538989343-372196427.1536227950#ConfiguringSystemProperties-Windowsservice).
>
> Windows service {#toc-hId-1845913572}
> -------------------------------------
>
> There are two ways to configure system properties when you [Start Confluence Automatically on Windows as a Service](https://confluence.atlassian.com/conf611/start-confluence-automatically-on-windows-as-a-service-956138565.html), either via [command line](https://confluence.atlassian.com/conf611/configuring-system-properties-956138487.html?_ga=2.255992331.1663747538.1538989343-372196427.1536227950#ConfiguringSystemProperties-commandline) or [in the Windows Registry](https://confluence.atlassian.com/conf611/configuring-system-properties-956138487.html?_ga=2.255992331.1663747538.1538989343-372196427.1536227950#ConfiguringSystemProperties-registry)
>
> ### Setting properties for Windows services via command line {#toc-hId--902756894}
>
> **To set properties for Windows services via a command line:**
>
> 1. Identify the name of the service that Confluence is installed as in Windows (Go to **Control Panel** \> **Administrative Tools** \> **Services** ):  
>    ![](https://confluence.atlassian.com/conf611/files/956138487/956138488/1/1534199736526/ConfluenceServiceName.png)  
>    ![(info)](https://confluence.atlassian.com/s/en_GB/7202/e97769bbf919c0bd667762fc102f557beacb7f94/_/images/icons/emoticons/information.png) In the above example, the service name is *Confluence121213135538*.
> 2. Open the command window (Choose **Start** \> **cmd.exe**)
> 3. `cd` to the `bin` directory of your Confluence instance and run the following command:
>
>        tomcat9w //ES//<SERVICENAME>
>
>    ![(info)](https://confluence.atlassian.com/s/en_GB/7202/e97769bbf919c0bd667762fc102f557beacb7f94/_/images/icons/emoticons/information.png) In the above example, it would be `tomcat9w //ES//Confluence121213135538`  
>    The Tomcat version number may be different if you are using an earlier version of Confluence.
> 4. Click on the `Java` tab to see the list of current start-up options:  
>    ![](https://confluence.atlassian.com/conf611/files/956138487/956138490/1/1534199736750/ConfluenceServiceSetProperties.png)
> 5. Append any new option on its own new line by adding to the end of the existing Java Options. Refer to the list of parameters in [Recognized System Properties](https://confluence.atlassian.com/conf611/recognized-system-properties-956138491.html).
>
> ### Setting properties for Windows services via the Windows registry {#toc-hId-840053441}
>
> In some versions of Windows, there is no option to add Java variables to the service. In these cases, you must add the properties by viewing the option list in the registry.

1.
   > Go to the Registry Editor (**Start** \> **regedit.exe**).
2.
   > Find the Services entry: **64bit** : `HKEY_LOCAL_MACHINE >> SOFTWARE >>` WOW6432Node >> `Apache Software Foundation >> Procrun 2.0 >> Confluence service name`**32bit** : `HKEY_LOCAL_MACHINE >> SOFTWARE >> Apache Software Foundation >> Procrun 2.0 >> Confluence service name`![](https://confluence.atlassian.com/conf611/files/956138487/956138489/1/1534199736647/ConfluenceServiceRegistryEditor.png)
3.
   > To change existing properties double-click the appropriate value.
4.
   > To change additional properties, double-click options.
5.
   > Refer to the list of parameters in [Recognized System Properties](https://confluence.atlassian.com/conf611/recognized-system-properties-956138491.html). Enter each on a separate line.

Can you make sure to try both of those? If you're still having trouble please send us screenshots of the settings so we can ensure it looks correct.

Regards,

Shannon


author: eridur
body: Hi Shannon,

you are my hero. It worked according to your first description calling the command tomcat9w //ES/Confluence (i had to change this from /ES//Confluence). Thanks alot for your time and help!

best regards, Mario :-)


author: Shannon S
body: Mario,

Happy to be able to provide that information!

Take care, and kind regards.

Shannon


Tags: confluence-server

server