Details

    • Type: Task Task
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Similar issues:
      KULRICE-11406Cannot create peopleFlow docs on rice env2 or env8
      KULRICE-7123Rice 2.1 VCT: Ensure Env4 & Env5 are configured for 2.1 Version Compatibility Testing
      KULRICE-9241standaloneapp Identity KRAD Lookup screens blank in env1 & env2
      KULRICE-13816Install AppDynamics Agents for Rice EnvX (Env2?)
      KULRICE-10608JS Error on env2 KRAD kitchen sink Progressive Disclosure tab (page functionality broken)
      KULRICE-5833Dev config that mimics the env4 + env5 config from KULRICE-5665 for developers
      KULRICE-11295Unable to change rule action from Validation to Route to Peopleflow / Notify PeopleFlow
      KULRICE-11774Create performance test environment: Standalone Server Oracle, Rice Sample App Client Oracle, KRAD Client Oracle
      KULRICE-13925Rebuild env2/6 as jdk7 boxes
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required

      Description

      With the introduction of the ojb-1.0.4-patch9 to Rice 2.6 (KULRICE-14265) Java 8 is required. Because of that all our Rice 2.6 testing should be done with Java 8.

      Upgrade the deploy job and environments to use Java 8.

      FYI:
      Messages such as Unsupported major.minor version 52.0 hint on a java version compatibility issue.
      Java 8 = 52
      Java 7 = 51

        Issue Links

          Activity

          Hide
          Claus Niesen added a comment - - edited

          To get tomcat running under Java 8 in env2 I did the following:

          • On the ci.kuali.org server:
            • scp -r /usr/java/jdk8-1.8.0-u11 root@env2.rice.kuali.org:/usr/java/
          • On env2.rice.kuali.org server:
            • {{ln -s /usr/java/jdk8-1.8.0-u11/ /usr/java/jdk8
              Now Java 8 is installed. Next we need to install a never version of tomcat. The older version has issue with java 8.
            • wget http://mirrors.ibiblio.org/apache/tomcat/tomcat-7/v7.0.63/bin/apache-tomcat-7.0.63.tar.gz
            • tar -zxvf apache-tomcat-7.0.63.tar.gz -C /usr/local/
            • cp /usr/local/tomcat/lib/mysql-connector-java-5.1.26.jar /usr/local/apache-tomcat-7.0.63/lib/
            • cp /usr/local/tomcat/lib/spring-instrument-tomcat-4.1.4.RELEASE.jar /usr/local/apache-tomcat-7.0.63/lib/
            • mv /usr/local/apache-tomcat-7.0.63/conf/server.xml /usr/local/apache-tomcat-7.0.63/conf/server.xml.dist
            • cp /usr/local/tomcat/conf/server.xml /usr/local/apache-tomcat-7.0.63/conf/
            • mv /usr/local/apache-tomcat-7.0.63/conf/web.xml /usr/local/apache-tomcat-7.0.63/conf/web.xml.dist
            • cp /usr/local/tomcat/conf/web.xml /usr/local/apache-tomcat-7.0.63/conf/
            • unlink /usr/local/tomcat
            • ln -s /usr/local/apache-tomcat-7.0.63 /usr/local/tomcat
            • chown -R tomcat /usr/local/apache-tomcat-7.0.63/
            • chgrp -R tomcat /usr/local/apache-tomcat-7.0.63/
            • rm apache-tomcat-7.0.63.tar.gz
              Tomcat is run under the tomcat user. (See last command in /etc/rc.local which starts tomcat on server bootup.) Tomcat uses the environment variable to determine the java location.
            • Modify JAVA_HOME in /home/tomcat/.bashrc to point to /usr/java/jdk8
              That's it. Reboot and verify.
            • reboot
          Show
          Claus Niesen added a comment - - edited To get tomcat running under Java 8 in env2 I did the following: On the ci.kuali.org server: scp -r /usr/java/jdk8-1.8.0-u11 root@env2.rice.kuali.org:/usr/java/ On env2.rice.kuali.org server: {{ln -s /usr/java/jdk8-1.8.0-u11/ /usr/java/jdk8 Now Java 8 is installed. Next we need to install a never version of tomcat. The older version has issue with java 8. wget http://mirrors.ibiblio.org/apache/tomcat/tomcat-7/v7.0.63/bin/apache-tomcat-7.0.63.tar.gz tar -zxvf apache-tomcat-7.0.63.tar.gz -C /usr/local/ cp /usr/local/tomcat/lib/mysql-connector-java-5.1.26.jar /usr/local/apache-tomcat-7.0.63/lib/ cp /usr/local/tomcat/lib/spring-instrument-tomcat-4.1.4.RELEASE.jar /usr/local/apache-tomcat-7.0.63/lib/ mv /usr/local/apache-tomcat-7.0.63/conf/server.xml /usr/local/apache-tomcat-7.0.63/conf/server.xml.dist cp /usr/local/tomcat/conf/server.xml /usr/local/apache-tomcat-7.0.63/conf/ mv /usr/local/apache-tomcat-7.0.63/conf/web.xml /usr/local/apache-tomcat-7.0.63/conf/web.xml.dist cp /usr/local/tomcat/conf/web.xml /usr/local/apache-tomcat-7.0.63/conf/ unlink /usr/local/tomcat ln -s /usr/local/apache-tomcat-7.0.63 /usr/local/tomcat chown -R tomcat /usr/local/apache-tomcat-7.0.63/ chgrp -R tomcat /usr/local/apache-tomcat-7.0.63/ rm apache-tomcat-7.0.63.tar.gz Tomcat is run under the tomcat user. (See last command in /etc/rc.local which starts tomcat on server bootup.) Tomcat uses the environment variable to determine the java location. Modify JAVA_HOME in /home/tomcat/.bashrc to point to /usr/java/jdk8 That's it. Reboot and verify. reboot
          Hide
          Claus Niesen added a comment - - edited

          To get CI deploy the WAR file to the environment:

          Unfortunately I haven't been able to figure out why deploy to env2 fails. I given up on that and just use scripts to deploy the war:

          • disable the following commands in the CI job
            #cd $WORKSPACE/rice-middleware/sampleapp
            mvn30 initialize -Pkdo -Ddeploy.env=$DEPLOYENV -Dmonitoring.enabled=$MONITORINGENABLED -Djdbc.reset.skip=true
          • Add
            scp -r $WORKSPACE/db root@env$DEPLOYENV.rice.kuali.org:rice-impex/
            ssh root@env$DEPLOYENV.rice.kuali.org rice-impex/impex.sh
            
            scp $WORKSPACE/rice-middleware/sampleapp/target/rice-sampleapp-2.6.0-M1-SNAPSHOT.war root@env$DEPLOYENV.rice.kuali.org:/usr/local/tomcat/webapps/ROOT.war

            Notice the version number. It would be nice not to hard code this.

          Create the /root/rice-impex/ directory and with the following file.

          impex.sh
          /opt/asf/mvn/bin/mvn clean install -Pdb,mysql -Dimpex.dba.username=<dba-username> -Dimpex.dba.password=<dba-passwd> -Dimpex.dba.url=jdbc:mysql://mysql.rice.kuali.org -Dimpex.database=<db-name> -f db/impex/master/pom.xml
          

          Make sure the file is executable (chmod u+w impex.sh).

          One thing that didn't work is the ACUNETIX key file upload. This file is needed so that ACUNETIX can perform a security scan against the environment. The file gets uploaded before tomcat extracted the WAR file and once tomcat does this we loose the uploaded key file. To fix that put the sleep 5m statement before the scp of the ACUNETIX file. The 5 minute delay should allow the extraction of the war file.

          Show
          Claus Niesen added a comment - - edited To get CI deploy the WAR file to the environment: Unfortunately I haven't been able to figure out why deploy to env2 fails. I given up on that and just use scripts to deploy the war: disable the following commands in the CI job #cd $WORKSPACE/rice-middleware/sampleapp mvn30 initialize -Pkdo -Ddeploy.env=$DEPLOYENV -Dmonitoring.enabled=$MONITORINGENABLED -Djdbc.reset.skip=true Add scp -r $WORKSPACE/db root@env$DEPLOYENV.rice.kuali.org:rice-impex/ ssh root@env$DEPLOYENV.rice.kuali.org rice-impex/impex.sh scp $WORKSPACE/rice-middleware/sampleapp/target/rice-sampleapp-2.6.0-M1-SNAPSHOT.war root@env$DEPLOYENV.rice.kuali.org:/usr/local/tomcat/webapps/ROOT.war Notice the version number. It would be nice not to hard code this. Create the /root/rice-impex/ directory and with the following file. impex.sh /opt/asf/mvn/bin/mvn clean install -Pdb,mysql -Dimpex.dba.username=<dba-username> -Dimpex.dba.password=<dba-passwd> -Dimpex.dba.url=jdbc:mysql: //mysql.rice.kuali.org -Dimpex.database=<db-name> -f db/impex/master/pom.xml Make sure the file is executable ( chmod u+w impex.sh ). One thing that didn't work is the ACUNETIX key file upload. This file is needed so that ACUNETIX can perform a security scan against the environment. The file gets uploaded before tomcat extracted the WAR file and once tomcat does this we loose the uploaded key file. To fix that put the sleep 5m statement before the scp of the ACUNETIX file. The 5 minute delay should allow the extraction of the war file.
          Hide
          Claus Niesen added a comment -

          Jeff, it looks like the changes are working. The following still needs to be done:

          • upgrade env4 to Java 8 (see two comments above on how to do it)
          • ensure that all jobs are running successfully (unit test, integration tests, deploys, afts)
          • remove Java 8 specific jobs since we don't need them anymore:
            • rice-2.6-deploy-functional-env15-rice-sampleapp
            • rice-2.6-deploy-functional-env3-jdk8-krad-sampleapp
            • rice-2.6-deploy-functional-env3-rice-sampleapp-like-env2
            • rice-2.6-deploy-functional-env5-rice-rest
            • rice-2.6-deploy-functional-env5-rice-sampleapp-test
            • rice-2.6-test-env2-rice-sampleapp-SHANNON (check with Shannon)
            • rice-2.6-test-functional-env15-jenkins-jdk8-rice-sampleapp
            • rice-2.6-test-functional-env3-jenkins-jdk8-krad-sampleapp
            • rice-2.6-test-integration-jdk8-mysql
            • rice-2.6-test-integration-mysql-qs-issue
            • rice-2.6-test-regression-env15-jenkins-jdk8-rice-sampleapp
            • rice-2.6-test-regression-env3-jenkins-jdk8-krad-sampleapp
          Show
          Claus Niesen added a comment - Jeff , it looks like the changes are working. The following still needs to be done: upgrade env4 to Java 8 (see two comments above on how to do it) ensure that all jobs are running successfully (unit test, integration tests, deploys, afts) remove Java 8 specific jobs since we don't need them anymore: rice-2.6-deploy-functional-env15-rice-sampleapp rice-2.6-deploy-functional-env3-jdk8-krad-sampleapp rice-2.6-deploy-functional-env3-rice-sampleapp-like-env2 rice-2.6-deploy-functional-env5-rice-rest rice-2.6-deploy-functional-env5-rice-sampleapp-test rice-2.6-test-env2-rice-sampleapp-SHANNON (check with Shannon) rice-2.6-test-functional-env15-jenkins-jdk8-rice-sampleapp rice-2.6-test-functional-env3-jenkins-jdk8-krad-sampleapp rice-2.6-test-integration-jdk8-mysql rice-2.6-test-integration-mysql-qs-issue rice-2.6-test-regression-env15-jenkins-jdk8-rice-sampleapp rice-2.6-test-regression-env3-jenkins-jdk8-krad-sampleapp
          Hide
          Jeff Ruch added a comment -

          Update env4
          Updated rice-2.6-deploy-functional-env4-krad-sampleapp
          Updated rice-2.6-test-functional-env4-jenkins-krad-sampleapp
          Deleted jobs as suggested

          Show
          Jeff Ruch added a comment - Update env4 Updated rice-2.6-deploy-functional-env4-krad-sampleapp Updated rice-2.6-test-functional-env4-jenkins-krad-sampleapp Deleted jobs as suggested
          Hide
          Jeff Ruch added a comment -

          env4 functional test has issues, but the priority of this ticket has been dropped.

          Show
          Jeff Ruch added a comment - env4 functional test has issues, but the priority of this ticket has been dropped.

            People

            • Assignee:
              Jeff Ruch
              Reporter:
              Claus Niesen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel