Re: [xwiki-users] HTTP status 500 - xwiki entreprise 7.1.2 on RHEL6/MySql
Hi, So: * Could you show the line you have in hibernate.cfg.xml for the “connection.url” property? * You should not comment or uncomment anything else in the file (unless you know what you’re doing). The DBCP config is needed for example. You should try to have the file the same the original version except the MySQL part commented out and the default HSQLDB part commented. * Best would be if you could paste the hibernate file you’re using on pastebin for example (or any such tools) so that we could review it. Thanks -Vincent On 29 Aug 2015 at 22:47:59, Daniel Tibô (daniel.t...@gmail.com(mailto:daniel.t...@gmail.com)) wrote: Extra information : I can connect myself to the database with the xwiki user with a simple « mysql -u xwiki -p « . Thx Le 29 août 2015 à 22:04, Daniel Tibô a écrit : Hi Vincent, There was, indeed, a problem with the connector. I’ve forgot to place it after the second installation… But, when I have double checked if i had the right version from oracle, i have seen that the 5.0.8 i had (direct link from the installation guide) is not « recommended » for my version of mysql (5.1). ( https://dev.mysql.com/doc/connector-j/en/connector-j-versions.html ) So i’ve tried with the « 5.1.36 » and… I have something else now.. It’s related to the database access for the xwiki user maybe ? ( java.sql.SQLException: Access denied for user 'xwiki'@'127.0.0.1' (using password: YES) ) with : org.hibernate.HibernateException: Could not create a DBCP pool. » I’ve tried to comment the 2 line : true 20 but without success due to the previous « access denied » i think. (do i have to leave it commented for the futur ?) Thanks for your help ! Daniel type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ] org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) root cause com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ] com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:696) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:640) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:180) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) root cause java.lang.RuntimeException: Failed to located wiki descriptor for alias [xxx.xxx.xxx.xxx]
Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?
Hi Mohit, On 30 Aug 2015 at 10:21:05, Mohit Gupta (motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote: Hi Vincet, Which location i will get the 7.2-milestone-3 war file. i went to http://enterprise.xwiki.org/xwiki/bin/view/Main/Download but latest version to download is still xwiki-enterprise-web-7.2-milestone-2.war(http://www.xwiki.org/xwiki/bin/view/DownloadCode/DownloadFeedback?downloadLink=http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-7.2-milestone-2.warprojectType=DevelopmentprojectVersion=7.2-milestone-2projectID=1) Actually if you check more http://enterprise.xwiki.org/xwiki/bin/view/Main/Download#HDevelopmentBuilds you’ll see you have dev builds there. Thanks -Vincent On Thu, Aug 27, 2015 at 4:33 PM, vinc...@massol.net(mailto:vinc...@massol.net) wrote: Hi Mohit, My fix is NOT in 7.2-milestone-2! See http://jira.xwiki.org/browse/XWIKI-12425 it says fix version = 7.2-milestone-3 Thanks -Vincent PS: Please always reply to the list! On 27 Aug 2015 at 12:31:07, Mohit Gupta (motgu...@gmail.com(mailto:motgu...@gmail.com)(mailto:motgu...@gmail.com)) wrote: Thanks vincet. After applying your xwiki.oracle.hbm.xml in xwiki-platform-legacy-oldcore-7.2-milestone-2 .jar that problem went away But i am getting below error root cause org.xwiki.query.QueryException: Exception while executing query. Query statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and doc.name(http://doc.name)(http://doc.name) like 'XWikiServer%' ) and doc.fullName=_o1.name(http://o1.name)(http://o1.name) and _o1.className='XWiki.XWikiServerClass' ] com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:160) org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71) org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118) org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71) org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121) org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140) org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:146) org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:67) org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61) org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47) org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51) org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:87) org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51) org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61) org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47) org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:64) org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43) org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93) org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48) com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:742) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:688) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:229) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
Re: [xwiki-users] HTTP status 500 - xwiki entreprise 7.1.2 on RHEL6/MySql
All right :) I didn’t checked this part so well apparently…Tomcat 6 can’t have the right servlet. Time to go with a tomcat 7 ! Thank you. Daniel Le 30 août 2015 à 11:34, vinc...@massol.net a écrit : Ah, but that’s a very different error, not related to the DB: Caused by: java.lang.ClassNotFoundException: javax.servlet.AsyncContext This means you’re using a too old version of your Servlet Container which doesn’t support Servlet 3.0. XWiki 7.x requires Servlet 3.0.1, see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites At least your DB is now correctly configured apparently :) Thanks -Vincent On 30 Aug 2015 at 11:03:21, Daniel Tibô (daniel.t...@gmail.com(mailto:daniel.t...@gmail.com)) wrote: Hi, As requested : http://pastebin.com/Cn5cmpqc I’ve uncommented the 2 previous commented lines with DBCP but there is no change. For now I’m stuck with this : http://pastebin.com/6UzFgAzr Thanks Daniel Le 30 août 2015 à 10:38, vinc...@massol.net a écrit : Hi, So: * Could you show the line you have in hibernate.cfg.xml for the “connection.url” property? * You should not comment or uncomment anything else in the file (unless you know what you’re doing). The DBCP config is needed for example. You should try to have the file the same the original version except the MySQL part commented out and the default HSQLDB part commented. * Best would be if you could paste the hibernate file you’re using on pastebin for example (or any such tools) so that we could review it. Thanks -Vincent On 29 Aug 2015 at 22:47:59, Daniel Tibô (daniel.t...@gmail.com (mailto:daniel.t...@gmail.com )) wrote: Extra information : I can connect myself to the database with the xwiki user with a simple « mysql -u xwiki -p « . Thx Le 29 août 2015 à 22:04, Daniel Tibô a écrit : Hi Vincent, There was, indeed, a problem with the connector. I’ve forgot to place it after the second installation… But, when I have double checked if i had the right version from oracle, i have seen that the 5.0.8 i had (direct link from the installation guide) is not « recommended » for my version of mysql (5.1). ( https://dev.mysql.com/doc/connector-j/en/connector-j-versions.html ) So i’ve tried with the « 5.1.36 » and… I have something else now.. It’s related to the database access for the xwiki user maybe ? ( java.sql.SQLException: Access denied for user 'xwiki'@'127.0.0.1' (using password: YES) ) with : org.hibernate.HibernateException: Could not create a DBCP pool. » I’ve tried to comment the 2 line : true 20 but without success due to the previous « access denied » i think. (do i have to leave it commented for the futur ?) Thanks for your help ! Daniel type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ] org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) root cause com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ] com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:696)
Re: [xwiki-users] HTTP status 500 - xwiki entreprise 7.1.2 on RHEL6/MySql
Ah, but that’s a very different error, not related to the DB: Caused by: java.lang.ClassNotFoundException: javax.servlet.AsyncContext This means you’re using a too old version of your Servlet Container which doesn’t support Servlet 3.0. XWiki 7.x requires Servlet 3.0.1, see http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites At least your DB is now correctly configured apparently :) Thanks -Vincent On 30 Aug 2015 at 11:03:21, Daniel Tibô (daniel.t...@gmail.com(mailto:daniel.t...@gmail.com)) wrote: Hi, As requested : http://pastebin.com/Cn5cmpqc I’ve uncommented the 2 previous commented lines with DBCP but there is no change. For now I’m stuck with this : http://pastebin.com/6UzFgAzr Thanks Daniel Le 30 août 2015 à 10:38, vinc...@massol.net a écrit : Hi, So: * Could you show the line you have in hibernate.cfg.xml for the “connection.url” property? * You should not comment or uncomment anything else in the file (unless you know what you’re doing). The DBCP config is needed for example. You should try to have the file the same the original version except the MySQL part commented out and the default HSQLDB part commented. * Best would be if you could paste the hibernate file you’re using on pastebin for example (or any such tools) so that we could review it. Thanks -Vincent On 29 Aug 2015 at 22:47:59, Daniel Tibô (daniel.t...@gmail.com (mailto:daniel.t...@gmail.com )) wrote: Extra information : I can connect myself to the database with the xwiki user with a simple « mysql -u xwiki -p « . Thx Le 29 août 2015 à 22:04, Daniel Tibô a écrit : Hi Vincent, There was, indeed, a problem with the connector. I’ve forgot to place it after the second installation… But, when I have double checked if i had the right version from oracle, i have seen that the 5.0.8 i had (direct link from the installation guide) is not « recommended » for my version of mysql (5.1). ( https://dev.mysql.com/doc/connector-j/en/connector-j-versions.html ) So i’ve tried with the « 5.1.36 » and… I have something else now.. It’s related to the database access for the xwiki user maybe ? ( java.sql.SQLException: Access denied for user 'xwiki'@'127.0.0.1' (using password: YES) ) with : org.hibernate.HibernateException: Could not create a DBCP pool. » I’ve tried to comment the 2 line : true 20 but without success due to the previous « access denied » i think. (do i have to leave it commented for the futur ?) Thanks for your help ! Daniel type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ] org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) root cause com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ] com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:696) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:640) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:180) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?
On 30 Aug 2015 at 11:51:01, Mohit Gupta (motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote: Vincet, I believe i need take 7.2-SNAPSHOT/ from http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/?C=N;O=A;. Is that correct ? Yes, if you need the WAR distribution, you should take the latest snapshot from http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/ Thanks -Vincent On Sun, Aug 30, 2015 at 2:12 PM, vinc...@massol.net(mailto:vinc...@massol.net) wrote: Hi Mohit, On 30 Aug 2015 at 10:21:05, Mohit Gupta (motgu...@gmail.com(mailto:motgu...@gmail.com)(mailto:motgu...@gmail.com)) wrote: Hi Vincet, Which location i will get the 7.2-milestone-3 war file. i went to http://enterprise.xwiki.org/xwiki/bin/view/Main/Download but latest version to download is still xwiki-enterprise-web-7.2-milestone-2.war(http://www.xwiki.org/xwiki/bin/view/DownloadCode/DownloadFeedback?downloadLink=http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-7.2-milestone-2.warprojectType=DevelopmentprojectVersion=7.2-milestone-2projectID=1) Actually if you check more http://enterprise.xwiki.org/xwiki/bin/view/Main/Download#HDevelopmentBuilds you’ll see you have dev builds there. Thanks -Vincent On Thu, Aug 27, 2015 at 4:33 PM, vinc...@massol.net(mailto:vinc...@massol.net)(mailto:vinc...@massol.net) wrote: Hi Mohit, My fix is NOT in 7.2-milestone-2! See http://jira.xwiki.org/browse/XWIKI-12425 it says fix version = 7.2-milestone-3 Thanks -Vincent PS: Please always reply to the list! On 27 Aug 2015 at 12:31:07, Mohit Gupta (motgu...@gmail.com(mailto:motgu...@gmail.com)(mailto:motgu...@gmail.com)(mailto:motgu...@gmail.com)) wrote: Thanks vincet. After applying your xwiki.oracle.hbm.xml in xwiki-platform-legacy-oldcore-7.2-milestone-2 .jar that problem went away But i am getting below error root cause org.xwiki.query.QueryException: Exception while executing query. Query statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and doc.name(http://doc.name)(http://doc.name)(http://doc.name) like 'XWikiServer%' ) and doc.fullName=_o1.name(http://o1.name)(http://o1.name)(http://o1.name) and _o1.className='XWiki.XWikiServerClass' ] com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:160) org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71) org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118) org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71) org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121) org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140) org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:146) org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:67) org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61) org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47) org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51) org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:87) org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51) org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61) org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47) org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:64) org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43) org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93)
Re: [xwiki-users] HTTP status 500 - xwiki entreprise 7.1.2 on RHEL6/MySql
Hi, As requested : http://pastebin.com/Cn5cmpqc http://pastebin.com/Cn5cmpqc I’ve uncommented the 2 previous commented lines with DBCP but there is no change. For now I’m stuck with this : http://pastebin.com/6UzFgAzr http://pastebin.com/6UzFgAzr Thanks Daniel Le 30 août 2015 à 10:38, vinc...@massol.net a écrit : Hi, So: * Could you show the line you have in hibernate.cfg.xml for the “connection.url” property? * You should not comment or uncomment anything else in the file (unless you know what you’re doing). The DBCP config is needed for example. You should try to have the file the same the original version except the MySQL part commented out and the default HSQLDB part commented. * Best would be if you could paste the hibernate file you’re using on pastebin for example (or any such tools) so that we could review it. Thanks -Vincent On 29 Aug 2015 at 22:47:59, Daniel Tibô (daniel.t...@gmail.com mailto:daniel.t...@gmail.com(mailto:daniel.t...@gmail.com mailto:daniel.t...@gmail.com)) wrote: Extra information : I can connect myself to the database with the xwiki user with a simple « mysql -u xwiki -p « . Thx Le 29 août 2015 à 22:04, Daniel Tibô a écrit : Hi Vincent, There was, indeed, a problem with the connector. I’ve forgot to place it after the second installation… But, when I have double checked if i had the right version from oracle, i have seen that the 5.0.8 i had (direct link from the installation guide) is not « recommended » for my version of mysql (5.1). ( https://dev.mysql.com/doc/connector-j/en/connector-j-versions.html https://dev.mysql.com/doc/connector-j/en/connector-j-versions.html ) So i’ve tried with the « 5.1.36 » and… I have something else now.. It’s related to the database access for the xwiki user maybe ? ( java.sql.SQLException: Access denied for user 'xwiki'@'127.0.0.1' (using password: YES) ) with : org.hibernate.HibernateException: Could not create a DBCP pool. » I’ve tried to comment the 2 line : true 20 but without success due to the previous « access denied » i think. (do i have to leave it commented for the futur ?) Thanks for your help ! Daniel type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ] org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) root cause com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ] com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:696) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:640) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:180) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?
Hi Vincet, Which location i will get the 7.2-milestone-3 war file. i went to http://enterprise.xwiki.org/xwiki/bin/view/Main/Download but latest version to download is still xwiki-enterprise-web-7.2-milestone-2.war http://www.xwiki.org/xwiki/bin/view/DownloadCode/DownloadFeedback?downloadLink=http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-7.2-milestone-2.warprojectType=DevelopmentprojectVersion=7.2-milestone-2projectID=1 On Thu, Aug 27, 2015 at 4:33 PM, vinc...@massol.net vinc...@massol.net wrote: Hi Mohit, My fix is NOT in 7.2-milestone-2! See http://jira.xwiki.org/browse/XWIKI-12425 it says fix version = 7.2-milestone-3 Thanks -Vincent PS: Please always reply to the list! On 27 Aug 2015 at 12:31:07, Mohit Gupta (motgu...@gmail.com(mailto: motgu...@gmail.com)) wrote: Thanks vincet. After applying your xwiki.oracle.hbm.xml in xwiki-platform-legacy-oldcore-7.2-milestone-2 .jar that problem went away But i am getting below error root cause org.xwiki.query.QueryException: Exception while executing query. Query statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and doc.name(http://doc.name) like 'XWikiServer%' ) and doc.fullName=_o1.name( http://o1.name) and _o1.className='XWiki.XWikiServerClass' ] com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:160) org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71) org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118) org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71) org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287) org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121) org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140) org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:146) org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:67) org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61) org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47) org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51) org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:87) org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51) org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61) org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47) org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:64) org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43) org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93) org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48) com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:742) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:688) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:229) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
Re: [xwiki-users] Attachment- and extension problems, with related documentation questions for latest stable release
On 30 Aug 2015 at 15:15:45, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: Hi Johan, On 30 Aug 2015 at 14:40:38, Johan Eriksson (jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote: Hi! I performed my first install ever of xwiki today using the latest stable. Running with mysql (on separate hosts) as database. I've installed my servlet container on Centos 7, with java and tomcat versions as below: What version of XWiki did you install? 7.1.2? [root@tomcat-01]# java -version java version 1.7.0_85 OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01) OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode) Installed Packages Name : tomcat Arch : noarch Version : 7.0.54 Release : 2.el7_1 Since this is my first xwiki installation ever, I would like to share my experience, problems I faced and unanswered questions below. That’s great that you are doing so; this helps us improve XWiki and the documentation. From http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat I thought that as per example, java settings: JAVA_OPTS=-Xmx800m -XX:MaxPermSize=192m would allow me to install and play around with the application, since that recommendation is higher than the small installation (512M) reference found here http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory * My first problem appeared when I right after successful installation, in the sandbox, created an empty testpage with one attachment of 3M in size. I got an OutOfMemory exception when deleting that attachment. - Are the documented java memory recommendations still applicable or should they be considered as outdated for latest stable? so I updated the java settings to solve the problem: JAVA_OPTS=-Xmx1400m -XX:MaxPermSize=192m” So the memory requirements is indicated on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites As you can see there, for medium installs we recommend -Xmx1024m -XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small). Indeed in your case you should use the small install recommendation since at this stage it’s only to play with XWiki. Now your problem is with attachments. If you check http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory you’ll see a warning box with explanations about the memory requirements and a link that leads you http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments I’ve also checked http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and it does point to the same memory doc as I referenced above, so normally you should have seen the issue with the memory required for large attachments. What we need to do in the future is enable the filesystem store by default but we currently have a limitation with it (as indicated on that page): restoring attachments from the recycle bin via UI”. This is why we haven’t made it the default just yet. * My second problem appeared when I created my first page. The intention was to create a page with a bunch of image attachments, using an extension for displaying these images as an image gallery. When uploading 116 images of individual size ~ 3M, a total size of 374M. Uploading of files failed after 80 something files had been uploaded to the page. The disk space on the servlet container server host was full. In /var/cache/tomcat/work/Catalina/localhost/xwiki/xwiki-temp/attachment-cache a total of 6.3G of data had been stored. - Looking at the checksum of the 2000 something files stored in this directory there are 86 unique files some of which stored in 29 copies during the upload process. Is this a desired behavior of the attachment cache, or is this a bug? We have performance problems when uploading attachments in the DB (it’s very memory-hungry) but I didn’t know that the temporary directory was used that much. This looks like a bug. It would be great if you could open a jira issue at http://jira.xwiki.org with your details so that we could look at this into more details. Now since you seem to be wanting to have a lot of attachments and possibly or large size, I’d highly recommend you turn on filesystem storage for attachments. * My third problem was when trying to install an extension. I was really curious about, and wanted to test, the social login application, that even is referred to from the administration guide http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HSocialLogin. This extension does not install at all on the latest stable. My java knowledge is limited, but, I interpret the error message as failure to satisfy requirement of servlet api version 2.5 (maybe since latest stable xwiki has servlet version prereq of 3.0+). Unfortunately it
Re: [xwiki-users] Attachment- and extension problems, with related documentation questions for latest stable release
See below, On 30 Aug 2015 at 15:15:45, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: Hi Johan, On 30 Aug 2015 at 14:40:38, Johan Eriksson (jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote: Hi! I performed my first install ever of xwiki today using the latest stable. Running with mysql (on separate hosts) as database. I've installed my servlet container on Centos 7, with java and tomcat versions as below: What version of XWiki did you install? 7.1.2? [root@tomcat-01]# java -version java version 1.7.0_85 OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01) OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode) Installed Packages Name : tomcat Arch : noarch Version : 7.0.54 Release : 2.el7_1 Since this is my first xwiki installation ever, I would like to share my experience, problems I faced and unanswered questions below. That’s great that you are doing so; this helps us improve XWiki and the documentation. From http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat I thought that as per example, java settings: JAVA_OPTS=-Xmx800m -XX:MaxPermSize=192m would allow me to install and play around with the application, since that recommendation is higher than the small installation (512M) reference found here http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory * My first problem appeared when I right after successful installation, in the sandbox, created an empty testpage with one attachment of 3M in size. I got an OutOfMemory exception when deleting that attachment. - Are the documented java memory recommendations still applicable or should they be considered as outdated for latest stable? so I updated the java settings to solve the problem: JAVA_OPTS=-Xmx1400m -XX:MaxPermSize=192m” So the memory requirements is indicated on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites As you can see there, for medium installs we recommend -Xmx1024m -XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small). Indeed in your case you should use the small install recommendation since at this stage it’s only to play with XWiki. Now your problem is with attachments. If you check http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory you’ll see a warning box with explanations about the memory requirements and a link that leads you http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments I’ve also checked http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and it does point to the same memory doc as I referenced above, so normally you should have seen the issue with the memory required for large attachments. What we need to do in the future is enable the filesystem store by default but we currently have a limitation with it (as indicated on that page): restoring attachments from the recycle bin via UI”. This is why we haven’t made it the default just yet. * My second problem appeared when I created my first page. The intention was to create a page with a bunch of image attachments, using an extension for displaying these images as an image gallery. When uploading 116 images of individual size ~ 3M, a total size of 374M. Uploading of files failed after 80 something files had been uploaded to the page. The disk space on the servlet container server host was full. In /var/cache/tomcat/work/Catalina/localhost/xwiki/xwiki-temp/attachment-cache a total of 6.3G of data had been stored. - Looking at the checksum of the 2000 something files stored in this directory there are 86 unique files some of which stored in 29 copies during the upload process. Is this a desired behavior of the attachment cache, or is this a bug? We have performance problems when uploading attachments in the DB (it’s very memory-hungry) but I didn’t know that the temporary directory was used that much. This looks like a bug. It would be great if you could open a jira issue at http://jira.xwiki.org with your details so that we could look at this into more details. Now since you seem to be wanting to have a lot of attachments and possibly or large size, I’d highly recommend you turn on filesystem storage for attachments. * My third problem was when trying to install an extension. I was really curious about, and wanted to test, the social login application, that even is referred to from the administration guide http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HSocialLogin. This extension does not install at all on the latest stable. My java knowledge is limited, but, I interpret the error message as failure to satisfy requirement of servlet api version 2.5 (maybe since latest stable xwiki has servlet version prereq of 3.0+).
[xwiki-users] Attachment- and extension problems, with related documentation questions for latest stable release
Hi! I performed my first install ever of xwiki today using the latest stable. Running with mysql (on separate hosts) as database. I've installed my servlet container on Centos 7, with java and tomcat versions as below: [root@tomcat-01]# java -version java version 1.7.0_85 OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01) OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode) Installed Packages Name: tomcat Arch: noarch Version : 7.0.54 Release : 2.el7_1 Since this is my first xwiki installation ever, I would like to share my experience, problems I faced and unanswered questions below. From http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat I thought that as per example, java settings: JAVA_OPTS=-Xmx800m -XX:MaxPermSize=192m would allow me to install and play around with the application, since that recommendation is higher than the small installation (512M) reference found here http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory * My first problem appeared when I right after successful installation, in the sandbox, created an empty testpage with one attachment of 3M in size. I got an OutOfMemory exception when deleting that attachment. - Are the documented java memory recommendations still applicable or should they be considered as outdated for latest stable? so I updated the java settings to solve the problem: JAVA_OPTS=-Xmx1400m -XX:MaxPermSize=192m * My second problem appeared when I created my first page. The intention was to create a page with a bunch of image attachments, using an extension for displaying these images as an image gallery. When uploading 116 images of individual size ~ 3M, a total size of 374M. Uploading of files failed after 80 something files had been uploaded to the page. The disk space on the servlet container server host was full. In /var/cache/tomcat/work/Catalina/localhost/xwiki/xwiki-temp/attachment-cache a total of 6.3G of data had been stored. - Looking at the checksum of the 2000 something files stored in this directory there are 86 unique files some of which stored in 29 copies during the upload process. Is this a desired behavior of the attachment cache, or is this a bug? * My third problem was when trying to install an extension. I was really curious about, and wanted to test, the social login application, that even is referred to from the administration guide http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HSocialLogin. This extension does not install at all on the latest stable. My java knowledge is limited, but, I interpret the error message as failure to satisfy requirement of servlet api version 2.5 (maybe since latest stable xwiki has servlet version prereq of 3.0+). - Since the documentation only exist in one latest version, should I as user assume that the documentation is applicable for latest development-, stable- or long term release? Now, it might be bad luck, or my failure to understand the xwiki release process, that my first three tests of the software failed with problems. I will now try the long term support release hoping that I successfully can add attachments and install extensions according to my requirements. Best regards Johan Eriksson ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Attachment- and extension problems, with related documentation questions for latest stable release
Hi Johan, On 30 Aug 2015 at 14:40:38, Johan Eriksson (jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote: Hi! I performed my first install ever of xwiki today using the latest stable. Running with mysql (on separate hosts) as database. I've installed my servlet container on Centos 7, with java and tomcat versions as below: What version of XWiki did you install? 7.1.2? [root@tomcat-01]# java -version java version 1.7.0_85 OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01) OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode) Installed Packages Name : tomcat Arch : noarch Version : 7.0.54 Release : 2.el7_1 Since this is my first xwiki installation ever, I would like to share my experience, problems I faced and unanswered questions below. That’s great that you are doing so; this helps us improve XWiki and the documentation. From http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat I thought that as per example, java settings: JAVA_OPTS=-Xmx800m -XX:MaxPermSize=192m would allow me to install and play around with the application, since that recommendation is higher than the small installation (512M) reference found here http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory * My first problem appeared when I right after successful installation, in the sandbox, created an empty testpage with one attachment of 3M in size. I got an OutOfMemory exception when deleting that attachment. - Are the documented java memory recommendations still applicable or should they be considered as outdated for latest stable? so I updated the java settings to solve the problem: JAVA_OPTS=-Xmx1400m -XX:MaxPermSize=192m” So the memory requirements is indicated on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites As you can see there, for medium installs we recommend -Xmx1024m -XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small). Indeed in your case you should use the small install recommendation since at this stage it’s only to play with XWiki. Now your problem is with attachments. If you check http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory you’ll see a warning box with explanations about the memory requirements and a link that leads you http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments I’ve also checked http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and it does point to the same memory doc as I referenced above, so normally you should have seen the issue with the memory required for large attachments. What we need to do in the future is enable the filesystem store by default but we currently have a limitation with it (as indicated on that page): restoring attachments from the recycle bin via UI”. This is why we haven’t made it the default just yet. * My second problem appeared when I created my first page. The intention was to create a page with a bunch of image attachments, using an extension for displaying these images as an image gallery. When uploading 116 images of individual size ~ 3M, a total size of 374M. Uploading of files failed after 80 something files had been uploaded to the page. The disk space on the servlet container server host was full. In /var/cache/tomcat/work/Catalina/localhost/xwiki/xwiki-temp/attachment-cache a total of 6.3G of data had been stored. - Looking at the checksum of the 2000 something files stored in this directory there are 86 unique files some of which stored in 29 copies during the upload process. Is this a desired behavior of the attachment cache, or is this a bug? We have performance problems when uploading attachments in the DB (it’s very memory-hungry) but I didn’t know that the temporary directory was used that much. This looks like a bug. It would be great if you could open a jira issue at http://jira.xwiki.org with your details so that we could look at this into more details. Now since you seem to be wanting to have a lot of attachments and possibly or large size, I’d highly recommend you turn on filesystem storage for attachments. * My third problem was when trying to install an extension. I was really curious about, and wanted to test, the social login application, that even is referred to from the administration guide http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HSocialLogin. This extension does not install at all on the latest stable. My java knowledge is limited, but, I interpret the error message as failure to satisfy requirement of servlet api version 2.5 (maybe since latest stable xwiki has servlet version prereq of 3.0+). Unfortunately it seems you were not lucky and you picked one extension for which its author and the community have not updated to work on the latest version of XWiki :( As you can see on http://extensions.xwiki.org/xwiki/bin/view/Extension/Social+Login+Application this
Re: [xwiki-users] Attachment- and extension problems, with related documentation questions for latest stable release
On 30 Aug 2015 at 15:28:30, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: See below, On 30 Aug 2015 at 15:15:45, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: Hi Johan, On 30 Aug 2015 at 14:40:38, Johan Eriksson (jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote: Hi! I performed my first install ever of xwiki today using the latest stable. Running with mysql (on separate hosts) as database. I've installed my servlet container on Centos 7, with java and tomcat versions as below: What version of XWiki did you install? 7.1.2? [root@tomcat-01]# java -version java version 1.7.0_85 OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01) OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode) Installed Packages Name : tomcat Arch : noarch Version : 7.0.54 Release : 2.el7_1 Since this is my first xwiki installation ever, I would like to share my experience, problems I faced and unanswered questions below. That’s great that you are doing so; this helps us improve XWiki and the documentation. From http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat I thought that as per example, java settings: JAVA_OPTS=-Xmx800m -XX:MaxPermSize=192m would allow me to install and play around with the application, since that recommendation is higher than the small installation (512M) reference found here http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory * My first problem appeared when I right after successful installation, in the sandbox, created an empty testpage with one attachment of 3M in size. I got an OutOfMemory exception when deleting that attachment. - Are the documented java memory recommendations still applicable or should they be considered as outdated for latest stable? so I updated the java settings to solve the problem: JAVA_OPTS=-Xmx1400m -XX:MaxPermSize=192m” So the memory requirements is indicated on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites As you can see there, for medium installs we recommend -Xmx1024m -XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small). Indeed in your case you should use the small install recommendation since at this stage it’s only to play with XWiki. Now your problem is with attachments. If you check http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory you’ll see a warning box with explanations about the memory requirements and a link that leads you http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments I’ve also checked http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and it does point to the same memory doc as I referenced above, so normally you should have seen the issue with the memory required for large attachments. What we need to do in the future is enable the filesystem store by default but we currently have a limitation with it (as indicated on that page): restoring attachments from the recycle bin via UI”. This is why we haven’t made it the default just yet. * My second problem appeared when I created my first page. The intention was to create a page with a bunch of image attachments, using an extension for displaying these images as an image gallery. When uploading 116 images of individual size ~ 3M, a total size of 374M. Uploading of files failed after 80 something files had been uploaded to the page. The disk space on the servlet container server host was full. In /var/cache/tomcat/work/Catalina/localhost/xwiki/xwiki-temp/attachment-cache a total of 6.3G of data had been stored. - Looking at the checksum of the 2000 something files stored in this directory there are 86 unique files some of which stored in 29 copies during the upload process. Is this a desired behavior of the attachment cache, or is this a bug? We have performance problems when uploading attachments in the DB (it’s very memory-hungry) but I didn’t know that the temporary directory was used that much. This looks like a bug. It would be great if you could open a jira issue at http://jira.xwiki.org with your details so that we could look at this into more details. Now since you seem to be wanting to have a lot of attachments and possibly or large size, I’d highly recommend you turn on filesystem storage for attachments. * My third problem was when trying to install an extension. I was really curious about, and wanted to test, the social login application, that even is referred to from the administration guide http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HSocialLogin. This extension does not install at all on the latest stable. My java knowledge is limited, but, I interpret the