By: Josh Newlin user 13 Aug 2018 at 1:24 p.m. CDT

6 Responses
Josh Newlin gravatar

Hey,

So, I was reading the documentation here about linking images when using custom pages. By the doc's instruction, I've placed my images here:

/opt/gluu/jetty/oxauth/custom/static/img/[HERE]

And referenced in my login.xhtml located here:

/opt/gluu/jetty/oxauth/custom/pages/login.xhtml

I'm referencing them as such:

<img alt="Logo" src="/oxauth/ext/resources/img/RadarLogo.png" />

This is what the docs say to do, and I'm getting a 404 every time I try to load this image. What am I doing wrong? Thanks!!

Josh N.

By Thomas Gasmyr Mougang staff 13 Aug 2018 at 1:41 p.m. CDT

Thomas Gasmyr Mougang gravatar

Hey,

Use

<img alt="Logo" src="ext/resources/img/RadarLogo.png" />

By Josh Newlin user 13 Aug 2018 at 1:45 p.m. CDT

Josh Newlin gravatar

Hey Thomas,

I've changed it to this now:

<img alt="Logo" src="ext/resources/img/RadarLogo.png" />
<img alt="LogoText" src="ext/resources/img/RadarText.png" />

And am still getting 404's :(

https://{hostname}.com/oxauth/ext/resources/img/RadarLogo.png 404 (Not Found)
https://{hostname}.com/oxauth/ext/resources/img/RadarText.png 404 (Not Found)

By Thomas Gasmyr Mougang staff 13 Aug 2018 at 1:58 p.m. CDT

Thomas Gasmyr Mougang gravatar
  1. Copy oxauth_web_ressources.xml in /opt/gluu/jetty/oxauth/webapps/
  2. Copy identity_web_ressources.xml in /opt/gluu/jetty/identity/webapps/
  3. Restart identity and oxauth service

By Josh Newlin user 13 Aug 2018 at 2:17 p.m. CDT

Josh Newlin gravatar

Hey Thomas,

The only thing in /opt/gluu/jetty/oxauth/webapps and /opt/gluu/jetty/identity/webapps is oxauth.war and identity.war, respectively. Also, if there were these files in those directories, what would I copy them to?

I restarted the services regardless, and nothing has changed. I'm not sure what I'm supposed to do.

Josh N.

By Thomas Gasmyr Mougang staff 13 Aug 2018 at 2:19 p.m. CDT

Thomas Gasmyr Mougang gravatar

I added these files as attachment in my last post. use them and place them in corresponding directory.

By Josh Newlin user 13 Aug 2018 at 2:32 p.m. CDT

Josh Newlin gravatar

Oh! Sorry, I didn't see that there were attachments on your post. This worked! Thanks!