Jahia DX > Compile war file...

0 (0 Good)
0 (0 Bad)

Compile war file from source?

by  rvt »  2011/06/07 17:59

Hello!

I am looking for a way to create a war file from the source.
I could compile, deploy and run Jahia from source with Tomcat,
but looking into creating a war from source for Glassfish.

Thanks for any pointers on this, I hope I didn't overlook anything....
Ries
  • Compile war file from source?
    2011/06/07 17:59

    rvt Hello!<br/><br/>I am looking for a way to create a war file from the source.<br/>I could compile, deploy and run Jahia from source with Tomcat,<br/>but looking into creating a war from source for Glassfish.<br/><br/>Thanks for any pointers on this, I hope I didn't overlook anything....<br/>Ries

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

    Re: Compile war file from source?

    by  shyrkov »  2011/06/07 17:59

    Hello Ries,

    with the thread HOWTO: Jahia + Glassfish + PostgreSQL we are really close to automate this procedure I am thinking to at least add the Glssfish deployment support to Maven Jahia plugin (which is used when building Jahia and deploying from source).
    The only issue, I cannot automate yet is a Glassfish bug in supporting <description> elements in the tag files (see "Step 4 - Prepare the Jahia archive for Glassfish deployment" in your how to).

    If we could find an appropriate solution to this problem together, I can talk here with a team and work on adding beta support for Glassfish deployment into our plugin.

    What do you think?

    Kind regards
    Sergiy

  • Re: Compile war file from source?
    2011/07/04 11:01

    shyrkov <p> Hello Ries,<br /> <br /> with the thread&nbsp;<a href="http://www.jahia.org/forum/viewtopic.php?f=24&amp;t=496&amp;start=0">HOWTO: Jahia + Glassfish + PostgreSQL</a>&nbsp;we are really close to automate this procedure I am thinking to at least add the Glssfish deployment support to Maven Jahia plugin (which is used when building Jahia and deploying from source).<br /> The only issue, I cannot automate yet is a Glassfish bug in supporting&nbsp;&lt;description&gt;&nbsp;elements in the tag files (see &quot;Step 4 - Prepare the Jahia archive for Glassfish deployment&quot; in your how to).<br /> <br /> If we could find an appropriate solution to this problem together, I can talk here with a team and work on adding beta support for Glassfish deployment into our plugin.<br /> <br /> What do you think?<br /> <br /> Kind regards<br /> Sergiy</p>

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

    Re: Compile war file from source?

    by  shyrkov »  2011/06/07 17:59

     

    Hello Ries,

    looking at the tickets in Glassfish and Jetty JIRAs I see that non of the team is willing to actually contribute to resolve the issue.

    So, I've done a modification and removed those <description> elements from our *.tld files to ease the Glassfish deployment procedure.

    The changes are effective after the build 36179:

    36179 sshyrkov Tue, 15 February 2011, 23:23:15 +0100

    Remove <description> element from <tag-file> in the *.tld files to fix Glassfish/Jetty compliance (http://java.net/jira/browse/GLASSFISH-11885 and http://jira.codehaus.org/browse/JETTY-1222 ). Moved the descriptions to corresponding tag files.

    Kind regards

    Sergiy

  • Re: Compile war file from source?
    2011/07/04 11:02

    shyrkov <p> &nbsp;</p> <p> <title></title> </p> <p> Hello Ries,</p> <p> looking at the tickets in <a href="http://java.net/jira/browse/GLASSFISH-11885">Glassfish</a> and <a href="http://jira.codehaus.org/browse/JETTY-1222">Jetty</a> JIRAs I see that non of the team is willing to actually contribute to resolve the issue.</p> <p> So, I&#39;ve done a modification and removed those <em>&lt;description&gt;</em> elements from our *.tld files to ease the Glassfish deployment procedure.</p> <p> The changes are effective after the build 36179:</p> <blockquote> <p> 36179 sshyrkov Tue, 15 February 2011, 23:23:15 +0100</p> <p> Remove &lt;description&gt; element from &lt;tag-file&gt; in the *.tld files to fix Glassfish/Jetty compliance (<a href="http://java.net/jira/browse/GLASSFISH-11885">http://java.net/jira/browse/GLASSFISH-11885</a> and <a href="http://jira.codehaus.org/browse/JETTY-1222">http://jira.codehaus.org/browse/JETTY-1222</a> ). Moved the descriptions to corresponding tag files.</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: Compile war file from source?

    by  rvt »  2011/06/07 17:59

    Sergiy,

    I have been thinking about parsing the TLD files and remove the descriptions using a XML parser, but that's dead ugly IMHO.

    My other suggestion would have been to remove the descriptions, or at least comment them out, that's what I have been doing so far.... But since I am to new to Jahia, I was planning not to mention that laugh

    It's highly appreciated that you have removed the descriptions so deployment to glassfish is going to be even easer. So far I haven't come across any mayor issues, except the dollar sign issue, The reason I wanted to compile from source and beable to deploy to glassfish is so I can send in proper patches and have them tested at least here locally.

    Ries

  • Re: Compile war file from source?
    2011/07/04 11:03

    rvt <p> Sergiy,<br /> <br /> I have been thinking about parsing the TLD files and remove the descriptions using a XML parser, but that&#39;s dead ugly IMHO.<br /> <br /> My other suggestion would have been to remove the descriptions, or at least comment them out, that&#39;s what I have been doing so far.... But since I am to new to Jahia, I was planning not to mention that <img alt="laugh" height="20" src="https://www.jahia.com/modules/assets/javascript/ckeditor/plugins/smiley/images/teeth_smile.gif" title="laugh" width="20" /><br /> <br /> It&#39;s highly appreciated that you have removed the descriptions so deployment to glassfish is going to be even easer. So far I haven&#39;t come across any mayor issues, except the dollar sign issue, The reason I wanted to compile from source and beable to deploy to glassfish is so I can send in proper patches and have them tested at least here locally.<br /> <br /> Ries</p>

  • Number of messages  185
    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