Re: Problem with jforum portlet
"Ricardo Ferreira" <[email protected]> Thu, 31 May 2007 18:50:20 +0100
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, That's it :) I made the changes and now am able to insert new topics :) Thanks a lot KT... Regards, Ricardo Ferreira On 5/31/07, Khaled TLILI <[email protected]> wrote: > > Hi, > > As I thougth, it's jahia version that doesn't support file upload from a > portlet. > > Unfortunatly, you can't use post and attachement without that patch.. > However it's possible to disable attachement: > > 1) after deploying portlet (or befor building portlet with "ant rebuild" > task on root directory) in all <form> tag remove of all jforum > templates, remove "enctype="multipart/form-data". > > 2) in Admin, remove attachemnt permissoins for all groups. > > Avatars will not work too. > > Reagrds, > KT. > > > Ricardo Ferreira a écrit : > > Hi KT, > > > > I forgot to say...sorry! I use Jahia 5.0.1 r16138. > > > > > Unfortunatly, I think that your jahia version needs a patch in order > to > > > deal with file upload. If you trie with last jahia build, I think that > > > it works. > > > > The problem i have is not when i want to attach... i simple can't make > > any post or post reply! It always show me "Error: Please logout and > > log again". > > > > > > > Jahia-5-SP2, builded with this patch, is comming soon,. > > > > So i can't make any post (or post reply) without that pach? > > Thanks on advanced. > > > > > > Regards, > > Ricardo Ferreira > > > > > > > > On 5/31/07, *Khaled TLILI* <[email protected] > > <mailto:[email protected]>> wrote: > > > > Hi, > > > > witch version of jahia do you have? > > > > JForum, downloaded from jahia site, allows to attach files. > > Unfortunatly, I think that your jahia version needs a patch in > > order to > > deal with file upload. If you trie with last jahia build, I think > > that > > it works. > > > > Jahia-5-SP2, builded with this patch, is comming soon,. > > > > Regards. > > KT. > > > > Ricardo Ferreira a écrit : > > > Hi all, > > > > > > I successfully deployed portlet from > > > http://www.jahia.net/jahia/page571.html. > > > > > > I'm testing jforum but i'm facing a problem. I can create foruns > and > > > categories on admin control panel, but i can't post anything on > > > them... it give me always the same error "Error: Please logout > > and log > > > again". I changed the log4j.xml to debug mode, and i send log as > > > attachment. > > > I made some search on code and i think the error accours on > > > org/jahia/portlet/jforum/JForumPortletBridge.java: > > > > > > > > > private void printResultFromSession(RenderRequest request, > > > RenderResponse response) throws java.io.IOException { > > > response.setContentType("text/html;charset=" + > > > SystemGlobals.getValue(ConfigKeys.ENCODING)); > > > //response.setContentType("text/html;"); > > > > > > String result = (String) > > > > > request.getPortletSession > ().getAttribute(JFORUM_OUPUTSTREAM_RESULT_KEY); > > > > > if (result == null || result.equalsIgnoreCase("")) { > > > /* > > > * logger.debug("No result in session"); > > > ......................... > > > */ > > > logger.error("Result is null or empty: " + result); > > > result = "<div style='color:red;'> Error: Please > logout > > > and log again </div> <br/>"; > > > } > > > logger.debug("Print result from session"); > > > response.getPortletOutputStream > > > > > ().write(result.getBytes(SystemGlobals.getValue(ConfigKeys.ENCODING > ))); > > > } > > > > > > > > > for some reason result is empty. > > > > > > Even i can't make any post on portlet, if I try to post (as > > anonymous, > > > because i can't authenticate) on myserver:8080/jforum (e.g. direct > > > access to jforum) i am able to insert topics... and i can > see/aprove > > > on admin control panel (on portlet) > > > > > > Can anyone help me? > > > > > > > > > Regards, > > > Ricardo Ferreira > > > > > > > > > Categories > > > < > > > http://jahia-dev.multicert.inet:8080/jahia/Jahia/pid/3/cache/bypass/appid/178_2/_ns/Ympmb3J1bTo6amZvcnVtcG9ydGxldDo6LTQyMThkZjE3OjExMmQ3ZmQzOWEzOi03ZmZmfGMwfGQwfGVyZXF1ZXN0VVJJPTE9L2pmb3J1bS9hZG1pbkNhdGVnb3JpZXMvbGlzdC5wYWdl/j2action/true/ > > < > http://jahia-dev.multicert.inet:8080/jahia/Jahia/pid/3/cache/bypass/appid/178_2/_ns/Ympmb3J1bTo6amZvcnVtcG9ydGxldDo6LTQyMThkZjE3OjExMmQ3ZmQzOWEzOi03ZmZmfGMwfGQwfGVyZXF1ZXN0VVJJPTE9L2pmb3J1bS9hZG1pbkNhdGVnb3JpZXMvbGlzdC5wYWdl/j2action/true/ > >> > > > > > > On 3/22/07, *Khaled TLILI* <[email protected] > > <mailto:[email protected]> > > > <mailto:[email protected] <mailto:[email protected]>>> wrote: > > > > > > Hi, > > > > > > It'spossible that the portlet is not well deployed. > > > > > > In order to deploy a portlet, you have to put in > > > tomcat/webapps/jahia/var/new_webapps. > > > > > > Wait until jahia deploys jforum (without exception) > > portlet and then > > > check in tomcat/webapps if there is jforum webapp with all > > files. > > > > > > Warning: you have to use portlet version > > > (http://www.jahia.net/jahia/page571.html > > <http://www.jahia.net/jahia/page571.html>) and not the one > downloaded > > > from http://www.jforum.net/ > > > > > > KT. > > > > > > Stepan Samarin a écrit : > > > > Hi, > > > > > > > > I successfully deployed latest jforum ( 2.1.7) as a > > portlet into > > > Jahia > > > > 5.0.1 . > > > > But when I try to add this portlet to a page, it's not > > possible to > > > > select it, portlet search gives the following: > > > > > > > > Nothing found to display. > > > > Selected portlet is: \\null . > > > > > > > > catalina.out shows the following message: > > > > 40187914 [2007-03-22 14:12:26,177] > > > > [org.jahia.engines.shared.Application_Field] WARN - > Couldn't > > > retrieve > > > > entry point definitions for application jforum-2.1 > > > > > > > > Please help. Forum functionality is crucial for our needs... > > > > Same thing happened for jforum.war (2.1.5 version as far as > I > > > > understand) from jahia website. > > > > > > > > Regards, Stepan. > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > 84831104 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.render:142 - JForum > > is already installed > > > 84831109 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.render:148 - Database > > is: > > > /home/jahia/jahia5.0.1/tomcat/webapps/jforum/WEB-INF/config/database/postgresql/postgresql.sql > > > 84831115 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.render :167 - Auto > > action performed > > > 84831120 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.isSameServeltAction:244 > > - is same action? false > > > 84831125 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.synchFileUpload :361 > > - Synch file upload, found (0) files. > > > 84831130 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: javax.servlet.include.request_uri > > > 84831134 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: javax.servlet.include.context_path > > > 84831138 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: javax.servlet.include.servlet_path > > > 84831143 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: currentRequest > > > 84831148 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.jetspeed.portlet.window > > > 84831152 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: httpJsContextPath > > > 84831156 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: > > org.apache.jetspeed.engine.core.DynamicInformationProvider > > > 84831160 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.jahia.license.licenseType > > > 84831166 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.jahia.data.JahiaParams > > > 84831169 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: jahiaEvent > > > 84831173 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.portletapi.portal > > > 84831177 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: javax.portlet.config > > > 84831186 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: languagesStates > > > 84831190 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: jspSource > > > 84831194 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.jahia.sitekey > > > 84831198 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.jahia.services.applications.ProcessingContext > > > 84831203 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.jetspeed.prefered.characterencoding > > > 84831206 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.jetspeed.request.RequestContext > > > 84831212 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: URL > > > 84831217 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.jahia.pageid > > > 84831222 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.apache.jetspeed.ContentDispatcher > > > 84831229 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: topNavigationContainerList > > > 84831234 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.apache.jetspeed.Page > > > 84831241 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.jahia.engines.EngineHashMap > > > 84831248 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.apache.jetspeed.context > > > 84831287 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.struts.action.MODULE > > > 84831293 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.portletapi.fullscreen > > > 84831298 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: topNavigationContainerVector > > > 84831306 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.apache.jetspeed.Fragment > > > 84831311 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.jetspeed.ContentDispatcher > > > 84831317 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.apache.jetspeed.prefered.locale > > > 84831321 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.struts.action.mapping.instance > > > 84831326 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.portletapi.contextid > > > 84831331 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: javaScriptPath > > > 84831336 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: engineUrl > > > 84831340 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.jetspeed.method > > > 84831345 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.jetspeed.request.RequestContext > > > 84831350 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: isIE > > > 84831354 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.jahia.params.ParamBean > > > 84831359 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.jahia.data.JahiaData > > > 84831364 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: javax.portlet.response > > > 84831368 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: currentPage > > > 84831374 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.jahia.siteurl > > > 84831379 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: eventName > > > 84831384 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.jahia.operationmode > > > 84831389 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.apache.jetspeed.portlet.name > > <http://org.apache.jetspeed.portlet.name> > > > 84831393 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.struts.action.MESSAGE > > > 84831399 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: > > org.apache.jetspeed.engine.core.DynamicInformationProvider > > > 84831404 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.portletapi.userlist > > > 84831409 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: currentJahia > > > 84831414 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.apache.jetspeed.portlet.window > > > 84831419 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: currentSite > > > 84831424 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.jahia.siteid > > > 84831430 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: serverURL > > > 84831434 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.jahia.services.applications.AppID > > > 84831439 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: org.apache.jetspeed.Fragment > > > 84831444 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: javax.portlet.request > > > 84831448 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: engineTitle > > > 84831454 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod > > :401 - Found attr: org.apache.jetspeed.Page > > > 84831459 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:401 > > - Found attr: currentUser > > > 84831462 DEBUG net.jforum.JForum.service:135 - Call JForum > > Servlet, service() method. > > > 84831468 DEBUG > > org.jahia.portlet.jforum.HttpServletRequestWrapper.getParameter:188 > > - Found param: httpMethod,null > > > 84831473 DEBUG > > org.jahia.portlet.jforum.HttpServletRequestWrapper.getMethod:156 - > > Get default HttpMetod --> [GET] > > > 84831478 DEBUG > > org.jahia.portlet.jforum.HttpServletRequestWrapper.getParameter:188 > > - Found param: requestURI,/jforum/jforum.page > > > 84831483 DEBUG net.jforum.ActionServletRequest.<init>:220 - > > RequestURI: /jforum/jforum.page > > > 84831488 DEBUG net.jforum.ActionServletRequest.<init>:221 - > > RequestType: GET > > > 84831493 DEBUG > > org.jahia.portlet.jforum.HttpServletRequestWrapper.getParameter:188 > > - Found param: queryString,null > > > 84831497 DEBUG net.jforum.ActionServletRequest.<init>:222 - > > RequestQueryString: null > > > 84831502 DEBUG > > org.jahia.portlet.jforum.HttpServletRequestWrapper.getParameter:188 > > - Found param: queryString,null > > > 84831523 DEBUG net.jforum.ActionServletRequest.<init>:245 - > > Parse URL: true,true,true > > > 84831528 DEBUG > > org.jahia.portlet.jforum.HttpServletRequestWrapper.getParameter:188 > > - Found param: queryString,null > > > 84831535 DEBUG > > > org.jahia.portlet.jforum.HttpServletRequestWrapper.setCharacterEncoding:63 > > - characterEncoding: UTF-8 > > > 84831539 DEBUG > > > org.jahia.portlet.jforum.HttpServletRequestWrapper.setCharacterEncoding:64 > > - cannot setCharacterEncoding on a PortletRequest! > > > 84831544 DEBUG net.jforum.ActionServletRequest.<init>:250 - Is > > parsing url > > > 84831550 DEBUG > > > org.jahia.portlet.jforum.HttpServletRequestWrapper.setCharacterEncoding:63 > > - characterEncoding: UTF-8 > > > 84831551 DEBUG > > > org.jahia.portlet.jforum.HttpServletRequestWrapper.setCharacterEncoding:64 > > - cannot setCharacterEncoding on a PortletRequest! > > > 84831557 DEBUG > > org.jahia.portlet.jforum.HttpServletRequestWrapper.getParameter:188 > > - Found param: requestURI,/jforum/jforum.page > > > 84831565 INFO net.jforum.SessionFacade.remove:201 - Removing > > session E810D32E7A096CBE9E236D5BE98AEB76 > > > 84831572 DEBUG > > org.jahia.portlet.jforum.HttpServletRequestWrapper.getRemoteAddr:74 > > - cannot getRemoteAddr on a PortletRequest! > > > 84831578 DEBUG > > net.jforum.JForumExecutionContext.getConnection:159 - Getting a > > connection for the request: > > com.mchange.v2.c3p0.impl.NewProxyConnection@185c98f > > > 84831601 DEBUG net.jforum.JForum.service:186 - From JFrorum > > servlet: Action is: null Module is: null > > > 84831742 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:421 > > - There is NO redirection > > > 84831751 WARN > > org.jahia.portlet.jforum.JForumPortletBridge.saveResultInSession:487 > > - Result is empty > > > 84831761 DEBUG > > > org.jahia.portlet.jforum.JForumPortletBridge.callServletServiceMethod:431 > > - End callServletServiceMethod > > > 84831769 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.invalidateProcessAction > > :341 - invalidate process Action > > > 84831773 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.isMultipart:318 - is > > same file upload? false > > > 84831781 ERROR > > org.jahia.portlet.jforum.JForumPortletBridge.printResultFromSession > > :466 - Result is null or empty: > > > 84831791 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.printResultFromSession > :470 > > - Print result from session > > > 84831799 DEBUG > > org.jahia.portlet.jforum.JForumPortletBridge.render :200 - End > > render method > > > 84915163 [2007-05-31 11:45:01,129] [org.jahia.bin.Jahia] INFO - > > Processed > > > [/jahia/Jahia/pid/3/cache/bypass/appid/178_2/_ns/YWpmb3J1bTo6amZvcnVtcG9ydGxldDo6LTQyMThkZjE3OjExMmQ3ZmQzOWEzOi03ZmZmfGMwfGQwfGVyZXF1ZXN0VVJJPTE9L2pmb3J1bS9qZm9ydW0ucGFnZQ__] > > user=[root] ip=[ 192.168.130.250 <http://192.168.130.250>] in > [1328ms] > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > dev_list mailing list > > > [email protected] <mailto:[email protected]> > > > http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list > > <http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list> > > > > > > > > > ------------------------------------------------------------------------ > > > > > > No virus found in this incoming message. > > > Checked by AVG Free Edition. > > > Version: 7.5.472 / Virus Database: 269.8.4/825 - Release Date: > > 5/30/2007 15:03 > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > dev_list mailing list > > [email protected] > > http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list > > > > ------------------------------------------------------------------------ > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.472 / Virus Database: 269.8.4/825 - Release Date: 5/30/2007 > 15:03 > > > > _______________________________________________ dev_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list