Re: [xwiki-users] Bunch of questions related to search
Hi there, On Dec 17, 2009, at 11:08 PM, Milind Kamble wrote: I have a few questions related to XWiki's builtin search as well as Lucene search: 1. In Lucene search, what is the query syntax to search for page name with wild card. For example , if I try '*Page2' (without quotes), there is no hit even on Sandbox.TestPage2. This is almost a very basic user expectation : if the user only remembers partial name of a page of interest, it should be possible to locate the page via the search bar using wildcards. The builtin WebSearch supports this functionality. I prefer to use Lucene as the default search engine (modified global.vm in skins/colibri) because of the ability to search in attachments. See http://code.xwiki.org/xwiki/bin/view/Applications/SearchApplication which also references this page: http://code.xwiki.org/xwiki/bin/view/Applications/SearchApplicationLuceneSearchQueryHelp Thanks -Vincent 2. Is there any syntax to specify match for an attachment name -- either in the builtin or in Lucene engine? Say for example, search for an attachment '*logo*.png' at any page in any space. I understand that this can be achieved via scripting, but it would be great if search box provided this feature. 3. Does either search engine support search for form field values? I am a newbie to XWiki (coming from Foswiki) and therefore am still learning the concept of associating forms to pages in XWiki. From an end user perspective, if pages can have forms, there should be a way to search pages based on value of form field(s). Thanks, Milind ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki on an Ingres database
Hi Radek, On Dec 18, 2009, at 3:29 AM, Radek Rekas wrote: Ive modifed the hybernate xml file but the database tables seem to not be getting created correctly. Is there anything else that needs to be done in order to make sure that the database tables get created correctly? Yes you need to provide Hibernate mapping files for Ingres. You can check the ones we bundle here: http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/resources/ So you need to provide 2: xwiki.ingres.hbm.xml feeds.ingres.hbm.xml Then reference them from hibernate.cfg.xml Thanks -Vincent When I access xwiki I get the following exceptions: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3001 in 3: Cannot load class com .xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class Wrapped Exception: Error number 0 in 3: Exception while hibernate execute Wrapped Exception: could not execute query Wrapped Exception: ca.gcf.util.SqlEx: Table 'xwikidbversion' does not exist or is not owned by you. Radek Rekas VFMFocus Developer eVALUA Pty Ltd 66B Maryborough St Fyshwick, ACT, Australia T: +61 2 6228 1904 F: +61 2 6228 1131 Http://www.evalua.com.au ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Bunch of questions related to search
Hi Milind, On Fri, Dec 18, 2009 at 9:18 AM, Vincent Massol vinc...@massol.net wrote: Hi there, On Dec 17, 2009, at 11:08 PM, Milind Kamble wrote: I have a few questions related to XWiki's builtin search as well as Lucene search: 1. In Lucene search, what is the query syntax to search for page name with wild card. For example , if I try '*Page2' (without quotes), there is no hit even on Sandbox.TestPage2. This is almost a very basic user expectation : if the user only remembers partial name of a page of interest, it should be possible to locate the page via the search bar using wildcards. The builtin WebSearch supports this functionality. I prefer to use Lucene as the default search engine (modified global.vm in skins/colibri) because of the ability to search in attachments. See http://code.xwiki.org/xwiki/bin/view/Applications/SearchApplication which also references this page: http://code.xwiki.org/xwiki/bin/view/Applications/SearchApplicationLuceneSearchQueryHelp Thanks -Vincent 2. Is there any syntax to specify match for an attachment name -- either in the builtin or in Lucene engine? Say for example, search for an attachment '*logo*.png' at any page in any space. I understand that this can be achieved via scripting, but it would be great if search box provided this feature. 3. Does either search engine support search for form field values? I am a newbie to XWiki (coming from Foswiki) and therefore am still learning the concept of associating forms to pages in XWiki. From an end user perspective, if pages can have forms, there should be a way to search pages based on value of form field(s). I'd be interested in finding out more about what made you switch from Foswiki to XWiki. I'd also be happy to know whether there are some features that you liked in Foswiki but cannot find in XWiki yet. Thanks in advance for your feedback, Guillaume Thanks, Milind ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] xwiki won't start properly after installation / possible wrong connection.url
Hi everybody, I installed and configured the xwiki system for the first time. However I regarded the Setup Instruction somehow it won't work at all. I guess that there is something wrong with my connection.url. Although I tried it again with the native Microsoft JDBC driver according to their Setup Instructions the same error occurs and the whole thing won't run at all. The suspicious line is here: property name=connection.urljdbc:jtds:sqlserver://NB-FFAL-01\SQLEXPRESS:1433/XWiki;tds=8.0;lastupdatecount=true/property The part [NB-FFAL-01\SQLEXPRESS] is the normal name shown in SQLManager for the local database. The SQL-Server and the Tomcat and the xwiki are installed on the same computer (WinXP SP3) at the moment. The log and Config files can be found here: http://jira.xwiki.org/jira/browse/ADN-14 Thanx a lot for your help. Mit freundlichen Grüßen Felix Falke Ind.Kfm.(IHK) Dipl. Wirt.Inf.(FH) AFB24.com Ferdinand Porsche Strasse 9 76275 Ettlingen Phone:+49 (0)7243 2 (192) Mail: felix-bertol.fa...@afb24.com mailto:klaus.boell...@afb24.com Web: www.afb24.com http://www.afb24.com Geschäftsführer: Paul Cvilak Amtsgericht Mannheim HRB362800 Sitz der Gesellschaft:Ettlingen Diese Nachricht und/oder Anhänge sind vertraulich und können der Geheimhaltungspflicht unterliegen. Wenn Sie nicht der vorgesehene Adressat sind, weisen wir Sie hiermit darauf hin, dass jegliche Nutzung, Weiterleitung und Kopien unzulässig sind. Benachrichtigen Sie uns bitte unverzüglich per E-Mail und löschen Sie diese Nachricht und/oder Anhänge aus Ihrem System. Aus Sicherheitsgründen haben Emails nur informativen Charakter, rechtliche Verpflichtungen sind daher daraus nicht ableitbar. This mail and/or attachments are confidential and may also be legally privileged. If you are not the intended recipient, you are hereby notified, that any review, dissemination or copying of this email and/or attachments is strictly prohibited. Please notify us immediately by email and delete this message and all its attachments. For safety reasons the mail's character is only informative. Legal obligations cannot be deduced. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki + Glassfish 2.1.1 + cglib
Hi, FYI: We have experienced problems running XWiki 2.1 on Glassfish 2.1.1 (see stacktrace at the end). Our final solution was to replace the bundled cglib-2.1_3.jar with the newest cglib-2.2.jar And here the stacktrace: [#|2009-12-18T13:14:19.471+0100|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=15;_ThreadName=http://localhost:6080/xwiki/bin/view/Main/;_RequestID=d171a703-8a14-4e49-8e3d-d755d35bca78;|com.xpn.xwiki.XWikiException: Error number 3001 in 3: Cannot load class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager from param xwiki.store.migration.manager.class Wrapped Exception: org.objectweb.asm.ClassWriter.init(Z)V at com.xpn.xwiki.XWiki.createClassFromConfig(XWiki.java:1045) at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:739) at com.xpn.xwiki.XWiki.init(XWiki.java:684) at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:321) at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:402) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at
Re: [xwiki-users] XWiki + Glassfish 2.1.1 + cglib
On 12/18/2009 01:36 PM, Reto Hotz wrote: Hi, FYI: We have experienced problems running XWiki 2.1 on Glassfish 2.1.1 (see stacktrace at the end). Our final solution was to replace the bundled cglib-2.1_3.jar with the newest cglib-2.2.jar So the solution is to also update it in the default distribution, right? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Contributed macro column for syntax 2.0
I created the JIRA :) http://jira.xwiki.org/jira/browse/XCONTRIB-78 For the contribution, I don't know yet I will do of my christmas holidays, so I'll see ;) Note that even with the bug fixed, we still have the general problem of how to edit rich macro content with the WYSIWYG. We've discussed this several times on the lists but sofar haven't moved forward nor decided on anything. Yes, that's something that I find really annoying too, for all macros with content... And mainly for the column macro, because you can have large parts of content that are not editable in wysiwyg, which limits the interest of the wysiwyg ... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Blog category in Dashboard
I'd like to customize the dashboard and add News category items from the blog. I have tried some examples but none of them seem to work. In the manuals there are mentions of macros in the blog but I can't seem to find any reference. What's the easiest way to include blog content in pages outside the blog? I'm using Xwiki 2.04. Daniel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Blog category in Dashboard
Hi Daniel, On Fri, Dec 18, 2009 at 6:16 PM, Daniel Johansson djohans...@haascnc.comwrote: I'd like to customize the dashboard and add News category items from the blog. I have tried some examples but none of them seem to work. In the manuals there are mentions of macros in the blog but I can't seem to find any reference. What's the easiest way to include blog content in pages outside the blog? I'm using Xwiki 2.04. You can try adding this somewhere in Main.Dashboard : {{velocity}} #set($sql = , BaseObject as obj where obj.name=doc.fullName and obj.className='Blog.BlogPostClass' and obj.name'Blog.BlogPostClassTemplate' and doc.web='Blog' order by doc.creationDate desc) #foreach($item in $xwiki.searchDocuments($sql,5,0)) #set($bdoc = $xwiki.getDocument($item)) #set($post = $bdoc.getObject(Blog.BlogPostClass)) #set($author = $bdoc.creator) #set($pos = $author.indexOf(:) + 1) #set($date = $xwiki.formatDate($bdoc.creationDate,/MM/dd)) div class=blogPanelAvatar#useravatar($author.substring($pos))/div * *[$bdoc.getValue('title', $post)$item]* by [$author] on $date #end {{/velocity}} It will list the 5 last articles from your wiki's blog. Guillaume Daniel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Using WEBDAV in a Mozilla Firefox directly (without firefox extention)
As I understand, Xwiki use different portions of code for the different browsers - FF and IE - for the WEBDAV link. IE working directly with webdav, but firefox - is not. If I try to click on a webdav link (edit link) ff ask me for exetention FoxWiki. This is a special extention for XWiki and for this extention need to setup one by one all applications. But for IE - not need special plugins and not need any setup. Exists another plugin for FF - openwebfolder (http://openwebfolder.mozdev.org/) as a described in a home page of this extention: Internet Explorer itself does not contain any WebDAV support. However, it does offer hooks to Microsoft's WebDAV component, usually called web folders. Openwebfolder itself does not contain any platform-independant WebDAV related code. It just adds hooks so that Microsoft's Webfolder WebDAV client can be invoked in a similar way like in IE. My idea - try to use this extention for FF. But everytime XWiki offer for me - download FoxWiki - as I understand, according to the XWiki template - attachmentsinline.vm. This template use different edit-calls for the different browsers. How I need to change attachmentsinline.vm for the using one edit-call and for FF and for IE? As I understand - with FF extention openwebfolder - all will be as of IE, if XWiki will give to user same edit-link like IE. (I tried in other webdav application - all working). -- View this message in context: http://n2.nabble.com/Using-WEBDAV-in-a-Mozilla-Firefox-directly-without-firefox-extention-tp4188619p4188619.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Using WEBDAV in a Mozilla Firefox directly (without firefox extention)
Hi Eugen, On Sat, Dec 19, 2009 at 1:39 AM, Colesnicov Eugen ecolesni...@gmail.comwrote: As I understand, Xwiki use different portions of code for the different browsers - FF and IE - for the WEBDAV link. IE working directly with webdav, but firefox - is not. If I try to click on a webdav link (edit link) ff ask me for exetention FoxWiki. This is a special extention for XWiki and for this extention need to setup one by one all applications. But for IE - not need special plugins and not need any setup. Exists another plugin for FF - openwebfolder (http://openwebfolder.mozdev.org/) as a described in a home page of this extention: Internet Explorer itself does not contain any WebDAV support. However, it does offer hooks to Microsoft's WebDAV component, usually called web folders. Openwebfolder itself does not contain any platform-independant WebDAV related code. It just adds hooks so that Microsoft's Webfolder WebDAV client can be invoked in a similar way like in IE. My idea - try to use this extention for FF. I remember trying out openwebfolder extension some times ago but as I understood it's only capable opening webdav directories for display. Not sure if it could fire the native application that would carry out the edit operation. But everytime XWiki offer for me - download FoxWiki - as I understand, according to the XWiki template - attachmentsinline.vm. This template use different edit-calls for the different browsers. How I need to change attachmentsinline.vm for the using one edit-call and for FF and for IE? As I understand - with FF extention openwebfolder - all will be as of IE, if XWiki will give to user same edit-link like IE. (I tried in other webdav application - all working). It would be great if you can investigate this a little bit :) May be you could try editing attachmentsinline.vm (+ you might have to edit webdav applicationhttp://code.xwiki.org/xwiki/bin/view/Applications/WebdavApplicationcode as well) and get rid of the code which tries to install FoXWiki. This would leave FoXWiki apart but I'm not sure how we can communicate with openwebfolder (i.e. fire it up instead FoXWiki installation). I would like to have a look into this but I'm occupied a bit these days. Thanks. - Asiri -- View this message in context: http://n2.nabble.com/Using-WEBDAV-in-a-Mozilla-Firefox-directly-without-firefox-extention-tp4188619p4188619.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ 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
Re: [xwiki-users] Blog category in Dashboard
Guillaume Lerouge wrote: Hi Daniel, On Fri, Dec 18, 2009 at 6:16 PM, Daniel Johansson djohans...@haascnc.comwrote: I'd like to customize the dashboard and add News category items from the blog. I have tried some examples but none of them seem to work. In the manuals there are mentions of macros in the blog but I can't seem to find any reference. What's the easiest way to include blog content in pages outside the blog? I'm using Xwiki 2.04. You can try adding this somewhere in Main.Dashboard : {{velocity}} #set($sql = , BaseObject as obj where obj.name=doc.fullName and obj.className='Blog.BlogPostClass' and obj.name'Blog.BlogPostClassTemplate' and doc.web='Blog' order by doc.creationDate desc) #foreach($item in $xwiki.searchDocuments($sql,5,0)) #set($bdoc = $xwiki.getDocument($item)) #set($post = $bdoc.getObject(Blog.BlogPostClass)) #set($author = $bdoc.creator) #set($pos = $author.indexOf(:) + 1) #set($date = $xwiki.formatDate($bdoc.creationDate,/MM/dd)) div class=blogPanelAvatar#useravatar($author.substring($pos))/div * *[$bdoc.getValue('title', $post)$item]* by [$author] on $date #end {{/velocity}} It will list the 5 last articles from your wiki's blog. Guillaume Daniel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Thanks Guillaume, For some reason that script does not pull in my posts to the News category, which is what I was interested in. I was envisioning something just like this dashboard: http://www.xwiki.org/xwiki/bin/view/Main/News with recent news and recent changes. -- View this message in context: http://n2.nabble.com/Blog-category-in-Dashboard-tp4187409p4189810.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Blog category in Dashboard
On 12/18/2009 06:16 PM, Daniel Johansson wrote: I'd like to customize the dashboard and add News category items from the blog. I have tried some examples but none of them seem to work. In the manuals there are mentions of macros in the blog but I can't seem to find any reference. What's the easiest way to include blog content in pages outside the blog? I'm using Xwiki 2.04. You could try this: - Edit the Main.Dashboard document in wiki mode - Add this at the start of the content (before the {{velocity line): {{include document=Blog.CategoriesCode/}} - Add this where you want the blog posts to be displayed: {{html wiki=true}} #getEntriesForCategory('Blog.News' $entries $total) #displayBlog($entries 'category' true) {{/html}} -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki + Glassfish 2.1.1 + cglib
On 12/18/2009 04:42 PM, Sergiu Dumitriu wrote: On 12/18/2009 01:36 PM, Reto Hotz wrote: Hi, FYI: We have experienced problems running XWiki 2.1 on Glassfish 2.1.1 (see stacktrace at the end). Our final solution was to replace the bundled cglib-2.1_3.jar with the newest cglib-2.2.jar So the solution is to also update it in the default distribution, right? It seems that cglib-2.2 uses asm-3.1, while Hibernate still uses asm-1.5.3, and I don't know if those two are compatible. Are you sure the wiki runs without any problems? Can you also try replacing the asm-1.5.3.jar file with this one: http://repo2.maven.org/maven2/asm/asm/3.1/asm-3.1.jar -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users