[midPoint] Deployment Logo - Midpoint 4.0.1 - Embedded Tomcat - Windows
Gómez Martínez, Elsa
egomezm at minsait.com
Tue Mar 3 13:19:01 CET 2020
Hi Loïc,
I have some solutions that found my coworkers but I didn’t test it so I don’t know if they are going to work on Windows. In addition, they are more complicated.
However, I will explain you the other two solutions:
1. Before compiling the code.
If we change it before compiling we must:
1. Paste in icon in midpoint\ gui\admin-gui\src\main\resources\static\img\logo.png
2. Search in midpoint\gui\admin-gui\src\main\resources\static\less\midpoint-theme.less where the logo is established (line 40 approx) and change those lines to:
& .logo {
& > span {
height: 100%;
width: 100%;
display: inline-block;
background: url("../img/logo.png") no-repeat 50px;
background-size: contain;
}
}
2. WAR on Tomcat
To change it in the decompressed war we must make the same previous changes but on different routes.
1. Paste the icon in \webapps\admin_gui_war\WEB-INF\classes\static\img\
2. Edit the theme located in \webapps\admin_gui_war\WEB-INF\classes\static\less
Elsa
De: midPoint <midpoint-bounces at lists.evolveum.com> En nombre de Loïc Schamber
Enviado el: martes, 3 de marzo de 2020 13:10
Para: midPoint General Discussion <midpoint at lists.evolveum.com>
Asunto: Re: [midPoint] Deployment Logo - Midpoint 4.0.1 - Embedded Tomcat - Windows
Hi Elsa,
I also had Midpoint crashes when using Widows path ( With “\” character )
I don’t think the “\” should be escaped on XML file so it must be a problem in midpoint handling.
As you had the same problem before, did you found a workaround that I could use?
Loïc Schamber | Junior IT Consultant
<https://www.serial.ch/>
<mailto:lschamber at serial.ch> lschamber at serial.ch | <tel:+41%2022%20555%2027%2069> +41 22 555 27 69
Chemin du Pré-Fleuri 5 – CH 1228 Plan-les-Ouates
<https://www.linkedin.com/company/redcactus-by-positivethinkingcompany> <https://www.instagram.com/positivethinkingcompany>
Redcactus by SERIAL www.serial.ch
www.positivethinking.co
_____
Help save paper, do you really need to print this email?
The content of this email and any attachments are confidential and are intended solely for the person and/or company to whom they are addressed. The information may also be legally privileged. No employee or agent is authorized to conclude any binding agreement on behalf of SERIAL with another party by email without express written confirmation. If you have received this email in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by return E-mail and delete this message, its attachments and all copies from your system. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. Thank you for your cooperation.
From: midPoint <midpoint-bounces at lists.evolveum.com <mailto:midpoint-bounces at lists.evolveum.com> > On Behalf Of Gómez Martínez, Elsa
Sent: mardi, 3 mars 2020 12:00
To: midPoint General Discussion <midpoint at lists.evolveum.com <mailto:midpoint at lists.evolveum.com> >
Subject: Re: [midPoint] Deployment Logo - Midpoint 4.0.1 - Embedded Tomcat - Windows
Hi Loïc,
I think that the main problema is the slash.
As you are working on Windows, I guess that it doesn’t find the directory (on Windows the paths are like: midpoint-4.0.1-demobank\var\static-web\logo.png and in Linux/Docker systems is like: static-web/evolveum.png).
I have tried to change slash on my local Midpoint on Windows and write it as backslash but I have got a worse result because midPoint crash. Maybe there’s some way to escape it.
If you try it, I recommend that save some security copy.
Sorry I couldn’t help more.
De: midPoint <midpoint-bounces at lists.evolveum.com <mailto:midpoint-bounces at lists.evolveum.com> > En nombre de Loïc Schamber
Enviado el: lunes, 2 de marzo de 2020 15:31
Para: midpoint at lists.evolveum.com <mailto:midpoint at lists.evolveum.com>
Asunto: [midPoint] Deployment Logo - Midpoint 4.0.1 - Embedded Tomcat - Windows
Hi folks,
I have an issue with deployment logo and reading the previous thread from Elsa does not help me much.
I am deploying Midpoint 4.0.1 on a Windows Server and I have to set up the logo.
So I created a static-web folder, put my logo on it and added the following xml to systemConfiguration:
<deploymentInformation>
<skin>skin-green-light</skin>
<name>Midpoint Test</name>
<logo>
<imageUrl>static-web/evolveum.png</imageUrl>
</logo>
</deploymentInformation>
(Yep, I stole your logo to test the imageUrl configuration 😉)
Sadly it doesn’t work: I can see a request sent to <http://localhost:8080/midpoint/static-web/evolveum.png> http://localhost:8080/midpoint/static-web/evolveum.png but it end up with a 500 error.
I also tried to request <http://localhost:8080/midpoint/static-web/> http://localhost:8080/midpoint/static-web/ but got a 404.
It seems that the static-web folder is not server at all, However I tried in my dev docker (on linux) and it works fine.
I am not used to tomcat so maybe there is some configuration to make in order to serve the static-web folder on a windows infrastructure
I can not use docker for the deployment and I would like to avoid less style modification in order to keep midpoint configuration easy for non-technical administrators.
Any Idea?
Thanks,
Loïc Schamber | Junior IT Consultant
<https://www.serial.ch/>
<mailto:lschamber at serial.ch> lschamber at serial.ch | <tel:+41%2022%20555%2027%2069> +41 22 555 27 69
Chemin du Pré-Fleuri 5 – CH 1228 Plan-les-Ouates
<https://www.linkedin.com/company/redcactus-by-positivethinkingcompany> <https://www.instagram.com/positivethinkingcompany>
Redcactus by SERIAL www.serial.ch
www.positivethinking.co
_____
Help save paper, do you really need to print this email?
The content of this email and any attachments are confidential and are intended solely for the person and/or company to whom they are addressed. The information may also be legally privileged. No employee or agent is authorized to conclude any binding agreement on behalf of SERIAL with another party by email without express written confirmation. If you have received this email in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by return E-mail and delete this message, its attachments and all copies from your system. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200303/33831fad/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6827 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200303/33831fad/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 451 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200303/33831fad/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1129 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200303/33831fad/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 5349 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200303/33831fad/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6049 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200303/33831fad/attachment.bin>
More information about the midPoint
mailing list