Jahia DX > Jahia 6.5 beta install...

0 (0 Good)
0 (0 Bad)

Jahia 6.5 beta install to standalone Tomcat server?

by  tyurk »  2011/06/07 17:54

Hello,
I have taken a look at the beta65 and it is very interesting. The install jar worked seamlessly for me with existing mySQL server. However, I would like to install the war into an existing Tomcat 6 instance (we have other applications running on the Tomcat 6 instance) but have not had much success. In the installer, when I uncheck tomcat installation, I am left with the war in the "Application" directory, but copying this into the existing tomcat instance seems to be insufficient. Are there other dependencies required to get things up and running? (Jahia 6 CE has been working fine so far for template development)

Would appreciate any info. Thanks in advance and great work. The 6.5 beta is a very exciting preview of good things to come from the Jahia team.

Thanks,

Denis

  (tyurk)

Number of messages  38
Registration date
0 (0 Good)
0 (0 Bad)

SOLVED: Jahia 6.5 beta install to standalone Tomcat server?

by  tyurk »  2011/06/07 17:54

Hello again,
Finally figured out what bits were missing from the (rather summary, i.e. not yet written) installation instructions for the case of an existing Tomcat 6 installation. So, in case other have this issue later (and for my own recollection next time I try this...), here goes:

Hypotheses: MySQL has been set up adequately and a user with full rights to a db schema has been set up. Also, the appropriate parameters for this server have been passed to the installation jar.

1. Ensure that JAVA_OPTS="-Djava.awt.headless=true -Xmx2048m -XX:MaxPermSize=256m" is being passed to catalina.sh (I just added it directly in the shell script) to ensure that enough PermGen memory is available. (Actually not convinced all three are still required, but surely someone more familiar with tomcat can tweak these to be more efficient.)

2. Copy the generated ROOT.war to the tomcat webapps folder and ensure there is not an existing (default with tomcat installation) ROOT folder here.

3. Unzip the contents of share-libraries.zip to the tomcat lib folder.

4. Run "catalina.sh run" and enjoy. (I guess I could mention that a suitable JAVA_HOME should be set at this point...)

Sorry if I've insulted anyone's intelligence, but my newbishness made this one a fair-sized headache and I would have appreciated the existence of these instructions. Hope this helps someone ;)

Denis

  (tyurk)

Number of messages  38
Registration date
0 (0 Good)
0 (0 Bad)

Re: Jahia 6.5 beta install to standalone Tomcat server?

by  shyrkov »  2011/06/07 17:54

Hello Denis,

 

sorry for the late post, just wanted to confirm that your deployment procedure is correct.

In case you are deploying Jahia 6.5 into an existing instance of the Tomcat, you will need to:

1) Adjust the JVM options in catalina.sh to have at least 1Gb of heap and 256 MB of permanent space dedicated. In our installer (when Apache Tomcat pack is selected) the following options are passed to the Catalina process:

CATALINA_OPTS="$CATALINA_OPTS -Xms1024m -Xmx1024m -Djava.awt.headless=true -XX:MaxPermSize=256m -server -Dhibernate.jdbc.use_streams_for_binary=true -verbose:gc"

2) Unzip the JARs from shared-libraries.zip into your <tomcat>/lib folder

3) Unzip the content of the generated ROOT.war file into <tomcat>/webapps/ROOT folder (renaming the existing Tomcat's ROOT Web application, if exists).

We are in the process of finalizing our installation HOW-TOs for all supported application servers and will include them into the installer to make the life easer 

 

Kind regards

Sergiy

  • Re: Jahia 6.5 beta install to standalone Tomcat server?
    2011/07/04 12:16

    shyrkov <p> Hello Denis,</p> <p class="p2"> &nbsp;</p> <p class="p1"> sorry for the late post, just wanted to confirm that your deployment procedure is correct.</p> <p class="p1"> In case you are deploying Jahia 6.5 into an existing instance of the Tomcat, you will need to:</p> <p class="p1"> 1) Adjust the JVM options in catalina.sh to have at least 1Gb of heap and 256 MB of permanent space dedicated. In our installer (when Apache Tomcat pack is selected) the following options are passed to the Catalina process:</p> <pre class="p3"> CATALINA_OPTS=&quot;$CATALINA_OPTS -Xms1024m -Xmx1024m -Djava.awt.headless=true -XX:MaxPermSize=256m -server -Dhibernate.jdbc.use_streams_for_binary=true -verbose:gc&quot;</pre> <p class="p1"> 2) Unzip the JARs from <i>shared-libraries.zip</i> into your <i>&lt;tomcat&gt;/lib</i> folder</p> <p class="p1"> 3) Unzip the content of the generated <i>ROOT.war</i> file into <i>&lt;tomcat&gt;/webapps/ROOT</i> folder (renaming the existing Tomcat&#39;s ROOT Web application, if exists).</p> <p class="p1"> We are in the process of finalizing our installation HOW-TOs for all supported application servers and will include them into the installer to make the life easer&nbsp;</p> <p class="p2"> &nbsp;</p> <p class="p1"> Kind regards</p> <p class="p1"> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page