[keycloak-user] Load custom theme from module
Marvin Oßwald
mail at marvinosswald.de
Fri Jan 19 12:35:10 EST 2018
I get the following error message:
15:30:04,838 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-71) Uncaught server error: java.lang.NullPointerException
at org.keycloak.theme.ExtendingThemeManager$ExtendingTheme.getProperties(ExtendingThemeManager.java:292)
at org.keycloak.services.resources.admin.info.ServerInfoAdminResource.setThemes(ServerInfoAdminResource.java:186)
at org.keycloak.services.resources.admin.info.ServerInfoAdminResource.getInfo(ServerInfoAdminResource.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
my standalone.xml:
<theme>
<staticMaxAge>2592000</staticMaxAge>
<cacheThemes>true</cacheThemes>
<cacheTemplates>true</cacheTemplates>
<dir>${jboss.home.dir}/themes</dir>
<modules>
<module>de.svg.keycloak.modules.keycloak-svg-theme</module>
</modules>
</theme>
my pom.xml of my theme:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Keycloak SVG Theme</name>
<description/>
<modelVersion>4.0.0</modelVersion>
<artifactId>keycloak-svg-theme</artifactId>
<groupId>de.svg.keycloak.modules</groupId>
<version>1.0.0</version>
<packaging>jar</packaging>
<build>
<finalName>keycloak-svg-theme</finalName>
</build>
</project>
my META-INF/keycloak-themes.json:
{
"themes": [{
"name" : "svg",
"types": [ "login", "email" ]
}]
}
Sorry for my two messages, any ideas what i’m doing wrong ?
On 19. January 2018 at 18:27:07, Marvin Oßwald (mail at marvinosswald.de) wrote:
Hello,
if i’m registering my custom theme like this:
./keycloak/bin/jboss-cli.sh --command="module add --name=de.svg.keycloak.modules.keycloak-svg-theme --resources=keycloak-svg-theme-1.0.0.jar”
More information about the keycloak-user
mailing list