<div dir="ltr"><div>Hi Marko</div><div>Thanks for your quickly answer , it's no possible to deploy keycloak today in a tomcat web server , really we have deployed our platform into different tomcat 8 and it's a big effort this movement to Wildfly.</div><div>Do you will support other web servers to deploy keycloak in future like tomcat or jetty?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-27 12:45 GMT-03:00 Marko Strukelj <span dir="ltr"><<a href="mailto:mstrukel@redhat.com" target="_blank">mstrukel@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Keycloak server is no longer packaged as a .war. You can read more about it here: <a href="http://blog.keycloak.org/2015/05/distribution-changes.html" rel="noreferrer" target="_blank">http://blog.keycloak.org/2015/05/distribution-changes.html</a><br>
<br>
That means you can not deploy it to just any java web container - only latest Wildfly / EAP is supported for the server. At the moment that is Wildfly 9.0.0.Final, and EAP 6.4.<br>
<br>
If for some reason you really want your application to be deployed in the same server instance as keycloak server, you'd have to deploy your application to the app server that comes with keycloak server rather than the other way around.<br>
<br>
Easiest way to achieve that would be to use keycloak-demo-1.3.1.Final.zip distribution which you can download here: <a href="http://sourceforge.net/projects/keycloak/files/1.3.1.Final" rel="noreferrer" target="_blank">http://sourceforge.net/projects/keycloak/files/1.3.1.Final</a><br>
<br>
- marko<br>
<span class=""><br>
----- Original Message -----<br>
> Hi<br>
> I have a maven project that is in charge of create the tomcat distribution<br>
> for keycloak.<br>
> Until version 1.2.0-Beta1 we have used keycloak-server.war , but when I try<br>
> to migrate to keycloak 1.3.1-Final , this dependency apparently does not<br>
> exist any more.<br>
> < artifactItem ><br>
> < groupId > org.keycloak </ groupId ><br>
> < artifactId > keycloak-server </ artifactId ><br>
> < version > $1.3.1-Final </ version ><br>
> < type > war </ type ><br>
> < outputDirectory > ${outputDirectoryForWar} </ outputDirectory ><br>
> </ artifactItem ><br>
> Someone could help me with this issue ?<br>
> where I could find the server war now or what is the new name for this<br>
> dependency?<br>
> Thanks and regards.<br>
> Pablo Gore<br>
> Here is my pom.xml<br>
</span>> < project xmlns= " <a href="http://maven.apache.org/POM/4.0.0" rel="noreferrer" target="_blank">http://maven.apache.org/POM/4.0.0</a> " xmlns: xsi = "<br>
<span class="">> <a href="http://www.w3.org/2001/XMLSchema-instance" rel="noreferrer" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a> "<br>
> xsi :schemaLocation= " <a href="http://maven.apache.org/POM/4.0.0" rel="noreferrer" target="_blank">http://maven.apache.org/POM/4.0.0</a><br>
</span>> <a href="http://maven.apache.org/maven-v4_0_0.xsd" rel="noreferrer" target="_blank">http://maven.apache.org/maven-v4_0_0.xsd</a> " ><br>
> < modelVersion > 4.0.0 </ modelVersion ><br>
> < parent ><br>
> < groupId > org.keycloak </ groupId ><br>
> < artifactId > keycloak-parent </ artifactId ><br>
> < version > 1.3.1-Final </ version ><br>
><br>
><br>
> </ parent ><br>
><br>
> < artifactId > keycloak-tomcat-dist </ artifactId ><br>
> < packaging > pom </ packaging ><br>
<div><div class="h5">> < name > Tomcat 8 with Keycloack </ name ><br>
> < version > ${project.parent.version}-1.0.4 </ version ><br>
> < description /><br>
> < properties ><br>
> <!-- Versions --><br>
> < tomcat.version > 8.0.20 </ tomcat.version ><br>
> < jax.version > 2.3.7.Final </ jax.version ><br>
> < jackson.version > 1.9.9 </ jackson.version ><br>
> < hibernate.version > 4.2.7.SP1 </ hibernate.version ><br>
> <!-- Locations --><br>
> < outputDirectory > ${project.build.directory}/unpacked </ outputDirectory ><br>
> < outputDirectoryConf ><br>
> ${outputDirectory}/apache-tomcat-${tomcat.version}/conf </<br>
> outputDirectoryConf ><br>
> < outputDirectoryForWar ><br>
> ${outputDirectory}/apache-tomcat-${tomcat.version}/webapps/keycloak<br>
> </ outputDirectoryForWar ><br>
> < outputDirectoryForLibs ><br>
> ${outputDirectory}/apache-tomcat-${tomcat.version}/lib </<br>
> outputDirectoryForLibs ><br>
> < configFile ><br>
> ${outputDirectoryForWar}/WEB-INF/classes/META-INF/keycloak-server.json </<br>
> configFile ><br>
> </ properties ><br>
> < dependencies /><br>
> < build ><br>
> < plugins ><br>
> < plugin ><br>
> < groupId > org.apache.maven.plugins </ groupId ><br>
> < artifactId > maven-deploy-plugin </ artifactId ><br>
> < configuration ><br>
> < skip > true </ skip ><br>
> </ configuration ><br>
> </ plugin ><br>
> < plugin ><br>
> < groupId > org.apache.maven.plugins </ groupId ><br>
> < artifactId > maven-dependency-plugin </ artifactId ><br>
> < executions ><br>
> <!-- Get Tomcat --><br>
> < execution ><br>
> < id > unpack </ id ><br>
> < phase > prepare-package </ phase ><br>
> < goals ><br>
> < goal > unpack </ goal ><br>
> </ goals ><br>
> < configuration ><br>
> <!--useJvmChmod>false</useJvmChmod--><br>
> < artifactItems ><br>
> < artifactItem ><br>
> < groupId > org.apache.tomcat </ groupId ><br>
> < artifactId > tomcat </ artifactId ><br>
> < version > ${tomcat.version} </ version ><br>
> < type > tar.gz </ type ><br>
> < outputDirectory > ${outputDirectory} </ outputDirectory ><br>
> </ artifactItem ><br>
> </ artifactItems ><br>
> </ configuration ><br>
> </ execution ><br>
> <!-- Get keycloak --><br>
> < execution ><br>
> < id > get-keycloak </ id ><br>
> < phase > prepare-package </ phase ><br>
> < goals ><br>
> < goal > unpack </ goal ><br>
> </ goals ><br>
> < configuration ><br>
> < artifactItems ><br>
> < artifactItem ><br>
> < groupId > org.keycloak </ groupId ><br>
> < artifactId > keycloak-server </ artifactId ><br>
> < version > ${project.parent.version} </ version ><br>
> < type > war </ type ><br>
> < outputDirectory > ${outputDirectoryForWar} </ outputDirectory ><br>
> </ artifactItem ><br>
> </ artifactItems ><br>
> </ configuration ><br>
> </ execution ><br>
> <!-- Get dependencies --><br>
> < execution ><br>
> < id > mimic-jboss-6.2 </ id ><br>
> < phase > prepare-package </ phase ><br>
> < goals ><br>
> < goal > copy </ goal ><br>
> </ goals ><br>
> < configuration ><br>
> < artifactItems ><br>
> < dependency ><br>
> < groupId > org.apache.httpcomponents </ groupId ><br>
> < artifactId > httpclient </ artifactId ><br>
> < version > 4.2.6 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ dependency ><br>
> < dependency ><br>
> < groupId > org.apache.httpcomponents </ groupId ><br>
> < artifactId > httpcore </ artifactId ><br>
> < version > 4.2.5 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ dependency ><br>
> < dependency ><br>
> < groupId > commons-logging </ groupId ><br>
> < artifactId > commons-logging </ artifactId ><br>
> < version > 1.1.1 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ dependency ><br>
> < dependency ><br>
> < groupId > commons-io </ groupId ><br>
> < artifactId > commons-io </ artifactId ><br>
> < version > 2.1 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ dependency ><br>
> <!-- Mimic JBoss 6.2 --><br>
> < artifactItem ><br>
> < groupId > org.jboss.resteasy </ groupId ><br>
> < artifactId > resteasy-jaxrs </ artifactId ><br>
> < version > ${jax.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.jboss.resteasy </ groupId ><br>
> < artifactId > async-http-servlet-3.0 </ artifactId ><br>
> < version > ${jax.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.jboss.resteasy </ groupId ><br>
> < artifactId > jaxrs-api </ artifactId ><br>
> < version > ${jax.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.jboss.resteasy </ groupId ><br>
> < artifactId > resteasy-jaxb-provider </ artifactId ><br>
> < version > ${jax.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.jboss.resteasy </ groupId ><br>
> < artifactId > resteasy-jackson-provider </ artifactId ><br>
> < version > ${jax.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.jboss.resteasy </ groupId ><br>
> < artifactId > resteasy-multipart-provider </ artifactId ><br>
> < version > ${jax.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> <!-- This needs Bouncycastle<br>
> <artifactItem><br>
> <groupId>org.jboss.resteasy</groupId><br>
> <artifactId>resteasy-crypto</artifactId><br>
> <version>${jax.version}</version><br>
> <type>jar</type><br>
> <outputDirectory>${outputDirectoryForLibs}</outputDirectory><br>
> </artifactItem><br>
> --><br>
> < artifactItem ><br>
> < groupId > org.jboss.resteasy </ groupId ><br>
> < artifactId > tjws </ artifactId ><br>
> < version > ${jax.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.scannotation </ groupId ><br>
> < artifactId > scannotation </ artifactId ><br>
> < version > 1.0.3 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.codehaus.jackson </ groupId ><br>
> < artifactId > jackson-mapper-asl </ artifactId ><br>
> < version > ${jackson.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.codehaus.jackson </ groupId ><br>
> < artifactId > jackson-core-asl </ artifactId ><br>
> < version > ${jackson.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.codehaus.jackson </ groupId ><br>
> < artifactId > jackson-jaxrs </ artifactId ><br>
> < version > ${jackson.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.codehaus.jackson </ groupId ><br>
> < artifactId > jackson-xc </ artifactId ><br>
> < version > ${jackson.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.infinispan </ groupId ><br>
> < artifactId > infinispan-core </ artifactId ><br>
> < version > 5.2.7.Final </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.hibernate </ groupId ><br>
> < artifactId > hibernate-core </ artifactId ><br>
> < version > ${hibernate.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.hibernate </ groupId ><br>
> < artifactId > hibernate-entitymanager </ artifactId ><br>
> < version > ${hibernate.version} </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.hibernate.javax.persistence </ groupId ><br>
> < artifactId > hibernate-jpa-2.0-api </ artifactId ><br>
> < version > 1.0.1.Final </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.jboss.logging </ groupId ><br>
> < artifactId > jboss-logging </ artifactId ><br>
</div></div>> < version > <a href="http://3.1.2.GA" rel="noreferrer" target="_blank">3.1.2.GA</a> </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.jboss.spec.javax.transaction </ groupId ><br>
> < artifactId > jboss-transaction-api_1.1_spec </ artifactId ><br>
> < version > 1.0.1.Final </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > dom4j </ groupId ><br>
> < artifactId > dom4j </ artifactId ><br>
> < version > 1.6.1 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.hibernate.common </ groupId ><br>
> < artifactId > hibernate-commons-annotations </ artifactId ><br>
> < version > 4.0.1.Final </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.javassist </ groupId ><br>
> < artifactId > javassist </ artifactId ><br>
> < version > 3.18.1-GA </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > antlr </ groupId ><br>
> < artifactId > antlr </ artifactId ><br>
> < version > 2.7.7 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > javax.mail </ groupId ><br>
> < artifactId > mail </ artifactId ><br>
> < version > 1.4.5 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > com.google.zxing </ groupId ><br>
> < artifactId > core </ artifactId ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > com.google.zxing </ groupId ><br>
> < artifactId > javase </ artifactId ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > com.icegreen </ groupId ><br>
> < artifactId > greenmail </ artifactId ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > de.idyl </ groupId ><br>
> < artifactId > winzipaes </ artifactId ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > xml-apis </ groupId ><br>
> < artifactId > xml-apis </ artifactId ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.slf4j </ groupId ><br>
> < artifactId > slf4j-api </ artifactId ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> < artifactItem ><br>
> < groupId > org.slf4j </ groupId ><br>
> < artifactId > slf4j-simple </ artifactId ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
> </ artifactItems ><br>
> </ configuration ><br>
> </ execution ><br>
> <!-- Get PostgreSQL driver --><br>
> < execution ><br>
> < id > get-postgresql-jdbc-driver </ id ><br>
> < phase > prepare-package </ phase ><br>
> < goals ><br>
> < goal > copy </ goal ><br>
> </ goals ><br>
> < configuration ><br>
> < artifactItems ><br>
> mysql:mysql-connector-java<br>
> < artifactItem ><br>
> < groupId > mysql </ groupId ><br>
> < artifactId > mysql-connector-java </ artifactId ><br>
> < version > 5.1.34 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
><br>
> < artifactItem ><br>
> < groupId > org.postgresql </ groupId ><br>
> < artifactId > postgresql </ artifactId ><br>
> < version > 9.4-1200-jdbc41 </ version ><br>
> < type > jar </ type ><br>
> < outputDirectory > ${outputDirectoryForLibs} </ outputDirectory ><br>
> </ artifactItem ><br>
><br>
> </ artifactItems ><br>
> </ configuration ><br>
> </ execution ><br>
> </ executions ><br>
> </ plugin ><br>
> <!-- Setup data-source --><br>
> < plugin ><br>
> < artifactId > maven-resources-plugin </ artifactId ><br>
> < version > 2.7 </ version ><br>
> < executions ><br>
> < execution ><br>
> < id > setup-data-source </ id ><br>
> < phase > package </ phase ><br>
> < goals ><br>
> < goal > copy-resources </ goal ><br>
> </ goals ><br>
> < configuration ><br>
> < outputDirectory > ${outputDirectoryConf} </ outputDirectory ><br>
> < encoding > UTF-8 </ encoding ><br>
> < resources ><br>
> < resource ><br>
> < directory > . </ directory ><br>
> < includes ><br>
> < include > context.xml </ include ><br>
> </ includes ><br>
> < filtering > false </ filtering ><br>
> </ resource ><br>
> </ resources ><br>
> </ configuration ><br>
> </ execution ><br>
> </ executions ><br>
> </ plugin ><br>
> <!-- Fix keyclock-configuration --><br>
> < plugin ><br>
> < groupId > com.google.code.maven-replacer-plugin </ groupId ><br>
> < artifactId > replacer </ artifactId ><br>
> < version > 1.5.3 </ version ><br>
> < executions ><br>
> < execution ><br>
> < id > fix-data-source </ id ><br>
> < phase > package </ phase ><br>
> < goals ><br>
> < goal > replace </ goal ><br>
> </ goals ><br>
> </ execution ><br>
> </ executions ><br>
> < configuration ><br>
> < file > ${configFile} </ file ><br>
> < replacements ><br>
> <!-- fix-data-source --><br>
> < replacement ><br>
> < token > java:jboss/datasources/KeycloakDS </ token ><br>
> < value > java:/comp/env/jdbc/KeycloakDS </ value ><br>
> </ replacement ><br>
> <!-- Set Tomcat configuration-dir --><br>
> < replacement ><br>
> < token > jboss.server.config.dir} </ token ><br>
> < value > catalina.home}/conf </ value ><br>
> </ replacement ><br>
> </ replacements ><br>
> </ configuration ><br>
> </ plugin ><br>
> <!-- Repackage filled-Tomcat into tag.gz --><br>
> < plugin ><br>
> < artifactId > maven-assembly-plugin </ artifactId ><br>
> < version > 2.4 </ version ><br>
> < executions ><br>
> < execution ><br>
> < id > assemble </ id ><br>
> < phase > package </ phase ><br>
> < goals ><br>
> < goal > single </ goal ><br>
> </ goals ><br>
> < configuration ><br>
> < tarLongFileMode > gnu </ tarLongFileMode ><br>
> < descriptors ><br>
> < descriptor > assembly.xml </ descriptor ><br>
> </ descriptors ><br>
> < outputDirectory > target </ outputDirectory ><br>
> < workDirectory > target/assembly/work </ workDirectory ><br>
> < appendAssemblyId > false </ appendAssemblyId ><br>
> </ configuration ><br>
> </ execution ><br>
> </ executions ><br>
> </ plugin ><br>
> </ plugins ><br>
> </ build ><br>
> </ project ><br>
><br>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br></div>