Skip to content

Instantly share code, notes, and snippets.

View jfdenise's full-sized avatar

Jean-François Denise jfdenise

  • redhat
  • France, Grenoble
View GitHub Profile
java -jar glow.jar frdemo-backend.war --addons=postgresql
feature-packs
org.wildfly:wildfly-galleon-pack:28.0.0.Final-SNAPSHOT</location>
org.wildfly:wildfly-datasources-galleon-pack:4.0.0.Final-SNAPSHOT</location>
layers
jaxrs-server
microprofile-reactive-messaging-kafka
postgresql-datasource
ejb-lite
java -jar glow.jar frdemo-backend.war
feature-packs
org.wildfly:wildfly-galleon-pack:28.0.0.Final-SNAPSHOT</location>
layers
jaxrs-server
microprofile-reactive-messaging-kafka
ejb-lite
According to the discovered layers, the following Add-ons have been enabled:
@jfdenise
jfdenise / gist:e38d0f2c0b60728194c88cd045b023bb
Created April 7, 2023 09:52
Create an initial user for web-console and setup management console
# Create a user store
/subsystem=elytron/filesystem-realm=exampleFsRealm:add(path=fs-realm-users,relative-to=jboss.server.config.dir)
# Add user admin identity and password admin
/subsystem=elytron/filesystem-realm=exampleFsRealm:add-identity(identity=admin)
/subsystem=elytron/filesystem-realm=exampleFsRealm:set-password(clear={password="admin"}, identity=admin)
# Create the security domain and http-authentication-factory
/subsystem=elytron/security-domain=exampleSD:add(realms=[{realm=exampleFsRealm}], permission-mapper=default-permission-mapper, default-realm=exampleFsRealm)
/subsystem=elytron/http-authentication-factory=example-http-auth:add(http-server-mechanism-factory=global,security-domain=exampleSD,mechanism-configurations=[{mechanism-name=DIGEST,mechanism-realm-configurations=[{realm-name=exampleFsRealm}]}])
org.jboss.eap.plugins:eap-maven-plugin:jar:1.0.0.Beta8-redhat-SNAPSHOT
[DEBUG] com.google.guava:guava:jar:31.1.0.jre-redhat-00001:compile (exclusions managed from default)
[DEBUG] org.wildfly.plugins:wildfly-maven-plugin:jar:4.1.0.Final-SNAPSHOT:compile (exclusions managed from default)
[DEBUG] org.wildfly.plugins:wildfly-plugin-core:jar:4.1.0.Final-SNAPSHOT:compile (exclusions managed from default)
[DEBUG] org.apache.maven.resolver:maven-resolver-api:jar:1.9.6:compile
[DEBUG] org.apache.maven.resolver:maven-resolver-spi:jar:1.9.6:compile
[DEBUG] org.apache.maven.resolver:maven-resolver-impl:jar:1.9.6:compile (exclusions managed from default)
[DEBUG] org.apache.commons:commons-lang3:jar:3.12.0:compile
[DEBUG] org.slf4j:slf4j-api:jar:1.7.36:compile
[DEBUG] org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.9.6:compile
---
schemaVersion: "1.0.0"
name: "Manifest for org.keycloak:keycloak-saml-adapter-galleon-pack:pom:999-SNAPSHOT\
\ feature pack."
id: "org.keycloak:keycloak-saml-adapter-galleon-pack"
description: "Generated by org.wildfly.galleon-plugins:wildfly-galleon-maven-plugin\
\ at 2023-03-23T09:47:46.873648Z"
streams:
- groupId: "org.keycloak"
artifactId: "keycloak-adapter-spi"
(venv) [jdenise@jdenise eap-xp4]$ cekit -v --redhat build osbs
2023-01-11 16:28:41,131 cekit DEBUG Running version 3.2.0
2023-01-11 16:28:41,131 cekit DEBUG Configuring CEKit...
2023-01-11 16:28:41,131 cekit DEBUG Removing dirty directory: 'target/image/modules'
2023-01-11 16:28:41,153 cekit DEBUG Removing dirty directory: 'target/repo'
2023-01-11 16:28:41,304 cekit INFO You are running on known platform: Red Hat Enterprise Linux Workstation 7.9 (Maipo)
2023-01-11 16:28:41,304 cekit DEBUG Checking CEKit core dependencies...
2023-01-11 16:28:41,304 cekit DEBUG Checking if 'git' dependency is provided...
2023-01-11 16:28:41,304 cekit DEBUG CEKit dependency 'git' provided via the '/usr/bin/git' executable.
2023-01-11 16:28:41,304 cekit DEBUG All dependencies provided!
[jdenise@jdenise latest]$ oc logs -f wildfly-cloud-tests-oidc-auto-registration-546f476475-kbnwv
Using openshift launcher.
2023-01-10 16:00:04 Launching WildFly Server
INFO Access log is disabled, ignoring configuration.
INFO Clustering feature is not enabled, no jgroups subsystem present in server configuration.
INFO Configuring OIDC subsystem for provider keycloak
INFO Obtained auth token from http://192.168.49.2:30075/realms/WildFly
INFO Registered OIDC client for module root in http://192.168.49.2:30075/realms/WildFly on "http://192.168.49.2:30074/*"
INFO Server started in admin mode, CLI script executed during server boot.
INFO Running wildfly/wildfly-runtime image, version 1.0.0-jdk17
[jdenise@jdenise latest]$ ./kubectl logs -f keycloak-server-cloud-test-6994d4985-65kmn
Updating the configuration and installing your custom providers, if any. Please wait.
2023-01-10 15:36:49,549 DEBUG [org.keycloak.provider.ProviderManager] (build-62) Provider loaders [org.keycloak.provider.DefaultProviderLoaderFactory@7ad46a69, org.keycloak.provider.FileSystemProviderLoaderFactory@6c9ceb0f]
2023-01-10 15:36:50,942 DEBUG [org.keycloak.quarkus.deployment.KeycloakProcessor] (build-62) SPI datastore provider map disabled
2023-01-10 15:36:51,044 DEBUG [org.keycloak.quarkus.deployment.KeycloakProcessor] (build-62) SPI publicKeyStorage provider map disabled
2023-01-10 15:36:51,549 DEBUG [org.keycloak.quarkus.deployment.KeycloakProcessor] (build-62) SPI credential provider keycloak-recovery-authn-codes disabled
2023-01-10 15:36:52,663 DEBUG [org.keycloak.quarkus.deployment.KeycloakProcessor] (build-62) SPI login-protocol provider docker-v2 disabled
2023-01-10 15:36:55,059 DEBUG [org.keycloak.quarkus.deployment.Key
10:19:52,346 INFO [stdout] (default task-1) Hibernate: select t1_0.id,t1_0.title from tasks t1_0
10:19:54,879 INFO [stdout] (default task-2) Hibernate: insert into tasks (id, title) values (default, ?)
10:19:54,887 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (default task-2) SQL Error: 23505, SQLState: 23505
10:19:54,887 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (default task-2) Unique index or primary key violation: "PRIMARY KEY ON PUBLIC.TASKS(ID) ( /* key:1 */ CAST(1 AS BIGINT), 'This is the task-1')"; SQL statement:
insert into tasks (id, title) values (default, ?) [23505-210]
10:19:54,917 ERROR [org.jboss.as.ejb3.invocation] (default task-2) WFLYEJB0034: Jakarta Enterprise Beans Invocation failed on component TaskController for method public org.wildfly.plugins.demo.jsf.Task org.wildfly.plugins.demo.jsf.TaskController.add(java.lang.String): jakarta.ejb.EJBException: jakarta.persistence.PersistenceException: Converting `org.hibernate.exception.ConstraintViolationException` to
[standalone@localhost:9990 /] /subsystem=jgroups/stack=tcp
/ :
[standalone@localhost:9990 /] /subsystem=jgroups/stack=tcp:re
read-attribute read-attribute-group-names read-children-resources read-operation-description read-resource remove
read-attribute-group read-children-names read-children-types read-operation-names read-resource-description remove-protocol
[standalone@localhost:9990 /] /subsystem=jgroups/stack=tcp:remove
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0367: Cannot remove capability 'org.wildfly.clustering.jgroups.channel-factory.tcp' as it is required by other capabilities:
capability 'org.wildfly.clustering.jgroups.channel-source.ee' requires it for attribute 'stack' at address '/subsystem=jgroups/channel=ee'",