Jahia Dev Forum > Forum support in...

0 (0 Good)
0 (0 Bad)

Forum support in Jahia

by  kachara »  2011/06/07 20:36

Does Jahia have a forum portlet that's already integrated with the portal? I am impressed with the kind of functionality Jahia portal provides and looking forward to usng it for our next project but one of our key requirement is forum support as we are building a portal for a community.
If there is no forum functionality offered at this time, what alternative do you recommend? Has anyone tried using exoplatform's forum portlet with Jahia?

Thanks,

Raj

  (kachara)

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

Re: Forum support in Jahia

by  shuber »  2011/06/07 20:36

Hello,

Jahia 6 doesn't provide an out-of-the-box forum solution, but it is quite easy to integrate with portlets that offer such functionality, such as the JForum portlet, available here : http://jforum.net

Best regards,
Serge Huber.

Serge Huber (shuber)

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

Re: Forum support in Jahia

by  snivelfr »  2011/06/07 20:36

Hello,

back in the time, Jahia provided a Jforum JSR168 compatible portlet.

Based on your reply, does this mean that this portlet is no more present in V6 ?

Regards,

Eric

  (snivelfr)

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

Re: Forum support in Jahia

by  trenaud »  2011/06/07 20:36

Hello,

In Jahia v6.1, the JForum portlet is not embedded by default, nor is tested "officially" by Jahia, that's true.

That said, please find here after how to deploy a JForum portlet into Jahia v6.1, please report any issue for the install and more important if you test it extensively! We made a couple of basic tests and it was working fine after the install (in 6.0.1 if I remember well to be more specific, but I think it should work the same in 6.1):

1.Download the JForum WAR file from http://jforum.net/download.jsp
2. Unzip the following files: 
2.1 Unzip the JForum WAR
2.2. Unzip the attached zip (portlet.xml, portlet-wrappers, org.zip)
3. By default, the JForum WAR doesn't contain the elements and classes necessary to make it work within the portlet standard. We have to add those elements manually in the unzipped package:
3.1. Copy the attached portlet.xml file in the WEB-INF directory (this file is the XML portlet descriptor used for deployment of the web app as a portlet)
3.2. Copy the attached portlet-wrappers.jar in the WEB-INF/lib directory (this JAR is necessary to make the app work inside a portlet)
3.3. Unzip the attached org.zip file in WEB-INF/classes (this is the portlet bridge implemented by Jahia specifically for JForum)
4. Set the parameter portletAJAXRenderingActivated to false in the Jahia configuration file WEB-INF/etc/config/jahia.properties (Ajax rendering of portlets causes some display problems with JForum)
5. Start Jahia
6. In the Jahia admin, go to "Server settings > Manage portlets" , select the WAR file with the first Browse button, and click "Prepare and deploy war"
7. After a few seconds, the JForum portlet will be available in the portlets list; exit the administration and add it in the Mashup Manager to make it available to contributors.

Hope this will help,

