Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?
Hi Mohit, This is possibly a bug but we’d need the full stack trace to know more. This is a clean install, right (not an upgrade)? Thanks -Vincent On 23 Aug 2015 at 17:58:57, Mohit Gupta (motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote: Thanks Thomas and Clemens. I moved to java 7 and using ojdbc6.jar instead of ojdbc14.jar. But i am getting below error when i hit url http://localhost:/wiki/ in browser after my tomcat start Failed to extract Entity Resource Reference from URL [ http://localhost:/wiki/bin/view/Main/]] with root cause java.sql.SQLException: ORA-01408: such column list already indexed at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70) at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183) On Mon, Aug 17, 2015 at 2:46 PM, Thomas Mortagne wrote: Yes the exact error looks more like jdbc issue but the first thing is to move to Java 7 instead of Java 6 in any case. I'm even surprised it went as far as trying to initialize the DB. On Mon, Aug 17, 2015 at 10:57 AM, Clemens Klein-Robbenhaar wrote: Alternatively it might have something to do with the JDBC driver. XWiki wants a JDBC-4 driver for the 7.x series (This information can be found somewhere in the release notes for 7.0: http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki70#HIssuesspecifictoXWiki7.0 ) Maybe you have a somewhat older Oracle JDBC driver? (Somehow your tomcat must have found a new java version, btw, or it would fail to start up with a different error message than what you got: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUnsupportedmajor.minorversion51.0 ) just a guess Clemens But this issue does not seems to be related to java 6/7. Looking at logs looks like its an issue related to database. Isn't it ? On Mon, Aug 17, 2015 at 11:52 AM, Thomas Mortagne thomas.morta...@xwiki.com wrote: XWiki require Java 7 since 6.0. On Sun, Aug 16, 2015 at 3:11 PM, Mohit Gupta wrote: I download the xwiki war file i.e xwiki-enterprise-web-7.2-milestone-2 with db as Oracle. Here the configuration in hibernate.cfg.file jdbc:oracle:thin:@localhost :1521:orcl xwiki xwiki name=connection.driver_classoracle.jdbc.driver.OracleDriver name=dialectorg.hibernate.dialect.Oracle10gDialect true 0 false true 20 But when i hit the url in browser i get below error XWiki initialization failed! Exception thrown during job execution class java.lang.AbstractMethodError: null at org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914) at org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914) at org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:283) at org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357) at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304) at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287) at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038) at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533) at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870) at com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:253) at com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:681) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:842) at
Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?
Thanks Thomas and Clemens. I moved to java 7 and using ojdbc6.jar instead of ojdbc14.jar. But i am getting below error when i hit url http://localhost:/wiki/ in browser after my tomcat start Failed to extract Entity Resource Reference from URL [ http://localhost:/wiki/bin/view/Main/]] with root cause java.sql.SQLException: ORA-01408: such column list already indexed at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70) at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183) On Mon, Aug 17, 2015 at 2:46 PM, Thomas Mortagne thomas.morta...@xwiki.com wrote: Yes the exact error looks more like jdbc issue but the first thing is to move to Java 7 instead of Java 6 in any case. I'm even surprised it went as far as trying to initialize the DB. On Mon, Aug 17, 2015 at 10:57 AM, Clemens Klein-Robbenhaar c.robbenh...@espresto.com wrote: Alternatively it might have something to do with the JDBC driver. XWiki wants a JDBC-4 driver for the 7.x series (This information can be found somewhere in the release notes for 7.0: http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki70#HIssuesspecifictoXWiki7.0 ) Maybe you have a somewhat older Oracle JDBC driver? (Somehow your tomcat must have found a new java version, btw, or it would fail to start up with a different error message than what you got: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUnsupportedmajor.minorversion51.0 ) just a guess Clemens But this issue does not seems to be related to java 6/7. Looking at logs looks like its an issue related to database. Isn't it ? On Mon, Aug 17, 2015 at 11:52 AM, Thomas Mortagne thomas.morta...@xwiki.com wrote: XWiki require Java 7 since 6.0. On Sun, Aug 16, 2015 at 3:11 PM, Mohit Gupta motgu...@gmail.com wrote: I download the xwiki war file i.e xwiki-enterprise-web-7.2-milestone-2 with db as Oracle. Here the configuration in hibernate.cfg.file property name=connection.urljdbc:oracle:thin:@localhost :1521:orcl/property property name=connection.usernamexwiki/property property name=connection.passwordxwiki/property property name=connection.driver_classoracle.jdbc.driver.OracleDriver/property property name=dialectorg.hibernate.dialect.Oracle10gDialect/property property name=connection.SetBigStringTryClobtrue/property property name=jdbc.batch_size0/property property name=jdbc.use_streams_for_binaryfalse/property property name=dbcp.poolPreparedStatementstrue/property property name=dbcp.maxOpenPreparedStatements20/property mapping resource=xwiki.oracle.hbm.xml/ mapping resource=feeds.oracle.hbm.xml/ mapping resource=activitystream.hbm.xml/ mapping resource=instance.hbm.xml/ mapping resource=mailsender.oracle.hbm.xml/ But when i hit the url in browser i get below error XWiki initialization failed! Exception thrown during job execution class java.lang.AbstractMethodError: null at org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914) at org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914) at org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:283) at org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357) at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304) at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287) at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038) at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533) at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863) at
Re: [xwiki-users] Change Page Owner
Hi Hamster, On 22 Aug 2015 at 09:17:37, Hamster (teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote: Just wondering...3 1/2 years ago it was not possible to change the owner of a page in the UI. Is this now possible (with XWiki 7.x) within the UI or do I still need to use the script? It’s still not possible to do it with the UI (you have to use a script). The reason it hasn’t changed is that nobody has asked for it :) If you think such a UI feature is needed please create a jira issue for it, with some description as to where you’d see it located in the UI and how it would work. Thanks -Vincent [snip] ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Change Page Owner
Hi Tim, On 23 Aug 2015 at 22:53:56, Tim Dudgeon (tdudg...@informaticsmatters.com(mailto:tdudg...@informaticsmatters.com)) wrote: I'd certainly give that a +1. Seems like pretty necessary functionality. Also, to be able to transfer ownership of all items belonging to a user (useful when someone leaves your organisation and you need to transfer their stuff to someone else). Note that you can remove a user without having to transfer any ownership and you don’t need to be the creator of a page to be allowed to modify it or have permissions on it. Also, even if someone leaves a company they’re still the creator of the pages they created (in reality, this can never be removed, they’ll always be the creator of that page, even if you try to hide it ;)). Personally I don’t see this feature as a necessary one. I’m curious: why do you think it’s necessary? :) Thanks -Vincent Tim On 23/08/2015 13:39, vinc...@massol.net wrote: Hi Hamster, On 22 Aug 2015 at 09:17:37, Hamster (teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote: Just wondering...3 1/2 years ago it was not possible to change the owner of a page in the UI. Is this now possible (with XWiki 7.x) within the UI or do I still need to use the script? It’s still not possible to do it with the UI (you have to use a script). The reason it hasn’t changed is that nobody has asked for it :) If you think such a UI feature is needed please create a jira issue for it, with some description as to where you’d see it located in the UI and how it would work. Thanks -Vincent [snip] ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Change Page Owner
Well, I suppose the scenario is like this. Your company has 2 users, Jon and Sam. Jon has just left the company and Sam is picking up all his work. There needs to be a simple way to transfer Jon's rights to all documents and apps to Sam. Its probably correct to leave Jon as a user, but just inactivate the account (e.g. the fact the Jon created and edited some docs is important information and should not be lost). But there needs to be a simple way to enable Sam to do anything that Jon used to be able to do on all of those docs. e.g. not have to make a manual change on every document. Maybe there's already a way to do this. Tim On 23/08/2015 18:40, vinc...@massol.net wrote: Hi Tim, On 23 Aug 2015 at 22:53:56, Tim Dudgeon (tdudg...@informaticsmatters.com(mailto:tdudg...@informaticsmatters.com)) wrote: I'd certainly give that a +1. Seems like pretty necessary functionality. Also, to be able to transfer ownership of all items belonging to a user (useful when someone leaves your organisation and you need to transfer their stuff to someone else). Note that you can remove a user without having to transfer any ownership and you don’t need to be the creator of a page to be allowed to modify it or have permissions on it. Also, even if someone leaves a company they’re still the creator of the pages they created (in reality, this can never be removed, they’ll always be the creator of that page, even if you try to hide it ;)). Personally I don’t see this feature as a necessary one. I’m curious: why do you think it’s necessary? :) Thanks -Vincent Tim On 23/08/2015 13:39, vinc...@massol.net wrote: Hi Hamster, On 22 Aug 2015 at 09:17:37, Hamster (teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote: Just wondering...3 1/2 years ago it was not possible to change the owner of a page in the UI. Is this now possible (with XWiki 7.x) within the UI or do I still need to use the script? It’s still not possible to do it with the UI (you have to use a script). The reason it hasn’t changed is that nobody has asked for it :) If you think such a UI feature is needed please create a jira issue for it, with some description as to where you’d see it located in the UI and how it would work. Thanks -Vincent [snip] ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users