Hi all,
I did a little search on the importing/processing excel files and I am confused a little bit:
First of all, I found Excel plugin:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Excel+Plugin
but it's status is obsolete - "The Plugin technology has been replaced by Components" - so is that
functionality available out of the box in the latest versions of XWiki ?
Moreover, in the comments we can read:
$xwiki.ExcelPlugin should be updated to $xwiki.calc as this is the name of the plugin on a newer XE > 2.1.1
There is also another extension: Excel Import Scaffolding and it clearly points to the Excel plugin page.
http://extensions.xwiki.org/xwiki/bin/view/Extension/Excel+Import+Scaffoldi…
Could someone explain what is the proper way of working with excel files currently, I just don't want to tie
my code to the obsolete components.
Thanks,
Piotr
Hi everyone,
I'm running XEM based on XE 2.6.33077 with several wikis which behave
normally. However, I get plenty of exceptions in the log files such as
the one below. I checked what could be wrong with the documents having
an attached XWikiServerClass instance but I cannot find anything
suspect, and, again, the wikis seem to behave perfectly well.
Do you have any idea why I get this exception and how I can stop having
it raised?
======
ERROR wikimanager.WikiManagerPluginApi - Wiki [xwiki_edos] alias cant be
found
com.xpn.xwiki.plugin.wikimanager.WikiManagerException: Error number
50034 in 5: com.xpn.xwiki.plugin.wikimanager.WikiManagerPlugin: Wiki
alias [xwiki_edos] document does not exist
Wrapped Exception: Error number 2 in 2: xwiki_edos object does not exist
[...]
com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.XObjectDocumentDoesNotExistException:
Error number 2 in 2: xwiki_edos object does not exist
at
com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractXClassManager.getXObjectDocument(AbstractXClassManager.java:821)
at
com.xpn.xwiki.plugin.wikimanager.doc.XWikiServerClass.getXObjectDocument(XWikiServerClass.java:440)
======
Thanks and cheers
Stéphane
--
Stéphane Laurière
Mandriva http://mandriva.com
Dear all,
I'm trying to extend a FAQ application from the tutorial on xwiki site.
I would like to add some FAQ entries from the external file in an automated or semi-automated way.
In the FAQ example there are: question, answer fields for every FAQ entry. Is it possible to add new entries
basing on the external data user provided ?
like to take a data from a text area in a form like:
"question1", "answer1"
"question2", "answer2"
and then create 2 new FAQ objects ?
I've found such a code snippet and fixed it to have:
## Create an object
#set($obj = $doc.newObject("FAQ.FAQClass"))
$obj.set("question","q1")
$obj.set("answer", "a1")
## Save the object in the page
$doc.save()
Even with that it fails to add new object to the existing list. Any clues how to accomplish that ?
Just to recap, I have two questions :
1. Could someone provide a code snippet, or point me to a documentation on creating/adding new objects in
the xwiki ( like how to set parentSpace, basic fields in that object and add it to the xwiki database ).
2. Are there any scenarios on importing data in to the XWiki ( would like to inject a lot of FAQ entries at
once, tried to do that directly to the database but that failed, I guess I should do that via velocity code ? ).
Thanks a lot for any help :)
Regards,
Piotr
Hi Dumitriu,
Thanks for the reply . However,I am deploying xwiki as an exploded webapp only. xwiki.war has been exploded into the directory xwiki.war and kept inside the server/default/deploy/ directory of JBoss.
On Mon, 31 Jan 2011 03:48:26 +0530 Sergiu Dumitriu wrote
>On 01/28/2011 11:16 AM, smita srivastava wrote:
>> I am trying to deploy xwiki on JBoss 5 using HSQL database. I have
>> followed the Installation steps. When i start JBoss ,it is unable to
>> deploy xwiki.war . The other wars in the application are however
>> deployed. The error message is given below.
>
>...
>
>> Exception: could not create
>> Vfs.Dir from url, no matching UrlType was found
>> [vfszip:/F:/gid_1/jboss/server/default/deploy/xwiki-enterprise-web-2.7.war/WEB-INF/lib/xwiki-core-rendering-macro-groovy-2.7.jar/META-INF/maven/]either
>> use fromur-l(final URL url, final List<UrlType> urlTypes) or
>> use the static setDefaultURLTypes(final List<UrlType> urlTypes)
>> or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
>
>This looks like a limitation in the Reflections library, it can only
>handle file: URLs, or standard in-jar paths containing ".jar!" in them.
>
>The problem is that JBoss tries to deploy the war as an archive,
>virtually uncompressed at runtime, thus it creates URLs with the vfszip
>protocol.
>
>Can you deploy the war as an exploded webapp?
>
>--
>Sergiu Dumitriu
>http://purl.org/net/sergiu/
>_______________________________________________
>users mailing list
>users(a)xwiki.org
>http://lists.xwiki.org/mailman/listinfo/users
>