Tristan

  • Re: Forum support in Jahia
    2011/07/08 13:21

    trenaud <p> Hello,<br /> <br /> In Jahia v6.1, the JForum portlet is not embedded by default, nor is tested &quot;officially&quot; by Jahia, that&#39;s true.<br /> <br /> That said, please find here after how to deploy a JForum portlet into Jahia v6.1, please report any issue for the install and more important if you test it extensively! We made a couple of basic tests and it was working fine after the install (in 6.0.1 if I remember well to be more specific, but I think it should work the same in 6.1):<br /> <br /> 1.Download the JForum WAR file from&nbsp;<a href="http://jforum.net/download.jsp">http://jforum.net/download.jsp</a><br /> 2. Unzip the following files:&nbsp;<br /> 2.1 Unzip the JForum WAR<br /> 2.2. Unzip the attached zip (portlet.xml, portlet-wrappers, org.zip)<br /> 3. By default, the JForum WAR doesn&#39;t contain the elements and classes necessary to make it work within the portlet standard. We have to add those elements manually in the unzipped package:<br /> 3.1. Copy the attached portlet.xml file in the WEB-INF directory (this file is the XML portlet descriptor used for deployment of the web app as a portlet)<br /> 3.2. Copy the attached portlet-wrappers.jar in the WEB-INF/lib directory (this JAR is necessary to make the app work inside a portlet)<br /> 3.3. Unzip the attached org.zip file in WEB-INF/classes (this is the portlet bridge implemented by Jahia specifically for JForum)<br /> 4. Set the parameter portletAJAXRenderingActivated to false in the Jahia configuration file WEB-INF/etc/config/jahia.properties (Ajax rendering of portlets causes some display problems with JForum)<br /> 5. Start Jahia<br /> 6. In the Jahia admin, go to &quot;Server settings &gt; Manage portlets&quot; , select the WAR file with the first Browse button, and click &quot;Prepare and deploy war&quot;<br /> 7. After a few seconds, the JForum portlet will be available in the portlets list; exit the administration and add it in the Mashup Manager to make it available to contributors.<br /> <br /> Hope this will help,<br /> <br /> Tristan</p>

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

    Re: Forum support in Jahia

    by  extra_rice »  2011/06/07 20:36

     

    Hi trenaud,

     

    I've followed the steps you provided but I'm encountering an error:

    An error occured while processing your request: The filename, directory name, or volume label syntax is incorrect

    I not sure what's wrong but I've done the steps again several times but not successful. I hope you can help me with this.

     

    Thanks in advance!

      (extra_rice)

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

    Re: Forum support in Jahia

    by  telachkar »  2011/06/07 20:36

     

    extra_rice wrote:

    I've followed the steps you provided but I'm encountering an error:

    An error occured while processing your request: The filename, directory name, or volume label syntax is incorrect

     

    Hi,

    Looking at the screen capture, it is hard to understand where the problem is coming from. There should be an exception in the Jahia or Tomcat log file when you try to deploy the WAR file. Could you attach the stack trace of that exception?

     

    Thanks,

    Tarek

  • Re: Forum support in Jahia
    2011/07/08 13:28

    telachkar <p> &nbsp;</p> <blockquote> <p class="p1"> <b>extra_rice wrote:</b></p> <p class="p2"> I&#39;ve followed the steps you provided but I&#39;m encountering an error:</p> <blockquote> <p class="p2"> An error occured while processing your request: The filename, directory name, or volume label syntax is incorrect</p> </blockquote> </blockquote> <p class="p3"> &nbsp;</p> <p class="p4"> Hi,</p> <p class="p5"> Looking at the screen capture, it is hard to understand where the problem is coming from. There should be an exception in the Jahia or Tomcat log file when you try to deploy the WAR file. Could you attach the stack trace of that exception?</p> <p class="p5"> &nbsp;</p> <p class="p4"> Thanks,</p> <p class="p4"> Tarek</p>

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

    Re: Forum support in Jahia

    by  extra_rice »  2011/06/07 20:36

    hi tarek,

    thank you for helping... i saved the war file in my d: drive and this is the log entry:



    [2010-06-22 09:35:03,003: ERROR [ManageComponents] - exception

    javax.jcr.NamespaceException: D: is not a registered namespace prefix.
    at org.apache.jackrabbit.core.NamespaceRegistryImpl.getURI(NamespaceRegistryImpl.java:429)
    at org.apache.jackrabbit.commons.AbstractSession.getNamespaceURI(AbstractSession.java:133)
    at org.apache.jackrabbit.core.SessionImpl.getURI(SessionImpl.java:672)
    at org.apache.jackrabbit.spi.commons.conversion.NameParser.parse(NameParser.java:179)
    at org.apache.jackrabbit.spi.commons.conversion.ParsingNameResolver.getQName(ParsingNameResolver.java:62)
    at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:144)
    at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:57)
    at org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver.getQPath(ParsingPathResolver.java:60)
    at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver.getQPath(CachingPathResolver.java:77)
    at org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver.getQPath(DefaultNamePathResolver.java:78)
    at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:697)
    at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:688)
    at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:677)
    at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:2110)
    at org.jahia.services.content.JCRNodeWrapperImpl.addNode(JCRNodeWrapperImpl.java:271)
    at org.jahia.services.content.JCRNodeWrapperImpl.uploadFile(JCRNodeWrapperImpl.java:255)
    at org.jahia.services.content.JCRNodeDecorator.uploadFile(JCRNodeDecorator.java:119)
    at org.jahia.admin.components.ManageComponents.writeToDisk(ManageComponents.java:1104)
    at org.jahia.admin.components.ManageComponents.preparePortlet(ManageComponents.java:1001)
    at org.jahia.admin.components.ManageComponents.userRequestDispatcher(ManageComponents.java:175)
    at org.jahia.admin.components.ManageComponents.service(ManageComponents.java:120)
    at org.jahia.bin.JahiaAdministration.userRequestDispatcher(JahiaAdministration.java:361)
    at org.jahia.bin.JahiaAdministration.service(JahiaAdministration.java:242)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jahia.bin.filters.jcr.JcrSessionFilter.doFilter(JcrSessionFilter.java:40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    2010-06-22 09:35:03,013: ERROR [ManageComponents] - java.io.IOException: The filename, directory name, or volume label syntax is incorrect
    java.io.IOException: The filename, directory name, or volume label syntax is incorrect
    at java.io.WinNTFileSystem.canonicalize0(Native Method)
    at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:375)
    at java.io.File.getCanonicalPath(File.java:559)
    at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:642)
    at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
    at org.jahia.admin.components.ManageComponents.deployPortletWar(ManageComponents.java:1066)
    at org.jahia.admin.components.ManageComponents.preparePortlet(ManageComponents.java:1005)
    at org.jahia.admin.components.ManageComponents.userRequestDispatcher(ManageComponents.java:175)
    at org.jahia.admin.components.ManageComponents.service(ManageComponents.java:120)
    at org.jahia.bin.JahiaAdministration.userRequestDispatcher(JahiaAdministration.java:361)
    at org.jahia.bin.JahiaAdministration.service(JahiaAdministration.java:242)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jahia.bin.filters.jcr.JcrSessionFilter.doFilter(JcrSessionFilter.java:40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)

      (extra_rice)

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

    Re: Forum support in Jahia

    by  riftware »  2011/06/07 20:36

    Was this ever resolved? We are looking into CMS for our Java Developers group and forums, blogs, and easy article submissions are requirements. At face value Jahia looks promising however I'm not sure if you have forums available and working at this time.

      (riftware)

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

    Re: Forum support in Jahia

    by  fcantegrel »  2011/06/07 20:36

    Hi,

    it seems that the problem does not come from the JForum portlet at all.

    extra_rice, you said you deployed the portlet on your D: drive.
    Where is installed your Jahia server ? It should also be deployed on the D: drive. The portlet file seems not to be recognized by the server. I would presume you have a problem on your machine that you should clarify. When you copied the JForum portlet into tomcat, did you get any generic error, even before trying to use Jahia ? Is it possible that you installed the Jahia server on the C: drive and that you created a shortcut to the D: drive where you store your portlets ?
    We tested multiple times the deployment of the JForum portlet. and we did not see any errors of that kind.
    It would be interesting if, by any chance, you could post more logs (from the start of the server to the portlet deployment) and if you could explain exactly how your server is installed on your machine.

    Thank you !
    Regards,
    Fabrice.
  • Re: Forum support in Jahia
    2011/06/07 20:36

    fcantegrel Hi,<br/><br/>it seems that the problem does not come from the JForum portlet at all.<br/><br/>extra_rice, you said you deployed the portlet on your D: drive.<br/>Where is installed your Jahia server ? It should also be deployed on the D: drive. The portlet file seems not to be recognized by the server. I would presume you have a problem on your machine that you should clarify. When you copied the JForum portlet into tomcat, did you get any generic error, even before trying to use Jahia ? Is it possible that you installed the Jahia server on the C: drive and that you created a shortcut to the D: drive where you store your portlets ?<br/>We tested multiple times the deployment of the JForum portlet. and we did not see any errors of that kind. <br/>It would be interesting if, by any chance, you could post more logs (from the start of the server to the portlet deployment) and if you could explain exactly how your server is installed on your machine.<br/><br/>Thank you !<br/>Regards,<br/>Fabrice.

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

    Re: Forum support in Jahia

    by  mesdocs »  2011/06/07 20:36

    Hi,

    I have followed explanations from trenaud to deploy jforum in version 6.1.
    I could then see jforum in the portlets management.
    I have then created a mashup based on this portlet and I have added it in a new page (full template).
    The jforum installation's page then is displayed.
    Unfortunately, I can't validate installation settings.

    Here is the message in the tomcat console :


    Begin render method
    
    update session remote user --> set to root:0
    
    Portal user: root:0
    
    Is not already installed
    
    is same action? false
    
    It'snot a file upload request.
    
    characterEncoding: UTF-8
    
    cannot setCharacterEncoding on a PortletRequest!
    
    Found param: httpMethod,null
    
    Get default HttpMetod --> [GET]
    
    Found param: requestURI,/jforum/install/install.page
    
    Found param: queryString,null
    
    characterEncoding: UTF-8
    
    cannot setCharacterEncoding on a PortletRequest!
    
    characterEncoding: UTF-8
    
    cannot setCharacterEncoding on a PortletRequest!
    
    Found param: module,install
    
    Found param: dbhost,localhost
    
    Found param: dbpasswd,jforum
    
    Found param: db_connection_type,JDBC
    
    Found param: dbpasswd_confirm,jforum
    
    Found param: dbuser,jforum
    
    Found param: install_step,1
    
    Found param: database,mysql
    
    Found param: admin_pass1,root
    
    Found param: site_link,http://localhost:8080
    
    Found param: admin_pass2,root
    
    Found param: install_type,0
    
    Found param: dbport,3306
    
    Found param: use_pool,no
    
    Found param: dbname,jforum
    
    Found param: action,checkInformation
    
    Found param: requestURI,/jforum/install/install.page
    
    Found param: forum_link,http://localhost:8080/jforum/
    
    Found param: language,en_US
    
    invalidate process Action
    
    is same file upload? false
    
    Print result from session
    
    End render method

    Regards,

     

    Mesdocs

      (mesdocs)

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