3 Replies Latest reply on Feb 1, 2007 6:15 PM by Rafael Morales

    Sakai 2.3 on JBoss - how to deploy?

    Rafael Morales Newbie

      Hello,

      I have tried successfully Sakai 2.3.x on Tomcat 5.5 but I need to
      finally deploy it into JBoss and I am a bit lost here. On Tomcat, maven
      puts files in the directories

      common/lib: JAR files (for Tomcat and applications)
      server/lib: JAR files (for Tomcat only)
      shared/lib: JAR files (for applications)
      webapps: WAR files (applications)
      components: component declarations? Empty directories with WEBAPPS subdirectories.

      My interpretation of JBoss documentation is that the mapping starts as

      TOMCAT JBOSS
      webapps -> deploy
      server/lib -> server/lib

      but then I got little idea about the rest. My thinking is that
      shared/lib would go to deploy but then I am doubtful on where to put the
      files deployed to common/lib and the components directory.

      Any clues? Do I have to do anything else besides placing the files in
      diferent places?

      Rafael

        • 1. Re: Sakai 2.3 on JBoss - how to deploy?
          Elias Ross Master


          Not sure what Sakai is entirely, but usually, you can get away with putting all related .jar files for a component in your .war file. If this doesn't work, then in server/default/lib . Better would be to create a .sar file with your files, if you're saavy.

          • 2. Re: Sakai 2.3 on JBoss - how to deploy?
            Edwin Newbie

            Hello

            I also trying to deploy Sakai on Jboss, and Five minutes ago I got a correct deploy. I don't know if this is the better configuracion, but is a good way to begin.

            The Sakai estructure:
            - I download the sakai-bin_2-3-0.tar.gz file.
            - Decompress the file
            . In the Sakai directory i found:


            - common/
            - components/
            - licenses/
            - server/
            - shared/
            - webapps/
            - ECLv1.txt


            Now, I put the directories as follows:

            - The WAR files in the webapps in JBOSS_HOME/server/default/deploy (only the files, no the directory)
            - The "components" dir in JBOSS_HOME/server/default/
            - Create a sakai dir in JBOSS_HOME/server/default/
            - Copy the sakai properties in the sakai directory
            - You can found the sakai.properties file in
            /sakai-src/reference/docs/sakai.properties

            - Copy de JARs files of the "common, shared and server" directory in JBOSS_HOME/server/default/lib

            Finally, before to start the server you have to set the environment variable JAVA_OPTS as follows:

            export JAVA_OPTS="-server -Xms512m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=196m -XX:NewSize=192m -XX:MaxNewSize=384m"


            • 3. Re: Sakai 2.3 on JBoss - how to deploy?
              Rafael Morales Newbie

              It sounds very promising. I will try it. Thank you all very much!

              Rafael