description: forking opensource hardware project (opensourceecology.org -> “fabfarm”)
owner name: AndrewRoberts
wiki name: fabfarm.myxwiki.org
Sent from Windows Mail
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.url">jdbc:oracle:thin:@localhost
:1521:orcl</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property
name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property
name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="connection.SetBigStringTryClob">true</property>
<property name="jdbc.batch_size">0</property>
<property name="jdbc.use_streams_for_binary">false</property>
<property name="dbcp.poolPreparedStatements">true</property>
<property name="dbcp.maxOpenPreparedStatements">20</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
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
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:299)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1562)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1609)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getBaseObject(AbstractDocumentConfigurationSource.java:209)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getBaseProperty(AbstractDocumentConfigurationSource.java:219)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getPropertyValue(AbstractDocumentConfigurationSource.java:315)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getProperty(AbstractDocumentConfigurationSource.java:272)
at
org.xwiki.annotation.internal.DefaultAnnotationConfiguration.getAnnotationClassReference(DefaultAnnotationConfiguration.java:120)
at
org.xwiki.annotation.internal.AnnotationClassDocumentInitializer.getDocumentReference(AnnotationClassDocumentInitializer.java:67)
at com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1042)
at com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1021)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:966)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:887)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:876)
at
com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:117)
at
org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209)
at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)
at java.lang.Thread.run(Thread.java:724)
I am using jdk 6, tomcat 7
I am not sure what is missing here ?
Thanks and Regards
Mohit
Hello,
I try to import the content from a JSPWiki to XWiki with the history. I
managed to import the content, but not the history.
The generated XAR from the export contains my page in XML format :
<?xml version='1.0' encoding='UTF-8'?>
<xwikidoc version="1.1">
<web>Import JSPWiki</web>
<name>6.1WikiPage</name>
<language/>
<defaultLanguage/>
<translation>0</translation>
<creator>Import JSPWiki</creator>
<creationDate>1439990795525</creationDate>
<author>DupontJean</author>
<version>1</version>
<title>6.1WikiPage</title>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>true</hidden>
<content>La page dédiée à la version 6.1.</content>
<author>DupontJean</author>
<version>2</version>
<title>6.1WikiPage</title>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>true</hidden>
<content>La page dédiée à la version 6.1. Infos dispo à l'adresse suivante
: http://infos.com</content>
<author>DanielD</author>
<version>3</version>
<title>6.1WikiPage</title>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>false</hidden>
<content>La page dédiée à la version 6.1. Infos dispo à l'adresse suivante
: http://new-infos.com</content>
</xwikidoc>
When I import this XAR on XWiki, i only have the last version (version 3) of
the history.
I looked how XWiki generate XAR file when you export a page with the
history.
It looks like that :
<?xml version='1.0' encoding='UTF-8'?>
<xwikidoc version="1.1">
<web>Sandbox</web>
<name>TestPage1</name>
<language/>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<creator>XWiki.Admin</creator>
<creationDate>1252454400000</creationDate>
<versions>head 2.1;
access;
symbols;
locks; strict;
comment @# @;
2.1
date 2015.08.18.17.23.18; author XWiki_2EAdmin; state full;
branches;
next 1.1;
1.1
date 2015.07.28.15.16.57; author XWiki_2EAdmin; state diff;
branches;
next ;
desc
@@
2.1
log
@@
text
@<?xml version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>Sandbox</web>
<name>TestPage1</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent>Sandbox.WebHome</parent>
<creator>XWiki.Admin</creator>
<author>XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>XWiki.Admin</contentAuthor>
<creationDate>1252454400000</creationDate>
<date>1439911398000</date>
<contentUpdateDate>1439911398000</contentUpdateDate>
<version>2.1</version>
<title>Sandbox Test Page 1</title>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.0</syntaxId>
<hidden>false</hidden>
<content>Click on **"Edit"** and modify the contents of this page, then
click on **"Save & View"** to see how they look like on your page!
= Here's some dummy text to show you what the page looks like =
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
non proident, sunt in culpa qui officia deserunt mollit anim id
est</content></xwikidoc>
@
1.1
log
@Install extension [org.xwiki.platform:xwiki-platform-sandbox-7.0]
@
text
@d14 3
a16 3
<date>1438089417000</date>
<contentUpdateDate>1438089417000</contentUpdateDate>
<version>1.1</version>
d20 1
a20 1
<comment>Install extension
[org.xwiki.platform:xwiki-platform-sandbox-7.0]</comment>
d28 1
a28 1
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.</content></xwikidoc>
@
</versions>
<parent>Sandbox.WebHome</parent>
<author>XWiki.Admin</author>
<contentAuthor>XWiki.Admin</contentAuthor>
<date>1439911398000</date>
<contentUpdateDate>1439911398000</contentUpdateDate>
<version>2.1</version>
<title>Sandbox Test Page 1</title>
<comment/>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.0</syntaxId>
<hidden>false</hidden>
<content>Click on **"Edit"** and modify the contents of this page, then
click on **"Save & View"** to see how they look like on your page!
= Here's some dummy text to show you what the page looks like =
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
non proident, sunt in culpa qui officia deserunt mollit anim id
est</content>
</xwikidoc>
Obviously it is not the same format and I don't understand this format, can
someone explain me how it is generated, and how I can modify my file to
import it on XWiki correctly.
--
Quentin
--
View this message in context: http://xwiki.475771.n2.nabble.com/Import-JSPWiki-history-tp7595692.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I have a question when copying an object from a page onto another page according to (abbreviated) method below.
BaseObject sourceResultaatObject = getObject(sourceResultaattype, RESULTAATTYPECLASSREFERENCE);
// gets a BaseObject from a page based on the two DocumentReferences for the source and the class (custom method)
BaseObject destinationResultaatObject = sourceResultaatObject.duplicate();
List<String> sourceResultaattypeLeidtTotBesluittype = sourceResultaatObject.getListValue(LEIDTTOTBESLUITTYPE)
// contents = [“BST_ER5MLpodilPv6”,"BST_622yQb1ktyvV6"];
..
destinationResultaatObject.setDBStringListValue(LEIDTTOTBESLUITTYPE, sourceResultaattypeLeidtTotBesluittype);
..
XWikiDocument XWikiDoc = createPage(destinationResultaattype);
// destinationResultaattype is a newly created DocumentReference
XWikiDoc.addXObject(destinationResultaatObject);
savePage(XWikiDoc);
// a custom method to save the XWikiPage.
sourceResultaatObject = getObject(sourceResultaattype, RESULTAATTYPECLASSREFERENCE);
logger.trace(sourceResultaatObject.toXMLString());
End result I expect to be:
SourceObject: property LEIDTTOTBESLUITTYPE = [“BST_ER5MLpodilPv6”,"BST_622yQb1ktyvV6"];
DestinationObject: property LEIDTTOTBESLUITTYPE = [“BST_ER5MLpodilPv6”,"BST_622yQb1ktyvV6"];
When I display the old Object immediately after the savePage (toXMLString), the result is, that the DBList field is also showing both items. However: When I display the page showing the object (using a sheet), the data is gone and the DBList is empty. And it looks like it takes a few seconds for this to show up this way.
The only solution I have come up with is to fill the List<String> using a for loop. In that case, it is working fine.
Maybe I’m missing an essential Java item here but it looks like, when I am assigning the DBList values to the List<String> variable, it does not copy the data but creates an object link. When assigning it to the new object DBList the old link is removed. What I do not understand is, that it takes some time before Wiki (or is it?) realizes that it has to remove the DBList values from the sourceObject.
Can anyone explain what is happening here? It would be much appreciated.
Peter
After upgrading XWiki from 5 to 7.1 version, international characters in
watchlist email notification message are corrupted (different charset).
I tried send XWiki page using "Share by Email" and international characters
are OK.
Is there any way how to solve this problem?
I tried switch XWiki.WatchListMessage language to SK, but nothing was
changed.
Thx
Rudolf
--------------------------------------------------------------------------
Táto správa a všetky pripojené súbory sú dôverné a určené
výhradne osobám alebo organizáciám, ktorým boli adresované. Ak nie ste
zamýšlaný príjemca alebo ste dostali tento e-mail omylom, prosím upozornite
okamžite odosielateľa a vymažte tento e-mail. Neoprávnené kopírovanie,
zverejnenie alebo distribúcia tohto e-mailu, je prísne zakázané.
This email and any attached file are confidential and intended solely for the
use of the individual or entity to which they are addressed. If you are not the
intended recipient or have received this e-mail by mistake, please notify the
sender immediately and delete this e-mail. Any unauthorized copying, disclosure
or distribution of this e-mail's content is strictly prohibited.
---------------------------------------------------------------------------
Pred vytlačením tohto e-mailu myslite na životné prostredie.
Please consider your environmental responsibility before printing this e-mail
Hello XWiki experts,
I see that the Confluence syntax is supported and seems to be working
well. That is cool.
Is there a more global advice about migrating from Confluence?
I see here and there mentions of big XMLs which would be exports from
Confluence but nothing that looks like a recipe.
Thanks for hints.
paul
The XWiki development team is proud to announce the availability of XWiki 7.1.2.
This is a stabilization release that fixes important bugs discovered
in the previous 7.1.1 version.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki712
The following people have contributed code to this release:
Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Jean SIMARD
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
Hi,
I'm experimenting with including some jQuery UI elements into some wiki pages using XWiki 7.1. As a test, I've been trying to get the spinner example from http://api.jqueryui.com/spinner/ to work:
I have constructed a minimal page, with content body:
{{velocity}}
{{html}}
<input id="spinner">
{{/html}}
{{/velocity}}
And for the page I've added an objects of type XWiki.JavaScriptExtension containing code:
require(['jquery'], function($) {
$( "#spinner" ).spinner();
});
However, viewing the page yields an error
TypeError: a(...).spinner is not a function
"require(["jquery"],function(a){a("#spinner").spinner()});"
So it looks as though the spinner UI code is missing, so I'm guessing I need to include the jQuery UI library somehow. I'm a little confused because there is a jquery-ui-1.11.1.jar file in /usr/lib/xwiki/WEB-INF/lib/ which led me to believe that it was already bundled with XWiki.
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FrontendResources says "Prototype is the only JavaScript library that is systematically shipped with any wiki page in XWiki." But it's a bit old.
Any pointers?
Thanks,
Bryn
Hi,
I have little problem with xWiki LOGO for unregistered users.
Could you tell me, if the unregistered user should have an access to home
page to see logo, which I set?
Warm wishes to you,
Maciek
Hi Vincent, Eduard,
Thanks for the answers. They look ridiculously simple since it’s absolutely in line with the XWQL and HQL format - something that I could have guessed. Very very helpful. Sorry to bother you but it’s a great help!
With kind regards,
Peter