Jahia in English > Deploying a module...

0 (0 Good)
0 (0 Bad)

Deploying a module with Jahia 7

by  gyin@amadeus.com »  2018/01/18 09:21

Hi,

Does anyone knows if the to copy a war file to deploy a module into /WEB-INF/var/shared_modules, available in Jahia 6.5/6.6 is also still working for Jahia 7.x? The tech wiki indicates that Jahia introduced a new method using OSGI, but doesn't mention if the previous method is now deprecated or not.

I'm asking because I'm following the article published in 2014 on Jahia's blog about automated image rescaling using rules. I went to the source code available in Github, followed the instructions, and nothing happened. Then I tried to copy it to /tomcat/webapps/ instead. The war was recognized by Tomcat, and expanded, but it looks like it's considered as another servlet managed by Tomcat, but not a Jahia module stored in Jahia JCR.

I start to think the blog article and the Github repo are simply outdated, and should not be followed anymore. Can anyone give a confirmation?

  • Deploying a module with Jahia 7
    2018/01/18 09:21

    gyin@amadeus.com <p>Hi,</p> <p>Does anyone knows if the to copy a war file to deploy a module into /WEB-INF/var/shared_modules, <a href="https://academy.jahia.com/documentation/techwiki/modules/modules#Modules_deployment_6_5_6_6">available&nbsp;in Jahia 6.5/6.6</a> is also still working for Jahia 7.x? The tech wiki indicates that Jahia introduced <a href="https://academy.jahia.com/documentation/techwiki/modules/modules#Modules_deployment_7_x">a new method using OSGI</a>, but doesn&#39;t mention if the previous method is now deprecated or not.</p> <p>I&#39;m asking because I&#39;m following the <a href="https://www.jahia.com/news-events/blog/image-scaling-with-jahia-part-1">article published in 2014 on Jahia&#39;s blog about automated image rescaling using rules</a>. I went to the <a href="https://github.com/jahiablog/blog-imagescaling">source code available in Github</a>, followed the instructions, and nothing happened. Then I tried to copy it to /tomcat/webapps/ instead. The war&nbsp;was recognized by Tomcat, and expanded, but it looks like it&#39;s considered as another servlet managed by Tomcat, but not a Jahia module stored in Jahia JCR.</p> <p>I start to think the blog article and the Github repo are simply outdated, and should not be followed anymore. Can anyone give a confirmation?</p>

  • Number of messages  2
    Registration date Jan 18, 2018
    1 (1 Good)
    0 (0 Bad)

    Re: Deploying a module with Jahia 7

    by  shuber »  2018/01/23 08:34

    Hello gyin,

    If I'm not mistaken you might have the possibility to go through the support setup for your company, you might get faster and more precise answers there.

    In Jahia DX 7 we indeed introduced a new way to deploy modules in cluster, and we don't recommend using the deployment through the digital-factory-data/modules directory if you are deploying to a cluster, this will potentially cause problems.

    However if you are deploying to a single node you could then simply copy to this folder, or use the Maven jahia:deploy goal that will do the same thing.

    Regarding old blog articles, of course they apply to older version of DX so indeed you need to be careful to use the procedures for the more recent versions. So in effect they shouldn't be followed "as is" and adapted for the newer versions. In some cases we might update the projects, and we do this especially for all the supported modules.

    I hope this answer your questions, let me know otherwise.

    Best regards,

      Serge

    Serge Huber (shuber)

    Number of messages  271
    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