10 Replies Latest reply on Aug 27, 2011 11:19 PM by sureshbc

    How to Package Gatein with JBoss AS 6.x

    meghaattcs

      Hi,

      I am new to Gatein Portal. I want to know how to package Gatein with Jboss AS 6.x

      I have already checked out Gatein from http://anonsvn.jboss.org/repos/gatein/

      But I do not know how to build Gatein. What I see under the directories is there is a

      http://anonsvn.jboss.org/repos/gatein/portal/trunk/packaging/jboss-as6/ folder.

      How should I package Gatein with Jboss AS 6.x ?


      Note: Am trying to perform this activity in Windows environment.


      Any help is appreciated.


      Thanks in advance.


      Regards,

      Megha

        • 1. How to Package Gatein with JBoss AS 6.x
          claprun

          mvn clean install -Ppkg-jbossas6

          Note that the packaging for AS 6 is still in flux and we're still testing things.

          • 2. How to Package Gatein with JBoss AS 6.x
            minimike

            Hello Chris,

             

            Do I've to add a special repository?

             

            [INFO] ------------------------------------------------------------------------

            [ERROR] Failed to execute goal on project exo.portal.packaging.jboss6.pkg: Could not resolve dependencies for project org.exoplatform.portal:exo.portal.packaging.jboss6.pkg:pom:3.2.0-Beta01-SNAPSHOT: Failure to find org.exoplatform.portal:exo.portal.server.jboss.plugin:jar:3.2.0-Beta01-SNAPSHOT in http://repository.apache.org/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced -> [Help 1]

             

            I'm using Scientificlinux 6 (similar to RHEL6) OpenJDK 6, an with OpenJDK6 compiled Jboss 6 Final.

            Gatein from SVN seems to be compiled successfull but I've need it to package.

            For me it's not allowed to choose any propertary software where will comes from Oracle. Also I've not the permission to use MySQL or Glassfish. So I've to  evaluate Jboss and I will take an deeper look on Gatein.

             

            kind regards

            Darko Hojnik

            • 3. How to Package Gatein with JBoss AS 6.x
              mstruk

              This exact problem plus some others have been fixed. Update from trunk, and try building again. It should pass ...

              • 4. How to Package Gatein with JBoss AS 6.x
                minimike

                Hello Marko,

                 

                I will it try it soon . But now I've compiled Jboss 5.1 with OpenJDK6 and I don't get exeptions any more. Almost the same after I've compiled and installed GateIn with OpenJDK6 on my with the OpenJDK self compiled Jboss.

                • 5. Re: How to Package Gatein with JBoss AS 6.x
                  klimovsk

                  Hello Marko, please help me!

                   

                  I also have "Could not resolve dependencies" problem when try to build and package GateIn for JBoss AS6 from trunk. At the and of may all was ok, but now I have:

                  (I start build process by calling "mvn clean install -DskipTests -Ppkg-jbossas6 -Dexo.projects.directory.dependencies=$CONTAINERS_DIR")

                   

                  [INFO] GateIn JBoss AS 6.x.x packaging ................... SUCCESS [0.119s]

                  [INFO] GateIn for JBoss AS 6.x.x packaging ............... FAILURE [1:06.517s]

                  [INFO] TestSuite for GateIn .............................. SKIPPED

                  [INFO] Selenium Sniff Test for GateIn .................... SKIPPED

                  [INFO] GateIn Portal Examples - WebUI based samples ...... SKIPPED

                  [INFO] ------------------------------------------------------------------------

                  [INFO] BUILD FAILURE

                  [INFO] ------------------------------------------------------------------------

                  [INFO] Total time: 11:27.095s

                  [INFO] Finished at: Wed Jun 22 03:58:06 EDT 2011

                  [INFO] Final Memory: 108M/284M

                  [INFO] ------------------------------------------------------------------------

                  [ERROR] Failed to execute goal on project exo.portal.packaging.jboss6.pkg: Could not resolve dependencies for project org.exoplatform.portal:exo.portal.packaging.jboss6.pkg:pom:3.2.0-M02-SNAPSHOT: Failed to collect dependencies for [commons-beanutils:commons-beanutils:jar:1.8.3 (compile), commons-chain:commons-chain:jar:1.2 (compile), commons-codec:commons-codec:jar:1.3 (compile), commons-dbcp:commons-dbcp:jar:1.4 (compile), commons-digester:commons-digester:jar:1.8.1 (compile), commons-fileupload:commons-fileupload:jar:1.2.1 (compile), commons-httpclient:commons-httpclient:jar:3.1 (compile), commons-io:commons-io:jar:1.3.2 (compile), commons-lang:commons-lang:jar:2.6 (compile), commons-pool:commons-pool:jar:1.5.5 (compile), org.jboss.cache:jbosscache-core:jar:3.2.6.GA (compile), org.jgroups:jgroups:jar:2.11.1.Final (compile), org.jboss.mc-int:jboss-mc-int-common:jar:2.2.0.Alpha2 (compile), org.jboss.mc-int:jboss-mc-int-servlet:jar:2.2.0.Alpha2 (compile), org.exoplatform.kernel:exo.kernel.commons:jar:2.3.0-CR2 (compile), org.exoplatform.kernel:exo.kernel.component.cache:jar:2.3.0-CR2 (compile), org.exoplatform.kernel:exo.kernel.component.command:jar:2.3.0-CR2 (compile), org.exoplatform.kernel:exo.kernel.component.common:jar:2.3.0-CR2 (compile), org.exoplatform.kernel:exo.kernel.container:jar:2.3.0-CR2 (compile), org.exoplatform.kernel:exo.kernel.mc-int:jar:2.3.0-CR2 (compile), org.exoplatform.kernel:exo.kernel.mc-kernel-extras:jar:2.3.0-CR2 (compile), org.exoplatform.kernel:exo.kernel.component.ext.cache.impl.jboss.v3:jar:2.3.0-CR2 (compile), org.exoplatform.core:exo.core.component.ldap:jar:2.4.0-CR2 (compile), org.exoplatform.core:exo.core.component.organization.api:jar:2.4.0-CR2 (compile), org.exoplatform.core:exo.core.component.database:jar:2.4.0-CR2 (compile), org.exoplatform.core:exo.core.component.organization.jdbc:jar:2.4.0-CR2 (compile), org.exoplatform.core:exo.core.component.organization.ldap:jar:2.4.0-CR2 (compile), org.exoplatform.core:exo.core.component.security.core:jar:2.4.0-CR2 (compile), org.exoplatform.core:exo.core.component.document:jar:2.4.0-CR2 (compile), org.exoplatform.core:exo.core.component.xml-processing:jar:2.4.0-CR2 (compile), org.exoplatform.jcr:exo.jcr.component.core:jar:1.14.0-CR2 (compile), org.exoplatform.jcr:exo.jcr.component.ext:jar:1.14.0-CR2 (compile), org.exoplatform.jcr:exo.jcr.component.webdav:jar:1.14.0-CR2 (compile), org.exoplatform.jcr:exo.jcr.component.ftp:jar:1.14.0-CR2 (compile), org.exoplatform.jcr:exo.jcr.framework.web:jar:1.14.0-CR2 (compile), org.exoplatform.jcr:exo.jcr.framework.command:jar:1.14.0-CR2 (compile), org.exoplatform.ws:exo.ws.commons:jar:2.2.0-CR2 (compile), org.exoplatform.ws:exo.ws.frameworks.json:jar:2.2.0-CR2 (compile), org.exoplatform.ws:exo.ws.frameworks.servlet:jar:2.2.0-CR2 (compile), org.exoplatform.ws:exo.ws.rest.core:jar:2.2.0-CR2 (compile), org.exoplatform.ws:exo.ws.rest.ext:jar:2.2.0-CR2 (compile), org.reflext:reflext.api:jar:1.1.0-beta12 (compile), org.reflext:reflext.core:jar:1.1.0-beta12 (compile), org.reflext:reflext.jlr:jar:1.1.0-beta12 (compile), org.reflext:reflext.spi:jar:1.1.0-beta12 (compile), org.chromattic:chromattic.apt:jar:1.1.0-beta5 (compile), org.chromattic:chromattic.api:jar:1.1.0-beta5 (compile), org.chromattic:chromattic.spi:jar:1.1.0-beta5 (compile), org.chromattic:chromattic.common:jar:1.1.0-beta5 (compile), org.chromattic:chromattic.core:jar:1.1.0-beta5 (compile), org.chromattic:chromattic.metamodel:jar:1.1.0-beta5 (compile), org.chromattic:chromattic.ext:jar:1.1.0-beta5 (compile), org.picketlink.idm:picketlink-idm-api:jar:1.3.0.Alpha03 (compile), org.picketlink.idm:picketlink-idm-spi:jar:1.3.0.Alpha03 (compile), org.picketlink.idm:picketlink-idm-cache:jar:1.3.0.Alpha03 (compile), org.picketlink.idm:picketlink-idm-common:jar:1.3.0.Alpha03 (compile), org.picketlink.idm:picketlink-idm-core:jar:1.3.0.Alpha03 (compile), org.picketlink.idm:picketlink-idm-hibernate:jar:1.3.0.Alpha03 (compile), org.picketlink.idm:picketlink-idm-ldap:jar:1.3.0.Alpha03 (compile), org.gatein.common:common-common:jar:2.0.4-Beta03 (compile), org.gatein.common:common-logging:jar:2.0.4-Beta03 (compile), org.gatein.wci:wci-wci:jar:2.1.0-Beta03 (compile), org.gatein.wci:wci-jboss6:jar:2.1.0-Beta03 (compile), org.gatein.wci:wci-exo:jar:2.1.0-Beta03 (compile), org.gatein.pc:pc-api:jar:2.3.0-Beta04 (compile), org.gatein.pc:pc-portlet:jar:2.3.0-Beta04 (compile), org.gatein.pc:pc-controller:jar:2.3.0-Beta04 (compile), org.gatein.pc:pc-federation:jar:2.3.0-Beta04 (compile), org.gatein.pc:pc-mc:jar:2.3.0-Beta04 (compile), org.gatein.pc:pc-bridge:jar:2.3.0-Beta04 (compile), org.gatein.mop:mop-api:jar:1.1.0-Beta02 (compile), org.gatein.mop:mop-core:jar:1.1.0-Beta02 (compile), org.gatein.mop:mop-spi:jar:1.1.0-Beta02 (compile), org.gatein.captcha:simplecaptcha:jar:1.1.1-GA-Patch01 (compile), org.gatein.shindig:shindig-gadgets:jar:1.0-r790473-Patch06 (compile), org.gatein.shindig:shindig-features:jar:1.0-r790473-Patch06 (compile), org.gatein.shindig:shindig-common:jar:1.0-r790473-Patch06 (compile), org.gatein.shindig:shindig-social-api:jar:1.0-r790473-Patch06 (compile), org.exoplatform.portal:exo.portal.component.application-registry:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.common:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.identity:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.management:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.pc:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.portal:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.resources:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.scripting:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.web.api:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.web.controller:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.web.resources:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.web.security:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.component.web.server:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.webui.core:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.webui.dashboard:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.webui.eXo:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.webui.framework:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.webui.portal:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.webui.portlet:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.gadgets-core:jar:3.2.0-M02-SNAPSHOT (compile), javax.inject:javax.inject:jar:1 (compile), javax.activation:activation:jar:1.1.1 (compile), javax.jcr:jcr:jar:1.0 (compile), javax.portlet:portlet-api:jar:2.0 (compile), javax.annotation:jsr250-api:jar:1.0 (compile), javax.ws.rs:jsr311-api:jar:1.0 (compile), javax.resource:connector-api:jar:1.5 (compile), javax.ccpp:ccpp:jar:1.0 (compile), javax.xml.bind:jaxb-api:jar:2.1 (compile), com.sun.xml.bind:jaxb-impl:jar:2.1.7 (compile), javax.xml.stream:stax-api:jar:1.0-2 (compile), com.sun.xml.stream:sjsxp:jar:1.0.1 (compile), com.google.inject:guice:jar:2.0 (compile), com.google.inject.extensions:guice-jmx:jar:2.0 (compile), aopalliance:aopalliance:jar:1.0 (compile), asm:asm:jar:1.5.3 (compile), bouncycastle:bcmail-jdk14:jar:136 (compile), bouncycastle:bcprov-jdk14:jar:136 (compile), caja:caja:jar:r3375 (compile), caja:json_simple:jar:r1 (compile), oswego-concurrent:concurrent:jar:1.3.4 (compile), dom4j:dom4j:jar:1.6.1 (compile), howl:howl-logger:jar:0.1.11 (compile), net.sf.ehcache:ehcache:jar:1.6.0 (compile), com.jhlabs:filters:jar:2.0.235 (compile), com.google.guava:guava:jar:r09 (compile), org.codehaus.groovy:groovy-all:jar:1.7.6 (compile), org.htmlparser:htmlparser:jar:1.6 (compile), com.ibm.icu:icu4j:jar:3.8 (compile), jdom:jdom:jar:1.0 (compile), org.jibx:jibx-bind:jar:1.2.2 (compile), org.jibx:jibx-run:jar:1.2.2 (compile), joda-time:joda-time:jar:1.6 (compile), rhino:js:jar:1.6R7 (compile), org.jsecurity:jsecurity:jar:0.9.0 (compile), org.json:json:jar:20070829 (compile), de.odysseus.juel:juel-api:jar:2.2.3 (compile), de.odysseus.juel:juel-impl:jar:2.2.3 (compile), org.apache.lucene:lucene-core:jar:2.9.4 (compile), org.apache.lucene:lucene-memory:jar:2.9.4 (compile), org.apache.lucene:lucene-spellchecker:jar:2.9.4 (compile), net.sourceforge.nekohtml:nekohtml:jar:1.9.12 (compile), org.apache.pdfbox:pdfbox:jar:1.4.0 (compile), picocontainer:picocontainer:jar:1.1 (compile), org.apache.poi:poi:jar:3.6 (compile), org.apache.poi:poi-ooxml:jar:3.6 (compile), org.apache.poi:poi-scratchpad:jar:3.6 (compile), org.apache.portals.bridges:portals-bridges-common:jar:1.0.4 (compile), rome:rome:jar:0.9 (compile), org.apache.sanselan:sanselan:jar:0.97-incubator (compile), org.apache.ws.commons:ws-commons-util:jar:1.0.1 (compile), org.apache.xmlbeans:xmlbeans:jar:2.3.0 (compile), xpp3:xpp3:jar:1.1.4c (compile), com.thoughtworks.xstream:xstream:jar:1.3.1 (compile), net.oauth:core:jar:20080621 (compile), org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:jar:0.7.4 (compile), com.experlog:xapool:jar:1.5.0 (compile), xdoclet:xdoclet:jar:1.2.3 (compile), xdoclet:xdoclet-hibernate-module:jar:1.2.3 (compile), xdoclet:xdoclet-xdoclet-module:jar:1.2.3 (compile), xdoclet:xjavadoc:jar:1.2.3 (compile), org.apache.tika:tika-core:jar:0.7 (compile), org.apache.tika:tika-parsers:jar:0.7 (compile), com.google.javascript:closure-compiler:jar:r706 (compile), net.jcip:jcip-annotations:jar:1.0 (compile), org.exoplatform.portal:gatein-sample-portal:ear:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:gatein-sample-extension:ear:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:starter-gatein:ear:3.2.0-M02-SNAPSHOT (compile), org.gatein.integration:extension-ear-as6:ear:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.web.eXoResources:war:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.web.portal:war:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.gadgets-server:war:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.eXoGadgets:war:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.portlet.web:war:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.web.rest:war:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.portlet.exoadmin:war:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal:exo.portal.portlet.dashboard:war:3.2.0-M02-SNAPSHOT (compile), org.gatein.portal.examples.skins:gatein-sample-skin:war:3.2.0-M02-SNAPSHOT (compile), org.slf4j:slf4j-jdk14:jar:1.5.8 (test), org.hsqldb:hsqldb:jar:2.0.0 (test)]: Failed to read artifact descriptor for org.gatein.wci:wci-jboss6:jar:2.1.0-Beta03: Could not find artifact org.gatein.wci:wci-jboss:pom:2.1.0-Beta03-SNAPSHOT in jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/) -> [Help 1]

                  [ERROR]

                  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

                  [ERROR] Re-run Maven using the -X switch to enable full debug logging.

                   

                  as I can see the reason is:

                  Failed to read artifact descriptor for org.gatein.wci:wci-jboss6:jar:2.1.0-Beta03: Could not find artifact org.gatein.wci:wci-jboss:pom:2.1.0-Beta03-SNAPSHOT in jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/)

                  • 6. Re: How to Package Gatein with JBoss AS 6.x
                    minimike

                    Last time I've builded GateIn on Jboss 5,1 I used

                     

                    mvn -Ppkg-jbossas5 -Dexo.projects.directory.dependencies=/home/darko/JAVA/Project_Gatein/Appserver

                     

                    So I think it should be simillar for Jboss 6

                     

                    mvn -Ppkg-jbossas6 -Dexo.projects.directory.dependencies=/path/where/is/jboss/stored

                     

                     

                    cheers Darko

                    • 7. Re: How to Package Gatein with JBoss AS 6.x
                      minimike

                      Hello Paul,

                       

                      Did you add the Exo Maven Repo to you maven?

                       

                      The URL is http://maven2.exoplatform.org/content/groups/public

                       

                      I suggest Apache Archiva to manage repositories for maven

                      • 8. Re: How to Package Gatein with JBoss AS 6.x
                        klimovsk

                        Thanks, Darko for your reply.

                        I have Exo Maven Repo in my maven configs. I think that the problem was  in the version of jar (wci-jboss6-2.1.0-Beta03.jar), after I replace Beta03 with Beta02 my build become good. May be it is not reason, but this action resolve my problem.

                        • 9. Re: How to Package Gatein with JBoss AS 6.x
                          theute

                          Note that GateIn 3.2 M1 is now available packaged with JBoss AS6 in the download section

                          • 10. Re: How to Package Gatein with JBoss AS 6.x
                            sureshbc

                            Hi,

                             

                            I am new to Gatein portal and trying to package with jboss 6.I have checked out the Gatein from the trunk and downloaded the jboss 6 as a zip.Unzipped the jboss 6 in to the folder D:\Work\gateinNew\packaging\jboss-as6\pkg and executed the below from the directory D:\Work\gateinNew

                             

                            mvn clean install -Ppkg-jbossas -Dgatein.checkout.dir=D:\Work\gateinNew -Dexo.projects.directory.dependencies=D:\Work\gateinNew\packaging\jboss-as6\pkg -Dexo.projects.app.jboss.version=jboss6  -Dmaven.test.skip.exec=true

                             

                            But I am getting the below Error when Maven trying to build :

                             

                            [INFO] GateIn Portal Component Web Security .............. FAILURE [6:36.493s]

                                                                 ....

                             

                             

                            [INFO] ------------------------------------------------------------------------

                            [ERROR] Failed to execute goal on project exo.portal.component.web.security: Could not resolve dependencies for project org.exoplatform.portal:exo.portal.component.web.security:jar:3.2.0-M02-SNAPSHOT: Failed to collect dependencies for [org.exoplatfo

                            rm.kernel:exo.kernel.container:jar:2.3.0-CR4-CP01 (compile), org.exoplatform.core:exo.core.component.organization.api:jar:2.4.0-CR4 (compile), org.exoplatform.portal:exo.portal.component.common:jar:3.2.0-M02-SNAPSHOT (compile), org.exoplatform.portal

                            :exo.portal.component.web.controller:jar:3.2.0-M02-SNAPSHOT (compile), org.chromattic:chromattic.apt:jar:1.1.0-beta6 (compile), org.gatein.captcha:simplecaptcha:jar:1.1.1-GA-Patch01 (compile), org.exoplatform.portal:exo.portal.component.test.core:jar

                            :3.2.0-M02-SNAPSHOT (test), org.jboss.jbossas:jboss-as-tomcat:jar:5.1.0.GA (provided), org.gatein.wci:wci-wci:jar:2.1.0-Beta06 (compile), org.slf4j:slf4j-jdk14:jar:1.5.8 (test), org.hsqldb:hsqldb:jar:2.0.0 (test)]: Failed to read artifact descriptor

                            for apache-log4j:log4j:jar:1.2.14: Could not transfer artifact apache-log4j:log4j:pom:1.2.14 from/to repository.jboss.org (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/apache-log4j/log4j/1.2.14/log4j-1.2.1

                             

                             

                             

                            Any help is appreciated.

                             

                            Thanks in Advance.