Hi,

After Vincent made my mouth water today at the Jazoon, I wanted to try
XWiki but I could get the FAQTutorial to work with the 1.9 release
(xwiki-enterprise-installer-generic-1.9-standard.jar). Specifically:

After I enter the two strings "FAQs" and "FAQ" in the text fields, I get
this text in the editor:

## replace Main with the Space where you want your documents to be created
## replace the default parent with the one of your choice
## Save this template using the 'Save' button
#set( $class = $doc.name.substring(0,$doc.name.indexOf("Class")))
#set($defaultparent = "XWiki.${class}Class")
#set($defaultweb = "Main")
#includeForm("XWiki.ClassSheet")



This looks good. After save&view, I see this:



 replace Main with the Space where you want your documents to be created
replace the default parent with the one of your choice
 Save this template using the 'Save' button
#set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"

#set($defaultparent = "XWiki.${class}Class")
#set($defaultweb = "Main")
#includeForm("XWiki.ClassSheet")



Note how the formatting is completely broken and that some ")" are
missing. When I open the page for editing, I see this:


## replace Main with the Space where you want your documents to be created
## replace the default parent with the one of your choice
## Save this template using the 'Save' button
#set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"##

#set($defaultparent = "XWiki.${class}Class")
#set($defaultweb = "Main")
#includeForm("XWiki.ClassSheet")



As you can see, there is suddenly an empty line, the ")))" have been
replaced with "##" and the whole thing doesn't work. When I get rid of
the Comments near the start and just leave this code:


#set( $class = $doc.name.substring(0,$doc.name.indexOf("Class")))
#set($defaultparent = "XWiki.${class}Class")
#set($defaultweb = "Main")
#includeForm("XWiki.ClassSheet")


that gets mangles as well:



#set( $class = $doc.name.substring(0,$doc.name.indexOf("Class"

#set($defaultparent = "XWiki.${class}Class")
#set($defaultweb = "Main")
#includeForm("XWiki.ClassSheet")



Any ideas what could be wrong?


Oh, and when starting XWiki for the first time, I get this exception:


2009-06-24 20:58:26,853 [http://localhost:8080/xwiki/bin/view/Main/]
[481877...@qtp0-7] ERROR lucene.LucenePlugin             - cannot open
index /home/digulla/XWiki
Enterprise/jetty/work/Jetty_0_0_0_0_8080_xwiki__xwiki__5alevh/lucene
org.apache.lucene.index.CorruptIndexException: failed to locate current
segments_N file

        at
org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:207)

        at
org.apache.lucene.index.IndexWriter.init(IndexWriter.java:722)
        at
org.apache.lucene.index.IndexWriter.init(IndexWriter.java:673)
        at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:523)
        at
com.xpn.xwiki.plugin.lucene.LucenePlugin.createSearchers(LucenePlugin.java:560)

        at
com.xpn.xwiki.plugin.lucene.LucenePlugin.openSearchers(LucenePlugin.java:579)

        at
com.xpn.xwiki.plugin.lucene.LucenePlugin.init(LucenePlugin.java:508)
        at
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:155)

        at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:92)

        at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:120)

        at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1022)

        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:742)

        at com.xpn.xwiki.XWiki.<init>(XWiki.java:670)





which is probably safe to ignore but maybe you can rid of it nonetheless :)

Best regards,

-- 
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://darkviews.blogspot.com/          http://www.pdark.de/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to