Skip to content

Instantly share code, notes, and snippets.

View sebastienblanc's full-sized avatar

Sebastien Blanc sebastienblanc

View GitHub Profile
2017-05-23 14:58:12.926 ERROR 16413 --- [nio-8080-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
java.lang.ClassCastException: org.keycloak.adapters.springsecurity.account.SimpleKeycloakAccount cannot be cast to org.keycloak.KeycloakSecurityContext
at org.keycloak.adapters.springsecurity.facade.SimpleHttpFacade.getSecurityContext(SimpleHttpFacade.java:60) ~[keycloak-spring-security-adapter-3.0.0.Final.jar:3.0.0.Final]
at org.keycloak.adapters.AuthenticatedActionsHandler.corsRequest(AuthenticatedActionsHandler.java:102) ~[keycloak-adapter-core-3.0.0.Final.jar:3.0.0.Final]
at org.keycloak.adapters.AuthenticatedActionsHandler.handledRequest(AuthenticatedActionsHandler.java:54) ~[keycloak-adapter-core-3.0.0.Final.jar:3.0.0.Final]
at org.keycloak.adapters.springsecurity.filter.KeycloakAuthenticatedActionsFilter.doFilter(KeycloakAuthenticatedActionsFilter.java:78) ~[keycloak-spring-security-adapter-3.0.0.Final.jar:3.0

Change interfaces file:

sudo nano /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-spring-boot-starter-parent</artifactId>
<version>3.1.0.CR1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-spring-boot-starter-parent</artifactId>
<version>3.1.0.CR1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
[ERROR] /home/sblanc/keycloak-dev/keycloak-quickstarts/service-jee-jaxrs/src/test/java/org/keycloak/quickstart/jaxrs/ArquillianTest.java:[41,55] cannot find symbol
symbol: class AccessType
location: class org.keycloak.test.builders.ClientBuilder
[ERROR] /home/sblanc/keycloak-dev/keycloak-quickstarts/service-jee-jaxrs/src/test/java/org/keycloak/quickstart/jaxrs/ArquillianTest.java:[41,1] static import only from classes and interfaces
[ERROR] /home/sblanc/keycloak-dev/keycloak-quickstarts/service-jee-jaxrs/src/test/java/org/keycloak/quickstart/jaxrs/ArquillianTest.java:[65,74] cannot find symbol
symbol: variable BEARER_ONLY
location: class org.keycloak.quickstart.jaxrs.ArquillianTest
/**
* Copyright 2005-2015 Red Hat, Inc.
* <p/>
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
private List<SpringBootDependencyDTO> initDependencies() throws IOException {
List<SpringBootDependencyDTO> list = new ArrayList<>();
Map data;
// use http client to call start.spring.io that creates the project
OkHttpClient client = createOkHttpClient();
Request request = new Request.Builder().url(springBootInitializrURL.getValue()).build();
Response response = client.newCall(request).execute();
Bonjour <prénom>,
Ta proposition de talk pour Riviera DEV, <titre du talk>, a été acceptée!
Peux-tu confirmer ta venue (ou non) simplement en répondant à cet email?
Pour tout autre question tu peux utiliser l'interface de https://rivieradev.cfp.io.
À bientôt,
L'équipe Riviera DEV
logging:
level:
org.springframework.core.env: warn
org.springframework.jndi: warn
server:
compression:
enabled: true
mime-types: application/json,text/css,text/html
min-response-size: 2048