1 Reply Latest reply on Feb 3, 2010 3:11 PM by artmunro

    Gatein SSO - CAS install on Tomcat deployment - cas plugin

    artmunro

      Hi all,

       

      I am attempting to install SSO using CAS for the Gatein Tomcat Deployment.  When I follow the instructions I get build errors for the plugin.

       

      Here is some more details...

      Gateing Beta 5 on Ubuntu 8

      Do the maven command for :  mvn -Pplugin-cas-install install

       

       

      my profile.xml is configured as the following....

      -->

      <profilesXml>

      <profiles>

      <profile>

      <id>gatein-cas-install</id>

      <properties>

      <!-- ChangeMe to your specific local environment -->

      <gatein.location>/usr/local/GateIn-3.0.0-Beta05</gatein.location>

      </properties>

      </profile>

      <profile>

      <id>plugin-cas-install</id>

      <properties>

      <!-- ChangeMe to your specific local environment -->

      <tomcat60.location>/usr/local/tomcat-cas-3.3.4</tomcat60.location>

      </properties>

      </profile>

       

       

      And I get the following error


      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to resolve artifact.

      Missing:
      ----------
      1) opensso:opensso:jar:8.0

        Try downloading the file manually from the project website.

        Then, install it using the command:
            mvn install:install-file -DgroupId=opensso -DartifactId=opensso -Dversion=8.0 -Dpackaging=jar -Dfile=/path/to/file

        Alternatively, if you host your own repository you can deploy the file there:
            mvn deploy:deploy-file -DgroupId=opensso -DartifactId=opensso -Dversion=8.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

        Path to dependency:
              1) org.gatein.sso:gatein-opensso-plugin:jar:trunk-SNAPSHOT
              2) opensso:opensso:jar:8.0

      2) opensso:amserver:jar:8.0

        Try downloading the file manually from the project website.

        Then, install it using the command:
            mvn install:install-file -DgroupId=opensso -DartifactId=amserver -Dversion=8.0 -Dpackaging=jar -Dfile=/path/to/file

        Alternatively, if you host your own repository you can deploy the file there:
            mvn deploy:deploy-file -DgroupId=opensso -DartifactId=amserver -Dversion=8.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

        Path to dependency:
              1) org.gatein.sso:gatein-opensso-plugin:jar:trunk-SNAPSHOT
              2) opensso:amserver:jar:8.0

      ----------
      2 required artifacts are missing.

      for artifact:
        org.gatein.sso:gatein-opensso-plugin:jar:trunk-SNAPSHOT

      from the specified remote repositories:
        central (http://repo1.maven.org/maven2),
        repository.jboss.org (http://repository.jboss.org/maven2/),
        snapshots.jboss.org (http://snapshots.jboss.org/maven2/),
        exo-int (http://maven2.exoplatform.org/rest/maven2),
        josso-m2-repo (http://repository.josso.org)

       

      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 17 seconds
      [INFO] Finished at: Wed Feb 03 11:21:06 EST 2010
      [INFO] Final Memory: 42M/63M
      [INFO] ------------------------------------------------------------------------
      root@ubuntu:/usr/local/GateinSRC/trunk#

        • 1. Re: Gatein SSO - CAS install on Tomcat deployment - cas plugin
          artmunro

          so got through that one by manually adding missing opensso jars ... NOW here is the next issue...

           

          Looks like the plugin is looking for the JBoss deployment structure and not the tomcat structure..

           

          /usr/local/GateIn-3.0.0-Beta05/deploy/gatein.ear/02portal.war

          /usr/local/GateIn-3.0.0-Beta05/webapps/portal.war

           

          see details below..

           

          thoughts on this??

           

          ------------------------------------------------------------------------
          [INFO] Building CAS Agent and Server Packages
          [INFO]    task-segment: [install]
          [INFO] ------------------------------------------------------------------------
          [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
          [INFO] [enforcer:enforce {execution: enforce-java-version}]
          [INFO] [enforcer:enforce {execution: enforce-maven-version}]
          [INFO] [resources:resources {execution: default-resources}]
          [INFO] Using 'UTF-8' encoding to copy filtered resources.
          [INFO] skip non existing resourceDirectory /usr/local/GateinSRC/trunk/packaging/cas/src/main/resources
          [INFO] [compiler:compile {execution: default-compile}]
          [INFO] No sources to compile
          [INFO] [resources:testResources {execution: default-testResources}]
          [INFO] Using 'UTF-8' encoding to copy filtered resources.
          [INFO] skip non existing resourceDirectory /usr/local/GateinSRC/trunk/packaging/cas/src/test/resources
          [INFO] [compiler:testCompile {execution: default-testCompile}]
          [INFO] No sources to compile
          [INFO] [surefire:test {execution: default-test}]
          [INFO] No tests to run.
          [INFO] [jar:jar {execution: default-jar}]
          [WARNING] JAR will be empty - no content was marked for inclusion!
          [INFO] [source:jar-no-fork {execution: attach-sources}]
          [INFO] No sources in project. Archive not created.
          [INFO] [antrun-extended:run {execution: agent-package}]
          [INFO] Executing tasks
               [echo] Preparing the CAS Agent for GateIn
             [delete] Deleting directory /usr/local/GateinSRC/trunk/packaging/cas/target/gatein
              [mkdir] Created dir: /usr/local/GateinSRC/trunk/packaging/cas/target/gatein
             [unjar] Expanding: /usr/local/GateIn-3.0.0-Beta05/deploy/gatein.ear/02portal.war into /usr/local/GateinSRC/trunk/packaging/cas/target/gatein/portal.war
          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] An Ant BuildException has occured: Error while expanding /usr/local/GateIn-3.0.0-Beta05/deploy/gatein.ear/02portal.war

          /usr/local/GateIn-3.0.0-Beta05/deploy/gatein.ear/02portal.war (No such file or directory)
          [INFO] ------------------------------------------------------------------------
          [INFO] For more information, run Maven with the -e switch
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 15 seconds
          [INFO] Finished at: Wed Feb 03 15:03:01 EST 2010
          [INFO] Final Memory: 42M/63M
          [INFO] ------------------------------------------------------------------------
          root@ubuntu:/usr/local/GateinSRC/trunk#