3 Replies Latest reply on Jun 23, 2016 3:46 AM by Hristo Stoyanov

    Question about Errai 4 jar files

    Hristo Stoyanov Master

      Max,

      Do you know which of the below jar files does not belong in the WAR bundle? I tried to weed out all GWT specific jars that have no purpose at run time, still ...

       

          86500  2016-06-22 02:42   WEB-INF/lib/errai-cdi-server-4.0.0-SNAPSHOT.jar

           5466  2016-06-22 02:42   WEB-INF/lib/errai-jaxrs-provider-4.0.0-SNAPSHOT.jar

          12341  2016-06-22 02:42   WEB-INF/lib/errai-jboss-as-support-4.0.0-SNAPSHOT.jar

          17258  2016-06-22 02:42   WEB-INF/lib/errai-security-keycloak-4.0.0-SNAPSHOT.jar

          37097  2016-06-22 02:40   WEB-INF/lib/errai-ioc-bus-support-4.0.0-SNAPSHOT.jar

          86500  2016-06-22 02:42   WEB-INF/lib/errai-cdi-server-4.0.0-SNAPSHOT.jar

           5466  2016-06-22 02:42   WEB-INF/lib/errai-jaxrs-provider-4.0.0-SNAPSHOT.jar

          12341  2016-06-22 02:42   WEB-INF/lib/errai-jboss-as-support-4.0.0-SNAPSHOT.jar

          17258  2016-06-22 02:42   WEB-INF/lib/errai-security-keycloak-4.0.0-SNAPSHOT.jar

          93542  2016-06-22 02:40   WEB-INF/lib/errai-security-server-4.0.0-SNAPSHOT.jar

         592465  2016-06-22 02:40   WEB-INF/lib/errai-ioc-4.0.0-SNAPSHOT.jar

         433149  2016-06-22 02:40   WEB-INF/lib/errai-common-4.0.0-SNAPSHOT.jar

         810313  2016-06-22 02:40   WEB-INF/lib/errai-bus-4.0.0-SNAPSHOT.jar

         718374  2016-06-22 02:41   WEB-INF/lib/errai-codegen-4.0.0-SNAPSHOT.jar

          33612  2016-06-22 02:41   WEB-INF/lib/errai-javax-enterprise-4.0.0-SNAPSHOT.jar

          63366  2016-06-22 02:41   WEB-INF/lib/errai-config-4.0.0-SNAPSHOT.jar

          39034  2016-06-22 02:41   WEB-INF/lib/errai-cdi-shared-4.0.0-SNAPSHOT.jar

         410408  2016-06-22 02:40   WEB-INF/lib/errai-marshalling-4.0.0-SNAPSHOT.jar

          52213  2016-06-22 02:41   WEB-INF/lib/errai-codegen-gwt-4.0.0-SNAPSHOT.jar

        • 1. Re: Question about Errai 4 jar files
          Max Barkley Expert

          Hi Hristo,

           

          In that list, you shouldn't need to deploy:

          • errai-ioc-bus-support
          • errai-ioc
          • errai-javax-enterprise
          • errai-codegen-gwt
          • 2. Re: Question about Errai 4 jar files
            Hristo Stoyanov Master

            Thanks Max,

            My list above was a result of "trail-and-error" approach  and consulting some old appendix in the Errai 3.2 docs. I will try your suggestion and hopefully have nothing to report back!

            • 3. Re: Question about Errai 4 jar files
              Hristo Stoyanov Master

              Max,

              Here are the dependencies I can currently deploy with (without problems):

              ========================================================

              dependencies { 

                  compile project(":myapp-shared")

                  compile "com.mycompany.common:mycompany-utils:${mycompany_shared_version}"

                  compile "com.mycompany.common:mycompany-stripe:${mycompany_shared_version}"

                  compileOnly "org.slf4j:slf4j-api:${slf4j_version}"

               

                  // Java EE

                  compileOnly "javax:javaee-api:${java_ee_version}"

                  //Other compile dependencies

                  compile ("com.google.guava:guava:${guava_version}") {transitive=false}    

               

                  //Errai dependencies

                  compile "org.jboss.errai:errai-cdi-server:${errai_version}"

                  compile "org.jboss.errai:errai-jaxrs-provider:${errai_version}"

                  compile "org.jboss.errai:errai-jboss-as-support:${errai_version}"   

                  compile "org.jboss.errai:errai-security-keycloak:${errai_version}"

                  compile "org.jboss.errai:errai-security-server:${errai_version}"

                  compile "org.jboss.errai:errai-security-keycloak:${errai_version}"

                 

                  // Keycloak needed by Errai

                  compileOnly  "org.keycloak:keycloak-common:${keycloak_version}"

                  compileOnly  "org.keycloak:keycloak-core:${keycloak_version}"

                  compileOnly  "org.keycloak:keycloak-adapter-core:${keycloak_version}"

                  compileOnly  "org.keycloak:keycloak-servlet-oauth-client:${keycloak_version}"

                 

                  //This is required by Keycloak ejb security

                  compileOnly  "jboss:jboss-annotations-ejb3:${jboss_ejb3_version}"

                 

                  // Additional Keycloak artifacts

                  compile "org.keycloak:keycloak-admin-client:${keycloak_version}"

              }

               

              Here is the transitive dependency graph. I think I grab all the jars that need to be in the war transitively, but let me know if you see something that does not belong in the WAR bundle.

              Also notice how I ma forcing version upgrades for some packages - perhaps Errai 4 can upgrade them too? Also notice how I ma forcing all Java EE APIs to come from javax:javaee-api:7.0 . Why can Errai 4 do it too?

               

              ========================================

              runtime - Runtime dependencies for source set 'main'.

              +--- project :myapp-shared

              +--- com.mycompany.common:mycompany-utils:1.0.0-SNAPSHOT

              |    \--- org.slf4j:slf4j-api:1.7.21

              +--- com.mycompany.common:mycompany-stripe:1.0.0-SNAPSHOT

              |    +--- com.stripe:stripe-java:2.6.0

              |    |    \--- com.google.code.gson:gson:2.2.4

              |    \--- com.mycompany.common:mycompany-utils:1.0.0-SNAPSHOT (*)

              +--- com.google.guava:guava:20.0-SNAPSHOT

              +--- org.jboss.errai:errai-cdi-server:4.0.0-SNAPSHOT

              |    +--- org.jboss.errai:errai-common:4.0.0-SNAPSHOT

              |    |    +--- org.jboss.errai.reflections:reflections:4.0.0-SNAPSHOT

              |    |    |    +--- com.google.guava:guava:19.0.0.jbossorg-2 -> 20.0-SNAPSHOT

              |    |    |    +--- org.javassist:javassist:3.18.2-GA

              |    |    |    +--- org.slf4j:slf4j-api:1.7.7 -> 1.7.21

              |    |    |    \--- dom4j:dom4j:1.6.1

              |    |    |         \--- xml-apis:xml-apis:1.0.b2 -> 2.0.2

              |    |    +--- junit:junit:4.12

              |    |    |    \--- org.hamcrest:hamcrest-core:1.3

              |    |    +--- de.benediktmeurer.gwt-slf4j:gwt-slf4j:0.0.2

              |    |    \--- org.apache.commons:commons-lang3:3.1

              |    +--- org.jboss.errai:errai-bus:4.0.0-SNAPSHOT

              |    |    +--- org.jboss.errai:errai-common:4.0.0-SNAPSHOT (*)

              |    |    +--- org.jboss.errai:errai-config:4.0.0-SNAPSHOT

              |    |    +--- org.jboss.errai:errai-marshalling:4.0.0-SNAPSHOT

              |    |    |    +--- org.jboss.errai:errai-common:4.0.0-SNAPSHOT (*)

              |    |    |    +--- org.jboss.errai:errai-config:4.0.0-SNAPSHOT

              |    |    |    +--- org.jboss.errai:errai-codegen:4.0.0-SNAPSHOT

              |    |    |    |    +--- org.jboss.errai:errai-common:4.0.0-SNAPSHOT (*)

              |    |    |    |    +--- org.mvel:mvel2:2.2.8.Final

              |    |    |    |    \--- junit:junit:4.12 (*)

              |    |    |    +--- org.jboss.errai:errai-codegen-gwt:4.0.0-SNAPSHOT

              |    |    |    |    \--- org.jboss.errai:errai-codegen:4.0.0-SNAPSHOT (*)

              |    |    |    +--- javax.inject:javax.inject:1 -> javax:javaee-api:7.0

              |    |    |    |    \--- com.sun.mail:javax.mail:1.5.0

              |    |    |    |         \--- javax.activation:activation:1.1

              |    |    |    \--- javax.enterprise:cdi-api:1.2 -> javax:javaee-api:7.0 (*)

              |    |    +--- com.google.inject:guice:3.0

              |    |    |    +--- aopalliance:aopalliance:1.0

              |    |    |    \--- org.sonatype.sisu.inject:cglib:2.2.1-v20090111

              |    |    |         \--- asm:asm:3.1 -> org.ow2.asm:asm:5.0.3

              |    |    +--- javax.inject:javax.inject:1 -> javax:javaee-api:7.0 (*)

              |    |    +--- org.mvel:mvel2:2.2.8.Final

              |    |    +--- org.slf4j:slf4j-api:1.7.7 -> 1.7.21

              |    |    +--- junit:junit:4.12 (*)

              |    |    +--- org.javassist:javassist:3.18.2-GA

              |    |    +--- io.netty:netty-codec-http:4.0.12.Final

              |    |    |    +--- io.netty:netty-codec:4.0.12.Final

              |    |    |    |    \--- io.netty:netty-transport:4.0.12.Final

              |    |    |    |         \--- io.netty:netty-buffer:4.0.12.Final

              |    |    |    |              \--- io.netty:netty-common:4.0.12.Final

              |    |    |    \--- io.netty:netty-handler:4.0.12.Final

              |    |    |         +--- io.netty:netty-buffer:4.0.12.Final (*)

              |    |    |         +--- io.netty:netty-transport:4.0.12.Final (*)

              |    |    |         \--- io.netty:netty-codec:4.0.12.Final (*)

              |    |    +--- com.google.guava:guava:19.0.0.jbossorg-2 -> 20.0-SNAPSHOT

              |    |    \--- org.jgroups:jgroups:3.6.8.Final

              |    +--- org.jboss.errai:errai-config:4.0.0-SNAPSHOT

              |    \--- org.jboss.errai:errai-cdi-shared:4.0.0-SNAPSHOT

              |         \--- org.jboss.errai:errai-bus:4.0.0-SNAPSHOT (*)

              +--- org.jboss.errai:errai-jaxrs-provider:4.0.0-SNAPSHOT

              |    +--- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:1.0.0.Final -> javax:javaee-api:7.0 (*)

              |    \--- org.jboss.errai:errai-marshalling:4.0.0-SNAPSHOT (*)

              +--- org.jboss.errai:errai-jboss-as-support:4.0.0-SNAPSHOT

              |    \--- org.jboss.errai:errai-common:4.0.0-SNAPSHOT (*)

              +--- org.jboss.errai:errai-security-keycloak:4.0.0-SNAPSHOT

              |    +--- org.jboss.errai:errai-security-server:4.0.0-SNAPSHOT

              |    |    +--- org.jboss.errai:errai-bus:4.0.0-SNAPSHOT (*)

              |    |    +--- org.apache.deltaspike.core:deltaspike-core-api:1.5.1

              |    |    +--- org.jboss.resteasy:resteasy-cdi:3.0.16.Final -> javax:javaee-api:7.0 (*)

              |    |    +--- org.javassist:javassist:3.18.2-GA

              |    |    \--- org.jsoup:jsoup:1.8.3 -> 1.9.2

              |    +--- org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:1.0.0.Final

              |    +--- org.keycloak:keycloak-core:1.9.4.Final -> 1.9.8.Final

              |    |    +--- org.keycloak:keycloak-common:1.9.8.Final

              |    |    |    +--- org.bouncycastle:bcprov-jdk15on:1.52

              |    |    |    \--- org.bouncycastle:bcpkix-jdk15on:1.52

              |    |    |         \--- org.bouncycastle:bcprov-jdk15on:1.52

              |    |    +--- org.bouncycastle:bcprov-jdk15on:1.52

              |    |    +--- org.bouncycastle:bcpkix-jdk15on:1.52 (*)

              |    |    +--- com.fasterxml.jackson.core:jackson-core:2.5.4 -> 2.7.4

              |    |    \--- com.fasterxml.jackson.core:jackson-databind:2.5.4 -> 2.7.4

              |    |         +--- com.fasterxml.jackson.core:jackson-annotations:2.7.0 -> 2.7.4

              |    |         \--- com.fasterxml.jackson.core:jackson-core:2.7.4

              |    +--- org.keycloak:keycloak-adapter-core:1.9.4.Final -> 1.9.8.Final

              |    +--- org.keycloak:keycloak-servlet-oauth-client:1.9.4.Final -> 1.9.8.Final

              |    |    +--- org.bouncycastle:bcprov-jdk15on:1.52

              |    |    +--- org.keycloak:keycloak-core:1.9.8.Final (*)

              |    |    +--- org.keycloak:keycloak-adapter-spi:1.9.8.Final

              |    |    +--- org.keycloak:keycloak-adapter-core:1.9.8.Final

              |    |    \--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.2

              |    |         +--- org.apache.httpcomponents:httpcore:4.4.4 -> 4.4.5

              |    |         +--- commons-logging:commons-logging:1.2

              |    |         \--- commons-codec:commons-codec:1.9

              |    +--- org.apache.httpcomponents:httpclient:4.5 -> 4.5.2 (*)

              |    +--- org.slf4j:jcl-over-slf4j:1.7.7 -> 1.7.21

              |    |    \--- org.slf4j:slf4j-api:1.7.21

              |    +--- org.apache.deltaspike.core:deltaspike-core-api:1.5.1

              |    \--- org.jboss.logging:jboss-logging:3.2.1.Final -> 3.3.0.Final

              +--- org.jboss.errai:errai-security-server:4.0.0-SNAPSHOT (*)

              \--- org.keycloak:keycloak-admin-client:1.9.8.Final

                   \--- org.keycloak:keycloak-core:1.9.8.Final (*)

               

               

              (*) - dependencies omitted (listed previously)