From emorny at gmail.com Mon Feb 3 09:42:16 2014 From: emorny at gmail.com (Edem Morny) Date: Mon, 03 Feb 2014 14:42:16 +0000 Subject: [keycloak-user] Keycloak appliance not working with either Postgres 9.2 or 9.3 Message-ID: <52EFAAC8.9040507@gmail.com> I've attempted to change the datasource within the alpha-1 appliance to point to my own Postgresql, as encouraged by section 3.3.1 version of the documentation. However, when I do so and startup the JBoss 7, the application fails to deploy, with Postgres related errors. Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:334) at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:187) ... 39 more When I look at the database, there are 27 tables in the database i created, so I assume the problem is not with the datasource configuration? Could it be because I didn't finish the 2 additional steps of *Setting up SSL/HTTPS* and *Enforcing HTTPS connections* before attempting to deploy, is there a problem with the JPA integration with Postgres? Find attached the server.log file generated when i first attempted it with postgres 9.3 and then with 9.2. Hoping there's a resolution to this soon, cos I'm really looking forward to using this instead of JASIG's CAS in 2 upcoming projects. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140203/65fd3210/attachment-0001.html -------------- next part -------------- 2014-02-03 14:06:57,718 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final 2014-02-03 14:06:57,905 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.0.CR1 2014-02-03 14:06:57,952 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.0.0.CR1 "WildFly" starting 2014-02-03 14:06:57,952 DEBUG [org.jboss.as.config] (MSC service thread 1-6) Configured system properties: awt.toolkit = sun.awt.windows.WToolkit file.encoding = Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment java.awt.printerjob = sun.awt.windows.WPrinterJob java.class.path = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\jboss-modules.jar java.class.version = 51.0 java.endorsed.dirs = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\endorsed java.ext.dirs = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\ext;C:\windows\Sun\Java\lib\ext java.home = C:\Progra~1\Java\jdk1.7.0_45\jre java.io.tmpdir = C:\Users\Edem\AppData\Local\Temp\ java.library.path = C:\Progra~1\Java\jdk1.7.0_45\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Condusiv Technologies\ExpressCache\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Java\jdk1.7.0_45\bin;C:\Program Files\FileBot\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Apache Software Foundation\apache-ant-1.9.3/bin;C:\Program Files\TortoiseHg\;C:\Users\Edem\Servers\mybin\forge-distribution-1.4.3.Final\bin;C:\Program Files\Apache Software Foundation\apache-maven-3.0.5\bin;. java.net.preferIPv4Stack = true java.runtime.name = Java(TM) SE Runtime Environment java.runtime.version = 1.7.0_45-b18 java.specification.name = Java Platform API Specification java.specification.vendor = Oracle Corporation java.specification.version = 1.7 java.util.logging.manager = org.jboss.logmanager.LogManager java.vendor = Oracle Corporation java.vendor.url = http://java.oracle.com/ java.vendor.url.bug = http://bugreport.sun.com/bugreport/ java.version = 1.7.0_45 java.vm.info = mixed mode java.vm.name = Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name = Java Virtual Machine Specification java.vm.specification.vendor = Oracle Corporation java.vm.specification.version = 1.7 java.vm.vendor = Oracle Corporation java.vm.version = 24.45-b08 javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory jboss.home.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak jboss.host.name = edemgear jboss.modules.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules jboss.modules.system.pkgs = org.jboss.byteman jboss.node.name = edemgear jboss.qualified.host.name = edemgear jboss.server.base.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone jboss.server.config.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration jboss.server.data.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\data jboss.server.deploy.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\data\content jboss.server.log.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log jboss.server.name = edemgear jboss.server.persist.config = true jboss.server.temp.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\tmp line.separator = logging.configuration = file:C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration/logging.properties module.path = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules org.jboss.boot.log.file = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log\server.log org.jboss.resolver.warning = true org.xml.sax.driver = __redirected.__XMLReaderFactory os.arch = amd64 os.name = Windows 8 os.version = 6.2 path.separator = ; program.name = standalone.bat sun.arch.data.model = 64 sun.boot.class.path = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\resources.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\rt.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\sunrsasign.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jsse.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jce.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\charsets.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jfr.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\classes sun.boot.library.path = C:\Progra~1\Java\jdk1.7.0_45\jre\bin sun.cpu.endian = little sun.cpu.isalist = amd64 sun.desktop = windows sun.io.unicode.encoding = UnicodeLittle sun.java.command = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\jboss-modules.jar -mp C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules org.jboss.as.standalone -Djboss.home.dir=C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak sun.java.launcher = SUN_STANDARD sun.jnu.encoding = Cp1252 sun.management.compiler = HotSpot 64-Bit Tiered Compilers sun.os.patch.level = user.country = US user.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\bin user.home = C:\Users\Edem user.language = en user.name = Edem user.script = user.timezone = GMT user.variant = 2014-02-03 14:06:57,968 DEBUG [org.jboss.as.config] (MSC service thread 1-6) VM Arguments: -XX:+UseCompressedOops -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log\server.log -Dlogging.configuration=file:C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration/logging.properties 2014-02-03 14:06:58,671 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found auth-server.war in deployment directory. To trigger deployment create a file called auth-server.war.dodeploy 2014-02-03 14:06:58,686 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http) 2014-02-03 14:06:58,702 INFO [org.xnio] (MSC service thread 1-15) XNIO version 3.2.0.Beta4 2014-02-03 14:06:58,702 INFO [org.xnio.nio] (MSC service thread 1-15) XNIO NIO Implementation Version 3.2.0.Beta4 2014-02-03 14:06:58,718 INFO [org.jboss.as.security] (ServerService Thread Pool -- 46) JBAS013171: Activating Security Subsystem 2014-02-03 14:06:58,718 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 33) JBAS010280: Activating Infinispan subsystem. 2014-02-03 14:06:58,733 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 41) JBAS011800: Activating Naming Subsystem 2014-02-03 14:06:58,733 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 50) JBAS015537: Activating WebServices Extension 2014-02-03 14:06:58,733 INFO [org.jboss.as.security] (MSC service thread 1-5) JBAS013170: Current PicketBox version=4.0.20.Beta2 2014-02-03 14:06:58,749 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 39) JBAS012615: Activated the following JSF Implementations: [main] 2014-02-03 14:06:58,765 INFO [org.wildfly.extension.undertow] (MSC service thread 1-10) JBAS017502: Undertow 1.0.0.Beta30 starting 2014-02-03 14:06:58,765 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017502: Undertow 1.0.0.Beta30 starting 2014-02-03 14:06:58,765 INFO [org.jboss.as.connector.logging] (MSC service thread 1-3) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.2.Final) 2014-02-03 14:06:58,780 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 2014-02-03 14:06:58,780 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-12) JBAS010417: Started Driver service with driver-name = h2 2014-02-03 14:06:58,796 INFO [org.jboss.as.naming] (MSC service thread 1-14) JBAS011802: Starting Naming Service 2014-02-03 14:06:58,796 INFO [org.jboss.as.mail.extension] (MSC service thread 1-14) JBAS015400: Bound mail session [java:jboss/mail/Default] 2014-02-03 14:06:58,796 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.0) 2014-02-03 14:06:58,796 INFO [org.jboss.remoting] (MSC service thread 1-15) JBoss Remoting version (unknown) 2014-02-03 14:06:58,796 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-13) JBAS010417: Started Driver service with driver-name = org.postgresql 2014-02-03 14:06:58,983 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017527: Creating file handler for path C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak/welcome-content 2014-02-03 14:06:58,999 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017525: Started server default-server. 2014-02-03 14:06:58,999 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017531: Host default-host starting 2014-02-03 14:06:59,124 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\deployments 2014-02-03 14:06:59,124 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "auth-server.war" (runtime-name: "auth-server.war") 2014-02-03 14:06:59,124 INFO [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015876: Starting deployment of "keycloak-ds.xml" (runtime-name: "keycloak-ds.xml") 2014-02-03 14:06:59,233 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."keycloak-ds.xml".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."keycloak-ds.xml".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment "keycloak-ds.xml" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.CR1.jar:8.0.0.CR1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS010464: Exception deploying datasource java:jboss/datasources/KeycloakDS at org.jboss.as.connector.deployers.ds.processors.DsXmlDeploymentInstallProcessor.deploy(DsXmlDeploymentInstallProcessor.java:140) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.0.0.CR1.jar:8.0.0.CR1] ... 5 more Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.data-source.java:jboss/datasources/KeycloakDS is already registered at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:767) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.as.connector.deployers.ds.processors.DsXmlDeploymentInstallProcessor.startDataSource(DsXmlDeploymentInstallProcessor.java:335) at org.jboss.as.connector.deployers.ds.processors.DsXmlDeploymentInstallProcessor.deploy(DsXmlDeploymentInstallProcessor.java:137) ... 6 more 2014-02-03 14:06:59,343 INFO [org.jboss.as.remoting] (MSC service thread 1-16) JBAS017100: Listening on 127.0.0.1:9999 2014-02-03 14:06:59,343 INFO [org.wildfly.extension.undertow] (MSC service thread 1-13) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080 2014-02-03 14:06:59,452 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS] 2014-02-03 14:06:59,452 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/KeycloakDS] 2014-02-03 14:06:59,483 INFO [org.jboss.ws.common.management] (MSC service thread 1-16) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.3.Final 2014-02-03 14:07:00,141 WARN [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015960: Class Path entry jaxb-api.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-core-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:07:00,156 WARN [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015960: Class Path entry jaxb-api.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-impl-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:07:00,156 WARN [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015960: Class Path entry jaxb-core.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-impl-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:07:00,219 INFO [org.jboss.as.jpa] (MSC service thread 1-11) JBAS011401: Read persistence.xml for jpa-keycloak-identity-store 2014-02-03 14:07:00,328 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:07:00,344 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 52) HHH000204: Processing PersistenceUnitInfo [ name: jpa-keycloak-identity-store ...] 2014-02-03 14:07:00,391 INFO [org.hibernate.Version] (ServerService Thread Pool -- 52) HHH000412: Hibernate Core {4.3.0.Final} 2014-02-03 14:07:00,391 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 52) HHH000206: hibernate.properties not found 2014-02-03 14:07:00,391 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 52) HHH000021: Bytecode provider name : javassist 2014-02-03 14:07:00,531 WARN [org.jboss.as.ee] (MSC service thread 1-7) JBAS011006: Not installing optional component org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest$Servlet3ExecutionContext$Servle3AsychronousResponse due to an exception (enable DEBUG log level to see the cause) 2014-02-03 14:07:00,594 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:07:00,641 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 52) HCANN000001: Hibernate Commons Annotations {4.0.4.Final} 2014-02-03 14:07:00,859 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 52) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect 2014-02-03 14:07:00,859 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (ServerService Thread Pool -- 52) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException 2014-02-03 14:07:01,000 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 52) HHH000397: Using ASTQueryTranslatorFactory 2014-02-03 14:07:01,047 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 52) HV000001: Hibernate Validator 5.0.2.Final 2014-02-03 14:07:01,375 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000228: Running hbm2ddl schema update 2014-02-03 14:07:01,375 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000102: Fetching database metadata 2014-02-03 14:07:01,391 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000396: Updating schema 2014-02-03 14:07:01,391 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_DEFAULT_ROLES 2014-02-03 14:07:01,391 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,391 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_ROLES 2014-02-03 14:07:01,391 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationEntity 2014-02-03 14:07:01,391 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationScopeMappingEntity 2014-02-03 14:07:01,406 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationUserRoleMappingEntity 2014-02-03 14:07:01,406 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: CredentialEntity 2014-02-03 14:07:01,406 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAUTH_CLIENT_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,406 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAuthClientEntity 2014-02-03 14:07:01,406 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_DEFAULT_ROLES 2014-02-03 14:07:01,406 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_ROLES 2014-02-03 14:07:01,422 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity 2014-02-03 14:07:01,422 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_ApplicationEntity 2014-02-03 14:07:01,422 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_smtpConfig 2014-02-03 14:07:01,422 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_socialConfig 2014-02-03 14:07:01,422 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmScopeMappingEntity 2014-02-03 14:07:01,422 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmUserRoleMappingEntity 2014-02-03 14:07:01,422 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RequiredCredentialEntity 2014-02-03 14:07:01,437 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RoleEntity 2014-02-03 14:07:01,437 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: SocialLinkEntity 2014-02-03 14:07:01,437 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: USER_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,437 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity 2014-02-03 14:07:01,437 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_CredentialEntity 2014-02-03 14:07:01,437 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_attributes 2014-02-03 14:07:01,437 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_redirectUris 2014-02-03 14:07:01,437 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_requiredActions 2014-02-03 14:07:01,453 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_webOrigins 2014-02-03 14:07:01,453 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_DEFAULT_ROLES 2014-02-03 14:07:01,453 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,453 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_ROLES 2014-02-03 14:07:01,453 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationEntity 2014-02-03 14:07:01,453 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationScopeMappingEntity 2014-02-03 14:07:01,453 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationUserRoleMappingEntity 2014-02-03 14:07:01,453 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: CredentialEntity 2014-02-03 14:07:01,469 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAUTH_CLIENT_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,469 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAuthClientEntity 2014-02-03 14:07:01,469 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_DEFAULT_ROLES 2014-02-03 14:07:01,469 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_ROLES 2014-02-03 14:07:01,469 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity 2014-02-03 14:07:01,469 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_ApplicationEntity 2014-02-03 14:07:01,469 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_smtpConfig 2014-02-03 14:07:01,484 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_socialConfig 2014-02-03 14:07:01,484 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmScopeMappingEntity 2014-02-03 14:07:01,484 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmUserRoleMappingEntity 2014-02-03 14:07:01,484 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RequiredCredentialEntity 2014-02-03 14:07:01,484 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RoleEntity 2014-02-03 14:07:01,484 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: SocialLinkEntity 2014-02-03 14:07:01,484 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: USER_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,500 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity 2014-02-03 14:07:01,500 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_CredentialEntity 2014-02-03 14:07:01,500 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_attributes 2014-02-03 14:07:01,500 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_redirectUris 2014-02-03 14:07:01,500 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_requiredActions 2014-02-03 14:07:01,500 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_webOrigins 2014-02-03 14:07:01,500 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_DEFAULT_ROLES 2014-02-03 14:07:01,516 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,516 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_ROLES 2014-02-03 14:07:01,516 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationEntity 2014-02-03 14:07:01,516 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationScopeMappingEntity 2014-02-03 14:07:01,516 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationUserRoleMappingEntity 2014-02-03 14:07:01,516 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: CredentialEntity 2014-02-03 14:07:01,516 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAUTH_CLIENT_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,531 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAuthClientEntity 2014-02-03 14:07:01,531 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_DEFAULT_ROLES 2014-02-03 14:07:01,531 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_ROLES 2014-02-03 14:07:01,531 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity 2014-02-03 14:07:01,531 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_ApplicationEntity 2014-02-03 14:07:01,531 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_smtpConfig 2014-02-03 14:07:01,531 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_socialConfig 2014-02-03 14:07:01,547 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmScopeMappingEntity 2014-02-03 14:07:01,547 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmUserRoleMappingEntity 2014-02-03 14:07:01,547 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RequiredCredentialEntity 2014-02-03 14:07:01,547 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RoleEntity 2014-02-03 14:07:01,547 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: SocialLinkEntity 2014-02-03 14:07:01,547 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: USER_REQUIRED_CREDENTIALS 2014-02-03 14:07:01,547 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity 2014-02-03 14:07:01,547 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_CredentialEntity 2014-02-03 14:07:01,562 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_attributes 2014-02-03 14:07:01,562 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_redirectUris 2014-02-03 14:07:01,562 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_requiredActions 2014-02-03 14:07:01,562 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_webOrigins 2014-02-03 14:07:01,750 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_drp2eoe21hph4svi7407swsyd foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:07:01,750 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_drp2eoe21hph4svi7407swsyd" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,750 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_s4rd4wsid827akdjb0w9ibp34 foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:07:01,750 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_s4rd4wsid827akdjb0w9ibp34" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,750 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_REQUIRED_CREDENTIALS add constraint FK_covu9ee5bu9nkvl1vu8hb1ir7 foreign key (requiredApplicationCredentials_id) references RequiredCredentialEntity 2014-02-03 14:07:01,750 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_covu9ee5bu9nkvl1vu8hb1ir7" cannot be implemented Detail: Key columns "requiredapplicationcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_7l9hpvgdgmc5uejbcop317ib2 foreign key (roles_id) references RoleEntity 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_7l9hpvgdgmc5uejbcop317ib2" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_60s842yuivcyjem9m1umj0ymh foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_60s842yuivcyjem9m1umj0ymh" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationEntity add constraint FK_63mhyngq4dy1yx8he7q8ubmop foreign key (applicationUser_id) references UserEntity 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_63mhyngq4dy1yx8he7q8ubmop" cannot be implemented Detail: Key columns "applicationuser_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_fa7sbalr95rlthhcf9sg8i3r4 foreign key (role_id) references RoleEntity 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_fa7sbalr95rlthhcf9sg8i3r4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_nfsdpo5g58c6nqfep9sup3ctp foreign key (user_id) references UserEntity 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_nfsdpo5g58c6nqfep9sup3ctp" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_4ssreqxn6j2a7up48i1qb2sua foreign key (application_id) references ApplicationEntity 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_4ssreqxn6j2a7up48i1qb2sua" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_t10o4fp8tk5ba9vkpm98c2yrt foreign key (role_id) references RoleEntity 2014-02-03 14:07:01,766 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_t10o4fp8tk5ba9vkpm98c2yrt" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_acs25q56goc10xrr4xw9bwsth foreign key (user_id) references UserEntity 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_acs25q56goc10xrr4xw9bwsth" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_9y39hi5ph6at6ds1krpn0rtpi foreign key (application_id) references ApplicationEntity 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_9y39hi5ph6at6ds1krpn0rtpi" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table CredentialEntity add constraint FK_pn32x46lgmhlaldchhp47wfgj foreign key (user_id) references UserEntity 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_pn32x46lgmhlaldchhp47wfgj" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table OAUTH_CLIENT_REQUIRED_CREDENTIALS add constraint FK_76d17rixlrhv6dq5w8vjtcny7 foreign key (requiredOAuthClientCredentials_id) references RequiredCredentialEntity 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_76d17rixlrhv6dq5w8vjtcny7" cannot be implemented Detail: Key columns "requiredoauthclientcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table OAuthClientEntity add constraint FK_62mly7ecnrpvk39hvtogbfu9l foreign key (agent_id) references UserEntity 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_62mly7ecnrpvk39hvtogbfu9l" cannot be implemented Detail: Key columns "agent_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table REALM_DEFAULT_ROLES add constraint FK_nm4mf0m1nmi7ub6mjbjy4vfhs foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:07:01,781 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_nm4mf0m1nmi7ub6mjbjy4vfhs" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,797 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table REALM_ROLES add constraint FK_ianyv4ds3ad2manh3fjgh4qi8 foreign key (roles_id) references RoleEntity 2014-02-03 14:07:01,797 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_ianyv4ds3ad2manh3fjgh4qi8" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,797 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmEntity_ApplicationEntity add constraint FK_lc35hwkvorkg9dmj6e6hi40qn foreign key (applications_id) references ApplicationEntity 2014-02-03 14:07:01,797 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_lc35hwkvorkg9dmj6e6hi40qn" cannot be implemented Detail: Key columns "applications_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,797 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_5nm8bsgqihl29vbpck1ldg6hf foreign key (role_id) references RoleEntity 2014-02-03 14:07:01,797 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_5nm8bsgqihl29vbpck1ldg6hf" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_9pdjxdhf2xi91uqi2smbihxjy foreign key (user_id) references UserEntity 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_9pdjxdhf2xi91uqi2smbihxjy" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_osxtwgn0r896ttjvjstnrxvm4 foreign key (role_id) references RoleEntity 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_osxtwgn0r896ttjvjstnrxvm4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_8tq5oy7c7jw9yl64jvi3f79av foreign key (user_id) references UserEntity 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_8tq5oy7c7jw9yl64jvi3f79av" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table SocialLinkEntity add constraint FK_of3vi3cc8yo5aavbsq2flfm32 foreign key (user_id) references UserEntity 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_of3vi3cc8yo5aavbsq2flfm32" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,812 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table USER_REQUIRED_CREDENTIALS add constraint FK_5uc73e6cvxmkq5ybruf1jsygv foreign key (requiredCredentials_id) references RequiredCredentialEntity 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_5uc73e6cvxmkq5ybruf1jsygv" cannot be implemented Detail: Key columns "requiredcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_kwlok0nencsu8kuhwervrn2p5 foreign key (credentials_id) references CredentialEntity 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_kwlok0nencsu8kuhwervrn2p5" cannot be implemented Detail: Key columns "credentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_302t29u9komfu7d7qffci0cie foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_302t29u9komfu7d7qffci0cie" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_attributes add constraint FK_pv89d7hl2qoyg2dc1b9bupw7l foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_pv89d7hl2qoyg2dc1b9bupw7l" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_redirectUris add constraint FK_myu5kr3txep49myg1ejwwy58f foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_myu5kr3txep49myg1ejwwy58f" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_requiredActions add constraint FK_eclsk6gyvwy477usdcwu8l1mx foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:01,828 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_eclsk6gyvwy477usdcwu8l1mx" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,844 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_webOrigins add constraint FK_sn38pjw1v24ahb1d6jrwshoa6 foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:01,844 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_sn38pjw1v24ahb1d6jrwshoa6" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:01,844 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000232: Schema update complete 2014-02-03 14:07:01,844 WARN [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 52) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession() 2014-02-03 14:07:02,281 INFO [org.hibernate.jpa.internal.util.LogHelper] (MSC service thread 1-14) HHH000204: Processing PersistenceUnitInfo [ name: jpa-keycloak-identity-store ...] 2014-02-03 14:07:02,312 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-14) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect 2014-02-03 14:07:02,328 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-14) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException 2014-02-03 14:07:02,359 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-14) HHH000397: Using ASTQueryTranslatorFactory 2014-02-03 14:07:02,437 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000228: Running hbm2ddl schema update 2014-02-03 14:07:02,437 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000102: Fetching database metadata 2014-02-03 14:07:02,437 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000396: Updating schema 2014-02-03 14:07:02,469 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.application_default_roles 2014-02-03 14:07:02,469 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [defaultroles_id, applicationentity_id] 2014-02-03 14:07:02,469 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,469 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_drp2eoe21hph4svi7407swsyd] 2014-02-03 14:07:02,484 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.application_required_credentials 2014-02-03 14:07:02,484 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [requiredapplicationcredentials_id, realmentity_id] 2014-02-03 14:07:02,484 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_82svc5ipoim52p8271tvdsrqj] 2014-02-03 14:07:02,484 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_covu9ee5bu9nkvl1vu8hb1ir7] 2014-02-03 14:07:02,500 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.application_roles 2014-02-03 14:07:02,500 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [applicationentity_id, roles_id] 2014-02-03 14:07:02,500 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,500 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_7l9hpvgdgmc5uejbcop317ib2] 2014-02-03 14:07:02,516 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.applicationentity 2014-02-03 14:07:02,516 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, enabled, managementurl, applicationuser_id, name, baseurl, surrogateauthrequired] 2014-02-03 14:07:02,531 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,531 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [applicationentity_pkey] 2014-02-03 14:07:02,547 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.applicationscopemappingentity 2014-02-03 14:07:02,547 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, role_id, user_id, application_id] 2014-02-03 14:07:02,547 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,547 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [applicationscopemappingentity_pkey] 2014-02-03 14:07:02,562 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.applicationuserrolemappingentity 2014-02-03 14:07:02,562 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, role_id, user_id, application_id] 2014-02-03 14:07:02,562 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,562 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [applicationuserrolemappingentity_pkey] 2014-02-03 14:07:02,578 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.credentialentity 2014-02-03 14:07:02,578 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, value, device, user_id, type] 2014-02-03 14:07:02,578 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,578 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [credentialentity_pkey] 2014-02-03 14:07:02,594 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.oauth_client_required_credentials 2014-02-03 14:07:02,594 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [realmentity_id, requiredoauthclientcredentials_id] 2014-02-03 14:07:02,594 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_axk539p25x0kjtye8jf036fm7] 2014-02-03 14:07:02,594 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_76d17rixlrhv6dq5w8vjtcny7] 2014-02-03 14:07:02,625 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.oauthcliententity 2014-02-03 14:07:02,625 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, realm_id, name, agent_id] 2014-02-03 14:07:02,625 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_c7p5k3d5mewb3yym9qypp76uj] 2014-02-03 14:07:02,625 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [oauthcliententity_pkey] 2014-02-03 14:07:02,641 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.realm_default_roles 2014-02-03 14:07:02,641 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [realmentity_id, defaultroles_id] 2014-02-03 14:07:02,641 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_n33klpw4ofkxt71sbuumd5ldo] 2014-02-03 14:07:02,641 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_nm4mf0m1nmi7ub6mjbjy4vfhs] 2014-02-03 14:07:02,656 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.realm_roles 2014-02-03 14:07:02,656 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [realmentity_id, roles_id] 2014-02-03 14:07:02,656 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_ojax2569atkiu2esoxqnj0o4i] 2014-02-03 14:07:02,656 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_ianyv4ds3ad2manh3fjgh4qi8] 2014-02-03 14:07:02,672 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.realmentity 2014-02-03 14:07:02,672 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [enabled, passwordpolicy, publickeypem, registrationallowed, resetpasswordallowed, privatekeypem, accesscodelifespan, accesscodelifespanuseraction, id, sslnotrequired, updateprofileoninitialsociallogin, social, tokenlifespan, name, verifyemail] 2014-02-03 14:07:02,672 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,672 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [realmentity_pkey] 2014-02-03 14:07:02,687 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.realmentity_applicationentity 2014-02-03 14:07:02,703 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [realmentity_id, applications_id] 2014-02-03 14:07:02,703 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_kl5keangpo58h9r3cugwvxu2] 2014-02-03 14:07:02,703 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_lc35hwkvorkg9dmj6e6hi40qn] 2014-02-03 14:07:02,719 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.realmentity_smtpconfig 2014-02-03 14:07:02,719 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [realmentity_id, name, value] 2014-02-03 14:07:02,719 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_hbtlvt068mnrudm3cf0px691h] 2014-02-03 14:07:02,719 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [realmentity_smtpconfig_pkey] 2014-02-03 14:07:02,734 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.realmentity_socialconfig 2014-02-03 14:07:02,734 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [realmentity_id, name, value] 2014-02-03 14:07:02,734 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_18sn19xqpu83b06jv6w8ksvfv] 2014-02-03 14:07:02,734 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [realmentity_socialconfig_pkey] 2014-02-03 14:07:02,750 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.realmscopemappingentity 2014-02-03 14:07:02,750 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, realm_id, role_id, user_id] 2014-02-03 14:07:02,750 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_kbre9poi98gu6fwc0llkav9lc] 2014-02-03 14:07:02,750 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [realmscopemappingentity_pkey] 2014-02-03 14:07:02,766 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.realmuserrolemappingentity 2014-02-03 14:07:02,766 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, realm_id, role_id, user_id] 2014-02-03 14:07:02,766 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_mmv1fqq7ktpxfgprb7qc3j37o] 2014-02-03 14:07:02,781 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [realmuserrolemappingentity_pkey] 2014-02-03 14:07:02,797 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.requiredcredentialentity 2014-02-03 14:07:02,797 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, input, secret, formlabel, type] 2014-02-03 14:07:02,797 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,797 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [requiredcredentialentity_pkey] 2014-02-03 14:07:02,812 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.roleentity 2014-02-03 14:07:02,812 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, description, name] 2014-02-03 14:07:02,812 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,812 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [roleentity_pkey] 2014-02-03 14:07:02,828 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.sociallinkentity 2014-02-03 14:07:02,828 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, socialusername, realm_id, socialprovider, user_id] 2014-02-03 14:07:02,828 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_jav76o82ob85iuxm2l0gg904h] 2014-02-03 14:07:02,828 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [sociallinkentity_pkey] 2014-02-03 14:07:02,844 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.user_required_credentials 2014-02-03 14:07:02,844 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [realmentity_id, requiredcredentials_id] 2014-02-03 14:07:02,844 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_oxi9ad45ic3e60u94qihx75i3] 2014-02-03 14:07:02,844 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_5uc73e6cvxmkq5ybruf1jsygv] 2014-02-03 14:07:02,859 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.userentity 2014-02-03 14:07:02,875 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [id, loginname, enabled, realm_id, totp, email, emailverified, lastname, firstname] 2014-02-03 14:07:02,875 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [fk_1u1wm7gj4o98kabis6et6klh5] 2014-02-03 14:07:02,875 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [userentity_pkey] 2014-02-03 14:07:02,891 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.userentity_credentialentity 2014-02-03 14:07:02,891 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [credentials_id, userentity_id] 2014-02-03 14:07:02,891 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,891 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [uk_kwlok0nencsu8kuhwervrn2p5] 2014-02-03 14:07:02,906 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.userentity_attributes 2014-02-03 14:07:02,906 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [userentity_id, name, value] 2014-02-03 14:07:02,906 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,906 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [userentity_attributes_pkey] 2014-02-03 14:07:02,922 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.userentity_redirecturis 2014-02-03 14:07:02,922 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [userentity_id, redirecturis] 2014-02-03 14:07:02,922 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,922 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [] 2014-02-03 14:07:02,937 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.userentity_requiredactions 2014-02-03 14:07:02,937 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [userentity_id, requiredactions] 2014-02-03 14:07:02,937 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,937 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [] 2014-02-03 14:07:02,969 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000261: Table found: public.userentity_weborigins 2014-02-03 14:07:02,969 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000037: Columns: [userentity_id, weborigins] 2014-02-03 14:07:02,969 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000108: Foreign keys: [] 2014-02-03 14:07:02,969 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-14) HHH000126: Indexes: [] 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_drp2eoe21hph4svi7407swsyd foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_drp2eoe21hph4svi7407swsyd" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_s4rd4wsid827akdjb0w9ibp34 foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_s4rd4wsid827akdjb0w9ibp34" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table APPLICATION_REQUIRED_CREDENTIALS add constraint FK_covu9ee5bu9nkvl1vu8hb1ir7 foreign key (requiredApplicationCredentials_id) references RequiredCredentialEntity 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_covu9ee5bu9nkvl1vu8hb1ir7" cannot be implemented Detail: Key columns "requiredapplicationcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_7l9hpvgdgmc5uejbcop317ib2 foreign key (roles_id) references RoleEntity 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_7l9hpvgdgmc5uejbcop317ib2" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_60s842yuivcyjem9m1umj0ymh foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_60s842yuivcyjem9m1umj0ymh" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table ApplicationEntity add constraint FK_63mhyngq4dy1yx8he7q8ubmop foreign key (applicationUser_id) references UserEntity 2014-02-03 14:07:02,969 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_63mhyngq4dy1yx8he7q8ubmop" cannot be implemented Detail: Key columns "applicationuser_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_fa7sbalr95rlthhcf9sg8i3r4 foreign key (role_id) references RoleEntity 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_fa7sbalr95rlthhcf9sg8i3r4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_nfsdpo5g58c6nqfep9sup3ctp foreign key (user_id) references UserEntity 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_nfsdpo5g58c6nqfep9sup3ctp" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_4ssreqxn6j2a7up48i1qb2sua foreign key (application_id) references ApplicationEntity 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_4ssreqxn6j2a7up48i1qb2sua" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_t10o4fp8tk5ba9vkpm98c2yrt foreign key (role_id) references RoleEntity 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_t10o4fp8tk5ba9vkpm98c2yrt" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_acs25q56goc10xrr4xw9bwsth foreign key (user_id) references UserEntity 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_acs25q56goc10xrr4xw9bwsth" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_9y39hi5ph6at6ds1krpn0rtpi foreign key (application_id) references ApplicationEntity 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_9y39hi5ph6at6ds1krpn0rtpi" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table CredentialEntity add constraint FK_pn32x46lgmhlaldchhp47wfgj foreign key (user_id) references UserEntity 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_pn32x46lgmhlaldchhp47wfgj" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table OAUTH_CLIENT_REQUIRED_CREDENTIALS add constraint FK_76d17rixlrhv6dq5w8vjtcny7 foreign key (requiredOAuthClientCredentials_id) references RequiredCredentialEntity 2014-02-03 14:07:02,984 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_76d17rixlrhv6dq5w8vjtcny7" cannot be implemented Detail: Key columns "requiredoauthclientcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table OAuthClientEntity add constraint FK_62mly7ecnrpvk39hvtogbfu9l foreign key (agent_id) references UserEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_62mly7ecnrpvk39hvtogbfu9l" cannot be implemented Detail: Key columns "agent_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table REALM_DEFAULT_ROLES add constraint FK_nm4mf0m1nmi7ub6mjbjy4vfhs foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_nm4mf0m1nmi7ub6mjbjy4vfhs" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table REALM_ROLES add constraint FK_ianyv4ds3ad2manh3fjgh4qi8 foreign key (roles_id) references RoleEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_ianyv4ds3ad2manh3fjgh4qi8" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table RealmEntity_ApplicationEntity add constraint FK_lc35hwkvorkg9dmj6e6hi40qn foreign key (applications_id) references ApplicationEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_lc35hwkvorkg9dmj6e6hi40qn" cannot be implemented Detail: Key columns "applications_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_5nm8bsgqihl29vbpck1ldg6hf foreign key (role_id) references RoleEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_5nm8bsgqihl29vbpck1ldg6hf" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_9pdjxdhf2xi91uqi2smbihxjy foreign key (user_id) references UserEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_9pdjxdhf2xi91uqi2smbihxjy" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_osxtwgn0r896ttjvjstnrxvm4 foreign key (role_id) references RoleEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_osxtwgn0r896ttjvjstnrxvm4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_8tq5oy7c7jw9yl64jvi3f79av foreign key (user_id) references UserEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_8tq5oy7c7jw9yl64jvi3f79av" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table SocialLinkEntity add constraint FK_of3vi3cc8yo5aavbsq2flfm32 foreign key (user_id) references UserEntity 2014-02-03 14:07:03,000 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_of3vi3cc8yo5aavbsq2flfm32" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table USER_REQUIRED_CREDENTIALS add constraint FK_5uc73e6cvxmkq5ybruf1jsygv foreign key (requiredCredentials_id) references RequiredCredentialEntity 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_5uc73e6cvxmkq5ybruf1jsygv" cannot be implemented Detail: Key columns "requiredcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_kwlok0nencsu8kuhwervrn2p5 foreign key (credentials_id) references CredentialEntity 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_kwlok0nencsu8kuhwervrn2p5" cannot be implemented Detail: Key columns "credentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_302t29u9komfu7d7qffci0cie foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_302t29u9komfu7d7qffci0cie" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table UserEntity_attributes add constraint FK_pv89d7hl2qoyg2dc1b9bupw7l foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_pv89d7hl2qoyg2dc1b9bupw7l" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table UserEntity_redirectUris add constraint FK_myu5kr3txep49myg1ejwwy58f foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_myu5kr3txep49myg1ejwwy58f" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table UserEntity_requiredActions add constraint FK_eclsk6gyvwy477usdcwu8l1mx foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_eclsk6gyvwy477usdcwu8l1mx" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000388: Unsuccessful: alter table UserEntity_webOrigins add constraint FK_sn38pjw1v24ahb1d6jrwshoa6 foreign key (UserEntity_id) references UserEntity 2014-02-03 14:07:03,016 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) ERROR: foreign key constraint "fk_sn38pjw1v24ahb1d6jrwshoa6" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:07:03,016 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-14) HHH000232: Schema update complete 2014-02-03 14:07:03,125 INFO [org.keycloak.services.managers.ApplianceBootstrap] (MSC service thread 1-14) Initializing keycloak-admin realm 2014-02-03 14:07:03,187 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-14) SQL Error: 0, SQLState: 42883 2014-02-03 14:07:03,187 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-14) ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78 2014-02-03 14:07:03,187 INFO [org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl] (MSC service thread 1-14) HHH000010: On release of batch it still contained JDBC statements 2014-02-03 14:07:03,187 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.server.KeycloakServerApplication(javax.servlet.ServletContext) throws java.io.FileNotFoundException at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160) at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2175) at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:295) at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:236) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36) at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:204) at io.undertow.servlet.core.ManagedServlet.start(ManagedServlet.java:112) at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:462) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] ... 3 more Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1683) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1338) at org.keycloak.models.jpa.RealmAdapter.updateCredential(RealmAdapter.java:1064) at org.keycloak.services.managers.RealmManager.setupAccountManagement(RealmManager.java:157) at org.keycloak.services.managers.RealmManager.createRealm(RealmManager.java:82) at org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:45) at org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:29) at org.keycloak.services.resources.KeycloakApplication.setupDefaultRealm(KeycloakApplication.java:70) at org.keycloak.services.resources.KeycloakApplication.(KeycloakApplication.java:52) at org.keycloak.server.KeycloakServerApplication.(KeycloakServerApplication.java:23) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_45] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_45] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_45] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [rt.jar:1.7.0_45] at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148) ... 15 more Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:190) at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:62) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3281) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3183) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3525) at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:158) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:453) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:345) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1218) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1335) ... 28 more Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:334) at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:187) ... 39 more 2014-02-03 14:07:03,219 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "auth-server.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./auth" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.server.KeycloakServerApplication(javax.servlet.ServletContext) throws java.io.FileNotFoundException Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78"}} 2014-02-03 14:07:03,234 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "keycloak-ds.xml")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"keycloak-ds.xml\".FIRST_MODULE_USE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"keycloak-ds.xml\".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment \"keycloak-ds.xml\" Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS010464: Exception deploying datasource java:jboss/datasources/KeycloakDS Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.data-source.java:jboss/datasources/KeycloakDS is already registered"}} 2014-02-03 14:07:03,250 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "keycloak-ds.xml" (runtime-name : "keycloak-ds.xml") 2014-02-03 14:07:03,250 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "auth-server.war" (runtime-name : "auth-server.war") 2014-02-03 14:07:03,250 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report JBAS014777: Services which failed to start: service jboss.deployment.unit."keycloak-ds.xml".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."keycloak-ds.xml".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment "keycloak-ds.xml" service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service 2014-02-03 14:07:03,266 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management 2014-02-03 14:07:03,266 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 2014-02-03 14:07:03,266 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.0.0.CR1 "WildFly" started (with errors) in 5767ms - Started 285 of 343 services (3 services failed or missing dependencies, 89 services are lazy, passive or on-demand) 2014-02-03 14:07:03,516 INFO [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015877: Stopped deployment keycloak-ds.xml (runtime-name: keycloak-ds.xml) in 6ms 2014-02-03 14:07:03,516 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 1) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:07:03,516 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 1) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:07:03,578 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment auth-server.war (runtime-name: auth-server.war) in 80ms 2014-02-03 14:07:03,609 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "auth-server.war" (runtime-name: "auth-server.war") 2014-02-03 14:07:03,609 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "keycloak-ds.xml" (runtime-name: "keycloak-ds.xml") 2014-02-03 14:07:03,609 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report JBAS014775: New missing/unsatisfied dependencies: service jboss.deployment.unit."auth-server.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.jboss.resteasy.plugins.server.servlet.Filter30Dispatcher".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.keycloak.services.filters.KeycloakSessionServletFilter".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.keycloak.services.listeners.KeycloakSessionDestroyListener".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.keycloak.services.tmp.TmpAdminRedirectServlet".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.persistenceunit."auth-server.war#jpa-keycloak-identity-store" (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.undertow.deployment.default-server.default-host./auth (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] JBAS014777: Services which failed to start: service jboss.deployment.unit."keycloak-ds.xml".FIRST_MODULE_USE service jboss.undertow.deployment.default-server.default-host./auth 2014-02-03 14:07:08,297 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found auth-server.war in deployment directory. To trigger deployment create a file called auth-server.war.dodeploy 2014-02-03 14:08:02,709 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final 2014-02-03 14:08:02,850 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.0.CR1 2014-02-03 14:08:02,913 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.0.0.CR1 "WildFly" starting 2014-02-03 14:08:02,913 DEBUG [org.jboss.as.config] (MSC service thread 1-6) Configured system properties: awt.toolkit = sun.awt.windows.WToolkit file.encoding = Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment java.awt.printerjob = sun.awt.windows.WPrinterJob java.class.path = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\jboss-modules.jar java.class.version = 51.0 java.endorsed.dirs = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\endorsed java.ext.dirs = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\ext;C:\windows\Sun\Java\lib\ext java.home = C:\Progra~1\Java\jdk1.7.0_45\jre java.io.tmpdir = C:\Users\Edem\AppData\Local\Temp\ java.library.path = C:\Progra~1\Java\jdk1.7.0_45\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Condusiv Technologies\ExpressCache\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Java\jdk1.7.0_45\bin;C:\Program Files\FileBot\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Apache Software Foundation\apache-ant-1.9.3/bin;C:\Program Files\TortoiseHg\;C:\Users\Edem\Servers\mybin\forge-distribution-1.4.3.Final\bin;C:\Program Files\Apache Software Foundation\apache-maven-3.0.5\bin;. java.net.preferIPv4Stack = true java.runtime.name = Java(TM) SE Runtime Environment java.runtime.version = 1.7.0_45-b18 java.specification.name = Java Platform API Specification java.specification.vendor = Oracle Corporation java.specification.version = 1.7 java.util.logging.manager = org.jboss.logmanager.LogManager java.vendor = Oracle Corporation java.vendor.url = http://java.oracle.com/ java.vendor.url.bug = http://bugreport.sun.com/bugreport/ java.version = 1.7.0_45 java.vm.info = mixed mode java.vm.name = Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name = Java Virtual Machine Specification java.vm.specification.vendor = Oracle Corporation java.vm.specification.version = 1.7 java.vm.vendor = Oracle Corporation java.vm.version = 24.45-b08 javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory jboss.home.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak jboss.host.name = edemgear jboss.modules.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules jboss.modules.system.pkgs = org.jboss.byteman jboss.node.name = edemgear jboss.qualified.host.name = edemgear jboss.server.base.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone jboss.server.config.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration jboss.server.data.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\data jboss.server.deploy.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\data\content jboss.server.log.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log jboss.server.name = edemgear jboss.server.persist.config = true jboss.server.temp.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\tmp line.separator = logging.configuration = file:C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration/logging.properties module.path = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules org.jboss.boot.log.file = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log\server.log org.jboss.resolver.warning = true org.xml.sax.driver = __redirected.__XMLReaderFactory os.arch = amd64 os.name = Windows 8 os.version = 6.2 path.separator = ; program.name = standalone.bat sun.arch.data.model = 64 sun.boot.class.path = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\resources.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\rt.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\sunrsasign.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jsse.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jce.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\charsets.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jfr.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\classes sun.boot.library.path = C:\Progra~1\Java\jdk1.7.0_45\jre\bin sun.cpu.endian = little sun.cpu.isalist = amd64 sun.desktop = windows sun.io.unicode.encoding = UnicodeLittle sun.java.command = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\jboss-modules.jar -mp C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules org.jboss.as.standalone -Djboss.home.dir=C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak sun.java.launcher = SUN_STANDARD sun.jnu.encoding = Cp1252 sun.management.compiler = HotSpot 64-Bit Tiered Compilers sun.os.patch.level = user.country = US user.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\bin user.home = C:\Users\Edem user.language = en user.name = Edem user.script = user.timezone = GMT user.variant = 2014-02-03 14:08:02,913 DEBUG [org.jboss.as.config] (MSC service thread 1-6) VM Arguments: -XX:+UseCompressedOops -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log\server.log -Dlogging.configuration=file:C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration/logging.properties 2014-02-03 14:08:03,632 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment auth-server.war 2014-02-03 14:08:03,632 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found auth-server.war in deployment directory. To trigger deployment create a file called auth-server.war.dodeploy 2014-02-03 14:08:03,664 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http) 2014-02-03 14:08:03,664 INFO [org.xnio] (MSC service thread 1-5) XNIO version 3.2.0.Beta4 2014-02-03 14:08:03,664 INFO [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.2.0.Beta4 2014-02-03 14:08:03,695 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 33) JBAS010280: Activating Infinispan subsystem. 2014-02-03 14:08:03,695 INFO [org.jboss.as.security] (ServerService Thread Pool -- 46) JBAS013171: Activating Security Subsystem 2014-02-03 14:08:03,695 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 41) JBAS011800: Activating Naming Subsystem 2014-02-03 14:08:03,695 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 50) JBAS015537: Activating WebServices Extension 2014-02-03 14:08:03,710 INFO [org.jboss.as.security] (MSC service thread 1-14) JBAS013170: Current PicketBox version=4.0.20.Beta2 2014-02-03 14:08:03,726 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 39) JBAS012615: Activated the following JSF Implementations: [main] 2014-02-03 14:08:03,726 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017502: Undertow 1.0.0.Beta30 starting 2014-02-03 14:08:03,726 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017502: Undertow 1.0.0.Beta30 starting 2014-02-03 14:08:03,726 INFO [org.jboss.as.connector.logging] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.2.Final) 2014-02-03 14:08:03,757 INFO [org.jboss.as.naming] (MSC service thread 1-12) JBAS011802: Starting Naming Service 2014-02-03 14:08:03,757 INFO [org.jboss.as.mail.extension] (MSC service thread 1-14) JBAS015400: Bound mail session [java:jboss/mail/Default] 2014-02-03 14:08:03,757 INFO [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version (unknown) 2014-02-03 14:08:03,757 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 2014-02-03 14:08:03,773 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-14) JBAS010417: Started Driver service with driver-name = h2 2014-02-03 14:08:03,773 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.0) 2014-02-03 14:08:03,773 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010417: Started Driver service with driver-name = org.postgresql 2014-02-03 14:08:03,914 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017527: Creating file handler for path C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak/welcome-content 2014-02-03 14:08:03,929 INFO [org.wildfly.extension.undertow] (MSC service thread 1-9) JBAS017525: Started server default-server. 2014-02-03 14:08:03,929 INFO [org.wildfly.extension.undertow] (MSC service thread 1-9) JBAS017531: Host default-host starting 2014-02-03 14:08:04,070 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-14) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\deployments 2014-02-03 14:08:04,070 INFO [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015876: Starting deployment of "auth-server.war" (runtime-name: "auth-server.war") 2014-02-03 14:08:04,304 INFO [org.jboss.as.remoting] (MSC service thread 1-13) JBAS017100: Listening on 127.0.0.1:9999 2014-02-03 14:08:04,335 INFO [org.wildfly.extension.undertow] (MSC service thread 1-14) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080 2014-02-03 14:08:04,429 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/KeycloakDS] 2014-02-03 14:08:04,429 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-9) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS] 2014-02-03 14:08:04,429 INFO [org.jboss.ws.common.management] (MSC service thread 1-14) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.3.Final 2014-02-03 14:08:05,101 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015960: Class Path entry jaxb-api.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-core-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:08:05,117 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015960: Class Path entry jaxb-api.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-impl-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:08:05,117 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015960: Class Path entry jaxb-core.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-impl-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:08:05,179 INFO [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for jpa-keycloak-identity-store 2014-02-03 14:08:05,320 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:08:05,320 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 52) HHH000204: Processing PersistenceUnitInfo [ name: jpa-keycloak-identity-store ...] 2014-02-03 14:08:05,367 INFO [org.hibernate.Version] (ServerService Thread Pool -- 52) HHH000412: Hibernate Core {4.3.0.Final} 2014-02-03 14:08:05,367 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 52) HHH000206: hibernate.properties not found 2014-02-03 14:08:05,367 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 52) HHH000021: Bytecode provider name : javassist 2014-02-03 14:08:05,476 WARN [org.jboss.as.ee] (MSC service thread 1-8) JBAS011006: Not installing optional component org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest$Servlet3ExecutionContext$Servle3AsychronousResponse due to an exception (enable DEBUG log level to see the cause) 2014-02-03 14:08:05,523 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:08:05,585 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 52) HCANN000001: Hibernate Commons Annotations {4.0.4.Final} 2014-02-03 14:08:05,820 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 52) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect 2014-02-03 14:08:05,820 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (ServerService Thread Pool -- 52) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException 2014-02-03 14:08:05,945 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 52) HHH000397: Using ASTQueryTranslatorFactory 2014-02-03 14:08:05,976 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 52) HV000001: Hibernate Validator 5.0.2.Final 2014-02-03 14:08:06,320 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000228: Running hbm2ddl schema update 2014-02-03 14:08:06,320 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000102: Fetching database metadata 2014-02-03 14:08:06,336 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000396: Updating schema 2014-02-03 14:08:06,367 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.application_default_roles 2014-02-03 14:08:06,367 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [defaultroles_id, applicationentity_id] 2014-02-03 14:08:06,367 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,367 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_drp2eoe21hph4svi7407swsyd] 2014-02-03 14:08:06,382 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.application_required_credentials 2014-02-03 14:08:06,382 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [requiredapplicationcredentials_id, realmentity_id] 2014-02-03 14:08:06,382 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_82svc5ipoim52p8271tvdsrqj] 2014-02-03 14:08:06,382 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_covu9ee5bu9nkvl1vu8hb1ir7] 2014-02-03 14:08:06,398 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.application_roles 2014-02-03 14:08:06,398 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [applicationentity_id, roles_id] 2014-02-03 14:08:06,398 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,398 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_7l9hpvgdgmc5uejbcop317ib2] 2014-02-03 14:08:06,414 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.applicationentity 2014-02-03 14:08:06,414 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, enabled, managementurl, applicationuser_id, name, baseurl, surrogateauthrequired] 2014-02-03 14:08:06,414 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,414 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [applicationentity_pkey] 2014-02-03 14:08:06,445 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.applicationscopemappingentity 2014-02-03 14:08:06,445 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, role_id, user_id, application_id] 2014-02-03 14:08:06,445 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,445 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [applicationscopemappingentity_pkey] 2014-02-03 14:08:06,461 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.applicationuserrolemappingentity 2014-02-03 14:08:06,461 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, role_id, user_id, application_id] 2014-02-03 14:08:06,461 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,461 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [applicationuserrolemappingentity_pkey] 2014-02-03 14:08:06,476 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.credentialentity 2014-02-03 14:08:06,476 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, value, device, user_id, type] 2014-02-03 14:08:06,476 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,476 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [credentialentity_pkey] 2014-02-03 14:08:06,492 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.oauth_client_required_credentials 2014-02-03 14:08:06,492 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [realmentity_id, requiredoauthclientcredentials_id] 2014-02-03 14:08:06,492 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_axk539p25x0kjtye8jf036fm7] 2014-02-03 14:08:06,492 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_76d17rixlrhv6dq5w8vjtcny7] 2014-02-03 14:08:06,507 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.oauthcliententity 2014-02-03 14:08:06,507 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, realm_id, name, agent_id] 2014-02-03 14:08:06,507 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_c7p5k3d5mewb3yym9qypp76uj] 2014-02-03 14:08:06,507 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [oauthcliententity_pkey] 2014-02-03 14:08:06,539 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.realm_default_roles 2014-02-03 14:08:06,539 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [realmentity_id, defaultroles_id] 2014-02-03 14:08:06,539 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_n33klpw4ofkxt71sbuumd5ldo] 2014-02-03 14:08:06,539 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_nm4mf0m1nmi7ub6mjbjy4vfhs] 2014-02-03 14:08:06,554 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.realm_roles 2014-02-03 14:08:06,554 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [realmentity_id, roles_id] 2014-02-03 14:08:06,554 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_ojax2569atkiu2esoxqnj0o4i] 2014-02-03 14:08:06,554 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_ianyv4ds3ad2manh3fjgh4qi8] 2014-02-03 14:08:06,570 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.realmentity 2014-02-03 14:08:06,570 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [enabled, passwordpolicy, publickeypem, registrationallowed, resetpasswordallowed, privatekeypem, accesscodelifespan, accesscodelifespanuseraction, id, sslnotrequired, updateprofileoninitialsociallogin, social, tokenlifespan, name, verifyemail] 2014-02-03 14:08:06,570 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,570 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [realmentity_pkey] 2014-02-03 14:08:06,586 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.realmentity_applicationentity 2014-02-03 14:08:06,586 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [realmentity_id, applications_id] 2014-02-03 14:08:06,601 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_kl5keangpo58h9r3cugwvxu2] 2014-02-03 14:08:06,601 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_lc35hwkvorkg9dmj6e6hi40qn] 2014-02-03 14:08:06,617 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.realmentity_smtpconfig 2014-02-03 14:08:06,617 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [realmentity_id, name, value] 2014-02-03 14:08:06,617 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_hbtlvt068mnrudm3cf0px691h] 2014-02-03 14:08:06,617 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [realmentity_smtpconfig_pkey] 2014-02-03 14:08:06,632 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.realmentity_socialconfig 2014-02-03 14:08:06,632 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [realmentity_id, name, value] 2014-02-03 14:08:06,648 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_18sn19xqpu83b06jv6w8ksvfv] 2014-02-03 14:08:06,648 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [realmentity_socialconfig_pkey] 2014-02-03 14:08:06,664 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.realmscopemappingentity 2014-02-03 14:08:06,664 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, realm_id, role_id, user_id] 2014-02-03 14:08:06,664 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_kbre9poi98gu6fwc0llkav9lc] 2014-02-03 14:08:06,664 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [realmscopemappingentity_pkey] 2014-02-03 14:08:06,695 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.realmuserrolemappingentity 2014-02-03 14:08:06,695 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, realm_id, role_id, user_id] 2014-02-03 14:08:06,695 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_mmv1fqq7ktpxfgprb7qc3j37o] 2014-02-03 14:08:06,695 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [realmuserrolemappingentity_pkey] 2014-02-03 14:08:06,726 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.requiredcredentialentity 2014-02-03 14:08:06,726 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, input, secret, formlabel, type] 2014-02-03 14:08:06,742 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,742 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [requiredcredentialentity_pkey] 2014-02-03 14:08:06,757 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.roleentity 2014-02-03 14:08:06,757 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, description, name] 2014-02-03 14:08:06,757 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,757 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [roleentity_pkey] 2014-02-03 14:08:06,773 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.sociallinkentity 2014-02-03 14:08:06,773 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, socialusername, realm_id, socialprovider, user_id] 2014-02-03 14:08:06,789 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_jav76o82ob85iuxm2l0gg904h] 2014-02-03 14:08:06,789 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [sociallinkentity_pkey] 2014-02-03 14:08:06,804 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.user_required_credentials 2014-02-03 14:08:06,804 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [realmentity_id, requiredcredentials_id] 2014-02-03 14:08:06,804 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_oxi9ad45ic3e60u94qihx75i3] 2014-02-03 14:08:06,804 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_5uc73e6cvxmkq5ybruf1jsygv] 2014-02-03 14:08:06,820 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.userentity 2014-02-03 14:08:06,820 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [id, loginname, enabled, realm_id, totp, email, emailverified, lastname, firstname] 2014-02-03 14:08:06,835 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [fk_1u1wm7gj4o98kabis6et6klh5] 2014-02-03 14:08:06,835 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [userentity_pkey] 2014-02-03 14:08:06,851 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.userentity_credentialentity 2014-02-03 14:08:06,851 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [credentials_id, userentity_id] 2014-02-03 14:08:06,851 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,851 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [uk_kwlok0nencsu8kuhwervrn2p5] 2014-02-03 14:08:06,882 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.userentity_attributes 2014-02-03 14:08:06,882 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [userentity_id, name, value] 2014-02-03 14:08:06,882 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,882 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [userentity_attributes_pkey] 2014-02-03 14:08:06,898 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.userentity_redirecturis 2014-02-03 14:08:06,898 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [userentity_id, redirecturis] 2014-02-03 14:08:06,898 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,898 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [] 2014-02-03 14:08:06,914 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.userentity_requiredactions 2014-02-03 14:08:06,914 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [userentity_id, requiredactions] 2014-02-03 14:08:06,929 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,929 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [] 2014-02-03 14:08:06,945 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000261: Table found: public.userentity_weborigins 2014-02-03 14:08:06,945 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000037: Columns: [userentity_id, weborigins] 2014-02-03 14:08:06,945 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000108: Foreign keys: [] 2014-02-03 14:08:06,945 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 52) HHH000126: Indexes: [] 2014-02-03 14:08:06,945 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_drp2eoe21hph4svi7407swsyd foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:08:06,945 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_drp2eoe21hph4svi7407swsyd" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:06,960 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_s4rd4wsid827akdjb0w9ibp34 foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:08:06,960 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_s4rd4wsid827akdjb0w9ibp34" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:06,960 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_REQUIRED_CREDENTIALS add constraint FK_covu9ee5bu9nkvl1vu8hb1ir7 foreign key (requiredApplicationCredentials_id) references RequiredCredentialEntity 2014-02-03 14:08:06,976 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_covu9ee5bu9nkvl1vu8hb1ir7" cannot be implemented Detail: Key columns "requiredapplicationcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:06,976 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_7l9hpvgdgmc5uejbcop317ib2 foreign key (roles_id) references RoleEntity 2014-02-03 14:08:06,976 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_7l9hpvgdgmc5uejbcop317ib2" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:06,976 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_60s842yuivcyjem9m1umj0ymh foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:08:06,992 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_60s842yuivcyjem9m1umj0ymh" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:06,992 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationEntity add constraint FK_63mhyngq4dy1yx8he7q8ubmop foreign key (applicationUser_id) references UserEntity 2014-02-03 14:08:06,992 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_63mhyngq4dy1yx8he7q8ubmop" cannot be implemented Detail: Key columns "applicationuser_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:06,992 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_fa7sbalr95rlthhcf9sg8i3r4 foreign key (role_id) references RoleEntity 2014-02-03 14:08:07,007 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_fa7sbalr95rlthhcf9sg8i3r4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,007 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_nfsdpo5g58c6nqfep9sup3ctp foreign key (user_id) references UserEntity 2014-02-03 14:08:07,007 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_nfsdpo5g58c6nqfep9sup3ctp" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,007 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_4ssreqxn6j2a7up48i1qb2sua foreign key (application_id) references ApplicationEntity 2014-02-03 14:08:07,023 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_4ssreqxn6j2a7up48i1qb2sua" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,023 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_t10o4fp8tk5ba9vkpm98c2yrt foreign key (role_id) references RoleEntity 2014-02-03 14:08:07,023 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_t10o4fp8tk5ba9vkpm98c2yrt" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,039 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_acs25q56goc10xrr4xw9bwsth foreign key (user_id) references UserEntity 2014-02-03 14:08:07,039 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_acs25q56goc10xrr4xw9bwsth" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,039 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_9y39hi5ph6at6ds1krpn0rtpi foreign key (application_id) references ApplicationEntity 2014-02-03 14:08:07,054 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_9y39hi5ph6at6ds1krpn0rtpi" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,054 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table CredentialEntity add constraint FK_pn32x46lgmhlaldchhp47wfgj foreign key (user_id) references UserEntity 2014-02-03 14:08:07,054 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_pn32x46lgmhlaldchhp47wfgj" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,054 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table OAUTH_CLIENT_REQUIRED_CREDENTIALS add constraint FK_76d17rixlrhv6dq5w8vjtcny7 foreign key (requiredOAuthClientCredentials_id) references RequiredCredentialEntity 2014-02-03 14:08:07,070 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_76d17rixlrhv6dq5w8vjtcny7" cannot be implemented Detail: Key columns "requiredoauthclientcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,070 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table OAuthClientEntity add constraint FK_62mly7ecnrpvk39hvtogbfu9l foreign key (agent_id) references UserEntity 2014-02-03 14:08:07,070 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_62mly7ecnrpvk39hvtogbfu9l" cannot be implemented Detail: Key columns "agent_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,070 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table REALM_DEFAULT_ROLES add constraint FK_nm4mf0m1nmi7ub6mjbjy4vfhs foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:08:07,086 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_nm4mf0m1nmi7ub6mjbjy4vfhs" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,086 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table REALM_ROLES add constraint FK_ianyv4ds3ad2manh3fjgh4qi8 foreign key (roles_id) references RoleEntity 2014-02-03 14:08:07,086 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_ianyv4ds3ad2manh3fjgh4qi8" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,101 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmEntity_ApplicationEntity add constraint FK_lc35hwkvorkg9dmj6e6hi40qn foreign key (applications_id) references ApplicationEntity 2014-02-03 14:08:07,101 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_lc35hwkvorkg9dmj6e6hi40qn" cannot be implemented Detail: Key columns "applications_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,101 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_5nm8bsgqihl29vbpck1ldg6hf foreign key (role_id) references RoleEntity 2014-02-03 14:08:07,101 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_5nm8bsgqihl29vbpck1ldg6hf" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,117 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_9pdjxdhf2xi91uqi2smbihxjy foreign key (user_id) references UserEntity 2014-02-03 14:08:07,117 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_9pdjxdhf2xi91uqi2smbihxjy" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,117 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_osxtwgn0r896ttjvjstnrxvm4 foreign key (role_id) references RoleEntity 2014-02-03 14:08:07,132 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_osxtwgn0r896ttjvjstnrxvm4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,132 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_8tq5oy7c7jw9yl64jvi3f79av foreign key (user_id) references UserEntity 2014-02-03 14:08:07,132 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_8tq5oy7c7jw9yl64jvi3f79av" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,132 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table SocialLinkEntity add constraint FK_of3vi3cc8yo5aavbsq2flfm32 foreign key (user_id) references UserEntity 2014-02-03 14:08:07,132 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_of3vi3cc8yo5aavbsq2flfm32" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,148 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table USER_REQUIRED_CREDENTIALS add constraint FK_5uc73e6cvxmkq5ybruf1jsygv foreign key (requiredCredentials_id) references RequiredCredentialEntity 2014-02-03 14:08:07,148 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_5uc73e6cvxmkq5ybruf1jsygv" cannot be implemented Detail: Key columns "requiredcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,148 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_kwlok0nencsu8kuhwervrn2p5 foreign key (credentials_id) references CredentialEntity 2014-02-03 14:08:07,164 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_kwlok0nencsu8kuhwervrn2p5" cannot be implemented Detail: Key columns "credentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,164 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_302t29u9komfu7d7qffci0cie foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:07,164 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_302t29u9komfu7d7qffci0cie" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,164 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_attributes add constraint FK_pv89d7hl2qoyg2dc1b9bupw7l foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:07,164 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_pv89d7hl2qoyg2dc1b9bupw7l" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,179 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_redirectUris add constraint FK_myu5kr3txep49myg1ejwwy58f foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:07,179 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_myu5kr3txep49myg1ejwwy58f" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,179 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_requiredActions add constraint FK_eclsk6gyvwy477usdcwu8l1mx foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:07,179 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_eclsk6gyvwy477usdcwu8l1mx" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,179 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_webOrigins add constraint FK_sn38pjw1v24ahb1d6jrwshoa6 foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:07,179 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_sn38pjw1v24ahb1d6jrwshoa6" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:07,179 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000232: Schema update complete 2014-02-03 14:08:07,179 WARN [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 52) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession() 2014-02-03 14:08:07,601 INFO [org.hibernate.jpa.internal.util.LogHelper] (MSC service thread 1-7) HHH000204: Processing PersistenceUnitInfo [ name: jpa-keycloak-identity-store ...] 2014-02-03 14:08:07,632 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-7) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect 2014-02-03 14:08:07,632 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-7) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException 2014-02-03 14:08:07,664 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-7) HHH000397: Using ASTQueryTranslatorFactory 2014-02-03 14:08:07,742 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000228: Running hbm2ddl schema update 2014-02-03 14:08:07,742 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000102: Fetching database metadata 2014-02-03 14:08:07,742 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000396: Updating schema 2014-02-03 14:08:07,773 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.application_default_roles 2014-02-03 14:08:07,773 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [defaultroles_id, applicationentity_id] 2014-02-03 14:08:07,773 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:07,773 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_drp2eoe21hph4svi7407swsyd] 2014-02-03 14:08:07,789 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.application_required_credentials 2014-02-03 14:08:07,789 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [requiredapplicationcredentials_id, realmentity_id] 2014-02-03 14:08:07,789 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_82svc5ipoim52p8271tvdsrqj] 2014-02-03 14:08:07,789 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_covu9ee5bu9nkvl1vu8hb1ir7] 2014-02-03 14:08:07,804 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.application_roles 2014-02-03 14:08:07,804 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [applicationentity_id, roles_id] 2014-02-03 14:08:07,804 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:07,804 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_7l9hpvgdgmc5uejbcop317ib2] 2014-02-03 14:08:07,820 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.applicationentity 2014-02-03 14:08:07,820 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, enabled, managementurl, applicationuser_id, name, baseurl, surrogateauthrequired] 2014-02-03 14:08:07,820 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:07,820 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [applicationentity_pkey] 2014-02-03 14:08:07,836 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.applicationscopemappingentity 2014-02-03 14:08:07,836 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, role_id, user_id, application_id] 2014-02-03 14:08:07,836 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:07,836 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [applicationscopemappingentity_pkey] 2014-02-03 14:08:07,867 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.applicationuserrolemappingentity 2014-02-03 14:08:07,867 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, role_id, user_id, application_id] 2014-02-03 14:08:07,867 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:07,867 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [applicationuserrolemappingentity_pkey] 2014-02-03 14:08:07,882 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.credentialentity 2014-02-03 14:08:07,882 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, value, device, user_id, type] 2014-02-03 14:08:07,882 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:07,882 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [credentialentity_pkey] 2014-02-03 14:08:07,898 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.oauth_client_required_credentials 2014-02-03 14:08:07,898 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [realmentity_id, requiredoauthclientcredentials_id] 2014-02-03 14:08:07,898 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_axk539p25x0kjtye8jf036fm7] 2014-02-03 14:08:07,898 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_76d17rixlrhv6dq5w8vjtcny7] 2014-02-03 14:08:07,914 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.oauthcliententity 2014-02-03 14:08:07,914 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, realm_id, name, agent_id] 2014-02-03 14:08:07,914 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_c7p5k3d5mewb3yym9qypp76uj] 2014-02-03 14:08:07,914 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [oauthcliententity_pkey] 2014-02-03 14:08:07,929 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.realm_default_roles 2014-02-03 14:08:07,929 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [realmentity_id, defaultroles_id] 2014-02-03 14:08:07,929 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_n33klpw4ofkxt71sbuumd5ldo] 2014-02-03 14:08:07,929 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_nm4mf0m1nmi7ub6mjbjy4vfhs] 2014-02-03 14:08:07,945 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.realm_roles 2014-02-03 14:08:07,961 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [realmentity_id, roles_id] 2014-02-03 14:08:07,961 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_ojax2569atkiu2esoxqnj0o4i] 2014-02-03 14:08:07,961 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_ianyv4ds3ad2manh3fjgh4qi8] 2014-02-03 14:08:07,976 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.realmentity 2014-02-03 14:08:07,976 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [enabled, passwordpolicy, publickeypem, registrationallowed, resetpasswordallowed, privatekeypem, accesscodelifespan, accesscodelifespanuseraction, id, sslnotrequired, updateprofileoninitialsociallogin, social, tokenlifespan, name, verifyemail] 2014-02-03 14:08:07,976 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:07,976 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [realmentity_pkey] 2014-02-03 14:08:07,992 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.realmentity_applicationentity 2014-02-03 14:08:07,992 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [realmentity_id, applications_id] 2014-02-03 14:08:07,992 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_kl5keangpo58h9r3cugwvxu2] 2014-02-03 14:08:07,992 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_lc35hwkvorkg9dmj6e6hi40qn] 2014-02-03 14:08:08,007 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.realmentity_smtpconfig 2014-02-03 14:08:08,007 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [realmentity_id, name, value] 2014-02-03 14:08:08,007 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_hbtlvt068mnrudm3cf0px691h] 2014-02-03 14:08:08,007 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [realmentity_smtpconfig_pkey] 2014-02-03 14:08:08,023 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.realmentity_socialconfig 2014-02-03 14:08:08,023 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [realmentity_id, name, value] 2014-02-03 14:08:08,023 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_18sn19xqpu83b06jv6w8ksvfv] 2014-02-03 14:08:08,023 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [realmentity_socialconfig_pkey] 2014-02-03 14:08:08,054 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.realmscopemappingentity 2014-02-03 14:08:08,054 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, realm_id, role_id, user_id] 2014-02-03 14:08:08,054 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_kbre9poi98gu6fwc0llkav9lc] 2014-02-03 14:08:08,054 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [realmscopemappingentity_pkey] 2014-02-03 14:08:08,070 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.realmuserrolemappingentity 2014-02-03 14:08:08,070 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, realm_id, role_id, user_id] 2014-02-03 14:08:08,070 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_mmv1fqq7ktpxfgprb7qc3j37o] 2014-02-03 14:08:08,070 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [realmuserrolemappingentity_pkey] 2014-02-03 14:08:08,086 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.requiredcredentialentity 2014-02-03 14:08:08,086 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, input, secret, formlabel, type] 2014-02-03 14:08:08,086 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:08,086 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [requiredcredentialentity_pkey] 2014-02-03 14:08:08,101 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.roleentity 2014-02-03 14:08:08,101 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, description, name] 2014-02-03 14:08:08,101 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:08,101 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [roleentity_pkey] 2014-02-03 14:08:08,117 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.sociallinkentity 2014-02-03 14:08:08,117 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, socialusername, realm_id, socialprovider, user_id] 2014-02-03 14:08:08,117 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_jav76o82ob85iuxm2l0gg904h] 2014-02-03 14:08:08,132 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [sociallinkentity_pkey] 2014-02-03 14:08:08,148 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.user_required_credentials 2014-02-03 14:08:08,148 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [realmentity_id, requiredcredentials_id] 2014-02-03 14:08:08,148 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_oxi9ad45ic3e60u94qihx75i3] 2014-02-03 14:08:08,148 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_5uc73e6cvxmkq5ybruf1jsygv] 2014-02-03 14:08:08,164 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.userentity 2014-02-03 14:08:08,164 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [id, loginname, enabled, realm_id, totp, email, emailverified, lastname, firstname] 2014-02-03 14:08:08,164 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [fk_1u1wm7gj4o98kabis6et6klh5] 2014-02-03 14:08:08,164 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [userentity_pkey] 2014-02-03 14:08:08,179 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.userentity_credentialentity 2014-02-03 14:08:08,179 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [credentials_id, userentity_id] 2014-02-03 14:08:08,179 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:08,179 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [uk_kwlok0nencsu8kuhwervrn2p5] 2014-02-03 14:08:08,195 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.userentity_attributes 2014-02-03 14:08:08,195 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [userentity_id, name, value] 2014-02-03 14:08:08,195 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:08,195 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [userentity_attributes_pkey] 2014-02-03 14:08:08,211 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.userentity_redirecturis 2014-02-03 14:08:08,211 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [userentity_id, redirecturis] 2014-02-03 14:08:08,226 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:08,226 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [] 2014-02-03 14:08:08,242 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.userentity_requiredactions 2014-02-03 14:08:08,242 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [userentity_id, requiredactions] 2014-02-03 14:08:08,242 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:08,242 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [] 2014-02-03 14:08:08,257 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000261: Table found: public.userentity_weborigins 2014-02-03 14:08:08,257 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000037: Columns: [userentity_id, weborigins] 2014-02-03 14:08:08,257 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000108: Foreign keys: [] 2014-02-03 14:08:08,257 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-7) HHH000126: Indexes: [] 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_drp2eoe21hph4svi7407swsyd foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_drp2eoe21hph4svi7407swsyd" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_s4rd4wsid827akdjb0w9ibp34 foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_s4rd4wsid827akdjb0w9ibp34" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table APPLICATION_REQUIRED_CREDENTIALS add constraint FK_covu9ee5bu9nkvl1vu8hb1ir7 foreign key (requiredApplicationCredentials_id) references RequiredCredentialEntity 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_covu9ee5bu9nkvl1vu8hb1ir7" cannot be implemented Detail: Key columns "requiredapplicationcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_7l9hpvgdgmc5uejbcop317ib2 foreign key (roles_id) references RoleEntity 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_7l9hpvgdgmc5uejbcop317ib2" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_60s842yuivcyjem9m1umj0ymh foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:08:08,257 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_60s842yuivcyjem9m1umj0ymh" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table ApplicationEntity add constraint FK_63mhyngq4dy1yx8he7q8ubmop foreign key (applicationUser_id) references UserEntity 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_63mhyngq4dy1yx8he7q8ubmop" cannot be implemented Detail: Key columns "applicationuser_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_fa7sbalr95rlthhcf9sg8i3r4 foreign key (role_id) references RoleEntity 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_fa7sbalr95rlthhcf9sg8i3r4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_nfsdpo5g58c6nqfep9sup3ctp foreign key (user_id) references UserEntity 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_nfsdpo5g58c6nqfep9sup3ctp" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_4ssreqxn6j2a7up48i1qb2sua foreign key (application_id) references ApplicationEntity 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_4ssreqxn6j2a7up48i1qb2sua" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_t10o4fp8tk5ba9vkpm98c2yrt foreign key (role_id) references RoleEntity 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_t10o4fp8tk5ba9vkpm98c2yrt" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_acs25q56goc10xrr4xw9bwsth foreign key (user_id) references UserEntity 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_acs25q56goc10xrr4xw9bwsth" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_9y39hi5ph6at6ds1krpn0rtpi foreign key (application_id) references ApplicationEntity 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_9y39hi5ph6at6ds1krpn0rtpi" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table CredentialEntity add constraint FK_pn32x46lgmhlaldchhp47wfgj foreign key (user_id) references UserEntity 2014-02-03 14:08:08,273 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_pn32x46lgmhlaldchhp47wfgj" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table OAUTH_CLIENT_REQUIRED_CREDENTIALS add constraint FK_76d17rixlrhv6dq5w8vjtcny7 foreign key (requiredOAuthClientCredentials_id) references RequiredCredentialEntity 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_76d17rixlrhv6dq5w8vjtcny7" cannot be implemented Detail: Key columns "requiredoauthclientcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table OAuthClientEntity add constraint FK_62mly7ecnrpvk39hvtogbfu9l foreign key (agent_id) references UserEntity 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_62mly7ecnrpvk39hvtogbfu9l" cannot be implemented Detail: Key columns "agent_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table REALM_DEFAULT_ROLES add constraint FK_nm4mf0m1nmi7ub6mjbjy4vfhs foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_nm4mf0m1nmi7ub6mjbjy4vfhs" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table REALM_ROLES add constraint FK_ianyv4ds3ad2manh3fjgh4qi8 foreign key (roles_id) references RoleEntity 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_ianyv4ds3ad2manh3fjgh4qi8" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table RealmEntity_ApplicationEntity add constraint FK_lc35hwkvorkg9dmj6e6hi40qn foreign key (applications_id) references ApplicationEntity 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_lc35hwkvorkg9dmj6e6hi40qn" cannot be implemented Detail: Key columns "applications_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_5nm8bsgqihl29vbpck1ldg6hf foreign key (role_id) references RoleEntity 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_5nm8bsgqihl29vbpck1ldg6hf" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_9pdjxdhf2xi91uqi2smbihxjy foreign key (user_id) references UserEntity 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_9pdjxdhf2xi91uqi2smbihxjy" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_osxtwgn0r896ttjvjstnrxvm4 foreign key (role_id) references RoleEntity 2014-02-03 14:08:08,289 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_osxtwgn0r896ttjvjstnrxvm4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_8tq5oy7c7jw9yl64jvi3f79av foreign key (user_id) references UserEntity 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_8tq5oy7c7jw9yl64jvi3f79av" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table SocialLinkEntity add constraint FK_of3vi3cc8yo5aavbsq2flfm32 foreign key (user_id) references UserEntity 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_of3vi3cc8yo5aavbsq2flfm32" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table USER_REQUIRED_CREDENTIALS add constraint FK_5uc73e6cvxmkq5ybruf1jsygv foreign key (requiredCredentials_id) references RequiredCredentialEntity 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_5uc73e6cvxmkq5ybruf1jsygv" cannot be implemented Detail: Key columns "requiredcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_kwlok0nencsu8kuhwervrn2p5 foreign key (credentials_id) references CredentialEntity 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_kwlok0nencsu8kuhwervrn2p5" cannot be implemented Detail: Key columns "credentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_302t29u9komfu7d7qffci0cie foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_302t29u9komfu7d7qffci0cie" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table UserEntity_attributes add constraint FK_pv89d7hl2qoyg2dc1b9bupw7l foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_pv89d7hl2qoyg2dc1b9bupw7l" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table UserEntity_redirectUris add constraint FK_myu5kr3txep49myg1ejwwy58f foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_myu5kr3txep49myg1ejwwy58f" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table UserEntity_requiredActions add constraint FK_eclsk6gyvwy477usdcwu8l1mx foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:08,304 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_eclsk6gyvwy477usdcwu8l1mx" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,320 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000388: Unsuccessful: alter table UserEntity_webOrigins add constraint FK_sn38pjw1v24ahb1d6jrwshoa6 foreign key (UserEntity_id) references UserEntity 2014-02-03 14:08:08,320 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) ERROR: foreign key constraint "fk_sn38pjw1v24ahb1d6jrwshoa6" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:08:08,320 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-7) HHH000232: Schema update complete 2014-02-03 14:08:08,414 INFO [org.keycloak.services.managers.ApplianceBootstrap] (MSC service thread 1-7) Initializing keycloak-admin realm 2014-02-03 14:08:08,476 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-7) SQL Error: 0, SQLState: 42883 2014-02-03 14:08:08,476 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-7) ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78 2014-02-03 14:08:08,476 INFO [org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl] (MSC service thread 1-7) HHH000010: On release of batch it still contained JDBC statements 2014-02-03 14:08:08,476 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.server.KeycloakServerApplication(javax.servlet.ServletContext) throws java.io.FileNotFoundException at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160) at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2175) at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:295) at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:236) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36) at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:204) at io.undertow.servlet.core.ManagedServlet.start(ManagedServlet.java:112) at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:462) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] ... 3 more Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1683) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1338) at org.keycloak.models.jpa.RealmAdapter.updateCredential(RealmAdapter.java:1064) at org.keycloak.services.managers.RealmManager.setupAccountManagement(RealmManager.java:157) at org.keycloak.services.managers.RealmManager.createRealm(RealmManager.java:82) at org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:45) at org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:29) at org.keycloak.services.resources.KeycloakApplication.setupDefaultRealm(KeycloakApplication.java:70) at org.keycloak.services.resources.KeycloakApplication.(KeycloakApplication.java:52) at org.keycloak.server.KeycloakServerApplication.(KeycloakServerApplication.java:23) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_45] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_45] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_45] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [rt.jar:1.7.0_45] at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148) ... 15 more Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:190) at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:62) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3281) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3183) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3525) at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:158) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:453) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:345) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1218) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1335) ... 28 more Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:334) at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:187) ... 39 more 2014-02-03 14:08:08,523 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "auth-server.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./auth" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.server.KeycloakServerApplication(javax.servlet.ServletContext) throws java.io.FileNotFoundException Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78"}} 2014-02-03 14:08:08,554 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "auth-server.war" (runtime-name : "auth-server.war") 2014-02-03 14:08:08,554 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service 2014-02-03 14:08:08,570 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management 2014-02-03 14:08:08,570 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 2014-02-03 14:08:08,570 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.0.0.CR1 "WildFly" started (with errors) in 6079ms - Started 273 of 330 services (2 services failed or missing dependencies, 87 services are lazy, passive or on-demand) 2014-02-03 14:08:08,804 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 14) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:08:08,820 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 14) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:08:08,898 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment auth-server.war (runtime-name: auth-server.war) in 103ms 2014-02-03 14:08:08,929 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "auth-server.war" (runtime-name: "auth-server.war") 2014-02-03 14:08:08,929 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report JBAS014775: New missing/unsatisfied dependencies: service jboss.deployment.unit."auth-server.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.jboss.resteasy.plugins.server.servlet.Filter30Dispatcher".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.keycloak.services.filters.KeycloakSessionServletFilter".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.keycloak.services.listeners.KeycloakSessionDestroyListener".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.deployment.unit."auth-server.war".component."org.keycloak.services.tmp.TmpAdminRedirectServlet".START (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.persistenceunit."auth-server.war#jpa-keycloak-identity-store" (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.undertow.deployment.default-server.default-host./auth (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./auth 2014-02-03 14:08:13,570 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found auth-server.war in deployment directory. To trigger deployment create a file called auth-server.war.dodeploy 2014-02-03 14:12:48,158 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017532: Host default-host stopping 2014-02-03 14:12:48,158 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS] 2014-02-03 14:12:48,158 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-11) JBAS010409: Unbound data source [java:jboss/datasources/KeycloakDS] 2014-02-03 14:12:48,205 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-16) JBAS010418: Stopped Driver service with driver-name = h2 2014-02-03 14:12:48,205 INFO [org.wildfly.extension.undertow] (MSC service thread 1-9) JBAS017521: Undertow HTTP listener default suspending 2014-02-03 14:12:48,205 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010418: Stopped Driver service with driver-name = org.postgresql 2014-02-03 14:12:48,205 INFO [org.wildfly.extension.undertow] (MSC service thread 1-9) JBAS017520: Undertow HTTP listener default stopped, was bound to /127.0.0.1:8080 2014-02-03 14:12:48,205 INFO [org.wildfly.extension.undertow] (MSC service thread 1-16) JBAS017506: Undertow 1.0.0.Beta30 stopping 2014-02-03 14:12:48,205 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015950: WildFly 8.0.0.CR1 "WildFly" stopped in 8ms 2014-02-03 14:12:59,847 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final 2014-02-03 14:13:00,050 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.0.CR1 2014-02-03 14:13:00,097 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.0.0.CR1 "WildFly" starting 2014-02-03 14:13:00,112 DEBUG [org.jboss.as.config] (MSC service thread 1-6) Configured system properties: awt.toolkit = sun.awt.windows.WToolkit file.encoding = Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment java.awt.printerjob = sun.awt.windows.WPrinterJob java.class.path = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\jboss-modules.jar java.class.version = 51.0 java.endorsed.dirs = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\endorsed java.ext.dirs = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\ext;C:\windows\Sun\Java\lib\ext java.home = C:\Progra~1\Java\jdk1.7.0_45\jre java.io.tmpdir = C:\Users\Edem\AppData\Local\Temp\ java.library.path = C:\Progra~1\Java\jdk1.7.0_45\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Condusiv Technologies\ExpressCache\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Java\jdk1.7.0_45\bin;C:\Program Files\FileBot\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Apache Software Foundation\apache-ant-1.9.3/bin;C:\Program Files\TortoiseHg\;C:\Users\Edem\Servers\mybin\forge-distribution-1.4.3.Final\bin;C:\Program Files\Apache Software Foundation\apache-maven-3.0.5\bin;. java.net.preferIPv4Stack = true java.runtime.name = Java(TM) SE Runtime Environment java.runtime.version = 1.7.0_45-b18 java.specification.name = Java Platform API Specification java.specification.vendor = Oracle Corporation java.specification.version = 1.7 java.util.logging.manager = org.jboss.logmanager.LogManager java.vendor = Oracle Corporation java.vendor.url = http://java.oracle.com/ java.vendor.url.bug = http://bugreport.sun.com/bugreport/ java.version = 1.7.0_45 java.vm.info = mixed mode java.vm.name = Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name = Java Virtual Machine Specification java.vm.specification.vendor = Oracle Corporation java.vm.specification.version = 1.7 java.vm.vendor = Oracle Corporation java.vm.version = 24.45-b08 javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory jboss.home.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak jboss.host.name = edemgear jboss.modules.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules jboss.modules.system.pkgs = org.jboss.byteman jboss.node.name = edemgear jboss.qualified.host.name = edemgear jboss.server.base.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone jboss.server.config.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration jboss.server.data.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\data jboss.server.deploy.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\data\content jboss.server.log.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log jboss.server.name = edemgear jboss.server.persist.config = true jboss.server.temp.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\tmp line.separator = logging.configuration = file:C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration/logging.properties module.path = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules org.jboss.boot.log.file = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log\server.log org.jboss.resolver.warning = true org.xml.sax.driver = __redirected.__XMLReaderFactory os.arch = amd64 os.name = Windows 8 os.version = 6.2 path.separator = ; program.name = standalone.bat sun.arch.data.model = 64 sun.boot.class.path = C:\Progra~1\Java\jdk1.7.0_45\jre\lib\resources.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\rt.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\sunrsasign.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jsse.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jce.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\charsets.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\lib\jfr.jar;C:\Progra~1\Java\jdk1.7.0_45\jre\classes sun.boot.library.path = C:\Progra~1\Java\jdk1.7.0_45\jre\bin sun.cpu.endian = little sun.cpu.isalist = amd64 sun.desktop = windows sun.io.unicode.encoding = UnicodeLittle sun.java.command = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\jboss-modules.jar -mp C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\modules org.jboss.as.standalone -Djboss.home.dir=C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak sun.java.launcher = SUN_STANDARD sun.jnu.encoding = Cp1252 sun.management.compiler = HotSpot 64-Bit Tiered Compilers sun.os.patch.level = user.country = US user.dir = C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\bin user.home = C:\Users\Edem user.language = en user.name = Edem user.script = user.timezone = GMT user.variant = 2014-02-03 14:13:00,112 DEBUG [org.jboss.as.config] (MSC service thread 1-6) VM Arguments: -XX:+UseCompressedOops -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\log\server.log -Dlogging.configuration=file:C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\configuration/logging.properties 2014-02-03 14:13:00,768 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment auth-server.war 2014-02-03 14:13:00,784 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found auth-server.war in deployment directory. To trigger deployment create a file called auth-server.war.dodeploy 2014-02-03 14:13:00,800 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http) 2014-02-03 14:13:00,800 INFO [org.xnio] (MSC service thread 1-10) XNIO version 3.2.0.Beta4 2014-02-03 14:13:00,815 INFO [org.xnio.nio] (MSC service thread 1-10) XNIO NIO Implementation Version 3.2.0.Beta4 2014-02-03 14:13:00,831 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 33) JBAS010280: Activating Infinispan subsystem. 2014-02-03 14:13:00,831 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 50) JBAS015537: Activating WebServices Extension 2014-02-03 14:13:00,831 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 41) JBAS011800: Activating Naming Subsystem 2014-02-03 14:13:00,847 INFO [org.jboss.as.security] (ServerService Thread Pool -- 46) JBAS013171: Activating Security Subsystem 2014-02-03 14:13:00,847 INFO [org.jboss.as.connector.logging] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.2.Final) 2014-02-03 14:13:00,862 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 39) JBAS012615: Activated the following JSF Implementations: [main] 2014-02-03 14:13:00,862 INFO [org.jboss.as.security] (MSC service thread 1-15) JBAS013170: Current PicketBox version=4.0.20.Beta2 2014-02-03 14:13:00,878 INFO [org.jboss.remoting] (MSC service thread 1-10) JBoss Remoting version (unknown) 2014-02-03 14:13:00,878 INFO [org.wildfly.extension.undertow] (MSC service thread 1-13) JBAS017502: Undertow 1.0.0.Beta30 starting 2014-02-03 14:13:00,878 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017502: Undertow 1.0.0.Beta30 starting 2014-02-03 14:13:00,894 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 2014-02-03 14:13:00,894 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-12) JBAS010417: Started Driver service with driver-name = h2 2014-02-03 14:13:00,894 INFO [org.jboss.as.naming] (MSC service thread 1-9) JBAS011802: Starting Naming Service 2014-02-03 14:13:00,894 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.0) 2014-02-03 14:13:00,894 INFO [org.jboss.as.mail.extension] (MSC service thread 1-13) JBAS015400: Bound mail session [java:jboss/mail/Default] 2014-02-03 14:13:00,909 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010417: Started Driver service with driver-name = org.postgresql 2014-02-03 14:13:01,097 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017527: Creating file handler for path C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak/welcome-content 2014-02-03 14:13:01,112 INFO [org.wildfly.extension.undertow] (MSC service thread 1-9) JBAS017525: Started server default-server. 2014-02-03 14:13:01,112 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017531: Host default-host starting 2014-02-03 14:13:01,237 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-9) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\Edem\Servers\keycloak-appliance-dist-all-1.0-alpha-1\keycloak\standalone\deployments 2014-02-03 14:13:01,237 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "auth-server.war" (runtime-name: "auth-server.war") 2014-02-03 14:13:01,441 INFO [org.jboss.as.remoting] (MSC service thread 1-12) JBAS017100: Listening on 127.0.0.1:9999 2014-02-03 14:13:01,457 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080 2014-02-03 14:13:01,566 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-13) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS] 2014-02-03 14:13:01,566 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-14) JBAS010400: Bound data source [java:jboss/datasources/KeycloakDS] 2014-02-03 14:13:01,598 INFO [org.jboss.ws.common.management] (MSC service thread 1-3) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.3.Final 2014-02-03 14:13:02,301 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry jaxb-api.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-core-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:13:02,301 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry jaxb-api.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-impl-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:13:02,301 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry jaxb-core.jar in /C:/Users/Edem/Servers/keycloak-appliance-dist-all-1.0-alpha-1/keycloak/standalone/deployments/auth-server.war/WEB-INF/lib/jaxb-impl-2.2.7.jar does not point to a valid jar for a Class-Path reference. 2014-02-03 14:13:02,379 INFO [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011401: Read persistence.xml for jpa-keycloak-identity-store 2014-02-03 14:13:02,488 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:13:02,504 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 52) HHH000204: Processing PersistenceUnitInfo [ name: jpa-keycloak-identity-store ...] 2014-02-03 14:13:02,551 INFO [org.hibernate.Version] (ServerService Thread Pool -- 52) HHH000412: Hibernate Core {4.3.0.Final} 2014-02-03 14:13:02,551 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 52) HHH000206: hibernate.properties not found 2014-02-03 14:13:02,551 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 52) HHH000021: Bytecode provider name : javassist 2014-02-03 14:13:02,660 WARN [org.jboss.as.ee] (MSC service thread 1-15) JBAS011006: Not installing optional component org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest$Servlet3ExecutionContext$Servle3AsychronousResponse due to an exception (enable DEBUG log level to see the cause) 2014-02-03 14:13:02,723 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:13:02,770 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 52) HCANN000001: Hibernate Commons Annotations {4.0.4.Final} 2014-02-03 14:13:02,988 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 52) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect 2014-02-03 14:13:03,020 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (ServerService Thread Pool -- 52) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException 2014-02-03 14:13:03,145 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 52) HHH000397: Using ASTQueryTranslatorFactory 2014-02-03 14:13:03,176 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 52) HV000001: Hibernate Validator 5.0.2.Final 2014-02-03 14:13:03,488 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000228: Running hbm2ddl schema update 2014-02-03 14:13:03,488 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000102: Fetching database metadata 2014-02-03 14:13:03,504 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000396: Updating schema 2014-02-03 14:13:03,504 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_DEFAULT_ROLES 2014-02-03 14:13:03,504 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,520 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_ROLES 2014-02-03 14:13:03,520 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationEntity 2014-02-03 14:13:03,520 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationScopeMappingEntity 2014-02-03 14:13:03,520 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationUserRoleMappingEntity 2014-02-03 14:13:03,520 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: CredentialEntity 2014-02-03 14:13:03,520 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAUTH_CLIENT_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,520 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAuthClientEntity 2014-02-03 14:13:03,535 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_DEFAULT_ROLES 2014-02-03 14:13:03,535 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_ROLES 2014-02-03 14:13:03,535 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity 2014-02-03 14:13:03,535 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_ApplicationEntity 2014-02-03 14:13:03,535 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_smtpConfig 2014-02-03 14:13:03,535 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_socialConfig 2014-02-03 14:13:03,535 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmScopeMappingEntity 2014-02-03 14:13:03,535 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmUserRoleMappingEntity 2014-02-03 14:13:03,551 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RequiredCredentialEntity 2014-02-03 14:13:03,551 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RoleEntity 2014-02-03 14:13:03,551 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: SocialLinkEntity 2014-02-03 14:13:03,551 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: USER_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,551 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity 2014-02-03 14:13:03,551 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_CredentialEntity 2014-02-03 14:13:03,551 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_attributes 2014-02-03 14:13:03,551 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_redirectUris 2014-02-03 14:13:03,566 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_requiredActions 2014-02-03 14:13:03,566 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_webOrigins 2014-02-03 14:13:03,566 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_DEFAULT_ROLES 2014-02-03 14:13:03,566 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,566 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_ROLES 2014-02-03 14:13:03,566 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationEntity 2014-02-03 14:13:03,566 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationScopeMappingEntity 2014-02-03 14:13:03,582 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationUserRoleMappingEntity 2014-02-03 14:13:03,582 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: CredentialEntity 2014-02-03 14:13:03,582 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAUTH_CLIENT_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,582 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAuthClientEntity 2014-02-03 14:13:03,582 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_DEFAULT_ROLES 2014-02-03 14:13:03,582 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_ROLES 2014-02-03 14:13:03,582 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity 2014-02-03 14:13:03,598 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_ApplicationEntity 2014-02-03 14:13:03,598 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_smtpConfig 2014-02-03 14:13:03,598 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_socialConfig 2014-02-03 14:13:03,598 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmScopeMappingEntity 2014-02-03 14:13:03,598 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmUserRoleMappingEntity 2014-02-03 14:13:03,598 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RequiredCredentialEntity 2014-02-03 14:13:03,598 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RoleEntity 2014-02-03 14:13:03,613 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: SocialLinkEntity 2014-02-03 14:13:03,613 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: USER_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,613 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity 2014-02-03 14:13:03,613 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_CredentialEntity 2014-02-03 14:13:03,613 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_attributes 2014-02-03 14:13:03,613 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_redirectUris 2014-02-03 14:13:03,629 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_requiredActions 2014-02-03 14:13:03,629 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_webOrigins 2014-02-03 14:13:03,629 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_DEFAULT_ROLES 2014-02-03 14:13:03,629 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,629 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: APPLICATION_ROLES 2014-02-03 14:13:03,629 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationEntity 2014-02-03 14:13:03,629 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationScopeMappingEntity 2014-02-03 14:13:03,645 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: ApplicationUserRoleMappingEntity 2014-02-03 14:13:03,645 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: CredentialEntity 2014-02-03 14:13:03,645 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAUTH_CLIENT_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,645 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: OAuthClientEntity 2014-02-03 14:13:03,645 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_DEFAULT_ROLES 2014-02-03 14:13:03,645 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: REALM_ROLES 2014-02-03 14:13:03,645 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity 2014-02-03 14:13:03,645 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_ApplicationEntity 2014-02-03 14:13:03,660 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_smtpConfig 2014-02-03 14:13:03,660 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmEntity_socialConfig 2014-02-03 14:13:03,660 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmScopeMappingEntity 2014-02-03 14:13:03,660 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RealmUserRoleMappingEntity 2014-02-03 14:13:03,660 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RequiredCredentialEntity 2014-02-03 14:13:03,660 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: RoleEntity 2014-02-03 14:13:03,676 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: SocialLinkEntity 2014-02-03 14:13:03,676 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: USER_REQUIRED_CREDENTIALS 2014-02-03 14:13:03,676 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity 2014-02-03 14:13:03,676 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_CredentialEntity 2014-02-03 14:13:03,676 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_attributes 2014-02-03 14:13:03,676 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_redirectUris 2014-02-03 14:13:03,676 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_requiredActions 2014-02-03 14:13:03,691 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 52) HHH000262: Table not found: UserEntity_webOrigins 2014-02-03 14:13:03,988 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_drp2eoe21hph4svi7407swsyd foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:13:03,988 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_drp2eoe21hph4svi7407swsyd" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:03,988 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_s4rd4wsid827akdjb0w9ibp34 foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:13:04,004 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_s4rd4wsid827akdjb0w9ibp34" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,004 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_REQUIRED_CREDENTIALS add constraint FK_covu9ee5bu9nkvl1vu8hb1ir7 foreign key (requiredApplicationCredentials_id) references RequiredCredentialEntity 2014-02-03 14:13:04,004 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_covu9ee5bu9nkvl1vu8hb1ir7" cannot be implemented Detail: Key columns "requiredapplicationcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,020 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_7l9hpvgdgmc5uejbcop317ib2 foreign key (roles_id) references RoleEntity 2014-02-03 14:13:04,020 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_7l9hpvgdgmc5uejbcop317ib2" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,035 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_60s842yuivcyjem9m1umj0ymh foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:13:04,035 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_60s842yuivcyjem9m1umj0ymh" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,035 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationEntity add constraint FK_63mhyngq4dy1yx8he7q8ubmop foreign key (applicationUser_id) references UserEntity 2014-02-03 14:13:04,035 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_63mhyngq4dy1yx8he7q8ubmop" cannot be implemented Detail: Key columns "applicationuser_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,051 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_fa7sbalr95rlthhcf9sg8i3r4 foreign key (role_id) references RoleEntity 2014-02-03 14:13:04,051 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_fa7sbalr95rlthhcf9sg8i3r4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,051 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_nfsdpo5g58c6nqfep9sup3ctp foreign key (user_id) references UserEntity 2014-02-03 14:13:04,051 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_nfsdpo5g58c6nqfep9sup3ctp" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,066 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_4ssreqxn6j2a7up48i1qb2sua foreign key (application_id) references ApplicationEntity 2014-02-03 14:13:04,066 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_4ssreqxn6j2a7up48i1qb2sua" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,066 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_t10o4fp8tk5ba9vkpm98c2yrt foreign key (role_id) references RoleEntity 2014-02-03 14:13:04,082 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_t10o4fp8tk5ba9vkpm98c2yrt" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,082 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_acs25q56goc10xrr4xw9bwsth foreign key (user_id) references UserEntity 2014-02-03 14:13:04,082 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_acs25q56goc10xrr4xw9bwsth" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,098 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_9y39hi5ph6at6ds1krpn0rtpi foreign key (application_id) references ApplicationEntity 2014-02-03 14:13:04,098 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_9y39hi5ph6at6ds1krpn0rtpi" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,098 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table CredentialEntity add constraint FK_pn32x46lgmhlaldchhp47wfgj foreign key (user_id) references UserEntity 2014-02-03 14:13:04,098 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_pn32x46lgmhlaldchhp47wfgj" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,113 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table OAUTH_CLIENT_REQUIRED_CREDENTIALS add constraint FK_76d17rixlrhv6dq5w8vjtcny7 foreign key (requiredOAuthClientCredentials_id) references RequiredCredentialEntity 2014-02-03 14:13:04,113 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_76d17rixlrhv6dq5w8vjtcny7" cannot be implemented Detail: Key columns "requiredoauthclientcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,113 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table OAuthClientEntity add constraint FK_62mly7ecnrpvk39hvtogbfu9l foreign key (agent_id) references UserEntity 2014-02-03 14:13:04,113 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_62mly7ecnrpvk39hvtogbfu9l" cannot be implemented Detail: Key columns "agent_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,129 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table REALM_DEFAULT_ROLES add constraint FK_nm4mf0m1nmi7ub6mjbjy4vfhs foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:13:04,129 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_nm4mf0m1nmi7ub6mjbjy4vfhs" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,129 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table REALM_ROLES add constraint FK_ianyv4ds3ad2manh3fjgh4qi8 foreign key (roles_id) references RoleEntity 2014-02-03 14:13:04,129 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_ianyv4ds3ad2manh3fjgh4qi8" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,145 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmEntity_ApplicationEntity add constraint FK_lc35hwkvorkg9dmj6e6hi40qn foreign key (applications_id) references ApplicationEntity 2014-02-03 14:13:04,145 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_lc35hwkvorkg9dmj6e6hi40qn" cannot be implemented Detail: Key columns "applications_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,160 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_5nm8bsgqihl29vbpck1ldg6hf foreign key (role_id) references RoleEntity 2014-02-03 14:13:04,160 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_5nm8bsgqihl29vbpck1ldg6hf" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,160 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_9pdjxdhf2xi91uqi2smbihxjy foreign key (user_id) references UserEntity 2014-02-03 14:13:04,160 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_9pdjxdhf2xi91uqi2smbihxjy" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,176 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_osxtwgn0r896ttjvjstnrxvm4 foreign key (role_id) references RoleEntity 2014-02-03 14:13:04,176 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_osxtwgn0r896ttjvjstnrxvm4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,176 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_8tq5oy7c7jw9yl64jvi3f79av foreign key (user_id) references UserEntity 2014-02-03 14:13:04,191 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_8tq5oy7c7jw9yl64jvi3f79av" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,191 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table SocialLinkEntity add constraint FK_of3vi3cc8yo5aavbsq2flfm32 foreign key (user_id) references UserEntity 2014-02-03 14:13:04,207 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_of3vi3cc8yo5aavbsq2flfm32" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,207 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table USER_REQUIRED_CREDENTIALS add constraint FK_5uc73e6cvxmkq5ybruf1jsygv foreign key (requiredCredentials_id) references RequiredCredentialEntity 2014-02-03 14:13:04,207 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_5uc73e6cvxmkq5ybruf1jsygv" cannot be implemented Detail: Key columns "requiredcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,223 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_kwlok0nencsu8kuhwervrn2p5 foreign key (credentials_id) references CredentialEntity 2014-02-03 14:13:04,223 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_kwlok0nencsu8kuhwervrn2p5" cannot be implemented Detail: Key columns "credentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,238 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_302t29u9komfu7d7qffci0cie foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:04,238 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_302t29u9komfu7d7qffci0cie" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,238 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_attributes add constraint FK_pv89d7hl2qoyg2dc1b9bupw7l foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:04,238 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_pv89d7hl2qoyg2dc1b9bupw7l" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,238 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_redirectUris add constraint FK_myu5kr3txep49myg1ejwwy58f foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:04,238 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_myu5kr3txep49myg1ejwwy58f" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,238 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_requiredActions add constraint FK_eclsk6gyvwy477usdcwu8l1mx foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:04,254 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_eclsk6gyvwy477usdcwu8l1mx" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,254 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000388: Unsuccessful: alter table UserEntity_webOrigins add constraint FK_sn38pjw1v24ahb1d6jrwshoa6 foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:04,254 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) ERROR: foreign key constraint "fk_sn38pjw1v24ahb1d6jrwshoa6" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:04,254 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 52) HHH000232: Schema update complete 2014-02-03 14:13:04,254 WARN [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 52) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession() 2014-02-03 14:13:04,676 INFO [org.hibernate.jpa.internal.util.LogHelper] (MSC service thread 1-12) HHH000204: Processing PersistenceUnitInfo [ name: jpa-keycloak-identity-store ...] 2014-02-03 14:13:04,723 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-12) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect 2014-02-03 14:13:04,723 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-12) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException 2014-02-03 14:13:04,754 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-12) HHH000397: Using ASTQueryTranslatorFactory 2014-02-03 14:13:04,848 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000228: Running hbm2ddl schema update 2014-02-03 14:13:04,848 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000102: Fetching database metadata 2014-02-03 14:13:04,848 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000396: Updating schema 2014-02-03 14:13:04,863 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.application_default_roles 2014-02-03 14:13:04,863 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [defaultroles_id, applicationentity_id] 2014-02-03 14:13:04,863 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:04,863 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_drp2eoe21hph4svi7407swsyd] 2014-02-03 14:13:04,879 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.application_required_credentials 2014-02-03 14:13:04,895 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [requiredapplicationcredentials_id, realmentity_id] 2014-02-03 14:13:04,895 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_82svc5ipoim52p8271tvdsrqj] 2014-02-03 14:13:04,895 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_covu9ee5bu9nkvl1vu8hb1ir7] 2014-02-03 14:13:04,910 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.application_roles 2014-02-03 14:13:04,910 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [applicationentity_id, roles_id] 2014-02-03 14:13:04,910 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:04,910 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_7l9hpvgdgmc5uejbcop317ib2] 2014-02-03 14:13:04,926 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.applicationentity 2014-02-03 14:13:04,926 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, enabled, managementurl, applicationuser_id, name, baseurl, surrogateauthrequired] 2014-02-03 14:13:04,926 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:04,926 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [applicationentity_pkey] 2014-02-03 14:13:04,941 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.applicationscopemappingentity 2014-02-03 14:13:04,941 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, role_id, user_id, application_id] 2014-02-03 14:13:04,941 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:04,941 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [applicationscopemappingentity_pkey] 2014-02-03 14:13:04,973 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.applicationuserrolemappingentity 2014-02-03 14:13:04,973 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, role_id, user_id, application_id] 2014-02-03 14:13:04,973 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:04,973 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [applicationuserrolemappingentity_pkey] 2014-02-03 14:13:04,988 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.credentialentity 2014-02-03 14:13:04,988 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, value, device, user_id, type] 2014-02-03 14:13:04,988 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:04,988 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [credentialentity_pkey] 2014-02-03 14:13:05,004 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.oauth_client_required_credentials 2014-02-03 14:13:05,004 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [realmentity_id, requiredoauthclientcredentials_id] 2014-02-03 14:13:05,004 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_axk539p25x0kjtye8jf036fm7] 2014-02-03 14:13:05,004 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_76d17rixlrhv6dq5w8vjtcny7] 2014-02-03 14:13:05,020 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.oauthcliententity 2014-02-03 14:13:05,020 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, realm_id, name, agent_id] 2014-02-03 14:13:05,020 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_c7p5k3d5mewb3yym9qypp76uj] 2014-02-03 14:13:05,020 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [oauthcliententity_pkey] 2014-02-03 14:13:05,051 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.realm_default_roles 2014-02-03 14:13:05,051 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [realmentity_id, defaultroles_id] 2014-02-03 14:13:05,051 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_n33klpw4ofkxt71sbuumd5ldo] 2014-02-03 14:13:05,051 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_nm4mf0m1nmi7ub6mjbjy4vfhs] 2014-02-03 14:13:05,066 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.realm_roles 2014-02-03 14:13:05,066 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [realmentity_id, roles_id] 2014-02-03 14:13:05,066 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_ojax2569atkiu2esoxqnj0o4i] 2014-02-03 14:13:05,066 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_ianyv4ds3ad2manh3fjgh4qi8] 2014-02-03 14:13:05,082 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.realmentity 2014-02-03 14:13:05,082 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [enabled, passwordpolicy, publickeypem, registrationallowed, resetpasswordallowed, privatekeypem, accesscodelifespan, accesscodelifespanuseraction, id, sslnotrequired, updateprofileoninitialsociallogin, social, tokenlifespan, name, verifyemail] 2014-02-03 14:13:05,082 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:05,082 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [realmentity_pkey] 2014-02-03 14:13:05,098 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.realmentity_applicationentity 2014-02-03 14:13:05,098 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [realmentity_id, applications_id] 2014-02-03 14:13:05,113 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_kl5keangpo58h9r3cugwvxu2] 2014-02-03 14:13:05,113 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_lc35hwkvorkg9dmj6e6hi40qn] 2014-02-03 14:13:05,129 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.realmentity_smtpconfig 2014-02-03 14:13:05,129 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [realmentity_id, name, value] 2014-02-03 14:13:05,129 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_hbtlvt068mnrudm3cf0px691h] 2014-02-03 14:13:05,129 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [realmentity_smtpconfig_pkey] 2014-02-03 14:13:05,145 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.realmentity_socialconfig 2014-02-03 14:13:05,145 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [realmentity_id, name, value] 2014-02-03 14:13:05,145 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_18sn19xqpu83b06jv6w8ksvfv] 2014-02-03 14:13:05,145 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [realmentity_socialconfig_pkey] 2014-02-03 14:13:05,160 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.realmscopemappingentity 2014-02-03 14:13:05,160 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, realm_id, role_id, user_id] 2014-02-03 14:13:05,160 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_kbre9poi98gu6fwc0llkav9lc] 2014-02-03 14:13:05,160 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [realmscopemappingentity_pkey] 2014-02-03 14:13:05,176 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.realmuserrolemappingentity 2014-02-03 14:13:05,176 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, realm_id, role_id, user_id] 2014-02-03 14:13:05,191 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_mmv1fqq7ktpxfgprb7qc3j37o] 2014-02-03 14:13:05,191 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [realmuserrolemappingentity_pkey] 2014-02-03 14:13:05,207 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.requiredcredentialentity 2014-02-03 14:13:05,207 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, input, secret, formlabel, type] 2014-02-03 14:13:05,207 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:05,207 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [requiredcredentialentity_pkey] 2014-02-03 14:13:05,223 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.roleentity 2014-02-03 14:13:05,223 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, description, name] 2014-02-03 14:13:05,223 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:05,223 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [roleentity_pkey] 2014-02-03 14:13:05,238 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.sociallinkentity 2014-02-03 14:13:05,238 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, socialusername, realm_id, socialprovider, user_id] 2014-02-03 14:13:05,238 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_jav76o82ob85iuxm2l0gg904h] 2014-02-03 14:13:05,238 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [sociallinkentity_pkey] 2014-02-03 14:13:05,254 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.user_required_credentials 2014-02-03 14:13:05,254 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [realmentity_id, requiredcredentials_id] 2014-02-03 14:13:05,254 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_oxi9ad45ic3e60u94qihx75i3] 2014-02-03 14:13:05,254 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_5uc73e6cvxmkq5ybruf1jsygv] 2014-02-03 14:13:05,285 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.userentity 2014-02-03 14:13:05,285 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [id, loginname, enabled, realm_id, totp, email, emailverified, lastname, firstname] 2014-02-03 14:13:05,285 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [fk_1u1wm7gj4o98kabis6et6klh5] 2014-02-03 14:13:05,285 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [userentity_pkey] 2014-02-03 14:13:05,301 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.userentity_credentialentity 2014-02-03 14:13:05,301 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [credentials_id, userentity_id] 2014-02-03 14:13:05,301 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:05,301 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [uk_kwlok0nencsu8kuhwervrn2p5] 2014-02-03 14:13:05,316 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.userentity_attributes 2014-02-03 14:13:05,316 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [userentity_id, name, value] 2014-02-03 14:13:05,316 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:05,316 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [userentity_attributes_pkey] 2014-02-03 14:13:05,332 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.userentity_redirecturis 2014-02-03 14:13:05,332 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [userentity_id, redirecturis] 2014-02-03 14:13:05,332 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:05,332 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [] 2014-02-03 14:13:05,348 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.userentity_requiredactions 2014-02-03 14:13:05,348 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [userentity_id, requiredactions] 2014-02-03 14:13:05,363 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:05,363 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [] 2014-02-03 14:13:05,379 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000261: Table found: public.userentity_weborigins 2014-02-03 14:13:05,379 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000037: Columns: [userentity_id, weborigins] 2014-02-03 14:13:05,379 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000108: Foreign keys: [] 2014-02-03 14:13:05,379 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-12) HHH000126: Indexes: [] 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_drp2eoe21hph4svi7407swsyd foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_drp2eoe21hph4svi7407swsyd" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table APPLICATION_DEFAULT_ROLES add constraint FK_s4rd4wsid827akdjb0w9ibp34 foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_s4rd4wsid827akdjb0w9ibp34" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table APPLICATION_REQUIRED_CREDENTIALS add constraint FK_covu9ee5bu9nkvl1vu8hb1ir7 foreign key (requiredApplicationCredentials_id) references RequiredCredentialEntity 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_covu9ee5bu9nkvl1vu8hb1ir7" cannot be implemented Detail: Key columns "requiredapplicationcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_7l9hpvgdgmc5uejbcop317ib2 foreign key (roles_id) references RoleEntity 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_7l9hpvgdgmc5uejbcop317ib2" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table APPLICATION_ROLES add constraint FK_60s842yuivcyjem9m1umj0ymh foreign key (ApplicationEntity_id) references ApplicationEntity 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_60s842yuivcyjem9m1umj0ymh" cannot be implemented Detail: Key columns "applicationentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table ApplicationEntity add constraint FK_63mhyngq4dy1yx8he7q8ubmop foreign key (applicationUser_id) references UserEntity 2014-02-03 14:13:05,379 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_63mhyngq4dy1yx8he7q8ubmop" cannot be implemented Detail: Key columns "applicationuser_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_fa7sbalr95rlthhcf9sg8i3r4 foreign key (role_id) references RoleEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_fa7sbalr95rlthhcf9sg8i3r4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_nfsdpo5g58c6nqfep9sup3ctp foreign key (user_id) references UserEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_nfsdpo5g58c6nqfep9sup3ctp" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table ApplicationScopeMappingEntity add constraint FK_4ssreqxn6j2a7up48i1qb2sua foreign key (application_id) references ApplicationEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_4ssreqxn6j2a7up48i1qb2sua" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_t10o4fp8tk5ba9vkpm98c2yrt foreign key (role_id) references RoleEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_t10o4fp8tk5ba9vkpm98c2yrt" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_acs25q56goc10xrr4xw9bwsth foreign key (user_id) references UserEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_acs25q56goc10xrr4xw9bwsth" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table ApplicationUserRoleMappingEntity add constraint FK_9y39hi5ph6at6ds1krpn0rtpi foreign key (application_id) references ApplicationEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_9y39hi5ph6at6ds1krpn0rtpi" cannot be implemented Detail: Key columns "application_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table CredentialEntity add constraint FK_pn32x46lgmhlaldchhp47wfgj foreign key (user_id) references UserEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_pn32x46lgmhlaldchhp47wfgj" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table OAUTH_CLIENT_REQUIRED_CREDENTIALS add constraint FK_76d17rixlrhv6dq5w8vjtcny7 foreign key (requiredOAuthClientCredentials_id) references RequiredCredentialEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_76d17rixlrhv6dq5w8vjtcny7" cannot be implemented Detail: Key columns "requiredoauthclientcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table OAuthClientEntity add constraint FK_62mly7ecnrpvk39hvtogbfu9l foreign key (agent_id) references UserEntity 2014-02-03 14:13:05,395 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_62mly7ecnrpvk39hvtogbfu9l" cannot be implemented Detail: Key columns "agent_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table REALM_DEFAULT_ROLES add constraint FK_nm4mf0m1nmi7ub6mjbjy4vfhs foreign key (defaultRoles_id) references RoleEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_nm4mf0m1nmi7ub6mjbjy4vfhs" cannot be implemented Detail: Key columns "defaultroles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table REALM_ROLES add constraint FK_ianyv4ds3ad2manh3fjgh4qi8 foreign key (roles_id) references RoleEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_ianyv4ds3ad2manh3fjgh4qi8" cannot be implemented Detail: Key columns "roles_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table RealmEntity_ApplicationEntity add constraint FK_lc35hwkvorkg9dmj6e6hi40qn foreign key (applications_id) references ApplicationEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_lc35hwkvorkg9dmj6e6hi40qn" cannot be implemented Detail: Key columns "applications_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_5nm8bsgqihl29vbpck1ldg6hf foreign key (role_id) references RoleEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_5nm8bsgqihl29vbpck1ldg6hf" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table RealmScopeMappingEntity add constraint FK_9pdjxdhf2xi91uqi2smbihxjy foreign key (user_id) references UserEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_9pdjxdhf2xi91uqi2smbihxjy" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_osxtwgn0r896ttjvjstnrxvm4 foreign key (role_id) references RoleEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_osxtwgn0r896ttjvjstnrxvm4" cannot be implemented Detail: Key columns "role_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table RealmUserRoleMappingEntity add constraint FK_8tq5oy7c7jw9yl64jvi3f79av foreign key (user_id) references UserEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_8tq5oy7c7jw9yl64jvi3f79av" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table SocialLinkEntity add constraint FK_of3vi3cc8yo5aavbsq2flfm32 foreign key (user_id) references UserEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_of3vi3cc8yo5aavbsq2flfm32" cannot be implemented Detail: Key columns "user_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table USER_REQUIRED_CREDENTIALS add constraint FK_5uc73e6cvxmkq5ybruf1jsygv foreign key (requiredCredentials_id) references RequiredCredentialEntity 2014-02-03 14:13:05,410 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_5uc73e6cvxmkq5ybruf1jsygv" cannot be implemented Detail: Key columns "requiredcredentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_kwlok0nencsu8kuhwervrn2p5 foreign key (credentials_id) references CredentialEntity 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_kwlok0nencsu8kuhwervrn2p5" cannot be implemented Detail: Key columns "credentials_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table UserEntity_CredentialEntity add constraint FK_302t29u9komfu7d7qffci0cie foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_302t29u9komfu7d7qffci0cie" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table UserEntity_attributes add constraint FK_pv89d7hl2qoyg2dc1b9bupw7l foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_pv89d7hl2qoyg2dc1b9bupw7l" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table UserEntity_redirectUris add constraint FK_myu5kr3txep49myg1ejwwy58f foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_myu5kr3txep49myg1ejwwy58f" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table UserEntity_requiredActions add constraint FK_eclsk6gyvwy477usdcwu8l1mx foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_eclsk6gyvwy477usdcwu8l1mx" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000388: Unsuccessful: alter table UserEntity_webOrigins add constraint FK_sn38pjw1v24ahb1d6jrwshoa6 foreign key (UserEntity_id) references UserEntity 2014-02-03 14:13:05,426 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) ERROR: foreign key constraint "fk_sn38pjw1v24ahb1d6jrwshoa6" cannot be implemented Detail: Key columns "userentity_id" and "id" are of incompatible types: character varying and integer. 2014-02-03 14:13:05,426 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-12) HHH000232: Schema update complete 2014-02-03 14:13:05,520 INFO [org.keycloak.services.managers.ApplianceBootstrap] (MSC service thread 1-12) Initializing keycloak-admin realm 2014-02-03 14:13:05,598 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-12) SQL Error: 0, SQLState: 42883 2014-02-03 14:13:05,598 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (MSC service thread 1-12) ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78 2014-02-03 14:13:05,598 INFO [org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl] (MSC service thread 1-12) HHH000010: On release of batch it still contained JDBC statements 2014-02-03 14:13:05,598 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-12) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.server.KeycloakServerApplication(javax.servlet.ServletContext) throws java.io.FileNotFoundException at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160) at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2175) at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:295) at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:236) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36) at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:204) at io.undertow.servlet.core.ManagedServlet.start(ManagedServlet.java:112) at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:462) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1] ... 3 more Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1683) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1338) at org.keycloak.models.jpa.RealmAdapter.updateCredential(RealmAdapter.java:1064) at org.keycloak.services.managers.RealmManager.setupAccountManagement(RealmManager.java:157) at org.keycloak.services.managers.RealmManager.createRealm(RealmManager.java:82) at org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:45) at org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:29) at org.keycloak.services.resources.KeycloakApplication.setupDefaultRealm(KeycloakApplication.java:70) at org.keycloak.services.resources.KeycloakApplication.(KeycloakApplication.java:52) at org.keycloak.server.KeycloakServerApplication.(KeycloakServerApplication.java:23) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_45] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_45] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_45] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [rt.jar:1.7.0_45] at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148) ... 15 more Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:190) at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:62) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3281) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3183) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3525) at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:158) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:453) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:345) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1218) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1335) ... 28 more Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:334) at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:187) ... 39 more 2014-02-03 14:13:05,629 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "auth-server.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./auth" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.server.KeycloakServerApplication(javax.servlet.ServletContext) throws java.io.FileNotFoundException Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 78"}} 2014-02-03 14:13:05,660 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "auth-server.war" (runtime-name : "auth-server.war") 2014-02-03 14:13:05,660 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: Failed to start service 2014-02-03 14:13:05,707 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management 2014-02-03 14:13:05,707 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 2014-02-03 14:13:05,707 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.0.0.CR1 "WildFly" started (with errors) in 6079ms - Started 273 of 330 services (2 services failed or missing dependencies, 87 services are lazy, passive or on-demand) 2014-02-03 14:13:05,973 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 12) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:13:05,988 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 12) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'auth-server.war#jpa-keycloak-identity-store' 2014-02-03 14:13:06,082 INFO [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015877: Stopped deployment auth-server.war (runtime-name: auth-server.war) in 140ms 2014-02-03 14:13:06,113 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "auth-server.war" (runtime-name: "auth-server.war") 2014-02-03 14:13:06,113 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report JBAS014775: New missing/unsatisfied dependencies: service jboss.persistenceunit."auth-server.war#jpa-keycloak-identity-store" (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] service jboss.undertow.deployment.default-server.default-host./auth (missing) dependents: [service jboss.deployment.unit."auth-server.war".deploymentCompleteService] JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./auth 2014-02-03 14:13:10,723 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found auth-server.war in deployment directory. To trigger deployment create a file called auth-server.war.dodeploy From bburke at redhat.com Mon Feb 3 10:48:00 2014 From: bburke at redhat.com (Bill Burke) Date: Mon, 03 Feb 2014 10:48:00 -0500 Subject: [keycloak-user] Keycloak appliance not working with either Postgres 9.2 or 9.3 In-Reply-To: <52EFAAC8.9040507@gmail.com> References: <52EFAAC8.9040507@gmail.com> Message-ID: <52EFBA30.60608@redhat.com> Can you post your changes to persistence.xml? Did you specify to use the postgres dialect? org.hibernate.dialect.PostgreSQLDialect What version of JBoss 7 are you running on? On 2/3/2014 9:42 AM, Edem Morny wrote: > org.postgresql.util.PSQLException: ERROR: operator does not exist: > integer = character -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From emorny at gmail.com Mon Feb 3 11:42:37 2014 From: emorny at gmail.com (Edem Morny) Date: Mon, 3 Feb 2014 16:42:37 +0000 Subject: [keycloak-user] User registration link/button not showing, with exception on console Message-ID: I logged in as the admin user and enabled the User Registration. However when i logged out, I realise there seems to be no link/button for creating self registering. The login screen only shows "New User?" but it seems an exception is thrown on the console whenever I enable User Registration and attempt to try it out. Any pointers on what's going on? Find the exception stacktrace below. Template processing error: "get(registrationUrl) failed on instance of org.keycloak.forms.UrlBean": freemarker.template.TemplateModelException: get(registrationUrl) failed on instance of org.keycloak.forms.UrlBean at freemarker.ext.beans.BeanModel.get(BeanModel.java:224) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Dot._getAsTemplateModel(Dot.java:76) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Expression.getStringValue(Expression.java:93) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.DollarVariable.accept(DollarVariable.java:76) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.MixedContent.accept(MixedContent.java:92) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.MixedContent.accept(MixedContent.java:92) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.IfBlock.accept(IfBlock.java:82) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:406) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.MixedContent.accept(MixedContent.java:92) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Macro$Context.runMacro(Macro.java:172) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:614) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.MixedContent.accept(MixedContent.java:92) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.visit(Environment.java:221) [freemarker-2.3.19.jar:2.3.19] at freemarker.core.Environment.process(Environment.java:199) [freemarker-2.3.19.jar:2.3.19] at freemarker.template.Template.process(Template.java:259) [freemarker-2.3.19.jar:2.3.19] at org.keycloak.service.FormServiceImpl.processFmTemplate(FormServiceImpl.java:111) [keycloak-forms-1.0-alpha-1.jar:] at org.keycloak.service.FormServiceImpl.process(FormServiceImpl.java:99) [keycloak-forms-1.0-alpha-1.jar:] at org.keycloak.services.resources.flows.FormFlows.forwardToForm(FormFlows.java:143) [keycloak-services-1.0-alpha-1.jar:] at org.keycloak.services.resources.flows.FormFlows.forwardToForm(FormFlows.java:154) [keycloak-services-1.0-alpha-1.jar:] at org.keycloak.services.resources.flows.FormFlows.forwardToLogin(FormFlows.java:178) [keycloak-services-1.0-alpha-1.jar:] at org.keycloak.services.resources.TokenService.loginPage(TokenService.java:521) [keycloak-services-1.0-alpha-1.jar:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45] at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) [resteasy-jaxrs-3.0.6.Final.jar:] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) [resteasy-jaxrs-3.0.6.Final.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:36) [keycloak-services-1.0-alpha-1.jar:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:70) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:67) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:164) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:654) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45] at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:866) [freemarker-2.3.19.jar:2.3.19] at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:277) [freemarker-2.3.19.jar:2.3.19] at freemarker.ext.beans.BeanModel.get(BeanModel.java:184) [freemarker-2.3.19.jar:2.3.19] ... 78 more Caused by: java.lang.IllegalArgumentException: No @Path annotated method for org.keycloak.services.resources.admin.AdminService.registerPage at org.jboss.resteasy.specimpl.ResteasyUriBuilder.path(ResteasyUriBuilder.java:394) [resteasy-jaxrs-3.0.6.Final.jar:] at org.keycloak.services.resources.flows.Urls.saasRegisterPage(Urls.java:152) [keycloak-services-1.0-alpha-1.jar:] at org.keycloak.forms.UrlBean.getRegistrationUrl(UrlBean.java:92) [keycloak-forms-1.0-alpha-1.jar:] ... 85 more -- Edem Morny ==================== http://edemmorny.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140203/47202cc7/attachment.html From bburke at redhat.com Mon Feb 3 14:36:12 2014 From: bburke at redhat.com (Bill Burke) Date: Mon, 03 Feb 2014 14:36:12 -0500 Subject: [keycloak-user] User registration link/button not showing, with exception on console In-Reply-To: References: Message-ID: <52EFEFAC.4010000@redhat.com> Bug. This will work with realms that are not the "keycloak-admin" realm. We'll fix this for the next release. There's some old, obsolete logic that if you turn on registration for the keycloak-admin realm, it redirects to a now non-existent keycloak-admin specific registration page On 2/3/2014 11:42 AM, Edem Morny wrote: > I logged in as the admin user and enabled the User Registration. However > when i logged out, I realise there seems to be no link/button for > creating self registering. The login screen only shows "New User?" but > it seems an exception is thrown on the console whenever I enable User > Registration and attempt to try it out. Any pointers on what's going on? > Find the exception stacktrace below. > > Template processing error: "get(registrationUrl) failed on instance of > org.keycloak.forms.UrlBean": freemarker.template.TemplateModelException: > get(registrationUrl) failed on instance of org.keycloak.forms.UrlBean > at freemarker.ext.beans.BeanModel.get(BeanModel.java:224) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Dot._getAsTemplateModel(Dot.java:76) > [freemarker-2.3.19.jar:2.3.19] > at > freemarker.core.Expression.getAsTemplateModel(Expression.java:89) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Expression.getStringValue(Expression.java:93) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.DollarVariable.accept(DollarVariable.java:76) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.MixedContent.accept(MixedContent.java:92) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at > freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.MixedContent.accept(MixedContent.java:92) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.IfBlock.accept(IfBlock.java:82) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:406) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.MixedContent.accept(MixedContent.java:92) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Macro$Context.runMacro(Macro.java:172) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:614) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.MixedContent.accept(MixedContent.java:92) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.visit(Environment.java:221) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.core.Environment.process(Environment.java:199) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.template.Template.process(Template.java:259) > [freemarker-2.3.19.jar:2.3.19] > at > org.keycloak.service.FormServiceImpl.processFmTemplate(FormServiceImpl.java:111) > [keycloak-forms-1.0-alpha-1.jar:] > at > org.keycloak.service.FormServiceImpl.process(FormServiceImpl.java:99) > [keycloak-forms-1.0-alpha-1.jar:] > at > org.keycloak.services.resources.flows.FormFlows.forwardToForm(FormFlows.java:143) > [keycloak-services-1.0-alpha-1.jar:] > at > org.keycloak.services.resources.flows.FormFlows.forwardToForm(FormFlows.java:154) > [keycloak-services-1.0-alpha-1.jar:] > at > org.keycloak.services.resources.flows.FormFlows.forwardToLogin(FormFlows.java:178) > [keycloak-services-1.0-alpha-1.jar:] > at > org.keycloak.services.resources.TokenService.loginPage(TokenService.java:521) > [keycloak-services-1.0-alpha-1.jar:] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [rt.jar:1.7.0_45] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > [rt.jar:1.7.0_45] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [rt.jar:1.7.0_45] > at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45] > at > org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:280) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:234) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) > [resteasy-jaxrs-3.0.6.Final.jar:] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] > at > io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:36) > [keycloak-services-1.0-alpha-1.jar:] > at > io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:70) > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:67) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) > [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.server.Connectors.executeRootHandler(Connectors.java:164) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:654) > [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > [rt.jar:1.7.0_45] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > [rt.jar:1.7.0_45] > at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45] > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [rt.jar:1.7.0_45] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > [rt.jar:1.7.0_45] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [rt.jar:1.7.0_45] > at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45] > at > freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:866) > [freemarker-2.3.19.jar:2.3.19] > at > freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:277) > [freemarker-2.3.19.jar:2.3.19] > at freemarker.ext.beans.BeanModel.get(BeanModel.java:184) > [freemarker-2.3.19.jar:2.3.19] > ... 78 more > Caused by: java.lang.IllegalArgumentException: No @Path annotated method > for org.keycloak.services.resources.admin.AdminService.registerPage > at > org.jboss.resteasy.specimpl.ResteasyUriBuilder.path(ResteasyUriBuilder.java:394) > [resteasy-jaxrs-3.0.6.Final.jar:] > at > org.keycloak.services.resources.flows.Urls.saasRegisterPage(Urls.java:152) > [keycloak-services-1.0-alpha-1.jar:] > at org.keycloak.forms.UrlBean.getRegistrationUrl(UrlBean.java:92) > [keycloak-forms-1.0-alpha-1.jar:] > ... 85 more > > -- > Edem Morny > > ==================== > http://edemmorny.wordpress.com > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From traviskds at gmail.com Wed Feb 12 01:48:09 2014 From: traviskds at gmail.com (Travis De Silva) Date: Wed, 12 Feb 2014 17:48:09 +1100 Subject: [keycloak-user] Realm Level Admin Message-ID: I have not been able to figure out if we can have Realm level admins. My use case is: We have keycloak application wide super admins. They can create new realms, go into any realm and create users, applications etc. Just how the default admin user operates now. Then within a Realm, for example lets say Demo realm, can we have a different admin user (e.g demo realm admin) who can perform all the tasks but only within that Realm. That user will not be able to view the other realms (i.e it should not display the realm selection drop down and also should not be able to create new realms. Thoughts? I am happy to raise a feature request in Jira if this is currently not possible and doable in a future release as I believe this feature will increase user adoption, especially for applications that are built with multi-tenancy functionality. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140212/91991a8a/attachment.html From stian at redhat.com Wed Feb 12 05:11:50 2014 From: stian at redhat.com (Stian Thorgersen) Date: Wed, 12 Feb 2014 05:11:50 -0500 (EST) Subject: [keycloak-user] Realm Level Admin In-Reply-To: References: Message-ID: <811231878.5021317.1392199910296.JavaMail.zimbra@redhat.com> This is not possible at the moment. It's something that I'd imagine would be needed, and at a more fine-grained control. I can imagine scenarios such as: * Devs that are allowed to create/edit apps, but not manage users * Devs that can create clients, but not applications * Managers that are allowed to view user details, but not reset passwords, etc. * Admins that can do everything for a single realm, or for all realms We don't have anything planned at the moment though, and what you're proposing could be a sensible starting point. Please create a JIRA ;) ----- Original Message ----- > From: "Travis De Silva" > To: keycloak-user at lists.jboss.org > Sent: Wednesday, 12 February, 2014 6:48:09 AM > Subject: [keycloak-user] Realm Level Admin > > I have not been able to figure out if we can have Realm level admins. My use > case is: > > We have keycloak application wide super admins. They can create new realms, > go into any realm and create users, applications etc. Just how the default > admin user operates now. > > Then within a Realm, for example lets say Demo realm, can we have a different > admin user (e.g demo realm admin) who can perform all the tasks but only > within that Realm. That user will not be able to view the other realms (i.e > it should not display the realm selection drop down and also should not be > able to create new realms. > > Thoughts? I am happy to raise a feature request in Jira if this is currently > not possible and doable in a future release as I believe this feature will > increase user adoption, especially for applications that are built with > multi-tenancy functionality. > > > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user From traviskds at gmail.com Thu Feb 13 05:37:37 2014 From: traviskds at gmail.com (Travis De Silva) Date: Thu, 13 Feb 2014 21:37:37 +1100 Subject: [keycloak-user] Realm Level Admin In-Reply-To: <811231878.5021317.1392199910296.JavaMail.zimbra@redhat.com> References: <811231878.5021317.1392199910296.JavaMail.zimbra@redhat.com> Message-ID: Wow. didn't think of the other use cases that you listed. Yes it's definitely something that happens in the real world and would be great if KeyCloak has these features. No complains from me if we can do what I suggested as a starting point for obvious selfish reasons :) I have raised a Jira case for this. https://issues.jboss.org/browse/KEYCLOAK-292 Keycloak early champion community members, please vote for this feature. BTW, thanks Stian, Bill and the Keycloak team for your fantastic work. Keycloak is so simple to use and implement and that is amazing when you think the complex problems it is solving. Wishing keycloak all the best. On Wed, Feb 12, 2014 at 9:11 PM, Stian Thorgersen wrote: > This is not possible at the moment. It's something that I'd imagine would > be needed, and at a more fine-grained control. I can imagine scenarios such > as: > > * Devs that are allowed to create/edit apps, but not manage users > * Devs that can create clients, but not applications > * Managers that are allowed to view user details, but not reset passwords, > etc. > * Admins that can do everything for a single realm, or for all realms > > We don't have anything planned at the moment though, and what you're > proposing could be a sensible starting point. Please create a JIRA ;) > > ----- Original Message ----- > > From: "Travis De Silva" > > To: keycloak-user at lists.jboss.org > > Sent: Wednesday, 12 February, 2014 6:48:09 AM > > Subject: [keycloak-user] Realm Level Admin > > > > I have not been able to figure out if we can have Realm level admins. My > use > > case is: > > > > We have keycloak application wide super admins. They can create new > realms, > > go into any realm and create users, applications etc. Just how the > default > > admin user operates now. > > > > Then within a Realm, for example lets say Demo realm, can we have a > different > > admin user (e.g demo realm admin) who can perform all the tasks but only > > within that Realm. That user will not be able to view the other realms > (i.e > > it should not display the realm selection drop down and also should not > be > > able to create new realms. > > > > Thoughts? I am happy to raise a feature request in Jira if this is > currently > > not possible and doable in a future release as I believe this feature > will > > increase user adoption, especially for applications that are built with > > multi-tenancy functionality. > > > > > > > > > > _______________________________________________ > > keycloak-user mailing list > > keycloak-user at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/keycloak-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140213/f7bf4011/attachment.html From bburke at redhat.com Thu Feb 13 08:55:30 2014 From: bburke at redhat.com (Bill Burke) Date: Thu, 13 Feb 2014 08:55:30 -0500 Subject: [keycloak-user] Realm Level Admin In-Reply-To: References: <811231878.5021317.1392199910296.JavaMail.zimbra@redhat.com> Message-ID: <52FCCED2.6090205@redhat.com> The way it works now is that the "Super Realm" has an "admin-console" application. This "admin-console" has an "admin" role. Users in the "Super Realm" are given this role. Keycloak can secure itself this way and be self bootstrapped as you see when you run the tutorials. What's even more interesting about this approach is that you can do OAuth grants too. You can temporarily grant a third-party app permission to do things to any realm you want. We should probably do something similar for each individual realm. On 2/13/2014 5:37 AM, Travis De Silva wrote: > Wow. didn't think of the other use cases that you listed. Yes it's > definitely something that happens in the real world and would be great > if KeyCloak has these features. No complains from me if we can do what I > suggested as a starting point for obvious selfish reasons :) > > I have raised a Jira case for this. > https://issues.jboss.org/browse/KEYCLOAK-292 > > Keycloak early champion community members, please vote for this feature. > > BTW, thanks Stian, Bill and the Keycloak team for your fantastic work. > Keycloak is so simple to use and implement and that is amazing when you > think the complex problems it is solving. Wishing keycloak all the best. > > > On Wed, Feb 12, 2014 at 9:11 PM, Stian Thorgersen > wrote: > > This is not possible at the moment. It's something that I'd imagine > would be needed, and at a more fine-grained control. I can imagine > scenarios such as: > > * Devs that are allowed to create/edit apps, but not manage users > * Devs that can create clients, but not applications > * Managers that are allowed to view user details, but not reset > passwords, etc. > * Admins that can do everything for a single realm, or for all realms > > We don't have anything planned at the moment though, and what you're > proposing could be a sensible starting point. Please create a JIRA ;) > > ----- Original Message ----- > > From: "Travis De Silva" > > > To: keycloak-user at lists.jboss.org > > > Sent: Wednesday, 12 February, 2014 6:48:09 AM > > Subject: [keycloak-user] Realm Level Admin > > > > I have not been able to figure out if we can have Realm level > admins. My use > > case is: > > > > We have keycloak application wide super admins. They can create > new realms, > > go into any realm and create users, applications etc. Just how > the default > > admin user operates now. > > > > Then within a Realm, for example lets say Demo realm, can we have > a different > > admin user (e.g demo realm admin) who can perform all the tasks > but only > > within that Realm. That user will not be able to view the other > realms (i.e > > it should not display the realm selection drop down and also > should not be > > able to create new realms. > > > > Thoughts? I am happy to raise a feature request in Jira if this > is currently > > not possible and doable in a future release as I believe this > feature will > > increase user adoption, especially for applications that are > built with > > multi-tenancy functionality. > > > > > > > > > > _______________________________________________ > > keycloak-user mailing list > > keycloak-user at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/keycloak-user > > > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From peterson.dean at gmail.com Tue Feb 18 15:49:54 2014 From: peterson.dean at gmail.com (Dean Peterson) Date: Tue, 18 Feb 2014 14:49:54 -0600 Subject: [keycloak-user] RealmEntity still not converted to UUID Message-ID: Hello, I realize you are still in development for the alpha2 release. Thank you for making the change to UUID rather than Identity String columns. I noticed I can now deploy to a Postgresql database but I still fail on MSSQL because the RealmEntity class has not been converted to use the new identity mechanism. I am sure this would have been updated before alpha2 was released but I wanted to bring some attention to it just in case. Thanks, Dean -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140218/35b81ec4/attachment.html From bburke at redhat.com Tue Feb 18 15:59:12 2014 From: bburke at redhat.com (Bill Burke) Date: Tue, 18 Feb 2014 15:59:12 -0500 Subject: [keycloak-user] RealmEntity still not converted to UUID In-Reply-To: References: Message-ID: <5303C9A0.8000802@redhat.com> RealmEntity's ID is set manually and uses the same code as JpaIdGenerator. I think Marek is looking into MSSQL. On 2/18/2014 3:49 PM, Dean Peterson wrote: > Hello, > > I realize you are still in development for the alpha2 release. Thank > you for making the change to UUID rather than Identity String columns. > I noticed I can now deploy to a Postgresql database but I still fail > on MSSQL because the RealmEntity class has not been converted to use the > new identity mechanism. I am sure this would have been updated before > alpha2 was released but I wanted to bring some attention to it just in case. > > Thanks, > > Dean > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From mposolda at redhat.com Wed Feb 19 03:30:54 2014 From: mposolda at redhat.com (Marek Posolda) Date: Wed, 19 Feb 2014 09:30:54 +0100 Subject: [keycloak-user] RealmEntity still not converted to UUID In-Reply-To: <5303C9A0.8000802@redhat.com> References: <5303C9A0.8000802@redhat.com> Message-ID: <53046BBE.6070504@redhat.com> Thanks for looking into databases. Right now, Keycloak should work on MySQL, PostgreSQL, Oracle and Sybase. Still looking on MS-SQL and IBM DB2 and I've created separate issue KEYCLOAK-303 for it, as it seems that MS-SQL issue is not related to ID generation. I will reply once I have luck with MS-SQL, so you can test in your environment. Thanks, Marek On 18.2.2014 21:59, Bill Burke wrote: > RealmEntity's ID is set manually and uses the same code as > JpaIdGenerator. I think Marek is looking into MSSQL. > > On 2/18/2014 3:49 PM, Dean Peterson wrote: >> Hello, >> >> I realize you are still in development for the alpha2 release. Thank >> you for making the change to UUID rather than Identity String columns. >> I noticed I can now deploy to a Postgresql database but I still fail >> on MSSQL because the RealmEntity class has not been converted to use the >> new identity mechanism. I am sure this would have been updated before >> alpha2 was released but I wanted to bring some attention to it just in case. >> >> Thanks, >> >> Dean >> >> >> _______________________________________________ >> keycloak-user mailing list >> keycloak-user at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/keycloak-user >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140219/1a4e1ab2/attachment-0001.html From mposolda at redhat.com Wed Feb 19 04:46:04 2014 From: mposolda at redhat.com (Marek Posolda) Date: Wed, 19 Feb 2014 10:46:04 +0100 Subject: [keycloak-user] RealmEntity still not converted to UUID In-Reply-To: <53046BBE.6070504@redhat.com> References: <5303C9A0.8000802@redhat.com> <53046BBE.6070504@redhat.com> Message-ID: <53047D5C.6040905@redhat.com> Hi Dean, which version of MS-SQL are you using? For me latest keycloak master works with MS-SQL 2012, but I have to manually change dialect. The default dialect org.hibernate.dialect.SQLServerDialect , which is autodetected by Hibernate doesn't work correctly due to columns with boolean types, I have to change it to use org.hibernate.dialect.SQLServer2008Dialect . Could you try in your environment? You can either: -- Add system property -Dhibernate.dialect=org.hibernate.dialect.SQLServer2008Dialect when starting server (In latest keycloak master, system properties could override what's set in persistence.xml) -- Add this property to persistence.xml If you have MS-SQL 2005, you can also try org.hibernate.dialect.SQLServer2005Dialect. Good luck, Marek On 19.2.2014 09:30, Marek Posolda wrote: > Thanks for looking into databases. Right now, Keycloak should work on > MySQL, PostgreSQL, Oracle and Sybase. Still looking on MS-SQL and IBM > DB2 and I've created separate issue KEYCLOAK-303 > for it, as it seems > that MS-SQL issue is not related to ID generation. I will reply once I > have luck with MS-SQL, so you can test in your environment. > > Thanks, > Marek > > On 18.2.2014 21:59, Bill Burke wrote: >> RealmEntity's ID is set manually and uses the same code as >> JpaIdGenerator. I think Marek is looking into MSSQL. >> >> On 2/18/2014 3:49 PM, Dean Peterson wrote: >>> Hello, >>> >>> I realize you are still in development for the alpha2 release. Thank >>> you for making the change to UUID rather than Identity String columns. >>> I noticed I can now deploy to a Postgresql database but I still fail >>> on MSSQL because the RealmEntity class has not been converted to use the >>> new identity mechanism. I am sure this would have been updated before >>> alpha2 was released but I wanted to bring some attention to it just in case. >>> >>> Thanks, >>> >>> Dean >>> >>> >>> _______________________________________________ >>> keycloak-user mailing list >>> keycloak-user at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/keycloak-user >>> > > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140219/fe8848e9/attachment.html From bburke at redhat.com Wed Feb 19 23:17:06 2014 From: bburke at redhat.com (Bill Burke) Date: Wed, 19 Feb 2014 23:17:06 -0500 Subject: [keycloak-user] Alpha 2 released Message-ID: <530581C2.90706@redhat.com> See our new blog for details: http://blog.keycloak.org/2014/02/20/keycloak-alpha-2-released/ -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From gcardoso at redhat.com Thu Feb 20 10:56:45 2014 From: gcardoso at redhat.com (Gabriel Cardoso) Date: Thu, 20 Feb 2014 12:56:45 -0300 Subject: [keycloak-user] [keycloak-dev] Alpha 2 released In-Reply-To: <530581C2.90706@redhat.com> References: <530581C2.90706@redhat.com> Message-ID: <9CDF74CE-5700-4BEB-BE0A-1D1EAFAC1047@redhat.com> Very nice! The text is cool and the blog looks great! +1 On Feb 20, 2014, at 1:17 AM, Bill Burke wrote: > See our new blog for details: > > http://blog.keycloak.org/2014/02/20/keycloak-alpha-2-released/ > > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > _______________________________________________ > keycloak-dev mailing list > keycloak-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-dev --- Gabriel Cardoso User Experience Designer @ Red Hat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140220/02438af6/attachment.html From derek.mortimer at ncl.ac.uk Fri Feb 21 09:23:38 2014 From: derek.mortimer at ncl.ac.uk (Derek Mortimer) Date: Fri, 21 Feb 2014 14:23:38 +0000 Subject: [keycloak-user] Securing WARs within EARs using Keycloak subsystem (JBoss 7.1.3) Message-ID: I was asked in IRC to e-mail this in to the list: Does securing WARs within EARs through the Keycloak subsystem work? If so, what format would the name attribute take in the '' tag? Moreover, is there somewhere in the JBoss admin console where I could find what the value of that name attribute would be (e.g., from a list of current deployments) Cheers, Derek -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140221/57dd96c1/attachment.html From ssilvert at redhat.com Fri Feb 21 12:27:26 2014 From: ssilvert at redhat.com (Stan Silvert) Date: Fri, 21 Feb 2014 12:27:26 -0500 Subject: [keycloak-user] Securing WARs within EARs using Keycloak subsystem (JBoss 7.1.3) In-Reply-To: References: Message-ID: <53078C7E.4080705@redhat.com> On 2/21/2014 9:23 AM, Derek Mortimer wrote: > I was asked in IRC to e-mail this in to the list: > > Does securing WARs within EARs through the Keycloak subsystem work? It should work, but I don't know if it has been tested. > > If so, what format would the name attribute take in the > '' tag? Deployment name is a global name. So two EARs can't have the same name for a WAR deployment. > > Moreover, is there somewhere in the JBoss admin console where I could > find what the value of that name attribute would be (e.g., from a list > of current deployments) You should be able to find a list of deployments in web console. In CLI, this works: /:read-children-names(child-type=deployment) > > Cheers, > Derek > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140221/2e498ab2/attachment.html From juraci at kroehling.de Fri Feb 21 14:45:28 2014 From: juraci at kroehling.de (=?ISO-8859-1?Q?Juraci_Paix=E3o_Kr=F6hling?=) Date: Fri, 21 Feb 2014 20:45:28 +0100 Subject: [keycloak-user] @RolesAllowed on @Stateless Message-ID: <5307ACD8.6050806@kroehling.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello, I'm playing with Keycloak on a pet project, and I'm really impressed with it. It looks really nice and it's easy to get it working fast. I have one question, though. I know it's early and it's alpha, but I wonder if this is a bug or a non-implemented feature :-) Basically, I wanted to annotate a REST method with @RolesAllowed("admin") for a DELETE request, and @RolesAllowed("user") for a @GET, something that works on with the usual scenario. With Keycloak, however, it seems that it's not being properly propagated to the EJB layer, so, I get a execution denied on the GET, even if the user has the "user" role. I've done a quick experiment, and it's available here: https://github.com/jpkrohling/sample-ejb-roles-basic On the master branch, the implementation with Keycloak. At the "Endpoint" class, I've added the output from Wildfly 8 as a comment: https://github.com/jpkrohling/sample-ejb-roles-basic/blob/master/src/main/java/org/sample/ejb/basic/Endpoint.java#L25 On the "QuickStartCode" branch, I've done the same: https://github.com/jpkrohling/sample-ejb-roles-basic/blob/QuickstartCode/src/main/java/org/sample/ejb/basic/Endpoint.java#L25 So, is this scenario supposed to work already, or is it planned for a future release? Thanks! Juca. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCgAGBQJTB6zYAAoJEDnJtskdmzLMtM4H/R231Yuyt0oTUEn6sOTkwEW+ jZmB61agIOuIa5ZqMukPVozH6xB4RGEUtSBjaC4a3+wdZeEm7jEg/ERqp4XoM2up 53u0v6sWLJRve8Te3L4P2SD9rsiS6Gro54/Wn+ITMcnJt/ERlwQKlwiwj/zEdvNq nmrr2ZUBDCHmgN9qAbSjjWAP+jRelKd/1yZLhiXmRAnrS21+rMe5hRTV/XFKwmDK UFO13BKHDlF43OYZTdcYDZwAw8Zj15pewTfti0t7IbjoFKAfzfs3zWuhC8sB4GCp vHR4CEa/NeOeQVcAPQ9bHcDu3g7QPTqHSY3LzSUVeJ3gOCDG1eO4KaGM4slfp4c= =fE0v -----END PGP SIGNATURE----- From bburke at redhat.com Fri Feb 21 15:39:16 2014 From: bburke at redhat.com (Bill Burke) Date: Fri, 21 Feb 2014 15:39:16 -0500 Subject: [keycloak-user] @RolesAllowed on @Stateless In-Reply-To: <5307ACD8.6050806@kroehling.de> References: <5307ACD8.6050806@kroehling.de> Message-ID: <5307B974.60508@redhat.com> This should only be a JAX-RS issue. You need to define a allow all roles security constraint for your JAX-RS services: /v1/* * You may also need to define all the security roles in web.xml too, I don't remember. So, you're telling the servlet layer to authenticate but to allow all roles, then, in the EJB/JAX-RS layer it should be checking against @RolesAllowed. Let me know if that helps. On 2/21/2014 2:45 PM, Juraci Paix?o Kr?hling wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Hello, > > I'm playing with Keycloak on a pet project, and I'm really impressed > with it. It looks really nice and it's easy to get it working fast. > > I have one question, though. I know it's early and it's alpha, but I > wonder if this is a bug or a non-implemented feature :-) > > Basically, I wanted to annotate a REST method with > @RolesAllowed("admin") for a DELETE request, and @RolesAllowed("user") > for a @GET, something that works on with the usual scenario. > > With Keycloak, however, it seems that it's not being properly > propagated to the EJB layer, so, I get a execution denied on the GET, > even if the user has the "user" role. > > I've done a quick experiment, and it's available here: > > https://github.com/jpkrohling/sample-ejb-roles-basic > > On the master branch, the implementation with Keycloak. At the > "Endpoint" class, I've added the output from Wildfly 8 as a comment: > > https://github.com/jpkrohling/sample-ejb-roles-basic/blob/master/src/main/java/org/sample/ejb/basic/Endpoint.java#L25 > > On the "QuickStartCode" branch, I've done the same: > > https://github.com/jpkrohling/sample-ejb-roles-basic/blob/QuickstartCode/src/main/java/org/sample/ejb/basic/Endpoint.java#L25 > > So, is this scenario supposed to work already, or is it planned for a > future release? > > Thanks! > Juca. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBCgAGBQJTB6zYAAoJEDnJtskdmzLMtM4H/R231Yuyt0oTUEn6sOTkwEW+ > jZmB61agIOuIa5ZqMukPVozH6xB4RGEUtSBjaC4a3+wdZeEm7jEg/ERqp4XoM2up > 53u0v6sWLJRve8Te3L4P2SD9rsiS6Gro54/Wn+ITMcnJt/ERlwQKlwiwj/zEdvNq > nmrr2ZUBDCHmgN9qAbSjjWAP+jRelKd/1yZLhiXmRAnrS21+rMe5hRTV/XFKwmDK > UFO13BKHDlF43OYZTdcYDZwAw8Zj15pewTfti0t7IbjoFKAfzfs3zWuhC8sB4GCp > vHR4CEa/NeOeQVcAPQ9bHcDu3g7QPTqHSY3LzSUVeJ3gOCDG1eO4KaGM4slfp4c= > =fE0v > -----END PGP SIGNATURE----- > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From juraci at kroehling.de Sat Feb 22 06:03:40 2014 From: juraci at kroehling.de (=?ISO-8859-1?Q?Juraci_Paix=E3o_Kr=F6hling?=) Date: Sat, 22 Feb 2014 12:03:40 +0100 Subject: [keycloak-user] @RolesAllowed on @Stateless In-Reply-To: <5307B974.60508@redhat.com> References: <5307ACD8.6050806@kroehling.de> <5307B974.60508@redhat.com> Message-ID: <5308840C.1010701@kroehling.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Ok, tried that, but didn't seem to work. I did some debugging, and the EJB layer is trying to get the information from the security-domain "other", which is the default one in absence of a per-deployment definition. This "other" security-domain is trying to get the auth information from the Authorization header, comparing with the application-users.properties file. Is it possible that the integration is only at the Web layer (undertow), not EJB? I'm not familiar with the internals of KC (or undertow, for that matter) at this level, but wouldn't a LoginModule be required for such integration? - - Juca. On 02/21/2014 09:39 PM, Bill Burke wrote: > This should only be a JAX-RS issue. You need to define a allow all > roles security constraint for your JAX-RS services: > > > /v1/* > * > > You may also need to define all the security roles in web.xml too, > I don't remember. So, you're telling the servlet layer to > authenticate but to allow all roles, then, in the EJB/JAX-RS layer > it should be checking against @RolesAllowed. Let me know if that > helps. > > > > > On 2/21/2014 2:45 PM, Juraci Paix?o Kr?hling wrote: Hello, > > I'm playing with Keycloak on a pet project, and I'm really > impressed with it. It looks really nice and it's easy to get it > working fast. > > I have one question, though. I know it's early and it's alpha, but > I wonder if this is a bug or a non-implemented feature :-) > > Basically, I wanted to annotate a REST method with > @RolesAllowed("admin") for a DELETE request, and > @RolesAllowed("user") for a @GET, something that works on with the > usual scenario. > > With Keycloak, however, it seems that it's not being properly > propagated to the EJB layer, so, I get a execution denied on the > GET, even if the user has the "user" role. > > I've done a quick experiment, and it's available here: > > https://github.com/jpkrohling/sample-ejb-roles-basic > > On the master branch, the implementation with Keycloak. At the > "Endpoint" class, I've added the output from Wildfly 8 as a > comment: > > https://github.com/jpkrohling/sample-ejb-roles-basic/blob/master/src/main/java/org/sample/ejb/basic/Endpoint.java#L25 > > On the "QuickStartCode" branch, I've done the same: > > https://github.com/jpkrohling/sample-ejb-roles-basic/blob/QuickstartCode/src/main/java/org/sample/ejb/basic/Endpoint.java#L25 > > So, is this scenario supposed to work already, or is it planned > for a future release? > > Thanks! Juca. >> _______________________________________________ keycloak-user >> mailing list keycloak-user at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/keycloak-user >> > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCgAGBQJTCIQMAAoJEDnJtskdmzLM5cwH/j+Fxfg1hhzHLB70H8KmyaSI 3j/0IvovUkSmBJgrV6TfjZtUBczmtPntuU0cJOqIlrsc/21p0XmSOLl0Vx6RLnq3 3eSkI8IwlyOwZD5Lal6H4vTrO9EsFvNe+TLWZ5eFwwMItReWvQWAjqQellaAo+Aj 00CBEiA2Xvt+S+Z73ijnjkrltZzpkuGB+Ft9ODV1gUp2F6bx/Wu5LyO7duKFlcH4 DvrGb/O/mXTaXO8VCOr93kZ3TVwLoaC/7QHmzran/BSwbnxD5mKZQTtKNd65FB3H 5Bd6HRqcZPusjQwDnKaKDPrIB5LUhp1bi6ItJVC/HP2k8malqRmE2KeJxMrT1q0= =R/Oe -----END PGP SIGNATURE----- From bburke at redhat.com Sat Feb 22 07:02:32 2014 From: bburke at redhat.com (Bill Burke) Date: Sat, 22 Feb 2014 07:02:32 -0500 Subject: [keycloak-user] @RolesAllowed on @Stateless In-Reply-To: <5308840C.1010701@kroehling.de> References: <5307ACD8.6050806@kroehling.de> <5307B974.60508@redhat.com> <5308840C.1010701@kroehling.de> Message-ID: <530891D8.7060704@redhat.com> K, I'll look into it. I may be unaware how to propagate the web layer's security context. On 2/22/2014 6:03 AM, Juraci Paix?o Kr?hling wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Ok, tried that, but didn't seem to work. I did some debugging, and the > EJB layer is trying to get the information from the security-domain > "other", which is the default one in absence of a per-deployment > definition. This "other" security-domain is trying to get the auth > information from the Authorization header, comparing with the > application-users.properties file. > > Is it possible that the integration is only at the Web layer > (undertow), not EJB? I'm not familiar with the internals of KC (or > undertow, for that matter) at this level, but wouldn't a LoginModule > be required for such integration? > > - - Juca. > > On 02/21/2014 09:39 PM, Bill Burke wrote: >> This should only be a JAX-RS issue. You need to define a allow all >> roles security constraint for your JAX-RS services: >> >> >> /v1/* >> * >> >> You may also need to define all the security roles in web.xml too, >> I don't remember. So, you're telling the servlet layer to >> authenticate but to allow all roles, then, in the EJB/JAX-RS layer >> it should be checking against @RolesAllowed. Let me know if that >> helps. >> >> >> >> >> On 2/21/2014 2:45 PM, Juraci Paix?o Kr?hling wrote: Hello, >> >> I'm playing with Keycloak on a pet project, and I'm really >> impressed with it. It looks really nice and it's easy to get it >> working fast. >> >> I have one question, though. I know it's early and it's alpha, but >> I wonder if this is a bug or a non-implemented feature :-) >> >> Basically, I wanted to annotate a REST method with >> @RolesAllowed("admin") for a DELETE request, and >> @RolesAllowed("user") for a @GET, something that works on with the >> usual scenario. >> >> With Keycloak, however, it seems that it's not being properly >> propagated to the EJB layer, so, I get a execution denied on the >> GET, even if the user has the "user" role. >> >> I've done a quick experiment, and it's available here: >> >> https://github.com/jpkrohling/sample-ejb-roles-basic >> >> On the master branch, the implementation with Keycloak. At the >> "Endpoint" class, I've added the output from Wildfly 8 as a >> comment: >> >> https://github.com/jpkrohling/sample-ejb-roles-basic/blob/master/src/main/java/org/sample/ejb/basic/Endpoint.java#L25 >> >> On the "QuickStartCode" branch, I've done the same: >> >> https://github.com/jpkrohling/sample-ejb-roles-basic/blob/QuickstartCode/src/main/java/org/sample/ejb/basic/Endpoint.java#L25 >> >> So, is this scenario supposed to work already, or is it planned >> for a future release? >> >> Thanks! Juca. >>> _______________________________________________ keycloak-user >>> mailing list keycloak-user at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/keycloak-user >>> >> > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.22 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBCgAGBQJTCIQMAAoJEDnJtskdmzLM5cwH/j+Fxfg1hhzHLB70H8KmyaSI > 3j/0IvovUkSmBJgrV6TfjZtUBczmtPntuU0cJOqIlrsc/21p0XmSOLl0Vx6RLnq3 > 3eSkI8IwlyOwZD5Lal6H4vTrO9EsFvNe+TLWZ5eFwwMItReWvQWAjqQellaAo+Aj > 00CBEiA2Xvt+S+Z73ijnjkrltZzpkuGB+Ft9ODV1gUp2F6bx/Wu5LyO7duKFlcH4 > DvrGb/O/mXTaXO8VCOr93kZ3TVwLoaC/7QHmzran/BSwbnxD5mKZQTtKNd65FB3H > 5Bd6HRqcZPusjQwDnKaKDPrIB5LUhp1bi6ItJVC/HP2k8malqRmE2KeJxMrT1q0= > =R/Oe > -----END PGP SIGNATURE----- > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From mikesir87 at gmail.com Sat Feb 22 10:16:54 2014 From: mikesir87 at gmail.com (Michael Irwin) Date: Sat, 22 Feb 2014 10:16:54 -0500 Subject: [keycloak-user] NPE when deploying EAR using Wildfly Submodule Message-ID: <11F0FEC0-A7D3-4860-B790-EBFDF5F087C6@gmail.com> I?ve got an EAR file that has an embedded WAR. I?ve configured the security-deployment in wildfly to match the ear?s name. During deploy, I get an NPE. I?ve created an issue on JIRA about it, but for documentation purposes, I assume this is how this should be configured? Is EAR support just not in place yet? Using Keycloak Alpha 2. https://issues.jboss.org/browse/KEYCLOAK-331 Thanks! Michael Irwin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140222/fa975085/attachment.html From bburke at redhat.com Sat Feb 22 14:19:31 2014 From: bburke at redhat.com (Bill Burke) Date: Sat, 22 Feb 2014 14:19:31 -0500 Subject: [keycloak-user] NPE when deploying EAR using Wildfly Submodule In-Reply-To: <11F0FEC0-A7D3-4860-B790-EBFDF5F087C6@gmail.com> References: <11F0FEC0-A7D3-4860-B790-EBFDF5F087C6@gmail.com> Message-ID: <5308F843.5030302@redhat.com> You have to use the WAR's deployment name (module-name.WAR). Deployment name is a global name. So two EARs can't have the same name for a WAR deployment. You should be able to find a list of deployments in web console. In CLI, this works: /:read-children-names(child-type=deployment) On 2/22/2014 10:16 AM, Michael Irwin wrote: > I?ve got an EAR file that has an embedded WAR. I?ve configured the > security-deployment in wildfly to match the ear?s name. During deploy, > I get an NPE. I?ve created an issue on JIRA about it, but for > documentation purposes, I assume this is how this should be configured? > Is EAR support just not in place yet? Using Keycloak Alpha 2. > > https://issues.jboss.org/browse/KEYCLOAK-331 > > Thanks! > > Michael Irwin > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From traviskds at gmail.com Sat Feb 22 22:22:02 2014 From: traviskds at gmail.com (Travis De Silva) Date: Sun, 23 Feb 2014 14:22:02 +1100 Subject: [keycloak-user] Multi Tenancy Message-ID: I was initially under the impression that I can configure realms as tenants and use KeyCloak for applications that are designed for multi tenancy. But now I have discovered that this is not possible, at least not possible to do it on demand. I hope I am wrong and someone can correct me. Basically what I was trying to do was, when someone signs up to my application platform, I was going to create a realm programmatically via the API. Hence the feature request I raised to have a realm level admin https://issues.jboss.org/browse/KEYCLOAK-292 But that means, I will then have to either configure my Wildfly standalone.xml config with the new realm or add the installation json to my war and redeploy it. This is obviously not ideal for a on demand multi tenant application. Maybe using Roles and create unique roles per tenant which hopefully I can do programatically via the API. I think I might be able to get something going like this but it just feels very hacky and not elegant. Is there any other elegant way? Is Keycloak designed for multi tenancy environments? Cheers Travis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140223/1dc20b21/attachment.html From traviskds at gmail.com Sat Feb 22 22:46:19 2014 From: traviskds at gmail.com (Travis De Silva) Date: Sun, 23 Feb 2014 14:46:19 +1100 Subject: [keycloak-user] Multi Tenancy In-Reply-To: References: Message-ID: I just read the discussions on KEYCLOAK-292 on the developer mailing list. http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001378.html The concept of creating an application under the keycloak-admin realm for each realm created looks interesting. When it comes to multi tenancy, I think the issue is around the application installation process. If there is a way where we don't have to provide individual application level keycloak.json's or WildFly/JBoss subsystem XML's, then we are getting closer to multi tenancy. I am thinking can this be done at a keycloak top level or the ability to use wildcards for the resource elements in the json. Is LiveOak a multi tenancy platform? Wondering if they would need such a feature. On Sun, Feb 23, 2014 at 2:22 PM, Travis De Silva wrote: > I was initially under the impression that I can configure realms as > tenants and use KeyCloak for applications that are designed for multi > tenancy. > > But now I have discovered that this is not possible, at least not possible > to do it on demand. I hope I am wrong and someone can correct me. > > Basically what I was trying to do was, when someone signs up to my > application platform, I was going to create a realm programmatically via > the API. Hence the feature request I raised to have a realm level admin > https://issues.jboss.org/browse/KEYCLOAK-292 > > But that means, I will then have to either configure my Wildfly > standalone.xml config with the new realm or add the installation json to my > war and redeploy it. This is obviously not ideal for a on demand multi > tenant application. > > Maybe using Roles and create unique roles per tenant which hopefully I can > do programatically via the API. I think I might be able to get something > going like this but it just feels very hacky and not elegant. > > Is there any other elegant way? Is Keycloak designed for multi tenancy > environments? > > Cheers > Travis > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140223/6322d2cc/attachment.html From bburke at redhat.com Sun Feb 23 08:08:09 2014 From: bburke at redhat.com (Bill Burke) Date: Sun, 23 Feb 2014 08:08:09 -0500 Subject: [keycloak-user] Multi Tenancy In-Reply-To: References: Message-ID: <5309F2B9.5090208@redhat.com> On 2/22/2014 10:46 PM, Travis De Silva wrote: > I just read the discussions on KEYCLOAK-292 on the developer mailing > list. > http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001378.html > > The concept of creating an application under the keycloak-admin realm > for each realm created looks interesting. > > When it comes to multi tenancy, I think the issue is around the > application installation process. If there is a way where we don't have > to provide individual application level keycloak.json's or WildFly/JBoss > subsystem XML's, then we are getting closer to multi tenancy. I am > thinking can this be done at a keycloak top level or the ability to use > wildcards for the resource elements in the json. > The application itself needs to be able to handle multiple realms at once? How would you choose which realm to belong to when initiating a login? Can you elaborate a bit more on what the flow would look like (what you want) when interacting with your applications? Aerogear UPS might be in a similar position as you too, so this is something I'd like to solve sooner rather than later. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From bburke at redhat.com Sun Feb 23 08:18:23 2014 From: bburke at redhat.com (Bill Burke) Date: Sun, 23 Feb 2014 08:18:23 -0500 Subject: [keycloak-user] Multi Tenancy In-Reply-To: <5309F2B9.5090208@redhat.com> References: <5309F2B9.5090208@redhat.com> Message-ID: <5309F51F.7020102@redhat.com> On 2/23/2014 8:08 AM, Bill Burke wrote: > > > On 2/22/2014 10:46 PM, Travis De Silva wrote: >> I just read the discussions on KEYCLOAK-292 on the developer mailing >> list. >> http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001378.html >> >> The concept of creating an application under the keycloak-admin realm >> for each realm created looks interesting. >> >> When it comes to multi tenancy, I think the issue is around the >> application installation process. If there is a way where we don't have >> to provide individual application level keycloak.json's or WildFly/JBoss >> subsystem XML's, then we are getting closer to multi tenancy. I am >> thinking can this be done at a keycloak top level or the ability to use >> wildcards for the resource elements in the json. >> > > The application itself needs to be able to handle multiple realms at > once? How would you choose which realm to belong to when initiating a > login? Can you elaborate a bit more on what the flow would look like > (what you want) when interacting with your applications? > > Aerogear UPS might be in a similar position as you too, so this is > something I'd like to solve sooner rather than later. Please respond to above, but this was some of my thoughts with Aerogear which may be related: http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001292.html -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From traviskds at gmail.com Mon Feb 24 14:28:12 2014 From: traviskds at gmail.com (Travis De Silva) Date: Tue, 25 Feb 2014 06:28:12 +1100 Subject: [keycloak-user] Multi Tenancy In-Reply-To: <5309F51F.7020102@redhat.com> References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> Message-ID: yes the application itself needs to handle multiple realms at once. We are going with a shared application multi tenancy model. Basically the flow I had in mind was: Tenant Registration Process Each tenant will get their own url When a new tenant signs up, they can specify their url. We would then create the realm for the client in Keycloak (via API calls) and associate the realm id to the url (either in keycloak or our application) Login process for users of the tenant When a user logs in via their tenant specific url, we will intercept that request in a filter and using the Authorization header grab the token and accordingly handle the authorization. If user has not logged in, we will redirect to keycloak for authentication I had a look at your thoughts on how to do this with Aerogear. If I understand the concept correctly, with the UPS + Keycloak in one bundle option, we have to update the jboss wildfly config on the fly whenever we get new tenants. I did not think of this option and not sure if this could be done with wildfly without having to restart wildfly, but even if that is possible, that means we are going to have a large list of wildfly adapter profiles and I don't think that is practical. Just think even if we get 200 tenants, this is going to make it very complicated. Also I think the concept is one war per realm so this might not even be possible for a single application multi tenant model. I think the ideal would be to have one wildfly adapter config per Keycloak instance. (i.e. don't go to the realm level) If you want to keep the existing and also cater to what I am suggesting, then some wildcard method to config would do. Having said that, now I am wondering if by using the Per war configuration (and not using the wildfly adapter) if I could achieve what I want since from the keycloak docs, it looks like you can configure keycloak per war without specifying any realm specific settings. (at least for now the realm-name element is supposed to be ignored.) Not sure if I have complicated this further or if this is doable. But if we can plug in multi tenancy that would be a massive win for Keycloak considering that everything is now moving to the cloud. On Mon, Feb 24, 2014 at 12:18 AM, Bill Burke wrote: > > > On 2/23/2014 8:08 AM, Bill Burke wrote: > > > > > > On 2/22/2014 10:46 PM, Travis De Silva wrote: > >> I just read the discussions on KEYCLOAK-292 on the developer mailing > >> list. > >> http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001378.html > >> > >> The concept of creating an application under the keycloak-admin realm > >> for each realm created looks interesting. > >> > >> When it comes to multi tenancy, I think the issue is around the > >> application installation process. If there is a way where we don't have > >> to provide individual application level keycloak.json's or WildFly/JBoss > >> subsystem XML's, then we are getting closer to multi tenancy. I am > >> thinking can this be done at a keycloak top level or the ability to use > >> wildcards for the resource elements in the json. > >> > > > > The application itself needs to be able to handle multiple realms at > > once? How would you choose which realm to belong to when initiating a > > login? Can you elaborate a bit more on what the flow would look like > > (what you want) when interacting with your applications? > > > > Aerogear UPS might be in a similar position as you too, so this is > > something I'd like to solve sooner rather than later. > > Please respond to above, but this was some of my thoughts with Aerogear > which may be related: > > http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001292.html > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140225/4b655a55/attachment.html From bburke at redhat.com Mon Feb 24 20:31:29 2014 From: bburke at redhat.com (Bill Burke) Date: Mon, 24 Feb 2014 20:31:29 -0500 Subject: [keycloak-user] Multi Tenancy In-Reply-To: References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> Message-ID: <530BF271.5030503@redhat.com> So you want to bind a URL to a specific adapter configuration? might have a and/or keycloak.json might be expanded to do the same. url-pattern could be /foo/bar/* or even /foo/bar/{realm}/* and keycloak adapter would pull and match a realm configuration based on this? More comments inline On 2/24/2014 2:28 PM, Travis De Silva wrote: > > I had a look at your thoughts on how to do this with Aerogear. If I > understand the concept correctly, with the UPS + Keycloak in one bundle > option, we have to update the jboss wildfly config on the fly whenever > we get new tenants. I did not think of this option and not sure if this > could be done with wildfly without having to restart wildfly, but even > if that is possible, that means we are going to have a large list of > wildfly adapter profiles and I don't think that is practical. Just think > even if we get 200 tenants, this is going to make it very complicated. > Also I think the concept is one war per realm so this might not even be > possible for a single application multi tenant model. > There's just no way around a large number of adapter profiles in your scenario. Each realm has its own public key in which to verify tokens with. Each of these public keys must be known to the adapter. FYI: Originally we were going to have Keycloak as a SaaS option hosted as one server on Openshift sso.keycloak.org or something. Users would have been able to register and create their own realms. It was decided that users might be a little scared of the idea of one database holding everybody's security metadata, so the idea switched to writing a cartridge which you could configure solely for your organization. I guess what I'm saying is that a cartridge approach might be best in most scenarios. Still I want to support your usecase as best we can. BTW, I really appreciate the feedback. Without users trying our stuff and giving us ideas on how they would like to use Keycloak, we'll never be successful. Thanks. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From traviskds at gmail.com Mon Feb 24 20:57:29 2014 From: traviskds at gmail.com (Travis De Silva) Date: Tue, 25 Feb 2014 12:57:29 +1100 Subject: [keycloak-user] Multi Tenancy In-Reply-To: <530BF271.5030503@redhat.com> References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> <530BF271.5030503@redhat.com> Message-ID: My comments inline. On Tue, Feb 25, 2014 at 12:31 PM, Bill Burke wrote: > So you want to bind a URL to a specific adapter configuration? > might have a and/or keycloak.json > might be expanded to do the same. > > url-pattern could be /foo/bar/* > > or even /foo/bar/{realm}/* and keycloak adapter would pull and match a > realm configuration based on this? > > yes something like this would do. > More comments inline > > On 2/24/2014 2:28 PM, Travis De Silva wrote: > > > > I had a look at your thoughts on how to do this with Aerogear. If I > > understand the concept correctly, with the UPS + Keycloak in one bundle > > option, we have to update the jboss wildfly config on the fly whenever > > we get new tenants. I did not think of this option and not sure if this > > could be done with wildfly without having to restart wildfly, but even > > if that is possible, that means we are going to have a large list of > > wildfly adapter profiles and I don't think that is practical. Just think > > even if we get 200 tenants, this is going to make it very complicated. > > Also I think the concept is one war per realm so this might not even be > > possible for a single application multi tenant model. > > > > There's just no way around a large number of adapter profiles in your > scenario. Each realm has its own public key in which to verify tokens > with. Each of these public keys must be known to the adapter. > > What about the Per war configuration? I didn't see realm level config in there? So won't that work? FYI: Originally we were going to have Keycloak as a SaaS option hosted > as one server on Openshift sso.keycloak.org or something. Users would > have been able to register and create their own realms. It was decided > that users might be a little scared of the idea of one database holding > everybody's security metadata, so the idea switched to writing a > cartridge which you could configure solely for your organization. I > guess what I'm saying is that a cartridge approach might be best in most > scenarios. Still I want to support your usecase as best we can. > > I agree that you guys made the right call. Its the devs who would have built applications on your SaaS platform who would have had issues with that approach. But in our case, end users would not have an issue, especially with the Social Login which ensures that we don't retain their credentials. Also I appreciate you trying to support this use case. I also don't think you can support all use cases but if there is workarounds or hocks to handle this, then devs like us can work around it. It's ok not to have these features out of the box but at least if there is a way that is great. > BTW, I really appreciate the feedback. Without users trying our stuff > and giving us ideas on how they would like to use Keycloak, we'll never > be successful. Thanks. > Thanks for the comment. You might not be aware but I have been following you from your angry Bill days and I think you are one smart dude and with guys like you, Keycloak is in good hands :) > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140225/297c2f48/attachment.html From stian at redhat.com Tue Feb 25 04:56:18 2014 From: stian at redhat.com (Stian Thorgersen) Date: Tue, 25 Feb 2014 04:56:18 -0500 (EST) Subject: [keycloak-user] Multi Tenancy In-Reply-To: References: Message-ID: <1335275664.15664937.1393322178689.JavaMail.zimbra@redhat.com> What are developers deploying to your platform? Are they deploying WARs? A couple of ideas: * You could use the admin api (or model api) to create the realms for you. Then you could use the management interfaces to WildFly to add the KC config for a WAR before deploying it. You can access the management api through rest, or you can also call it directly from a WAR (see http://management-platform.blogspot.in/2012/07/co-located-management-client-for.html). If developers are deploying WARs you probably want to do this any ways as I'd imagine you'd want more control of the deployment process than just dumping into standalone/deployments? * Adapters aren't that complex, so you can create your own (or fork one of ours) that would then let you pull config from where you'd like. For example instead of storing config in keycloak.json you could save this in a database or something. If you describe in a bit more detail exactly what you're trying to achieve, and also propose ideas/changes to KC, that would be great :) With regards to LiveOak it's going to be multi-tenant, but we have recently decided that the container itself won't be. A single container instance can contain multiple apps, but not multiple tenants. Instead we'll leverage OpenShift and create separate gears for each tenant. There's just to many issues with having multi-tenancy within a single process (shared cpu, security, custom code, etc, etc.) and with technologies such as Docker creating an container instance per-tenant is light weight. Cheers, Stian ----- Original Message ----- > From: "Travis De Silva" > To: keycloak-user at lists.jboss.org > Sent: Sunday, 23 February, 2014 3:46:19 AM > Subject: Re: [keycloak-user] Multi Tenancy > > I just read the discussions on KEYCLOAK-292 on the developer mailing list. > http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001378.html > > The concept of creating an application under the keycloak-admin realm for > each realm created looks interesting. > > When it comes to multi tenancy, I think the issue is around the application > installation process. If there is a way where we don't have to provide > individual application level keycloak.json's or WildFly/JBoss subsystem > XML's, then we are getting closer to multi tenancy. I am thinking can this > be done at a keycloak top level or the ability to use wildcards for the > resource elements in the json. > > Is LiveOak a multi tenancy platform? Wondering if they would need such a > feature. > > > On Sun, Feb 23, 2014 at 2:22 PM, Travis De Silva < traviskds at gmail.com > > wrote: > > > > I was initially under the impression that I can configure realms as tenants > and use KeyCloak for applications that are designed for multi tenancy. > > But now I have discovered that this is not possible, at least not possible to > do it on demand. I hope I am wrong and someone can correct me. > > Basically what I was trying to do was, when someone signs up to my > application platform, I was going to create a realm programmatically via the > API. Hence the feature request I raised to have a realm level admin > https://issues.jboss.org/browse/KEYCLOAK-292 > > But that means, I will then have to either configure my Wildfly > standalone.xml config with the new realm or add the installation json to my > war and redeploy it. This is obviously not ideal for a on demand multi > tenant application. > > Maybe using Roles and create unique roles per tenant which hopefully I can do > programatically via the API. I think I might be able to get something going > like this but it just feels very hacky and not elegant. > > Is there any other elegant way? Is Keycloak designed for multi tenancy > environments? > > Cheers > Travis > > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user From bburke at redhat.com Tue Feb 25 11:10:17 2014 From: bburke at redhat.com (Bill Burke) Date: Tue, 25 Feb 2014 11:10:17 -0500 Subject: [keycloak-user] Multi Tenancy In-Reply-To: References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> <530BF271.5030503@redhat.com> Message-ID: <530CC069.3020104@redhat.com> On 2/24/2014 8:57 PM, Travis De Silva wrote: > My comments inline. > > > On Tue, Feb 25, 2014 at 12:31 PM, Bill Burke > wrote: > > So you want to bind a URL to a specific adapter configuration? > might have a and/or keycloak.json > might be expanded to do the same. > > url-pattern could be /foo/bar/* > > or even /foo/bar/{realm}/* and keycloak adapter would pull and match a > realm configuration based on this? > > yes something like this would do. > > More comments inline > > On 2/24/2014 2:28 PM, Travis De Silva wrote: > > > > I had a look at your thoughts on how to do this with Aerogear. If I > > understand the concept correctly, with the UPS + Keycloak in one > bundle > > option, we have to update the jboss wildfly config on the fly > whenever > > we get new tenants. I did not think of this option and not sure > if this > > could be done with wildfly without having to restart wildfly, but > even > > if that is possible, that means we are going to have a large list of > > wildfly adapter profiles and I don't think that is practical. > Just think > > even if we get 200 tenants, this is going to make it very > complicated. > > Also I think the concept is one war per realm so this might not > even be > > possible for a single application multi tenant model. > > > > There's just no way around a large number of adapter profiles in your > scenario. Each realm has its own public key in which to verify tokens > with. Each of these public keys must be known to the adapter. > > > What about the Per war configuration? I didn't see realm level config in > there? So won't that work? > Not sure what you mean. Right now, each war can only be bound to one realm. I can change the adapter so that you could map URL patterns as stated earlier, but the realm configuration (public key, URL) has to be available somewhere. Maybe just providing the URL of the keycloak server could be enough for the adapter? It pulls the realm name from the request URI, does a REST request to the server to see if the realm exists and pulls down information about the realm, then caches this information in memory. When you create a realm and the application profile within that realm, you can just make sure that each of these realm/application combos has the same client secret. (Or we could provide an option to allow public non-confidential clients). Another thing we could do (and what I want to do anyways) is to provide colocation aware adapters that can interact with the keycloak apis directly intra-JVM if the keycloak server is deployed on the same machine. This would help implement a multi-tenant adapter. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From traviskds at gmail.com Tue Feb 25 23:47:57 2014 From: traviskds at gmail.com (Travis De Silva) Date: Wed, 26 Feb 2014 15:47:57 +1100 Subject: [keycloak-user] Multi Tenancy In-Reply-To: <1335275664.15664937.1393322178689.JavaMail.zimbra@redhat.com> References: <1335275664.15664937.1393322178689.JavaMail.zimbra@redhat.com> Message-ID: My comments are inline On Tue, Feb 25, 2014 at 8:56 PM, Stian Thorgersen wrote: > What are developers deploying to your platform? Are they deploying WARs? > > Yes its WARs. Actually it would be just one war at present that consist of all our service layer application code. (i.e. JAX-RS, EJB3, JPA, Camel and related component libraries) > A couple of ideas: > > * You could use the admin api (or model api) to create the realms for you. > Then you could use the management interfaces to WildFly to add the KC > config for a WAR before deploying it. You can access the management api > through rest, or you can also call it directly from a WAR (see > http://management-platform.blogspot.in/2012/07/co-located-management-client-for.html). > If developers are deploying WARs you probably want to do this any ways as > I'd imagine you'd want more control of the deployment process than just > dumping into standalone/deployments? > This is an option but not very elegant. Ideally I would prefer to handle this from our application side without having to interact with the application sever config, in this case Wildfly. * Adapters aren't that complex, so you can create your own (or fork one of > ours) that would then let you pull config from where you'd like. For > example instead of storing config in keycloak.json you could save this in a > database or something. > I guess if there is no other way, then this maybe the way to do it. Where I can pick the realm public keys from our application DB. But would like to explore what Bill is suggesting a bit more. If we could use wildcard uri mappings. Will reply to his post in more detail on my thoughts. > > If you describe in a bit more detail exactly what you're trying to > achieve, and also propose ideas/changes to KC, that would be great : > With regards to LiveOak it's going to be multi-tenant, but we have > recently decided that the container itself won't be. A single container > instance can contain multiple apps, but not multiple tenants. Instead we'll > leverage OpenShift and create separate gears for each tenant. There's just > to many issues with having multi-tenancy within a single process (shared > cpu, security, custom code, etc, etc.) and with technologies such as Docker > creating an container instance per-tenant is light weight. > Yes in your model, you are spinning up separate gears (and since OpenShift at present uses AWS separate instances). This is one way to do multi tenancy and yes I agree with technologies such as Docker makes it more seamless but still this would not be the most cost effective option for our potential clients. With our model, its actually very simple. We have one application code (that can run in a WildFly HA environment with Infinispan etc) , one DB with sharding. Tenants are separated by a tenant ID in the DB. Since ours is a application for a specific domain, we can do this. For example what the servicenow.com guys have done for IT service desks. Not sure of their architecture but basically all tenants get the same feature set with customisable templates allowing tenants to pick the features and functionality that they need. I understand this does not make sense for a platform like LiveOak, as you guys are creating a generic platform for developers like us to develop and deploy diverse applications for mobile and web clients. (BTW, I am excited about the LiveOak BaaS project as well. Have developed iOS and Android push notifications and it was really messy, especially with iOS) Since our application is not generic but specific to a domain and business function, its more cost effective to manage your tenants in a single application/db. Also if your target market segment is the small business, and you want to keep the cost low for them to subscribe to our platform, our model makes sense. Also with all the elasticity that you get with cloud computing today (***cough** AWS), we can scale up and down based on usage demand. > Cheers, > Stian > > ----- Original Message ----- > > From: "Travis De Silva" > > To: keycloak-user at lists.jboss.org > > Sent: Sunday, 23 February, 2014 3:46:19 AM > > Subject: Re: [keycloak-user] Multi Tenancy > > > > I just read the discussions on KEYCLOAK-292 on the developer mailing > list. > > http://lists.jboss.org/pipermail/keycloak-dev/2014-February/001378.html > > > > The concept of creating an application under the keycloak-admin realm for > > each realm created looks interesting. > > > > When it comes to multi tenancy, I think the issue is around the > application > > installation process. If there is a way where we don't have to provide > > individual application level keycloak.json's or WildFly/JBoss subsystem > > XML's, then we are getting closer to multi tenancy. I am thinking can > this > > be done at a keycloak top level or the ability to use wildcards for the > > resource elements in the json. > > > > Is LiveOak a multi tenancy platform? Wondering if they would need such a > > feature. > > > > > > On Sun, Feb 23, 2014 at 2:22 PM, Travis De Silva < traviskds at gmail.com > > > wrote: > > > > > > > > I was initially under the impression that I can configure realms as > tenants > > and use KeyCloak for applications that are designed for multi tenancy. > > > > But now I have discovered that this is not possible, at least not > possible to > > do it on demand. I hope I am wrong and someone can correct me. > > > > Basically what I was trying to do was, when someone signs up to my > > application platform, I was going to create a realm programmatically via > the > > API. Hence the feature request I raised to have a realm level admin > > https://issues.jboss.org/browse/KEYCLOAK-292 > > > > But that means, I will then have to either configure my Wildfly > > standalone.xml config with the new realm or add the installation json to > my > > war and redeploy it. This is obviously not ideal for a on demand multi > > tenant application. > > > > Maybe using Roles and create unique roles per tenant which hopefully I > can do > > programatically via the API. I think I might be able to get something > going > > like this but it just feels very hacky and not elegant. > > > > Is there any other elegant way? Is Keycloak designed for multi tenancy > > environments? > > > > Cheers > > Travis > > > > > > > > _______________________________________________ > > keycloak-user mailing list > > keycloak-user at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/keycloak-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140226/0c1243f2/attachment.html From traviskds at gmail.com Wed Feb 26 01:56:36 2014 From: traviskds at gmail.com (Travis De Silva) Date: Wed, 26 Feb 2014 17:56:36 +1100 Subject: [keycloak-user] Multi Tenancy In-Reply-To: <530CC069.3020104@redhat.com> References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> <530BF271.5030503@redhat.com> <530CC069.3020104@redhat.com> Message-ID: My comments are inline. On Wed, Feb 26, 2014 at 3:10 AM, Bill Burke wrote: > > > On 2/24/2014 8:57 PM, Travis De Silva wrote: > > My comments inline. > > > > > > On Tue, Feb 25, 2014 at 12:31 PM, Bill Burke > > wrote: > > > > So you want to bind a URL to a specific adapter configuration? > > might have a and/or keycloak.json > > might be expanded to do the same. > > > > url-pattern could be /foo/bar/* > > > > or even /foo/bar/{realm}/* and keycloak adapter would pull and match > a > > realm configuration based on this? > > > > yes something like this would do. > > > > More comments inline > > > > On 2/24/2014 2:28 PM, Travis De Silva wrote: > > > > > > I had a look at your thoughts on how to do this with Aerogear. If > I > > > understand the concept correctly, with the UPS + Keycloak in one > > bundle > > > option, we have to update the jboss wildfly config on the fly > > whenever > > > we get new tenants. I did not think of this option and not sure > > if this > > > could be done with wildfly without having to restart wildfly, but > > even > > > if that is possible, that means we are going to have a large list > of > > > wildfly adapter profiles and I don't think that is practical. > > Just think > > > even if we get 200 tenants, this is going to make it very > > complicated. > > > Also I think the concept is one war per realm so this might not > > even be > > > possible for a single application multi tenant model. > > > > > > > There's just no way around a large number of adapter profiles in your > > scenario. Each realm has its own public key in which to verify > tokens > > with. Each of these public keys must be known to the adapter. > > > > > > What about the Per war configuration? I didn't see realm level config in > > there? So won't that work? > > > > Not sure what you mean. Right now, each war can only be bound to one > realm. I can change the adapter so that you could map URL patterns as > stated earlier, but the realm configuration (public key, URL) has to be > available somewhere. > > My bad. Sorry. Got confused with many applications under one realm concept. But forgot that it is still still the same realm :( > Maybe just providing the URL of the keycloak server could be enough for > the adapter? It pulls the realm name from the request URI, does a REST > request to the server to see if the realm exists and pulls down > information about the realm, then caches this information in memory. > > When you create a realm and the application profile within that realm, > you can just make sure that each of these realm/application combos has > the same client secret. (Or we could provide an option to allow public > non-confidential clients). > Another thing we could do (and what I want to do anyways) is to provide > colocation aware adapters that can interact with the keycloak apis > directly intra-JVM if the keycloak server is deployed on the same > machine. This would help implement a multi-tenant adapter. > This is a good idea. I assume that we can co locate the keycloak server in a cluster environment as well right since keycloak itself does not keep any state? Another idea that I was thinking is can't we have a adapter that gets the realm info from a persistent store like a DB. So if we are using a database, in the adapter we can configure the database connection settings so it will pull the realm info from the DB based on the url. Note that the DB is not within keycloak but in the application side. I am thinking on the lines of how the org.jboss.security.auth.spi.databaseserverloginmodule works. Based on a user input for the login credentials, it will get the info from the db and authenticate. In our case, there is no user input but we associate the url as the input. Putting the realm info to a db will enable us to handle larger number of realms and we can do this dynamically as well without having to add it to the standalone.xml config. But you will need to make the change to bind one war to multiple realms. As you indicated earlier, currently its one war one realm. Not sure if this is just a adapter association or goes deeper into Keycloak. Is this crazy idea? If so, then maybe the colocation option is more elegant than the url patterns. > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140226/a658ce24/attachment-0001.html From bburke at redhat.com Wed Feb 26 08:47:37 2014 From: bburke at redhat.com (Bill Burke) Date: Wed, 26 Feb 2014 08:47:37 -0500 Subject: [keycloak-user] Multi Tenancy In-Reply-To: References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> <530BF271.5030503@redhat.com> <530CC069.3020104@redhat.com> Message-ID: <530DF079.1080701@redhat.com> On 2/26/2014 1:56 AM, Travis De Silva wrote: > This is a good idea. I assume that we can co locate the keycloak server > in a cluster environment as well right since keycloak itself does not > keep any state? > We keep access code and related metadata in memory between requests at the moment :( We're planning on stuffing all information needed within the access code so the token service can be completely stateless and clusterable. We're probably a month+ away from doing that work though. > Another idea that I was thinking is can't we have a adapter that gets > the realm info from a persistent store like a DB. So if we are using a > database, in the adapter we can configure the database connection > settings so it will pull the realm info from the DB based on the url. > Note that the DB is not within keycloak but in the application side. I > am thinking on the lines of how > the org.jboss.security.auth.spi.databaseserverloginmodule works. Based > on a user input for the login credentials, it will get the info from the > db and authenticate. In our case, there is no user input but we > associate the url as the input. Putting the realm info to a db will > enable us to handle larger number of realms and we can do this > dynamically as well without having to add it to the standalone.xml config. > > But you will need to make the change to bind one war to multiple realms. > As you indicated earlier, currently its one war one realm. Not sure if > this is just a adapter association or goes deeper into Keycloak. > It would require a bunch of refactoring. The code is ugly. Honestly, I want to refactor this code anyways as there's not much shared code between AS7 and wildfly adapters. > Is this crazy idea? If so, then maybe the colocation option is more > elegant than the url patterns. > Really depends on how you want to deploy keycloak. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From jcoder at superheromail.com Thu Feb 27 22:42:28 2014 From: jcoder at superheromail.com (J Coder) Date: Fri, 28 Feb 2014 03:42:28 +0000 Subject: [keycloak-user] keycloak and open id connect Message-ID: <0507f3ed2b6660a161dce39f572944de@localhost> After spending some time reading about keycloak and the open id connect specification (seems that it was just finalized yesterday), I am getting the impression that keycloak and open id connect are competing technologies. They seem very similar in implementation since they are both build on top of OAuth 2 and JWT, while solving a similar problem, which is that OAuth 2 on it's own is an authorization framework and not an authentication mechanism. My assumptions could very well be incorrect, as I haven't spent enough time digging into both offerings to assert the above with any sort of certainty. Bill (et al), would you kindly address my concerns as outlined above and perhaps explain why they are or aren't competing technologies, how they may compliment each other or how they could be used together in either an enterprise (closed environment) or web (open social environment) setting? Thanks a lot for your time. J -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140228/226d7ebc/attachment.html From traviskds at gmail.com Thu Feb 27 23:31:59 2014 From: traviskds at gmail.com (Travis De Silva) Date: Fri, 28 Feb 2014 15:31:59 +1100 Subject: [keycloak-user] Multi Tenancy In-Reply-To: <530DF079.1080701@redhat.com> References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> <530BF271.5030503@redhat.com> <530CC069.3020104@redhat.com> <530DF079.1080701@redhat.com> Message-ID: As per your future plans, if we can get a stateless keycloak co-location option and also enable external config in a DB when you refactor the adapter code, that should cover the needs of most developers who want to go beyond the out of the box solutions. BTW, I hope with the above changes it would be possible to associate one war with multiple realms and this is not a core keycloak structure design issue. On Thu, Feb 27, 2014 at 12:47 AM, Bill Burke wrote: > > > On 2/26/2014 1:56 AM, Travis De Silva wrote: > >> This is a good idea. I assume that we can co locate the keycloak server >> in a cluster environment as well right since keycloak itself does not >> keep any state? >> >> > We keep access code and related metadata in memory between requests at the > moment :( We're planning on stuffing all information needed within the > access code so the token service can be completely stateless and > clusterable. We're probably a month+ away from doing that work though. > > > Another idea that I was thinking is can't we have a adapter that gets >> the realm info from a persistent store like a DB. So if we are using a >> database, in the adapter we can configure the database connection >> settings so it will pull the realm info from the DB based on the url. >> Note that the DB is not within keycloak but in the application side. I >> am thinking on the lines of how >> the org.jboss.security.auth.spi.databaseserverloginmodule works. Based >> on a user input for the login credentials, it will get the info from the >> db and authenticate. In our case, there is no user input but we >> associate the url as the input. Putting the realm info to a db will >> enable us to handle larger number of realms and we can do this >> dynamically as well without having to add it to the standalone.xml config. >> >> But you will need to make the change to bind one war to multiple realms. >> As you indicated earlier, currently its one war one realm. Not sure if >> this is just a adapter association or goes deeper into Keycloak. >> >> > It would require a bunch of refactoring. The code is ugly. Honestly, I > want to refactor this code anyways as there's not much shared code between > AS7 and wildfly adapters. > > > Is this crazy idea? If so, then maybe the colocation option is more >> elegant than the url patterns. >> >> > Really depends on how you want to deploy keycloak. > > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140228/55ff7a4c/attachment.html From bburke at redhat.com Fri Feb 28 08:58:42 2014 From: bburke at redhat.com (Bill Burke) Date: Fri, 28 Feb 2014 08:58:42 -0500 Subject: [keycloak-user] keycloak and open id connect In-Reply-To: <0507f3ed2b6660a161dce39f572944de@localhost> References: <0507f3ed2b6660a161dce39f572944de@localhost> Message-ID: <53109612.4050203@redhat.com> OpenID Connect is a specification for a auth protocol framework. Keycloak is an SSO solution that is implemented on top of a auth protocol framework. That being said... OpenID Connect is an OAuth 2.0 extension. We are currently in the process of providing minimal required support for OpenID Connect which will allow us to claim we are an OpenID Connect provider. This was actually very easy to do as Keycloak was already an OAuth 2.0 extension and were already using JWT, JWE, and JWS! We will implement additional optional pieces of OpenID Connect that seem like a good fit for Keycloak as time goes on too. OpenID Connect nor OAuth 2.0 define an Access Token format, so, we have our own based on JWT. We added additional claims that specify role mappings. Other extensions we have are an client REST API so that the Keycloak server can do a remote logout, gather session stats, or push a revocation policy. We might also piggyback additional information like revocation policies with AccessTokenResponses. All legal and allowed in the OpenID Connect specification. On 2/27/2014 10:42 PM, J Coder wrote: > After spending some time reading about keycloak and the open id connect > specification (seems that it was just finalized yesterday), I am getting > the impression that keycloak and open id connect are competing > technologies. They seem very similar in implementation since they are > both build on top of OAuth 2 and JWT, while solving a similar problem, > which is that OAuth 2 on it's own is an authorization framework and not > an authentication mechanism. > > My assumptions could very well be incorrect, as I haven't spent enough > time digging into both offerings to assert the above with any sort of > certainty. > > Bill (et al), would you kindly address my concerns as outlined above and > perhaps explain why they are or aren't competing technologies, how they > may compliment each other or how they could be used together in either > an enterprise (closed environment) or web (open social environment) setting? > > Thanks a lot for your time. > > J > > > > > _______________________________________________ > keycloak-user mailing list > keycloak-user at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/keycloak-user > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From bburke at redhat.com Fri Feb 28 09:07:19 2014 From: bburke at redhat.com (Bill Burke) Date: Fri, 28 Feb 2014 09:07:19 -0500 Subject: [keycloak-user] Multi Tenancy In-Reply-To: References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> <530BF271.5030503@redhat.com> <530CC069.3020104@redhat.com> <530DF079.1080701@redhat.com> Message-ID: <53109817.5040306@redhat.com> On 2/27/2014 11:31 PM, Travis De Silva wrote: > > As per your future plans, if we can get a stateless keycloak co-location > option and also enable external config in a DB when you refactor the > adapter code, that should cover the needs of most developers who want to > go beyond the out of the box solutions. > > BTW, I hope with the above changes it would be possible to associate one > war with multiple realms and this is not a core keycloak structure > design issue. > How soon you need this by? Yesterday? ;) Like I said earlier, I don't think colocation is necessarily a requirement if we a) provided an option for public clients (don't require a client secret) or b) you had a shared secret between clients for all realms. The adapter would just extract the realm name from the request, invoke on the keycloak server to get the public information about the realm (i.e. public key), then cache this information locally. Bill -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com From traviskds at gmail.com Fri Feb 28 15:57:01 2014 From: traviskds at gmail.com (Travis De Silva) Date: Sat, 1 Mar 2014 07:57:01 +1100 Subject: [keycloak-user] Multi Tenancy In-Reply-To: <53109817.5040306@redhat.com> References: <5309F2B9.5090208@redhat.com> <5309F51F.7020102@redhat.com> <530BF271.5030503@redhat.com> <530CC069.3020104@redhat.com> <530DF079.1080701@redhat.com> <53109817.5040306@redhat.com> Message-ID: On Sat, Mar 1, 2014 at 1:07 AM, Bill Burke wrote: > > > On 2/27/2014 11:31 PM, Travis De Silva wrote: > >> >> As per your future plans, if we can get a stateless keycloak co-location >> option and also enable external config in a DB when you refactor the >> adapter code, that should cover the needs of most developers who want to >> go beyond the out of the box solutions. >> >> BTW, I hope with the above changes it would be possible to associate one >> war with multiple realms and this is not a core keycloak structure >> design issue. >> >> > How soon you need this by? Yesterday? ;) > In our project, I was going to build the security model with social login and was on the verge of using an open source social login library to start building it when like god sent the keycloak project appeared :) So I am not the one to demand and happy with the little miracles that come my way. Having said that, yesterday would be great :) But seriously if your Jira roadmap is sort of an indicator and beta 1 would be released end of Match, that timeframe is fine for us :) > > Like I said earlier, I don't think colocation is necessarily a requirement > if we a) provided an option for public clients (don't require a client > secret) or b) you had a shared secret between clients for all realms. The > adapter would just extract the realm name from the request, invoke on the > keycloak server to get the public information about the realm (i.e. public > key), then cache this information locally. > > I guess a shared secret would do. Just wondering why we can't use the keycloak-admin realm as the top level realm and use it's secret to get the realm info to be cached locally and from that point onwards, it falls into the current keycloak flow. I am assuming that the individual keycloak realm admins (as per the change done by Stin on KEYCLOAK-292 ) will not be able to view the keycloak-admin realm info. > Bill > > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140301/96b611ce/attachment-0001.html