Jahia Install Forum > Jahia on Glassfish...

0 (0 Good)
0 (0 Bad)

Jahia on Glassfish v3?

by  rvt »  2011/06/07 20:57

Hello!

did anybody happen to manage to install Jahia 6.5 Beta on Glassfish? The tomcat version is great in combination with PostgreSQL 8.4, however I would like to run it under Glassfish since I have all my applications there already.

Currently I get a java.lang.RuntimeException: java.lang.IllegalArgumentException
...
...
Caused by: java.lang.IllegalArgumentException
at com.sun.enterprise.admin.wsmgmt.lifecycle.AppServWSMonitorLifeCycleProvider.instrumentWebServiceEndpoints(AppServWSMonitorLifeCycleProvider.java:134)
... 40 more

and I am at this stage not sure where to look for the actual cause.

any pointers are highly appreciated! (even a can't work, will not work, impossible to do so sort of comment...)

Ries
PS: I know already it's not official supported for the CE edition except tomcat.
  • Jahia on Glassfish v3?
    2011/06/07 20:57

    rvt Hello!<br/><br/>did anybody happen to manage to install Jahia 6.5 Beta on Glassfish? The tomcat version is great in combination with PostgreSQL 8.4, however I would like to run it under Glassfish since I have all my applications there already.<br/><br/>Currently I get a java.lang.RuntimeException: java.lang.IllegalArgumentException <br/>...<br/>...<br/>Caused by: java.lang.IllegalArgumentException <br/> at com.sun.enterprise.admin.wsmgmt.lifecycle.AppServWSMonitorLifeCycleProvider.instrumentWebServiceEndpoints(AppServWSMonitorLifeCycleProvider.java:134) <br/> ... 40 more <br/><br/>and I am at this stage not sure where to look for the actual cause.<br/><br/>any pointers are highly appreciated! (even a can't work, will not work, impossible to do so sort of comment...)<br/><br/>Ries<br/>PS: I know already it's not official supported for the CE edition except tomcat.

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

    Re: Jahia on Glassfish v3?

    by  shyrkov »  2011/06/07 20:57

     

    Hello Ries,

    PS: I know already it's not official supported for the CE edition except tomcat.

    Unfortunately, it is not only not official supported but also not tested with.

    Jahia 6.5 is working with the following application servers:

    • Apache Tomcat 6.0.x
    • IBM WebSphere 6.1
    • Oracle WebgLogic 11g (10.3.3)
    • Red Hat JBoss 4.2.x

     

    Kind regards

    Sergiy

     

    P.S. We would appreciate sharing any information about Jahia on Glassfish deployment: issues, solutions, recommendations. Thanks in advance!

  • Re: Jahia on Glassfish v3?
    2011/07/04 13:48

    shyrkov <p> &nbsp;</p> <p> <title></title> </p> <p> Hello Ries,</p> <blockquote> <p> PS: I know already it&#39;s not official supported for the CE edition except tomcat.</p> </blockquote> <p> Unfortunately, it is not only <em>not official supported</em> but also not tested with.</p> <p> Jahia 6.5 is working with the following application servers:</p> <ul> <li> Apache Tomcat 6.0.x</li> <li> IBM WebSphere 6.1</li> <li> Oracle WebgLogic 11g (10.3.3)</li> <li> Red Hat JBoss 4.2.x</li> </ul> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p> <p> &nbsp;</p> <p> P.S. We would appreciate sharing any information about Jahia on Glassfish deployment: issues, solutions, recommendations. Thanks in advance!</p>

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

    Re: Jahia on Glassfish v3?

    by  rvt »  2011/06/07 20:57

    Sergiy,

    I have no problems sharing this information since I like to support the open source community and Jahia seems to be a fantastic product!

    I will look for the installation instructions for JBos, Weblogic and/or Websphere, may be I can take out little bit's and pieces from the puzzle and apply that on GLassfish laugh

    Ries

  • Re: Jahia on Glassfish v3?
    2011/07/04 13:51

    rvt <p> Sergiy,<br /> <br /> I have no problems sharing this information since I like to support the open source community and Jahia seems to be a fantastic product!<br /> <br /> I will look for the installation instructions for JBos, Weblogic and/or Websphere, may be I can take out little bit&#39;s and pieces from the puzzle and apply that on GLassfish <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 /> Ries</p>

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

    Re: Jahia on Glassfish v3?

    by  rvt »  2011/06/07 20:58

    Sergiy,

    do you happen to the where I can find the documentation for the above 3 Application servers I google around and used the site search but they don't seem to be available in my searches.

    kind regards,
    Ries van Twisk
  • Re: Jahia on Glassfish v3?
    2011/06/07 20:58

    rvt Sergiy,<br/><br/>do you happen to the where I can find the documentation for the above 3 Application servers I google around and used the site search but they don't seem to be available in my searches.<br/><br/>kind regards,<br/>Ries van Twisk

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

    Re: Jahia on Glassfish v3?

    by  rvt »  2011/06/07 20:58

    Sergiy,

    here is a quick update. I managed to let Jahia boot , now I am getting this error:

    [#|2011-01-26T14:40:43.954-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=pool-1-thread-1;|2011-01-26 14:40:43,951: WARN [JCRSitesProvider] - /templateSets/templates-system
    javax.jcr.PathNotFoundException: /templateSets/templates-system

    So, I am going strong and expect it to make it work laugh

    Will keep je posted.

    Ries

  • Re: Jahia on Glassfish v3?
    2011/07/04 13:52

    rvt <p> Sergiy,<br /> <br /> here is a quick update. I managed to let Jahia boot , now I am getting this error:<br /> <br /> [#|2011-01-26T14:40:43.954-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=pool-1-thread-1;|2011-01-26 14:40:43,951: WARN [JCRSitesProvider] - /templateSets/templates-system<br /> javax.jcr.PathNotFoundException: /templateSets/templates-system<br /> <br /> So, I am going strong and expect it to make it work <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 /> Will keep je posted.<br /> <br /> Ries</p>

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

    Re: Jahia on Glassfish v3?

    by  shyrkov »  2011/06/07 20:58

     

    Hello Ries,

    do you happen to the where I can find the documentation for the above 3 Application servers I google around and used the site search but they don't seem to be available in my searches.

    There is no documentation yet for other application servers. It will come with the release of the Jahia 6.5 EE (enterprise edition) bundle (as for community edition non open source application servers are not a target). The EE installer will create artifacts ready to be deployed on those servers.

    Honestly, I had no experience with the Glassfish at all. Today I've downloaded the Glassfish first time (version 2.1.1) and after some "Getting started"-reading  I've managed to deploy Jahia 6.5 on it and launch it successfully.

    The only issue, I've faced immediately when I was trying to access the first Jahia page, was a bug in Glassfish GLASSFISH-11885. So I had to comment out the <description> element in <tag-file> items in our internal.tld, template.tld and uiComponents.tld tag library descriptors (located in the jahia-taglib-6.5-SNAPSHOT.jar/META-INF).

    After that I was able to create the first site by importing the pre-packaged ACME Demo, manipulate some content, publish everything and browse in live mode.

    This does not prove the 100% Glassfish compatibility as I have not tested all the possible features  

    Although the official Glassfish compatibility was not in our roadmap for Jahia 6.5, we are still interested in any feedback, improvements, fixes to achieve it.

    In short, my procedure to install Jahia 6.5 (nightly) with MySQL 5.5.x on Windows 7 x64 was as follows:

    I. Jahia Installer

    1) Launched the Jahia installer (Jahia_xCM_CE_v6.5-SNAPSHOT_*.exe)

    2) Selected the "advanced" installation

    3) Unselected the Apache Tomcat Bundle

    4) Selected the MySQL DBMS as the target one (I've created a DB schema and user in advance)

    5) Completed the installer wizard

    As a result I've got ROOT.war and shared-libraries.zip

     

    II. Glassfish configuration and prepartion

    1) Installed Glassfish 2.1.1

    2) I was using default domain (domain1)

    3) Adjusted in the domains\domain1\config\domain.xml file the JVM parameters to have "-server" instead of "-client", set -Xmx1024m (at least) and -XX:MaxPermSize=256m (at least)

    4) Extracted all JARs from shared-libraries.zip into domains\domain1\lib folder

    5) Copied the MySQL driver JAR mysql-connector-java-5.1.14.jar from ROOT.war/lib todomains\domain1\lib folder and removed it from the ROOT.war/lib (to avoid any classloader issues).

    6) Created a simple sun-web.xml file and added it into ROOT.war/WEB-INF folder:

    <?xml version="1.0" encoding="UTF-8"?>
    
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
    
    <sun-web-app>
    
       <context-root>/</context-root>
    
    </sun-web-app>

    7) I have extracted the following three TLD files - internal.tld, template.tld and uiComponents.tld - (from ROOT.war/WEB-INF/lib/jahia-taglib-6.5-SNAPSHOT.jar/META-INF). Modified those files, by commenting out the <description> element in the <tag-file> elements (if present). Repackaged the jahia-taglib-6.5-SNAPSHOT.jar file with modified TLD files and repackaged the ROOT.war with it.

    8) Started Glassfish (asadmin.bat start-domain --verbose)

    9) In the Administration Console created a new JDBC connection pool for the MySQL DB schema and user, I've used during execution of the Jahia Installer

    10) Created a JDBC resource with the JNDI name jdbc/jahia for that connection pool

    11) Stopped the Glassfish

     

    III. Deployment

    1) Copied the (modified) ROOT.war into domains\domain1\autodeploy folder

    2) Started the Glassfish. The deployment went well.

     

    Would appreciate if you share your concerns and give feedback about the issues.

    The following exception, you've mentioned:

    WARN [JCRSitesProvider] - /templateSets/templates-system

    javax.jcr.PathNotFoundException: /templateSets/templates-system

    seems to indicate that something went wrong during first Jahia startup and initialization. If this problem will persist with a fresh installation, please, provide the full server log file.

    Thank you in advance!

     

    Kind regards

    Sergiy

  • Re: Jahia on Glassfish v3?
    2011/07/04 13:55

    shyrkov <p> &nbsp;</p> <p> <title></title> </p> <p> Hello Ries,</p> <blockquote> <p> do you happen to the where I can find the documentation for the above 3 Application servers I google around and used the site search but they don&#39;t seem to be available in my searches.</p> </blockquote> <p> There is no documentation yet for other application servers. It will come with the release of the Jahia 6.5 EE (enterprise edition) bundle (as for community edition non open source application servers are not a target). The EE installer will create artifacts ready to be deployed on those servers.</p> <p> Honestly, I had no experience with the Glassfish at all. Today I&#39;ve downloaded the Glassfish first time (version 2.1.1) and after some &quot;Getting started&quot;-reading&nbsp; I&#39;ve managed to deploy Jahia 6.5 on it and launch it successfully.</p> <p> The only issue, I&#39;ve faced immediately when I was trying to access the first Jahia page, was a bug in Glassfish <a href="http://java.net/jira/browse/GLASSFISH-11885">GLASSFISH-11885</a>. So I had to comment out the <em>&lt;description&gt;</em> element in <em>&lt;tag-file&gt;</em> items in our <em>internal.tld</em>, <em>template.tld</em> and <em>uiComponents.tld</em> tag library descriptors (located in the <em>jahia-taglib-6.5-SNAPSHOT.jar/META-INF</em>).</p> <p> After that I was able to create the first site by importing the pre-packaged ACME Demo, manipulate some content, publish everything and browse in live mode.</p> <p> This does not prove the 100% Glassfish compatibility as I have not tested all the possible features &nbsp;</p> <p> Although the official Glassfish compatibility was not in our roadmap for Jahia 6.5, we are still interested in any feedback, improvements, fixes to achieve it.</p> <p> In short, my procedure to install Jahia 6.5 (nightly) with MySQL 5.5.x on Windows 7 x64 was as follows:</p> <p> I. Jahia Installer</p> <p> 1) Launched the Jahia installer (Jahia_xCM_CE_v6.5-SNAPSHOT_*.exe)</p> <p> 2) Selected the &quot;advanced&quot; installation</p> <p> 3) Unselected the Apache Tomcat Bundle</p> <p> 4) Selected the MySQL DBMS as the target one (I&#39;ve created a DB schema and user in advance)</p> <p> 5) Completed the installer wizard</p> <p> As a result I&#39;ve got ROOT.war and shared-libraries.zip</p> <p> &nbsp;</p> <p> II. Glassfish configuration and prepartion</p> <p> 1) Installed Glassfish 2.1.1</p> <p> 2) I was using default domain (domain1)</p> <p> 3) Adjusted in the <em>domains\domain1\config\domain.xml</em> file the JVM parameters to have &quot;-server&quot; instead of &quot;-client&quot;, set -Xmx1024m (at least) and -XX:MaxPermSize=256m (at least)</p> <p> 4) Extracted all JARs from shared-libraries.zip into <em>domains\domain1\lib</em> folder</p> <p> 5) Copied the MySQL driver JAR mysql-connector-java-5.1.14.jar from ROOT.war/lib to<em>domains\domain1\lib</em> folder and removed it from the ROOT.war/lib (to avoid any classloader issues).</p> <p> 6) Created a simple sun-web.xml file and added it into ROOT.war/WEB-INF folder:</p> <pre> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;!DOCTYPE sun-web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN&quot; &quot;http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd&quot;&gt; &lt;sun-web-app&gt; &lt;context-root&gt;/&lt;/context-root&gt; &lt;/sun-web-app&gt;</pre> <p> 7) I have extracted the following three TLD files - <em>internal.tld</em>, <em>template.tld</em> and <em>uiComponents.tld</em> - (from <em>ROOT.war/WEB-INF/lib/jahia-taglib-6.5-SNAPSHOT.jar/META-INF</em>). Modified those files, by commenting out the <em>&lt;description&gt;</em> element in the <em>&lt;tag-file&gt;</em> elements (if present). Repackaged the jahia-taglib-6.5-SNAPSHOT.jar file with modified TLD files and repackaged the ROOT.war with it.</p> <p> 8) Started Glassfish (asadmin.bat start-domain --verbose)</p> <p> 9) In the Administration Console created a new JDBC connection pool for the MySQL DB schema and user, I&#39;ve used during execution of the Jahia Installer</p> <p> 10) Created a JDBC resource with the JNDI name <em>jdbc/jahia</em> for that connection pool</p> <p> 11) Stopped the Glassfish</p> <p> &nbsp;</p> <p> III. Deployment</p> <p> 1) Copied the (modified) ROOT.war into <em>domains\domain1\autodeploy</em> folder</p> <p> 2) Started the Glassfish. The deployment went well.</p> <p> &nbsp;</p> <p> Would appreciate if you share your concerns and give feedback about the issues.</p> <p> The following exception, you&#39;ve mentioned:</p> <blockquote> <p> WARN [JCRSitesProvider] - /templateSets/templates-system</p> <p> javax.jcr.PathNotFoundException: /templateSets/templates-system</p> </blockquote> <p> seems to indicate that something went wrong during first Jahia startup and initialization. If this problem will persist with a fresh installation, please, provide the full server log file.</p> <p> Thank you in advance!</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

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

    Re: Jahia on Glassfish v3?

    by  rvt »  2011/06/07 20:58

    Sergiy,

    may be I should add that I used Jahia_xCM_CE_v6.5-BETA_r35351.jar on OSX 110.5

    I will use the SNAPSHOT also on a complete fresh installation and report back again.

    Ries
  • Re: Jahia on Glassfish v3?
    2011/06/07 20:58

    rvt Sergiy,<br/><br/>may be I should add that I used Jahia_xCM_CE_v6.5-BETA_r35351.jar on OSX 110.5<br/><br/>I will use the SNAPSHOT also on a complete fresh installation and report back again.<br/><br/>Ries

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

    Re: Jahia on Glassfish v3?

    by  rvt »  2011/06/07 20:58

    Sergiy,

    life is not fair!!! I spend about 12 hours to do the same laugh

    I just came to the forum to tell you it worked for me aswell, I managed the solve the issue : javax.jcr.PathNotFoundException: /templateSets/templates-system
    and this was properly do to a wrong setting in my JNDI, or that my DB wasn't initialized properly. somewhere in the process I went through the installer and let Jahia setup the DB. This is something I need to check.

    The onyl really difference I had in comparison with you, but this might be a glassfish issue is that I had to move some libraries over to domainX/lib/ext instead of just domainX/lib

    This was tested on GLassfish 3.1

  • Re: Jahia on Glassfish v3?
    2011/07/04 13:56

    rvt <p> Sergiy,<br /> <br /> life is not fair!!! I spend about 12 hours to do the same <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 /> I just came to the forum to tell you it worked for me aswell, I managed the solve the issue : javax.jcr.PathNotFoundException: /templateSets/templates-system<br /> and this was properly do to a wrong setting in my JNDI, or that my DB wasn&#39;t initialized properly. somewhere in the process I went through the installer and let Jahia setup the DB. This is something I need to check.<br /> <br /> The onyl really difference I had in comparison with you, but this might be a glassfish issue is that I had to move some libraries over to domainX/lib/ext instead of just domainX/lib<br /> <br /> This was tested on GLassfish 3.1</p>

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

    Re: Jahia on Glassfish v3?

    by  rvt »  2011/06/07 20:58

    Sergiy,

    can you confirm that I also had to set:

    jahia.contextPath = /jahia

    under WEB-INF/etc/config/jahia.properties
    I noticed some problems when I deployed jahia under the contextPath /jahia, and that some images would't show up.

    second,
    would it make sense to write down all steps in a wiki, if so I am more then happy to start this wiki page, teh question for me only would be 'where?'.

    Ries
  • Re: Jahia on Glassfish v3?
    2011/06/07 20:58

    rvt Sergiy,<br/><br/>can you confirm that I also had to set:<br/><br/>jahia.contextPath = /jahia<br/><br/>under WEB-INF/etc/config/jahia.properties<br/>I noticed some problems when I deployed jahia under the contextPath /jahia, and that some images would't show up.<br/><br/>second,<br/>would it make sense to write down all steps in a wiki, if so I am more then happy to start this wiki page, teh question for me only would be 'where?'. <br/><br/>Ries

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

    Re: Jahia on Glassfish v3?

    by  shyrkov »  2011/06/07 20:58

     

    Hello Ries,

    can you confirm that I also had to set:

    jahia.contextPath = /jahia

    under WEB-INF/etc/config/jahia.properties

    I noticed some problems when I deployed jahia under the contextPath /jahia, and that some images would't show up.

    Yes, that's right. If you deploy Jahia into non-ROOT context, you will have to change the value ofjahia.contextPath in jahia.properties

    second,

    would it make sense to write down all steps in a wiki, if so I am more then happy to start this wiki page, teh question for me only would be 'where?'.

    For sure it is highly appreciated and welcome. Our people are working on a new version of our community Web site. Either the jahia.org will be updated or the nextgen.jahia.org will be extended with the possibility for any person to collaborate on the documentation and other stuff.

    Until then, you are free to do it in a way and format that is more preferred for you: either here in this Forum, as an attachment or by crating a ticket in our community JIRA.

    Thanks in advance!

     

    Kind regards

    Sergiy

  • Re: Jahia on Glassfish v3?
    2011/07/04 13:58

    shyrkov <p> &nbsp;</p> <p> <title></title> </p> <p> Hello Ries,</p> <blockquote> <p> can you confirm that I also had to set:</p> <p> jahia.contextPath = /jahia</p> <p> under WEB-INF/etc/config/jahia.properties</p> <p> I noticed some problems when I deployed jahia under the contextPath /jahia, and that some images would&#39;t show up.</p> </blockquote> <p> Yes, that&#39;s right. If you deploy Jahia into non-ROOT context, you will have to change the value of<em>jahia.contextPath</em> in <em>jahia.properties</em></p> <blockquote> <p> second,</p> <p> would it make sense to write down all steps in a wiki, if so I am more then happy to start this wiki page, teh question for me only would be &#39;where?&#39;.</p> </blockquote> <p> For sure it is highly appreciated and welcome. Our people are working on a new version of our community Web site. Either the <a href="http://www.jahia.org/">jahia.org</a> will be updated or the <a href="http://nextgen.jahia.org/">nextgen.jahia.org</a> will be extended with the possibility for any person to collaborate on the documentation and other stuff.</p> <p> Until then, you are free to do it in a way and format that is more preferred for you: either here in this Forum, as an attachment or by crating a ticket in our <a href="http://jira.jahia.org/">community JIRA</a>.</p> <p> Thanks in advance!</p> <p> &nbsp;</p> <p> Kind regards</p> <p> 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