Jahia Install Forum > Installing Jahia...

0 (0 Good)
0 (0 Bad)

Installing Jahia 6.5 Beta on existing Tomcat (Linux)

by  jlyttbacka »  2011/06/07 20:58

Hi!
I've been trying to figure out how to install Jahia 6.5 on a linux server already running Tomcat (version 6). Is there a way to make a WAR-file to install on the existing server? Or any other way to do this?

/Johan

  (jlyttbacka)

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

Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

by  shyrkov »  2011/06/07 20:58

Hello Johan,

yes, during running the Jahia installer, choose "Advanced" setup and unselect the "Apache Tomcat" package.
After the installer is done, it will produce two required artifacts: ROOT.war and shared-libraries.zip.
The JARs from shared-libraries.zip file should be copied into the <tomcat>/lib folder (the shared lib folder) of your existing Tomcat instance.
The ROOT.war should be moved to <tomcat>/webapps folder. If you have the default ROOT Tomcat web application there, please either remove it or rename the folder.

Let me know, please, if you would like to install Jahia in a context other than ROOT and I will post a procedure here.

We are working on completing the readme files for the installer to include the detailed description of deployment procedure.

Kind regards
Sergiy

  • Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)
    2011/07/04 12:32

    shyrkov <p> Hello Johan,<br /> <br /> yes, during running the Jahia installer, choose &quot;Advanced&quot; setup and unselect the &quot;Apache Tomcat&quot; package.<br /> After the installer is done, it will produce two required artifacts: ROOT.war and shared-libraries.zip.<br /> The JARs from shared-libraries.zip file should be copied into the &lt;tomcat&gt;/lib folder (the shared lib folder) of your existing Tomcat instance.<br /> The ROOT.war should be moved to &lt;tomcat&gt;/webapps folder. If you have the default ROOT Tomcat web application there, please either remove it or rename the folder.<br /> <br /> Let me know, please, if you would like to install Jahia in a context other than ROOT and I will post a procedure here.<br /> <br /> We are working on completing the readme files for the installer to include the detailed description of deployment procedure.<br /> <br /> Kind regards<br /> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

    by  rvt »  2011/06/07 20:58

    Johan,

    additionally you might want to add:

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

    right above the line :
    # OS specific support. $var _must_ be set to either true or false. 
    in the file bin/catalina.sh

    I noticed when that was not added, I had out of memory issues in my default Tomcat installation.

    Also, you might want to check the shared-libraries.zip file and add the jars to your common library folder.
    The shared-libraries zip is also generated when you created the war.

    Ries

  • Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)
    2011/07/04 12:33

    rvt <p> Johan,<br /> <br /> additionally you might want to add:<br /> <br /> 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;<br /> export CATALINA_OPTS&nbsp;<br /> <br /> right above the line :<br /> # OS specific support. $var _must_ be set to either true or false.&nbsp;<br /> in the file bin/catalina.sh<br /> <br /> I noticed when that was not added, I had out of memory issues in my default Tomcat installation.<br /> <br /> Also, you might want to check the shared-libraries.zip file and add the jars to your common library folder.<br /> The shared-libraries zip is also generated when you created the war.<br /> <br /> Ries</p>

  • Number of messages  185
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

    by  jlyttbacka »  2011/06/07 20:58

    Ries, Sergiy!
    Thank you!

    I'll try this straight away!

    /Johan

      (jlyttbacka)

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

    Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

    by  jlyttbacka »  2011/06/07 20:58

    Ok, I'm trying to install it to /jahia and not to "/ROOT".

    If you have that readme, it would be nice to have a glance at it.

    /Johan

      (jlyttbacka)

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

    Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

    by  wael »  2011/06/07 20:58

     

    hello,

     

    I have followed this tuto but after the installation of jahia is done, I don't have the generated artefacts (ROOT.war and shared-livraries.zip). Where can I find it, please?

    srv-isa:/opt/Jahia6.5beta# ls
    
    bin   icons     logs                         OpenJahia.URL  stopJahia.sh  Uninstaller
    
    docs  licenses  OpenJahiaAdministration.URL  startJahia.sh  tomcat
    
    srv-isa:/opt/Jahia6.5beta# cd tomcat/webapps/
    
    srv-isa:/opt/Jahia6.5beta/tomcat/webapps# ls
    
    host-manager  manager  ROOT
    
    srv-isa:/opt/Jahia6.5beta/tomcat/webapps#

     

      (wael)

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

    Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

    by  shyrkov »  2011/06/07 20:58

     

    Hello wael,

     

    you missed one important step when installing Jahia.

    during running the Jahia installer, choose "Advanced" setup and UNSELECT the "Apache Tomcat" pack (leave only Jahia xCM Platform selected).

    Kind regards

    Sergiy

  • Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)
    2011/07/04 12:37

    shyrkov <p> &nbsp;</p> <p> <title></title> </p> <p> Hello wael,</p> <p> &nbsp;</p> <p> you missed one important step when installing Jahia.</p> <blockquote> <p> during running the Jahia installer, choose &quot;Advanced&quot; setup and UNSELECT the &quot;Apache Tomcat&quot; pack (leave only Jahia xCM Platform selected).</p> </blockquote> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

    by  wael »  2011/06/07 20:58

     

    Hello Sergiy,

     

    I would thank you for your help

    But my problem, I don't have GUI on server, so I install Jahia on consol mode... when I installed it, I can't unselect "Apache Tomcat", it will be installed automatically.

    ....
    
    Public License instead of this License.
    
    press 1 to accept, 2 to reject, 3 to redisplay
    
    1
    
    Select target path [/usr/local/Jahia_xCM_CE_v6.5-SNAPSHOT]
    
    Jahia6.5Beta
    
    press 1 to continue, 2 to quit, 3 to redisplay
    
    1
    
    Installation type
    
    Here you can choose your preferred installation type.
    
    Express installation completes the common Jahia setup using pre-packaged Apache Tomcat 6.0 server and embedded Sun Java DB / Apache Derby DBMS, whereas the Custom install allows advanced configuration of the target application server, DBMS and addition options:
    
    
    0  [x] Express install
    
    1  [ ] Custom install (advanced)
    
    input selection:
    
    1
    
    press 1 to continue, 2 to quit, 3 to redisplay
    
    1
    
    Database connection settings
    
    
    
    Choose your preferred database connection type
    
    0  [x] Use a standalone DBMS
    
    1  [ ] Use an embedded Sun Java DB / Apache Derby database engine
    
    input selection:
    
    0
    
    press 1 to continue, 2 to quit, 3 to redisplay
    
    1
    
    Database connection settings
    
    
    
    Choose your DBMS type
    
    0  [x] MySQL 5.x
    
    1  [ ] PostgreSQL 8.x
    
    2  [ ] Sun Java DB / Apache Derby (standalone)
    
    input selection:
    
    0
    
    press 1 to continue, 2 to quit, 3 to redisplay
    
    1
    
    Database connection settings
    
    Database driver (*) [com.mysql.jdbc.Driver]
    
    
    Database URL (*) [jdbc:mysql://localhost/jahia?useUnicode=true&characterEncoding=UTF-8&useServerPrepStmts=false]
    
    
    Database username [jahia]
    
    
    Database password [jahia]
    
    
    
      [ ] Store binary data in the database?
    
    input 1 to select, 0 to deseclect:
    
    1
    
    
      [x] Create required database tables?
    
    input 1 to select, 0 to deseclect:
    
    1
    
    press 1 to continue, 2 to quit, 3 to redisplay
    
    1
    
    Application and server settings
    
    Apache Tomcat configuration
    
    ------------------------------------------
    
    HTTP connector port (*) [8080]
    
    
    HTTPS redirect port (*) [8443]
    
    
    AJP connector port (*) [8009]
    
    
    Server shutdown port (*) [8005]
    
    
    
    Web application settings
    
    ------------------------------------------
    
    Context name (context path without /) []
    
    
    
    Jahia tool manager username (*) [jahia]
    
    
    Jahia tool manager password (*) [password]
    
    jahia
    
      [x] Use development mode for templates?
    
    input 1 to select, 0 to deseclect:
    
    1
    
    
    ------------------------------------------

    So how I can do it (unselect "apache Tomcat")?

     

    /Wael

      (wael)

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

    Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

    by  shyrkov »  2011/06/07 20:59

    Hello Wael,

    oh, didn't know you were using the console-based installer.
    I will verify it on my side.
    Are you using Jahia 6.5 BETA or Jahia 6.5 BETA3 (Jahia_xCM_v6.5-BETA3_r37630.jar)? What is the name of your installer file?

    Kind regards
    Sergiy

  • Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)
    2011/07/04 12:39

    shyrkov <p> Hello Wael,<br /> <br /> oh, didn&#39;t know you were using the console-based installer.<br /> I will verify it on my side.<br /> Are you using Jahia 6.5 BETA or Jahia 6.5 BETA3 (<a href="http://beta65.jahia.org/downloads/Jahia_xCM_v6.5-BETA3_r37630.jar">Jahia_xCM_v6.5-BETA3_r37630.jar</a>)? What is the name of your installer file?<br /> <br /> Kind regards<br /> Sergiy</p>

  • Number of messages  407
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Installing Jahia 6.5 Beta on existing Tomcat (Linux)

    by  wael »  2011/06/07 20:59

    Hello Sergiy,

    I use Jahia6.5beta3, I have installed this "Jahia_xCM_v6.5-BETA3_r37630.jar".

    /Wael

      (wael)

    Number of messages  11
    Registration date
    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