Re: [xwiki-users] LDAP Configuration Help Needed
HiThomas, I did read the link that you provided before I posted the first time on the mailing list. Well, as I said, I am not a networking guy so I have been doing a lot of trial and error. You mentioned that this does not look like AD...which part are you referring to - The Active Directory Setup or the configuration changes I made to xwiki.cfg LDAP properties. I've tried many combinations that I could using internet some help from people who know networking. I am stuck with the bind_dn username, bind_dn password base_dn. Also, as I previously mentioned, I don't know if {0} is just a symbolic representation where I need to insert my own username or it has to be left as it is XWiki will do the conversion of {0} to a valid username. I have not created an OU. Do I have to create one or is the default Users an OU. I replaced CN with sAMAccountName but that too didn't help. I am so new to this concept, I probably don't know even the right questions to ask. Any help, as always, would be much appreciated. Thanks Thomas. Message: 5 Date: Thu, 1 Apr 2010 11:00:56 +0200 From: Thomas Mortagne thomas.morta...@xwiki.com Subject: Re: [xwiki-users] LDAP Configuration Help Needed To: XWiki Users users@xwiki.org Message-ID: p2ua8e97d9c1004010200r5e1ad934id41849e096ab...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 (Sorry for the previous message, gmail shortcuts...) On Thu, Apr 1, 2010 at 10:58, Thomas Mortagne thomas.morta...@xwiki.com wrote: On Thu, Apr 1, 2010 at 05:46, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello folks, I need some help with a topic that has been discussed very often on the mailing list - LDAP. I've tried going through most of the posts on the mailing list but since I am not a networking guy, I've had lot of trouble understanding the basic terminology involved with LDAP AD. The AD that we've on production environment is available only through SSL which I know will be a bigger challenge to configure with XWiki. Hence, to start with, I would like to connect my XWiki with the MS Active Directory I setup on my test machine. With some help, I managed to create a Active Directory. Also, I am able to connect to this AD using Apache Directory Browser. So this confirms that the AD is working fine. Both the AD and XWiki are installed on the same machine. Now, I tried changing the xwiki.cfg LDAP properties but I am unable to login using any of the users I created in AD. Moreover, I lost my default Admin credentials for the Wiki (UN:Admin PW:admin doesn't work anymore). The configuration is as follows: xwiki.authentication.ldap=1 xwiki.authentication.ldap.server=127.0.0.1 xwiki.authentication.ldap.port=389 xwiki.authentication.ldap.base_DN=dc=dilip,dc=com xwiki.authentication.ldap.bind_DN=cn={0},dc=dilip,dc=com This eally doe snot looks like AD. Did you looked at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCas es#HActive20Directory ? That should be your first read, not the mailing list... xwiki.authentication.ldap.bind_pass={1} xwiki.authentication.ldap.UID_attr=cn Again, nothing to do with AD here. xwiki.authentication.ldap.fields_mapping=name=cn,last_name=sn,first_name=giv enName,fullname=displayName,mail=cn,ldap_dn=dn And the AD structure can be loosely described as follows: dilip.com ? ? ? ?-Builtin ? ? ? ?-Computers ? ? ? ?-Domain Controllers ? ? ? ?-ForeignSecurityPrincipals ? ? ? ?-Users All my users are listed under the Users node including Windows administrator called Administrator with password redhat. Does the {0} need to be replaced with an actual username {1} replaced with actual password. Could someone please have a look at my configuration settings probably suggest some changes. I am sure I've missed something somewhere. Thank you for your valuable time. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne -- Thomas Mortagne -- ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users End of users Digest, Vol 33, Issue 1 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP Configuration Help Needed
Hi Thomas, I had a lot more clarity since I enabled debug log as per your suggestion. I could then see what was the information that was being passed between AD XWiki. And I am so so glad to inform that the Active Directory authentication through XWiki is working... :) Now, I have to move on to setting up my XWiki with the production environment Active Directory (which is SSL). Thanks for your help Thomas...without your nudge in the right direction, this wouldn't have been possible. :) I would definitely like to write a very basic article for beginners about Active Directory Integration(probably with screen shots), especially for those folks who do not have access to IT people in their work field but would still like to have XWiki installed. Have a great day ahead!!! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] LDAP Configuration Help Needed
Hello folks, I need some help with a topic that has been discussed very often on the mailing list - LDAP. I've tried going through most of the posts on the mailing list but since I am not a networking guy, I've had lot of trouble understanding the basic terminology involved with LDAP AD. The AD that we've on production environment is available only through SSL which I know will be a bigger challenge to configure with XWiki. Hence, to start with, I would like to connect my XWiki with the MS Active Directory I setup on my test machine. With some help, I managed to create a Active Directory. Also, I am able to connect to this AD using Apache Directory Browser. So this confirms that the AD is working fine. Both the AD and XWiki are installed on the same machine. Now, I tried changing the xwiki.cfg LDAP properties but I am unable to login using any of the users I created in AD. Moreover, I lost my default Admin credentials for the Wiki (UN:Admin PW:admin doesn't work anymore). The configuration is as follows: xwiki.authentication.ldap=1 xwiki.authentication.ldap.server=127.0.0.1 xwiki.authentication.ldap.port=389 xwiki.authentication.ldap.base_DN=dc=dilip,dc=com xwiki.authentication.ldap.bind_DN=cn={0},dc=dilip,dc=com xwiki.authentication.ldap.bind_pass={1} xwiki.authentication.ldap.UID_attr=cn xwiki.authentication.ldap.fields_mapping=name=cn,last_name=sn,first_name=giv enName,fullname=displayName,mail=cn,ldap_dn=dn And the AD structure can be loosely described as follows: dilip.com -Builtin -Computers -Domain Controllers -ForeignSecurityPrincipals -Users All my users are listed under the Users node including Windows administrator called Administrator with password redhat. Does the {0} need to be replaced with an actual username {1} replaced with actual password. Could someone please have a look at my configuration settings probably suggest some changes. I am sure I've missed something somewhere. Thank you for your valuable time. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Annotations feature not working
Hello folks, I've installed the latest XWiki Enterprise2.3 ML1 and this is a fresh install. However, ran into difficulties with the annotation feature. When I save an annotation using the Add Annotation feature, the annotations do not get saved. There is no symbol that is generated next to the text that I was trying to annotate. Also, I get an error at the bottom of the Page which states: No Host matches server name localhost I used the firebug plugin to find out what events were getting fired. Following is the stack trace: POST: http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/annotations?media=json Code: 400 No Host matches server name localhost localhost:8080 Server Apache-Coyote/1.1 Transfer-Encoding chunked DateFri, 26 Mar 2010 06:09:39 GMT Connection close Request Headersview source Hostlocalhost:8080 User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 Accept text/javascript, text/html, application/xml, text/xml, */* Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive X-Requested-WithXMLHttpRequest X-Prototype-Version 1.6.1 Content-Typeapplication/x-www-form-urlencoded; charset=UTF-8 Referer http://localhost:8080/molecule/bin/view/Main/ Content-Length 275 Cookie username=obD1aIklU0E_; password=FS1YvSKKiX8_; rememberme=false; validation=12faf980e85d2f5a1216a4c7e320a4bd Pragma no-cache Cache-Control no-cache Parameters application/x-www-form-urlencoded annotation help author XWiki.Admin dateFri Mar 26 01:32:31 EDT 2010 selection WebHome selectionContextWebHome selectionOffset 0 Source selectionOffset=0selectionContext=WebHomeselection=WebHomedate=Fri%20Mar%2026%2001%3A32%3A31%20EDT%202010author=XWiki.Adminannotation=help XML Parsing Error: no element found Location: moz-nullprincipal:{833f3ffa-8712-4980-aff7-a4aabf47426e} Line Number 1, Column 1: ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Call CSS from inside a JS file
Thanks for the tip Sergiu. I will give this a try and hope it works out. Message: 9 Date: Tue, 16 Mar 2010 19:00:55 +0100 From: Sergiu Dumitriu ser...@xwiki.com Subject: Re: [xwiki-users] Call CSS from inside a JS file To: XWiki Users users@xwiki.org Message-ID: 4b9fc757.1080...@xwiki.com Content-Type: text/plain; charset=UTF-8; format=flowed On 03/16/2010 06:28 PM, Dilipkumar Jadhav wrote: Hi Sergiu, I phrased my question incorrectly. I am required to load CSS files conditionally using JS. There is a GPL licensed Nifty Cube library that is used for creating round corner effects which I was trying to import into my wiki. Here is the code snippet where I am stuck: --- var oldonload=window.onload; if(typeof(NiftyLoad)!='function') NiftyLoad=function(){}; if(typeof(oldonload)=='function') window.onload=function(){oldonload();AddCss();NiftyLoad()}; else window.onload=function(){AddCss();NiftyLoad()}; function AddCss(){ niftyCss=true; var l=CreateEl(link); l.setAttribute(type,text/css); l.setAttribute(rel,stylesheet); Set the parse option of the JSX object to Yes, then replace the next line with: l.setAttribute(href, $doc.getURL('ssx')); l.setAttribute(href,niftyCorners.css); l.setAttribute(media,screen); document.getElementsByTagName(head)[0].appendChild(l); } -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Call CSS from inside a JS file
Hello folks, Is it possible to call a CSS code from inside the JS code in XWiki.The Javascript code has been written to import CSS from a specific folder in the web application structure. However, in XWiki, I've added both the JS the CSS code to the same Page using the Javascript Stylesheet extensions. The problem is that the JS file is unable to find the CSS code embedded inside the same Page. Do I have to use the URL of the Stylesheet or do I write some velocity code to get the run-time URL of the CSS file? Would this method work.Any help is appreciated. Thank you. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Adding user to defaul group with appropriate rights through xml rpc.....
Hi Nithya, As Jean Vincent pointed out, following would be the modified code: XWikiObject xobj = new XWikiObject(); //Class Name is XWikiGroups xobj.setClassName(XWiki.XWikiGroups); //Host page to which we want to add the user is the Page which contains the group //In this case, XWikiAllGroup is the group to which we want to add the user //So, we would use XWiki.XWikiAllGroup Page in the wiki xobj.setPageId(XWiki.XWikiAllGroup); //Set member property as XWiki.UserName xobj.setProperty(member, XWiki.nithya); rpc.storeObject(xobj); And, for me the password update did work. For some reason, it was not working in the first attempt. Thanks for your help :) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Search class properties through XMLRPC
Hello folks, While at the topic of XMLRPC, I was trying to search for properties in a particular object. I have a customized property called UID to the XWiki.XWikiUsers class. Naturally, each user in the wiki can chose to fill this field. I have been trying to find the method in the XMLRPC api to search for all the users who have property=xyz. I checked that it is possible to search for property values using HQL in the wiki page. Is there an equivalent method to search through XMLRPC... Any help would be greatly appreciated. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Creating user using XML RPC....
Hi Nithya, As Sergiu rightly said, an XWiki user is just another document/Page with a XWiki.XWikiUser object associated to it. Hope the following example helps you in creating users using XMLRPC. Please note that I have only been able to create a user. Setting the password is something I did not have much luck with. Probably, the XMLRPC API method to set the password property stores the password in plain text when in fact XWiki expects passwords which are hashed. I hope someone on the mailing list could help by providing the code snippet to update password using XMLRPC. Once, that is done, we can save this example at http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples import java.net.MalformedURLException; import org.apache.xmlrpc.XmlRpcException; import org.codehaus.swizzle.confluence.Page; import org.xwiki.xmlrpc.XWikiXmlRpcClient; import org.xwiki.xmlrpc.model.XWikiObject; public class CreateUser { public static void main(String[] args) throws MalformedURLException, XmlRpcException { //URL of the xwiki instance String url = http://localhost:8080/xwiki/xmlrpc/confluence;; //Replace user pass with desired xwiki username password String user = Admin; String pass = admin; XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(url); try { //Perform Login Authentication rpc.login(user, pass); //Create a Page to hold the user profile set it's three important attributes viz. Space, Title, Content //Set the space=XWiki since all XWiki users go to XWiki space by default //Set title to the username of the user. In our case, username=testuser //Set content to include the XWikiUserSheet. //Without this the user Page will come up blank and no fields will be displayed Page page = new Page(); page.setSpace(XWiki); page.setTitle(testuser); page.setId(XWiki.testuser); page.setContent({{include document=\XWiki.XWikiUserSheet\/}}); rpc.storePage(page); //Create a XWikiObject and set the class to XWiki.XWikiUsers //Set the host Page as XWiki.testuser. This is the page we created in the steps above //Set the first_name last_name properties with values Test and User respectively //We can access the list of all properties for a User class at the following link: //http://localhost:8080/xwiki/bin/edit/XWiki/XWikiUsers?editor=class //Finally, save the object using rpc.storeObject XWikiObject xobj = new XWikiObject(); xobj.setClassName(XWiki.XWikiUsers); xobj.setPageId(XWiki.testuser); xobj.setProperty(first_name, Test); xobj.setProperty(last_name, User); rpc.storeObject(xobj); } catch (XmlRpcException e) { System.out.println(e); } finally { rpc.logout(); } } } Message: 1 Date: Wed, 3 Mar 2010 09:33:05 -0800 (PST) From: Nithya Vembu nithu...@gmail.com Subject: [xwiki-users] Creating user using XML RPC To: users@xwiki.org Message-ID: 1267637585814-4669004.p...@n2.nabble.com Content-Type: text/plain; charset=us-ascii Hi All, Is there any sample available to create a user through XML RPC like the examples in the following link for creation of page, space etc.. http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples Please help me out if there any solution. Thanks, Nithya. -- View this message in context: http://n2.nabble.com/Creating-user-using-XML-RPC-tp4669004p4669004.html Sent from the XWiki- Users mailing list archive at Nabble.com. -- Message: 2 Date: Wed, 03 Mar 2010 19:23:44 +0100 From: Sergiu Dumitriu ser...@xwiki.com Subject: Re: [xwiki-users] Creating user using XML RPC To: XWiki Users users@xwiki.org Message-ID: 4b8ea930.8020...@xwiki.com Content-Type: text/plain; charset=UTF-8; format=flowed On 03/03/2010 06:33 PM, Nithya Vembu wrote: Hi All, Is there any sample available to create a user through XML RPC like the examples in the following link for creation of page, space etc.. http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples Please help me out if there any solution. A user is just like any other document+object. Just do what's usually done for creating a new document and adding a XWiki.XWikiUsers object. Don't forget to add the user to the groups you want. -- Sergiu Dumitriu http://purl.org/net/sergiu/ -- ___ users mailing list users@xwiki.org
[xwiki-users] How to add/ register a new user in xwiki through xmlrpc??
Hi Nithya, Looks like in your example you are using Apache XMLRPC directly. In the example that I provided I have used the client side proxy for Java which is much easier and less verbose than the other method. Please run this example and let me know if it works out for you... I am quite interested in finding out if it works...thanks. -- Message: 2 Date: Sun, 7 Mar 2010 21:33:32 +0530 From: Dilipkumar Jadhav jadhav.dilipku...@gmail.com Subject: Re: [xwiki-users] Creating user using XML RPC To: users@xwiki.org Message-ID: 4b93ce62.5744f10a.750e.0...@mx.google.com Content-Type: text/plain; charset=us-ascii Hi Nithya, As Sergiu rightly said, an XWiki user is just another document/Page with a XWiki.XWikiUser object associated to it. Hope the following example helps you in creating users using XMLRPC. Please note that I have only been able to create a user. Setting the password is something I did not have much luck with. Probably, the XMLRPC API method to set the password property stores the password in plain text when in fact XWiki expects passwords which are hashed. I hope someone on the mailing list could help by providing the code snippet to update password using XMLRPC. Once, that is done, we can save this example at http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples import java.net.MalformedURLException; import org.apache.xmlrpc.XmlRpcException; import org.codehaus.swizzle.confluence.Page; import org.xwiki.xmlrpc.XWikiXmlRpcClient; import org.xwiki.xmlrpc.model.XWikiObject; public class CreateUser { public static void main(String[] args) throws MalformedURLException, XmlRpcException { //URL of the xwiki instance String url = http://localhost:8080/xwiki/xmlrpc/confluence;; //Replace user pass with desired xwiki username password String user = Admin; String pass = admin; XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(url); try { //Perform Login Authentication rpc.login(user, pass); //Create a Page to hold the user profile set it's three important attributes viz. Space, Title, Content //Set the space=XWiki since all XWiki users go to XWiki space by default //Set title to the username of the user. In our case, username=testuser //Set content to include the XWikiUserSheet. //Without this the user Page will come up blank and no fields will be displayed Page page = new Page(); page.setSpace(XWiki); page.setTitle(testuser); page.setId(XWiki.testuser); page.setContent({{include document=\XWiki.XWikiUserSheet\/}}); rpc.storePage(page); //Create a XWikiObject and set the class to XWiki.XWikiUsers //Set the host Page as XWiki.testuser. This is the page we created in the steps above //Set the first_name last_name properties with values Test and User respectively //We can access the list of all properties for a User class at the following link: //http://localhost:8080/xwiki/bin/edit/XWiki/XWikiUsers?editor=class //Finally, save the object using rpc.storeObject XWikiObject xobj = new XWikiObject(); xobj.setClassName(XWiki.XWikiUsers); xobj.setPageId(XWiki.testuser); xobj.setProperty(first_name, Test); xobj.setProperty(last_name, User); rpc.storeObject(xobj); } catch (XmlRpcException e) { System.out.println(e); } finally { rpc.logout(); } } } Message: 1 Date: Wed, 3 Mar 2010 09:33:05 -0800 (PST) From: Nithya Vembu nithu...@gmail.com Subject: [xwiki-users] Creating user using XML RPC To: users@xwiki.org Message-ID: 1267637585814-4669004.p...@n2.nabble.com Content-Type: text/plain; charset=us-ascii Hi All, Is there any sample available to create a user through XML RPC like the examples in the following link for creation of page, space etc.. http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples Please help me out if there any solution. Thanks, Nithya. -- View this message in context: http://n2.nabble.com/Creating-user-using-XML-RPC-tp4669004p4669004.html Sent from the XWiki- Users mailing list archive at Nabble.com. -- Message: 2 Date: Wed, 03 Mar 2010 19:23:44 +0100 From: Sergiu Dumitriu ser...@xwiki.com Subject: Re: [xwiki-users] Creating user using XML RPC To: XWiki Users users@xwiki.org Message-ID: 4b8ea930.8020...@xwiki.com Content-Type: text/plain; charset=UTF-8; format
Re: [xwiki-users] LDAP users with dot in username
Thanks Guillaume... Both your reply and Thomas's response takes good care of my question :) On Fri, Mar 5, 2010 at 2:08 AM, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Thanks for your prompt response Thomas...now I am relieved. All I need to do is figure out how to configure LDAP with XWiki. By the way, in case I have a user let's say - Jane Doe whose username in Active Directory is Jane.Doe Would I create a user of the same name called JaneDoe in XWiki or would I create user called Jane.Doe? Or am I misreading something here and don't need to create users at all in XWiki... You don't need to create them. Once LDAP is configured correctly in XWiki, users will be created automatically in the wiki the first time they connect to the wiki with their LDAP credentials. Guillaume On Thu, Mar 4, 2010 at 17:46, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello folks, Returning to the xwiki mailing list after a long time with a question about LDAP authentication. Our active directory has usernames with a dot (.) character. Would it be possible to sync our XWiki with the active directory under this scenario. If I am not mistaken, we would need to create equivalent users in the XWiki for each user in the active directory. And, XWiki does not accept a dot in the username field. Any insight will be greatly appreciated. Thank you guys. XWiki does not accept a dot in the page but LDAP authenticator has a special handling of username with . so you will not have issue. In short don't worry about . in ldap user name it's working ;) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ 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] LDAP users with dot in username
Hello folks, Returning to the xwiki mailing list after a long time with a question about LDAP authentication. Our active directory has usernames with a dot (.) character. Would it be possible to sync our XWiki with the active directory under this scenario. If I am not mistaken, we would need to create equivalent users in the XWiki for each user in the active directory. And, XWiki does not accept a dot in the username field. Any insight will be greatly appreciated. Thank you guys. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] LDAP users with dot in username
Thanks for your prompt response Thomas...now I am relieved. All I need to do is figure out how to configure LDAP with XWiki. By the way, in case I have a user let's say - Jane Doe whose username in Active Directory is Jane.Doe Would I create a user of the same name called JaneDoe in XWiki or would I create user called Jane.Doe? Or am I misreading something here and don't need to create users at all in XWiki... On Thu, Mar 4, 2010 at 17:46, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello folks, Returning to the xwiki mailing list after a long time with a question about LDAP authentication. Our active directory has usernames with a dot (.) character. Would it be possible to sync our XWiki with the active directory under this scenario. If I am not mistaken, we would need to create equivalent users in the XWiki for each user in the active directory. And, XWiki does not accept a dot in the username field. Any insight will be greatly appreciated. Thank you guys. XWiki does not accept a dot in the page but LDAP authenticator has a special handling of username with . so you will not have issue. In short don't worry about . in ldap user name it's working ;) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Package Import Issue on XWiki 2.2 rc 1
Hello everyone, I've been facing issues importing .xar packages into the new XWiki 2.2 rc 1. The original XWiki was XWiki 2.1.1 stable. The upgrade to XWiki 2.2 rc 1 went fine. However, when I import, all the .xar files attached to the import page disappear. Refresh, log out log in does not help at all. Only, a tomcat restart helps in getting back the Available Packages list on the import page. Then the import works just fine. Has this been reported already.Thank you all. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Single Page Visit/View Count through Groovy Snippet
Thanks for pointing me to the JIRA issue Marius... I hope there is consensus among devs to create a new action for docextra views. Message: 5 Date: Tue, 02 Feb 2010 09:19:04 +0200 From: Marius Dumitru Florea mariusdumitru.flo...@xwiki.com Subject: Re: [xwiki-users] Single Page Visit/View Count through Groovy Snippet To: XWiki Users users@xwiki.org Message-ID: 4b67d1e8.7030...@xwiki.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Dilipkumar Jadhav wrote: Hello folks, I was trying to get the visit count for a single Page through the following Groovy Code in Syntax 2.0: {{groovy}} println Total No. Of Visits: ${doc.getCurrentMonthPageStats(view).getVisits()}; {{/groovy}} It looks like it is returning some data for the Page from the start of the month. However, the concern is every time I view the Page, the count increases by +2 rather than +1. The same is saved in the database in xwikistatsdoc as well. Is there a logic that probably I missed out on. My understanding was that the counter should have increased by +1. I think this is a known issue, see http://jira.xwiki.org/jira/browse/XWIKI-4590 . Hope this helps, Marius Also, is the code snippet that I wrote correct to get this kind of data...Any help would as always be greatly appreciated. Thank you. ___ 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 End of users Digest, Vol 31, Issue 3 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to put an image as panel background ?
Hello there, If you would simply like to display an image in your panel background follow these simple steps: 1. Create the Panel from the Panels.WebHome Page (Let's say, the Panel is called test image) 2. Attach an image/logo of your choice to this Page. (Assume, the image is called img.jpg) 3. Edit the Panel in inline mode. For XWiki syntax 1.0 edit the Panel code so that it looks something like this: #panelheader('test image') {image:img.jpg|document=Panels.test image} #panelfooter() The reason we mention the document attribute is that by default image: would look for image files on the Page that you are viewing. By specifying the Document attribute we make sure that no matter what Page you are viewing, the panel will always display the img.jpg attached to the Document called Panels.test image. You can also lookup the Syntax guide to specify other attributes such as default size of the image in the Panel. Hope this helps... Hello All, I want just to display my logos in panels background. Thanks, -- ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Single Page Visit/View Count through Groovy Snippet
Hello folks, I was trying to get the visit count for a single Page through the following Groovy Code in Syntax 2.0: {{groovy}} println Total No. Of Visits: ${doc.getCurrentMonthPageStats(view).getVisits()}; {{/groovy}} It looks like it is returning some data for the Page from the start of the month. However, the concern is every time I view the Page, the count increases by +2 rather than +1. The same is saved in the database in xwikistatsdoc as well. Is there a logic that probably I missed out on. My understanding was that the counter should have increased by +1. Also, is the code snippet that I wrote correct to get this kind of data...Any help would as always be greatly appreciated. Thank you. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] REST services access to spaces tags
Hello Fabio friends, Previously I had emailed a possible work around to make sure that XWiki.Guest user does not have access to the list of Spaces in a completely private wiki instance. In the meantime, I was working on a possible resolution to the issue of Tags being publicly accessible to XWiki.Guest in a private wiki. Submitting my code change for your kind consideration: I modified the file TagsResource.java in package org.xwiki.rest.resources.tags. I replaced the method : private ListString getAllTags() throws QueryException { String query = select distinct elements(prop.list) from BaseObject as obj, + DBStringListProperty as prop where obj.className='XWiki.TagClass' + and obj.id=prop.id.id and prop.id.name='tags'; ListString tags = queryManager.createQuery(query, Query.HQL).execute(); Collections.sort(tags, String.CASE_INSENSITIVE_ORDER); return tags; } With the following code: private ListString getAllTags() throws QueryException { ListString tags=null; if(!Utils.getXWikiUser(componentManager).equalsIgnoreCase(XWiki.Guest)){ String query = select distinct elements(prop.list) from BaseObject as obj, + DBStringListProperty as prop where obj.className='XWiki.TagClass' + and obj.id=prop.id.id and prop.id.name='tags'; tags = queryManager.createQuery(query, Query.HQL).execute(); Collections.sort(tags, String.CASE_INSENSITIVE_ORDER); } return tags; } } I am unable to throw a authentication required in the browser. However, I am able to block the anonymous/Xwiki.Guest user from accessing the list of tags :) Next, I need to investigate if the anomaly exists with Classes, Objects, etc. Thank you folks... -- Message: 3 Date: Wed, 27 Jan 2010 17:57:02 +0530 From: Dilipkumar Jadhav jadhav.dilipku...@gmail.com Subject: Re: [xwiki-users] REST services access to spaces tags To: users@xwiki.org Message-ID: 4b60313f.5644f10a.7b9c.4...@mx.google.com Content-Type: text/plain; charset=us-ascii Hello friends, I had enquired on the mailing list about the access to Spaces Tags on a strictly private wiki. I believe I might have a resolution: Possible Resolution: 1. I checked out the XWiki Platform - Core -REST module for XWiki 2.1.1. 2. As per the original issue, the Pages were not accessible but Spaces were accessible in a private wiki even without authentication. Hence, I found the two class files compared them, viz. a. SpacesResource.java in package org.xwiki.rest.resources.spaces b. PagesResource.java in package org.xwiki.rest.resources.pages 3. In SpacesResource.java replaced the following code: if (Utils.getXWikiApi(componentManager).exists(homeId)) { home = Utils.getXWikiApi(componentManager).getDocument(homeId); } spaces.getSpaces().add( DomainObjectFactory.createSpace(objectFactory, uriInfo.getBaseUri(), wikiName, spaceName, home)); With the following code: if (Utils.getXWikiApi(componentManager).exists(homeId)) { home = Utils.getXWikiApi(componentManager).getDocument(homeId); if (home != null) { spaces.getSpaces().add( DomainObjectFactory.createSpace(objectFactory, uriInfo.getBaseUri(), wikiName, spaceName, home)); 4. Compiled the module jar deployed it on the XWiki instance. 5. Now, the spaces show up only when the user has been authenticated through the browser. When there is no authentication, all that is displayed is an empty /spaces tag. So things do look partly the way I wanted them to work. I have following two questions at this point of time: 1. Is this the right way to do it. Did I end up breaking something else that was working? 2. If this is the correct resolution, how could I add a Status.UNAUTHORIZED when there is no authentication? Any help will be greatly appreciated. Thank you for your time consideration folks. 2. REST services access to spaces tags (Dilipkumar Jadhav) Message: 2 Date: Mon, 25 Jan 2010 17:45:27 +0530 From: Dilipkumar Jadhav jadhav.dilipku...@gmail.com Subject: [xwiki-users] REST services access to spaces tags To: users@xwiki.org Message-ID: 4b5d8b69.0404c00a.65db.a...@mx.google.com Content-Type: text/plain; charset=us-ascii Hello friends, I am facing some unexpected behavior with RESTful services in private wiki instance: Issue: Spaces, Tags entities can be accessed publicly through REST URL, eventhough XWiki is run in private wiki mode. Description: One of the XWiki 2.1.1 instance is setup in a private wiki mode. Guests are not allowed to register or view any page on this instance. I am also making use of authenticated services (RESTful services XMLRPC services
[xwiki-users] Database authentication For XWiki
Hello friends, Has database authentication been tried for XWiki by anyone before... We've a big user base over the intranet we would like to use the existing authentication mechanism (database storage) to be used by XWiki as well. Would implementing the http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/ java/com/xpn/xwiki/user/api/XWikiAuthService.java XWikiAuthService interface be helpful in achieving a db based authentication. Some pointers in this direction would be appreciated. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Database authentication For XWiki
Hi Thomas, Thanks for providing the LDAP authentication reference. I will read through this find out what is the best way to implement the same for db authentication. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] REST services access to spaces tags
Hello friends, I had enquired on the mailing list about the access to Spaces Tags on a strictly private wiki. I believe I might have a resolution: Possible Resolution: 1. I checked out the XWiki Platform - Core -REST module for XWiki 2.1.1. 2. As per the original issue, the Pages were not accessible but Spaces were accessible in a private wiki even without authentication. Hence, I found the two class files compared them, viz. a. SpacesResource.java in package org.xwiki.rest.resources.spaces b. PagesResource.java in package org.xwiki.rest.resources.pages 3. In SpacesResource.java replaced the following code: if (Utils.getXWikiApi(componentManager).exists(homeId)) { home = Utils.getXWikiApi(componentManager).getDocument(homeId); } spaces.getSpaces().add( DomainObjectFactory.createSpace(objectFactory, uriInfo.getBaseUri(), wikiName, spaceName, home)); With the following code: if (Utils.getXWikiApi(componentManager).exists(homeId)) { home = Utils.getXWikiApi(componentManager).getDocument(homeId); if (home != null) { spaces.getSpaces().add( DomainObjectFactory.createSpace(objectFactory, uriInfo.getBaseUri(), wikiName, spaceName, home)); 4. Compiled the module jar deployed it on the XWiki instance. 5. Now, the spaces show up only when the user has been authenticated through the browser. When there is no authentication, all that is displayed is an empty /spaces tag. So things do look partly the way I wanted them to work. I have following two questions at this point of time: 1. Is this the right way to do it. Did I end up breaking something else that was working? 2. If this is the correct resolution, how could I add a Status.UNAUTHORIZED when there is no authentication? Any help will be greatly appreciated. Thank you for your time consideration folks. 2. REST services access to spaces tags (Dilipkumar Jadhav) Message: 2 Date: Mon, 25 Jan 2010 17:45:27 +0530 From: Dilipkumar Jadhav jadhav.dilipku...@gmail.com Subject: [xwiki-users] REST services access to spaces tags To: users@xwiki.org Message-ID: 4b5d8b69.0404c00a.65db.a...@mx.google.com Content-Type: text/plain; charset=us-ascii Hello friends, I am facing some unexpected behavior with RESTful services in private wiki instance: Issue: Spaces, Tags entities can be accessed publicly through REST URL, eventhough XWiki is run in private wiki mode. Description: One of the XWiki 2.1.1 instance is setup in a private wiki mode. Guests are not allowed to register or view any page on this instance. I am also making use of authenticated services (RESTful services XMLRPC services) for connecting 3rd party applications to this xwiki instance. However, when I access REST URLs for spaces, tags, etc there is no authentication check from XWiki. This data is publicly available. When I access a page URL, I am blocked off for authentication. Couldn't find a JIRA for this one. Could we consider this as an non-consistent behavior in terms of xwiki REST authentication where one resource is blocked while others are not. Has anyone else faced this before or has a work-around to this issue. Thank you for your time consideration friends. Environment: XWiki : 2.1.1 stable Tomcat: 6.0.20 MySql: 5.0.45 community JDK: 1.5 (Apparently, REST services do not work for me through JDK 1.6. This could be just me facing this issue though J) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Meta+G feature on XEM
Hello folks, The Meta+G feature is one of the coolest widely used feature at my organization. I am trying to use the Meta+G/Jump To Page feature over XEM 2.1.1 wikis. The feature works fine over the Main XWiki instance. However, when I use this from a child wiki in a wiki farm, it still picks it's pages from the main XEM instance. It does not pickup any documents from the child farm. I checked the JIRA for the Meta+G feature but couldn't find any documentation in this regard. Can we change something in the ajaxSuggest.js so it will pick pages from the child wikis? Is there a page called XWiki.JumpToPage such as mentioned on http://jira.xwiki.org/jira/browse/XWIKI-1485 where we could probably point the ajax suggest to the appropriate child wiki. I looked up my XWiki instance but could not find this JumpToPage. Any help will be appreciated. Thank you. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Meta+G feature on XEM
Thanks for your quick response Sergiu. The wiki is a path-based wiki. That is strange, it should work perfectly well in a virtual wiki, and you can try to see that it works on the *.xwiki.org farm, and on incubator.myxwiki.org. You can check with Firebug or HttpHeaders to check where does the suggest request go to, maybe there's something weird in the URL setup. Normally, the request goes to something like: ${request.contextPath}/rest/wikis/${context.database}/search?scope=namenumber=10media=json Here, ${request.contextPath} is usually /xwiki, and ${context.database} is the name of the virtual wiki. Could it be that you're using a path-based virtual wiki? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Meta+G feature on XEM
Hi Sergiu, Sorry about the delay in response. I checked the httpheader. It is exactly what you had stated. It accesses the rest api is in the ${request.contextPath}/rest/wikis/${context.database}/search?scope=namenumber=10media=json format. Even though I am in the child wiki the ${context.database} still says xwiki...It should say draft where draft is the name of the child wiki. Since, the wikis I use are path based wikis, do I need to make any change somewhere to make the auto suggest to work. Or would I have to go to url based wikis (with different domain names). At the same time, I've an application which uses XWiki RESTful api without any modifications at all despite the XEM being path based. Please help...thanks. Message: 1 Date: Wed, 20 Jan 2010 12:17:58 -0500 From: Dilipkumar Jadhav jadhav.dilipku...@gmail.com Subject: Re: [xwiki-users] Meta+G feature on XEM To: users@xwiki.org Message-ID: a5b160b51001200917q6f4e7116oee4e4e59c5a4e...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Thanks for your quick response Sergiu. The wiki is a path-based wiki. That is strange, it should work perfectly well in a virtual wiki, and you can try to see that it works on the *.xwiki.org farm, and on incubator.myxwiki.org. You can check with Firebug or HttpHeaders to check where does the suggest request go to, maybe there's something weird in the URL setup. Normally, the request goes to something like: ${request.contextPath}/rest/wikis/${context.database}/search?scope=namenumber=10media=json Here, ${request.contextPath} is usually /xwiki, and ${context.database} is the name of the virtual wiki. Could it be that you're using a path-based virtual wiki? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Meta+G feature on XEM
Hi Sergiu, Thanks for filing this issue as a bug your prompt response. The JS code will have to be fixed, I'll work on it, see http://jira.xwiki.org/jira/browse/XWIKI-4773 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XEM Setup over internet
Thanks for pointing me to the JIRA issue Thomas. About templatexe standard wiki issue: yes this is known and fixed, it will be part of XEM 2.1.2. See http://jira.xwiki.org/jira/browse/XAWM-110 Note that this wiki is not absolutely needed, you can create a empty virtual wiki (without any template) and import the xar you want for it like you would do for any XE installation. The template is just an help when you want to create a wiki which is a XE of the same version as XEM bout you could want to create something else like Workspaces instead of XE. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki memory consumption
Hello there, Thanks for suggesting these options in detail. I was already using the max heap size option. However, I was not aware of replacing the dll in the jvm. Now, I'm eager to try this one and see what are the results. Once again, thank you so much Hi Dilipkumar, I've done some tomcat monitoring too (tomcat 6.0.20 (64bit), java 1.6.0_17 and now 1.6.0_18). - I've never seen more than 96MB memory used for MaxPermGen - and I understood, that this memory is not used / counted for the heap size. - For the production system I am using -server -Xms1024m -Xmx2048m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode - It sounds, that you are using the tomcat service (me too) - please note, that the -server option should be replaced by selecting the java server dll. Kind regards mb ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XEM Setup over internet
Hi Thomas, Thanks for taking the time to reply to my email. I went through the link that you provided and was able to get my wiki up and running. I had to go through my domain name setup for the main instance with my IT and got it working. However, after all the imports and setup when i went to create a new wiki I keep getting errors. I checked the mailing list, online docs even googled it and found that the mailing lists suggested using a different version of XEM. I tried converting XE 2.0.2 to XEM 2.1.1. I also tried XEM 2.1.1 direct installation. Everything went fine except for the creating of the wiki. Following is the stack trace which I have shortened so I could fit it into the email. I believe it is somewhere in my server environment that there is an issue. All the errors point to execute JDBC batch update. Please help. Thank you. Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate content with id Create New Wiki Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate content with id Create New Wiki com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate content with id Create New Wiki at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272) ... org.apache.velocity.exception.MethodInvocationException: Invocation of method 'createNewWiki' in class com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi threw exception com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while saving attachment xwiki-enterprise-manager-application-xem-2.0.5.zip of document XWiki.Import Wrapped Exception: Could not execute JDBC batch update at WikiManager.CreateNewWikiline 157, column 32? at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) . at java.lang.Thread.run(Thread.java:595) Caused by: com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while saving attachment xwiki-enterprise-manager-application-xem-2.0.5.zip of document XWiki.Import Wrapped Exception: Could not execute JDBC batch update at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.saveAttachmentContent(XWikiHibernateAttachmentStore.java:122) at com.xpn.xwiki.XWiki.copyDocument(XWiki.java:4148) Message: 7 Date: Fri, 15 Jan 2010 11:08:33 +0100 From: Thomas Mortagne thomas.morta...@xwiki.com Subject: Re: [xwiki-users] XEM Setup over internet To: XWiki Users users@xwiki.org Message-ID: a8e97d9c1001150208w56d0ed31kec3c2ec10c807...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 On Thu, Jan 14, 2010 at 22:03, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello guys, I ran into some difficulties with setting up a wiki farm again. The website address of the main wiki is (assume): http://internal.ext.com:8080/xwiki In the XWiki.XWikiServerClass the default value is localhost. The moment I restart the tomcat server after switching xwiki.virtual=1, I can no longer access the main wiki from http://internal.ext.com:8080/xwiki over the internet. But I can access it on server as http://localhost:8080/xwiki. I?ve gone through the documents for XEM setup also setup the ?property? in XWiki.XWikiServerClass as internal.ext.com, ext.com, internal.ext.com:8080, etc. But none of the values seem to help. The As you can see in the documentation you have to set up the complete domain names used to access the wiki (here internal.ext.com) as alias. Are you sure your domain even access the wiki server ? localhost value just allows me to access the wiki on localhost only. The setup worked for me over intranet (It was an internal IP address and not a domain name) and the xwiki farm worked fine. But on the internet it just doesn?t work. I am also planning to use URL path based xwiki access and have set xwiki.virtual.usepath to 1. Could someone please guide me in the right direction. See http://manager.xwiki.org/xwiki/bin/view/AdminGuide/AccessWiki for details on both multiwiki modes. Thank you for your time and consideration guys. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne Hi Thomas, Thanks for taking the time to reply to me email. I went through the link that you provided and was able to get my wiki up and running. I had to go through my domain name setup for the main instance with my IT and got
Re: [xwiki-users] XEM Setup over internet
Hi Thomas, The complete stack trace is as follows: Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate content with id Create New Wiki Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate content with id Create New Wiki com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate content with id Create New Wiki at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:547) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:564) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475) at sun.reflect.GeneratedMethodAccessor285.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657) at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191) at
Re: [xwiki-users] XEM Setup over internet
Hi Thomas, This error is pretty weird. How are you creating the wiki exactly ? Are you using a template ? No, I am using the main wiki. I was not able to import the template due to an error while importing the template. However, when I went back to the installation page, it said - no further action required. My assumption was everything got installed ok despite the error. If i understand well the error it seems like you are creating a wiki using main the main wiki as template. Note that even if it does not seems a very good idea i think It should technically work so i don't know what is the really issue here. What database engine are you using ? MySQL ? I am using MySql community version. Is there a specific version that you would recommend or a specific methodology to install XEM e.g. installing XE version x.x.x and then upgrading to XEM version x.x.x. Or directly install a particular XEM x.x.x. Thanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki memory consumption
Hi Mathias, I've a fresh new XWiki 2.1.1 installed on a win 2008 server. This is hosted on 4Gb RAM 3 GHz processor VM. Tomcat is 6.0.20 MySql is 5.0.37. The memory usage is on the higher side even though the wiki is practically empty (nothing except the default pages). What concerns me is that the CPU usage spikes to 100% every once in a while. Checked the process list find tomcat eating 98% of CPU usage. This is definitely scary since this is my production machine. The test machine which has a similar config (except the OS which is win 2003 server) works just fine. The tomcat CPU usage doesn't exceed 20% CPU usage ever. And yes, both machine have same version mysql installed and do not run any other application or servers. For the memory part, Tomcat was not satiated with 512 Mb RAM MaxPermGen and kept throwing OOM almost every day. Had to ramp it to 1024 Mb. That seems to have taken care of the memory issue for now. I am still investigatingthanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XEM Setup over internet
Hello guys, I ran into some difficulties with setting up a wiki farm again. The website address of the main wiki is (assume): http://internal.ext.com:8080/xwiki In the XWiki.XWikiServerClass the default value is localhost. The moment I restart the tomcat server after switching xwiki.virtual=1, I can no longer access the main wiki from http://internal.ext.com:8080/xwiki over the internet. But I can access it on server as http://localhost:8080/xwiki. I’ve gone through the documents for XEM setup also setup the “property” in XWiki.XWikiServerClass as internal.ext.com, ext.com, internal.ext.com:8080, etc. But none of the values seem to help. The localhost value just allows me to access the wiki on localhost only. The setup worked for me over intranet (It was an internal IP address and not a domain name) and the xwiki farm worked fine. But on the internet it just doesn’t work. I am also planning to use URL path based xwiki access and have set xwiki.virtual.usepath to 1. Could someone please guide me in the right direction. Thank you for your time and consideration guys. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Removal of wiki from XEM
Hello everyone, Is it safe to remove a wiki from a wiki farm once information has been added to it. Are there any additional steps that need to followed to make sure the particular wiki is not referenced by the farm (in the app server, wiki or the database). Thank you for your time and consideration folks... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] users Digest, Vol 29, Issue 38
Hi Sergiu, These two points were one of my biggest concerns after deciding to go for a XEM not a plain XE. I am so relieved now. :) A big thank you to you for this clarification. Thanks... Message: 2 Date: Sun, 13 Dec 2009 13:21:22 +0100 From: Sergiu Dumitriu ser...@xwiki.com Subject: Re: [xwiki-users] XEM main wiki inaccessible To: XWiki Users users@xwiki.org Message-ID: 4b24dc42.1010...@xwiki.com Content-Type: text/plain; charset=UTF-8; format=flowed On 12/12/2009 09:12 PM, Dilipkumar Jadhav wrote: Hi Thomas, I followed your instructions checked the XWikiServerXWiki file. Changed the settings for domain name/alias, etc. And I am able to access the main wiki now. Thank you for guiding me in this direction. However, two questions did come up: 1. Do the virtual wikis share the same user groups? All virtual wikis can see the groups and user defined in the main wiki, and each one can define its own users and groups, which should only be visible inside the local wiki. Global groups are prefixed, as in xwiki:XWiki.AdminGroup, while local groups have a local name, as in XWiki.LocalGroup 2. Can the readers, writers administrators of individual virtual wikis be modified after creation of the virtual wiki? Yes. Just open the local wiki, and go to the Administration interface, and select Users to create new local users, Groups to create new local groups, and Global Rights to assign rights to local or global users and groups. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XEM main wiki inaccessible
Hi Thomas, I followed your instructions checked the XWikiServerXWiki file. Changed the settings for domain name/alias, etc. And I am able to access the main wiki now. Thank you for guiding me in this direction. However, two questions did come up: 1. Do the virtual wikis share the same user groups? 2. Can the readers, writers administrators of individual virtual wikis be modified after creation of the virtual wiki? Thanks once again Thomas... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XEM main wiki inaccessible
Hello friends, We are converting our xwiki to an xwiki farm. I have followed all the necessary instructions for converting XE to XEM as stated in the XEM space at http://manager.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HConvertanex istingXWikiEnterpriseinstance I was able to create a xwiki farm successfully on test machine. However, when I tried following the same steps creating xwiki farm on production server, I can no longer access the main wiki (original XE instance which is being converted to XEM). The moment I set the xwiki.virtual=1 property, XWiki becomes inaccessible keeps routing me to the redirect on error URL defined in xwiki.cfg file. On both the test machine production server, the XWiki is 2.1 JDK/JRE is 1.6 with tomcat 6.0.14 mysql 5.0.45. The only difference being the data content inside each wiki instances (the test machine is almost a new wiki whereas the production one has a lot of data) the OS (test machine is Windows XP whereas production is Windows Server 2003). I have downgraded the JDK to 1.5 still the production XWiki just becomes inaccessible when converting into an XEM. I was hoping someone could guide me as to what could I check (logs, some settings) to identify why the production XWiki refuses to start when xwiki.virtual is set to 1. I have tried really hard for the past couple of days to figure out what is different but reached nowhere. If someone has faced this issue before, could you please guide me. Thank you for your time friends. Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki REST authentication
Hi Fabio Guillame, It was fairly simple after all. J My bad that I confused XWiki authorization with tomcat basic authorization which we would configure in the tomcat-users.xml. Also, if I am not wrong, I could set the host, port to null authscope to ANY_REALM in the following snippet (apache httpclient authentication methods): Credentials defaultcreds = new UsernamePasswordCredentials(username, password); client.getState().setCredentials(new AuthScope(myhost, 80, AuthScope.ANY_REALM), defaultcreds); As always, thank you for your detailed timely response Fabio Guillame. Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki REST authentication
Hello folks, XWiki REST authentication can be BASIC authentication or XWiki browser sessions. Found XWIKI-3268 (http://jira.xwiki.org/jira/browse/XWIKI-3268) which stated the same. However is there a possibility to add username/password used by the XWiki users into the HTTPClient authentication methods. At present, BASIC authentication would mean creating a username/password again for the users. And relying on cookies mechanism requires that the XWiki user should be logged into XWiki through a browser before s/he can make REST requests. Either ways, an http client won't be able to authenticate users without making them put an extra effort to login manually somewhere. Please let me know your views on this one If there is a work around to this. Thank you guys. Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki RESTful API issue on localhost
Hi Fabio, Thank you so much for your time response. I really appreciate your gesture of sending over the maven project files. I was able to build the xwiki rest .jar use it successfully in my project :) Your code is correct (except the method getPageSummary() which doesn't exist in my generated JAXB model classes, but this could be due to the fact that you are generating them without the simple bindings) I think the problem is from where you get your JAXB generated model classes (which is not clear from the code you posted). Anyway I tried your code and it works perfectly (modulo a renaming of getPageSummary() to getPageSummaries()). I generated the model classes from the .xsd file mentioned in the XWiki Restful API tutorial at http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rest/src/main/r esources/xwiki.rest.model.xsd I've used XJC which was bundled with the JAXB 2.1 distribution. Surprisingly despite using the .xsd that you provided in your project, the XJC still created a very small Pages.java file. It barely had one method which was the getPageSummary() method. However, when I checked the Pages.class file in the jar from your project, it contained quite a few methods (including the one that I was longing to see). The difference in technique that I see here is that the jar was built using mvn while my class files were created using XJC through command prompt. Not sure if there are version differences in any of the dependencies whilst using the two methods. Will have to look into that. Since I am not able to spot the problem from your mail, I attach to this reply the project I used to do the test. You can look at it and find where are the differences wrt what you wrote. You could also use it as a template for writing JAXB-clients for the XWiki RESTful API. Hope this help. -Fabio It is help that arrived just in time Fabio. We have an internal trouble-ticketing application. The XWiki instance is projected to be our knowledge base went live just today. We wanted our application to extract tags pass on to XWiki which in turn would return trouble-shooting articles. Probably, once the search feature is successful, we would like to be able to push new articles/pages to XWiki from our internal application at the click of a button. Your work is a great starting point. This will give XWiki a lot more portability in today's times when applications interacting with each other is becoming a must. Thanks Fabio... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki RESTful API issue on localhost
Hi Sergiu, I happen to use Tomcat 6.0.18 as the servlet container and JDK 1.6. But I also chanced upon this article while digging for more info: http://blog.spaceprogram.com/2007/05/how-to-fix-linkageerror-when-using-jaxb .html http://java.sun.com/j2se/1.5.0/docs/guide/standards/ I am trying to fix this using the endorsed library mechanism. It seems only JDK 1.6 would have the java.lang.LinkageError and not JDK 1.5. Will keep you posted once this is done. Thanks Sergiu... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki RESTful API issue on localhost
Finally, I have a working version of the code to access the Xwiki RESTful API. It worked smooth on a Tomcat 6.0.14 + JDK 1.5 machine. But had to make certain changes to the bootstrap files for JDK 1.6 as I mentioned in the previous post. I have used the Apache HTTP HTTPClient 3.1 jar files here but soon will upgrade that to Apache HTTPClient 4.0. The only change in the code from the one posted at http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI are the lines Unmarshaller un = context.createUnmarshaller(); and the line Page page = (Page) ((JAXBElement) un.unmarshal(getMethod.getResponseBodyAsStream())).getValue(); The default object that getMethod returns turned out to be a JAXBElement rather than a Page object. Hence, had to do some class casting. A big thanks to Fabio Mancinelli Sergiu Dumitriu for helping me out on this one. Just one more request though. Do we cast the getMethod.getResponseBodyAsStream() to Tags class (if we want to retrieve a list of pages based on their tags) or the SearchResults class (if we want to retrieve pages returned through a page search). Even though, I cast the getMethod.getResponseBodyAsStream to the tags class, my compiler still throws an error for class cast exception : org.xwiki.Pages. Could someone please post a snippet to access pages with specific tags or any other complex querying using classes in the org.xwiki classes. Any help on this would be greatly appreciated friends. /* JDK: 1.5 Tomcat: 6.0.14 (Xwiki server) Libraries: Apache HTTPClient 3.1, JAXB 2.1, Apache Commons Logging 1.1.1 Apache Commons Codec 1.4 Class File Dependencies: org.xwiki package of class files generated from the XSD file at http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rest/src/main/r esources/xwiki.rest.model.xsd with the help of the XJC compiler available in the JAXB 2.1 distribution */ import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.List; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBElement; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.methods.GetMethod; import org.xwiki.Page; public class Main { public static void main(String[] args) throws JAXBException, HttpException, IOException { HttpClient httpClient = new HttpClient(); JAXBContext context = JAXBContext.newInstance(org.xwiki); Unmarshaller un = context.createUnmarshaller(); GetMethod getMethod = new GetMethod(http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/We bHome); getMethod.addRequestHeader(Accept, application/xml); httpClient.executeMethod(getMethod); Page page = (Page) ((JAXBElement) un.unmarshal(getMethod.getResponseBodyAsStream())).getValue(); System.out.println(page.getCreator()); System.out.println(page.getCreated()); System.out.println(page.getFullName()); System.out.println(page.getXwikiAbsoluteUrl()); } } ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki RESTful API issue on localhost
Hi Sergiu, Thanks for taking the time out to look into the issue. I reinstalled the XWiki instance now have a clean XWiki instance. I checked the xwiki/WEB-INF/lib folder and I see that the JAXB library shipped with XWiki is JAXB2.1 (jaxb-api-2.1, jaxb-fluent-api-2.1.8, jaxb-impl-2.1.10,jaxb-xjc-2.1.8,jaxrpc-api-1.1 activation-1.1). Tried accessing the URL http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome directly from the browser. Following is the java.lang.Linkage error that I get: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Tomcat6.0/webapps/xwiki/WEB-INF/lib/jaxb-impl-2.1.10.jar!/com/s un/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/) com.sun.xml.bind.v2.model.impl.ModelBuilder.clinit(ModelBuilder.java:173) com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.j ava:431) com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:288) com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBCon textImpl.java:) com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154) com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) javax.xml.bind.ContextFinder.newInstance(Unknown Source) javax.xml.bind.ContextFinder.find(Unknown Source) javax.xml.bind.JAXBContext.newInstance(Unknown Source) javax.xml.bind.JAXBContext.newInstance(Unknown Source) org.restlet.ext.jaxrs.internal.provider.AbstractJaxbProvider.getJaxbContext( AbstractJaxbProvider.java:63) org.restlet.ext.jaxrs.internal.provider.AbstractJaxbProvider.marshal(Abstrac tJaxbProvider.java:84) org.restlet.ext.jaxrs.internal.provider.JaxbProvider.writeTo(JaxbProvider.ja va:106) org.restlet.ext.jaxrs.internal.wrappers.provider.SingletonProvider.writeTo(S ingletonProvider.java:335) org.restlet.ext.jaxrs.internal.util.JaxRsOutputRepresentation.write(JaxRsOut putRepresentation.java:105) com.noelios.restlet.http.HttpServerCall.writeResponseBody(HttpServerCall.jav a:492) com.noelios.restlet.http.HttpServerCall.sendResponse(HttpServerCall.java:428 ) com.noelios.restlet.ext.servlet.ServletCall.sendResponse(ServletCall.java:40 7) com.noelios.restlet.http.HttpServerConverter.commit(HttpServerConverter.java :391) com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:148) com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:881 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFi lter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFi lter.java:112) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki RESTful API issue on localhost
Hello folks, The REST example at http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI seems to be working fine to quite some extent. I retrieved the xwiki.org Main.WebHome page in the XML format. However, the same code returns empty result if I look for the Main.WebHome on localhost:8080/xwiki. Is there something that I need to enable on my localhost XWiki instance. I see that xwiki.org has been upgraded to version 2.0.2 which is the same version on my machine. I am using tomcat 6.0.18 with MySql 5. Also, the URL http://www.xwiki.org/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome returns a well formed XML document. However, the URL http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome returns an error : XML Parsing Error: no element foundLocation: http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome Line Number 1, Column 1: in Mozilla FF the error : XML document must have a top level element. Error processing resource 'http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/... in IE8 I am retrieving XML info through the following code: import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBContext.*; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.GetMethod; import java.io.IOException; import java.io.InputStream; public class Main{ public static void main(String[] args) throws JAXBException, IOException { HttpClient httpClient = new HttpClient(); JAXBContext context = JAXBContext.newInstance(org.xwiki); Unmarshaller un = context.createUnmarshaller(); GetMethod getMethod = new GetMethod(http://xwiki.org/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome ); getMethod.addRequestHeader(Accept, application/xml); httpClient.executeMethod(getMethod); InputStream is = getMethod.getResponseBodyAsStream(); System.out.println(getMethod.getResponseBodyAsString()); //Page page = (Page) un.unmarshal(getMethod.getResponseBodyAsStream()); } } Any help would be greatly appreciated. Thank you. Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki XmlRpc help requested
Hi Fabio, The semantics of the query parameter of the search method is just a free text that is matched agains document names or content. You cannot execute arbitrary HQL queries using the search method, nor there exist a method for doing so in the current XMLRPC api. -Fabio You were absolutely right. This method only takes free text and searches it through document names content. The results varied greatly if I changed the order of the words being passed into the query parameter. Also, I wasn't able to retrieve the URL from the search results. Only the title could be accessed. As a result, I had to pass the top 10 results iteratively to the getPage method to obtain the URL. The objective here was to display search results from the XWiki into another application. The application would pass certain query parameters to XWiki XWiki would then return document URLs which might be of help in the other application. I also began fiddling with the REST api a little bit. I see that a lot of methods in the examples at http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI were based on HttpClient 3.x api the latest one is 4.0. Also, the JAXB I happen to use is 2.1 (available in Netbeans as a default plugin). Since, I am new to this, it will take a lot of time, effort of course help from friends at XWiki community to get up to date with the latest api :) Just a question though - will the REST getMethod call for the /wikis/{wikiName}/spaces/{spaceName}/search?q={keywords}[[scope={name,conte nt,title,objects}...]number=n] resource result in the same search result as does the internal wiki default/lucene search. My belief is it will return the same result since we are fetching the same page. Thanks for your help timely response Fabio. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Colibri skin inaccessible when unregistered users blocked
Thanks for your response Guillaume Sergiu. I changed the ColorTheme space to be viewable by Guests. That did resolve the original issue. And it happened just in time :) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki XmlRpc help requested
Hello friends, I need a little help here with the XWiki XmlRpc API. I am able to connect to my xwiki instance using the Swizzle Confluence. However, I am currently able to only view contents of a particular page which I supply to the getPage() method. I would like to build a client which could fetch a list of pages based on hql queries (which XWiki supports internally). Could someone please guide me to a search method that could be used here (eg. search(query, maxinterval) ). I've tried pushing queries such as search(where doc.creator='XWiki.Admin, 10) but this results into an empty result list. It was mentioned on the http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC that XWiki implements the most important part of the Confluence http://confluence.atlassian.com/display/DOC/Remote+API+Specification XML-RPC API including Pages: retrieval, rendering, creation, history, update, search and removal. Could someone please please guide me as to what I might be doing wrong here. As always, any help would be much appreciated. import org.codehaus.swizzle.confluence.SpaceSummary; import org.codehaus.swizzle.confluence.Confluence; import java.util.HashMap; import java.util.List; import java.util.Vector; public class ConfluenceExample { public static void main(String[] args) throws Exception { String username = Admin; String password = admin; String endpoint = http://127.0.0.1:8080/xwiki/xmlrpc/confluence;; Confluence confluence = new Confluence(endpoint); confluence.login(username, password); String sql = where doc.creator='XWiki.Admin'; List searches = confluence.search(sql, 10); System.out.println(searches.size()); } } Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Colibri skin inaccessible when unregistered users blocked
Hello all, We've been trying to setup wiki access rights in a manner that only registered users can access pages. As a result, we blocked any unregistered user from either viewing or editing pages without a login. This was due to the fact that we were trying to setup a feedback mechanism where it was important to know who gives the feedback. However, due to these access right changes, the Colibri skin themes applied from the presentation control panel no longer work. The default Colibri theme (with the gray background) is what comes up. I am assuming this is due to the fact that the themes too are pages in the wiki (with the Colibri skin ColorTheme space being introduced) blocking everyone out from viewing/editing pages will apply the same access rights to the ColorTheme space. The strange part is when a user does login, still the skin remains the default one and doesn't change to the theme set in the presentation panel. Could anyone please recommend a workaround to this. Thank you for your time consideration. Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Livetable tag cloud modification
Hello all, Background: We're trying to build a searchable user directory of XWiki users where people can be searched by specialty. The deal here is that each user who contributes to the wiki is good at something and we wanted other users to be able to find contributors by their specialty in case they need some help. XWiki Feature: We are using the livetable user directory example provided on the xwiki.org website it works great. However, users are adding their specialty through the tags on their own profile pages. This too is searchable using the livetable macro option to enable a tagcloud. Concern/Issue: Our user base is currently a few hundred and is expected to grow rapidly soon. Each user has some tags to add to his profile which leads to a lot of tags in the tagcloud right above the livetable. Also, the page loading has become very slow since the entire tag cloud is loading along with the livetable. Possible Solution: Could it be possible to use the ajax suggest to type in these specialty tags rather than display an entire tag cloud on the livetable page. The single tag textbox would provide the search criteria to the livetable document filtering process. Alternatively, could someone please help me with the search query for pulling up pages with XWiki.XWikiUsers objects by using values of XWiki.Tags objects on the same document. I've looked up queries for hql searches unable to find one which crosses multiple classes . Most queries are searches based on objects of one class only. (Can we have 2 BaseObjects, let's say obj1 obj2 to represent the two different object types embedded in the same document). Any help would be greatly appreciated. Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Find Currently Logged In Users
Hello guys, Is there a way to find all the currently logged in users? For load testing purposes, it would be nice to know if we could get a head count of all those who are logged in. Thank you. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki 2 ML 4 .xar import error
Hello everyone, Tried setting up XWiki 2 ML4 as a fresh installation on a test machine. The installation went fine. However, importing the .xar file for XWiki 2 ML 4 throws the following error: Wrapped Exception: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'save' in class com.xpn.xwiki.api.Document threw exception com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied in edit mode on document XWiki.XWikiPreferences at /templates/admin.vm[line 58, column 26] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException( ASTMethod.java:337) . When I tried again, it takes me to the XWiki preferences page but the page says it is locked in edit mode by XWiki.Guest. Clicking force edit throws the above mentioned error again. Is anyone else too facing the same issue. Did I miss out on anything critical during setup. The machine is the same where a test version of XWiki 2 ML 3 works just fine. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Exclude Admin from statistics
Hello friends, Is there a modification we could make to the most active contributor so that Admin is excluded from the results. The Admin does make a lot of changes creates quite a few pages which are XWiki internal pages/test pages. These pages are never seen by the general user. Also, we would like to recognize those general users who contribute the most to Wiki. However, Admin other power users show up at the top of the most active contributors list. The number of pages attributed to Admin are way too high (since XWiki default xar file that we install during fresh installation has almost all the pages attributed to Admin). This kind of gives skewed results. I looked through the api so that I could find a method call which would help me do this. I am unable to find anything that came close to these requirements. Any help will be greatly appreciated. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How set Is minor edit default value to be enabled?
Sometimes I spend weeks to finish some docs, and it will generate dozens of versions when I forgot to enable Is minor edit. How can I set the default value of Is minor edit to true? Under the xwiki root folder Templates, I found the editactions.vm file. I had to replace the line #if($request.minorEdit)checked=checked#endTO checked=checked That seems to set the minor edit box to checked for all the pages. I prefer it this way since on my wiki instance there are on an average 60-100 articles being added daily and almost equal number being edited throughout the day. Most people tend to forget that the changes they are making is a minor edit (epecially when they are making minor edits because of time constraint). I have realised that it may not be a good idea to make changes to the vm files. However, I've also not come across any side effect of enabling the minor edit so far. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How set Is minor edit default value to be enabled?
Thanks for the reply Vincent Sergiu. I will play around with the skin extension method to get the same result. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] org.apache.xmlrpc.XmlRpcException: Failed to create input stream
Hello All, I had been trying out the examples for XML RPC access at http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC. I am using XWiki 2 ML 3 on JDK 1.5 / Tomcat 6.0.18 / MySql 5 test machine. I placed the xwiki-core-xmlrpc-client-2.0-milestone-3.jar file in the WEB-INF/lib folder. Restarted tomcat copy pasted the following code from the above XMLRPC page: % import org.xwiki.xmlrpc.XWikiXmlRpcClient; import org.xwiki.xmlrpc.model.XWikiPage; String url = http://localhost:8080/xwiki/xmlrpc/confluence;; String user = Admin; String pass = admin; XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(url); rpc.login(user, pass); XWikiPage page = rpc.getPage(Main.WebHome); println(page.getContent()); String rendered = rpc.renderContent( page.getSpace(), page.getId(), page.getContent()); println(rendered); % I do not get the rendered content from the server but instead I got the following error message: org.apache.xmlrpc.XmlRpcException: Failed to create input stream: http://localhost:8080/xwiki/xmlrpc/confluence Now, I also tried the other pure java example in Netbeans while making sure that all the commons-logging-1.1.jar, ws-commons-util-1.0.2.jar, xmlrpc-common-3.1.2.jar, and xmlrpc-client-3.1.2.jar files in the libraries. On running the sample code, I get the following error: XmlRpc HttpTransportException: HTTP server returned unexpected status Not Found What am I doing wrong...or is the article not updated as per XWiki 2.0 release. Any help would be greatly appreciated... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Search box in IE8
Hi Anca, I will give this a try update you on the outcome... Thanks for the quick response. :) Message: 3 Date: Wed, 19 Aug 2009 11:45:00 +0300 From: Anca Paula Luca ancapaula.l...@xwiki.com Subject: Re: [xwiki-users] Search box in IE8 To: XWiki Users users@xwiki.org Message-ID: 4a8bbb8c.3030...@xwiki.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Dilipkumar Jadhav wrote: Hello All, This thing just came to notice when we upgraded our Internet Explorer to IE8. The search box that populates using meta-g pulls up at the very bottom of the page in IE8. The same box works normally and shows up at the top of the page in IE7 or Firefox 3.X.X. In IE8, when I enable the compatibility mode, the box works normally shows up at the top of the page. Although, I've not tried this solution, but I understand that adding this meta tag at the top of any html/jsp page should help circumnavigate this issue : meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / Hi there, I suppose you need to add this meta tag to all the XWiki pages, so that you're sure that any page you'd load, the content gets interpreted as in IE7. To do this, go to your installation's templates folder (/webapps/xwiki/templates) and edit the htmlheader.vm file to add, next to the other meta tags, this one. Hope this helps, Anca However, I am not sure which page to add this so that the search box works appears at the top of the page. Any help... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Search box in IE8
Hello All, This thing just came to notice when we upgraded our Internet Explorer to IE8. The search box that populates using meta-g pulls up at the very bottom of the page in IE8. The same box works normally and shows up at the top of the page in IE7 or Firefox 3.X.X. In IE8, when I enable the compatibility mode, the box works normally shows up at the top of the page. Although, I've not tried this solution, but I understand that adding this meta tag at the top of any html/jsp page should help circumnavigate this issue : meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / However, I am not sure which page to add this so that the search box works appears at the top of the page. Any help... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] users Digest, Vol 24, Issue 36
Hello Chritophe, Your suggestions worked. I was able to customize the search split the basic search into title search content search. Really appreciate you taking your time out to answer my question... Thank you... Message: 2 Date: Fri, 24 Jul 2009 15:38:45 +0530 From: Dilipkumar Jadhav jadhav.dilipku...@gmail.com Subject: [xwiki-users] Customized search possibility To: users@xwiki.org Message-ID: a5b160b50907240308r7ab7183uc54b0f1949000...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Hello All, Is there a way to customize xwiki search. Eg. If we would like to search for keywords only in the title of the document and not in the content OR if the search should return result based only on tag search. If it is possible would it be in groovy/velocity or it would involve source files... Any help is much appreciated. Thank you... -- Message: 3 Date: Fri, 24 Jul 2009 13:08:53 +0200 From: PERINAUD Christophe christophe.perin...@kbl-bank.com Subject: Re: [xwiki-users] Customized search possibility To: XWiki Users users@xwiki.org Message-ID: ed0c09f95babad44ba43b7ee2506ee1b01557...@msluclu1.lu.kb.int Content-Type: text/plain; charset=iso-8859-1 Hi, For the WebSearch engine (the one i use), you can modify the code of the WebSearch page for the look and change also the code in the page XWiki.WebSearchCode to customize the way to search your words in the wiki (page names, content, text fields, textarea fields). Would not be too difficult to also add a search in tags (based on the search in tags page) Hope it helps -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de Dilipkumar Jadhav Envoy? : vendredi 24 juillet 2009 12:09 ? : users@xwiki.org Objet : [xwiki-users] Customized search possibility Hello All, Is there a way to customize xwiki search. Eg. If we would like to search for keywords only in the title of the document and not in the content OR if the search should return result based only on tag search. If it is possible would it be in groovy/velocity or it would involve source files... Any help is much appreciated. Thank you... ___ 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
[xwiki-users] Customized search possibility
Hello All, Is there a way to customize xwiki search. Eg. If we would like to search for keywords only in the title of the document and not in the content OR if the search should return result based only on tag search. If it is possible would it be in groovy/velocity or it would involve source files... Any help is much appreciated. Thank you... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] new application css+image
You are my man Jerome !!! The $doc parse=Yes worked...Thank you so much. Awesome !!! I've got a nice working tree from a static ul-li list. The idea was to have a if-else sort of troubleshooting guide for my organization's helpdesk. Would love to put this up on code.xwiki.org. Before that want to clean the documents a bit. Also, need to re-read the tutorial on packaging applications. Once again, thanks Jerome... -- Message: 2 Date: Sun, 10 May 2009 11:18:59 +0300 From: Jerome Velociter jer...@xwiki.com Subject: Re: [xwiki-users] new application css+image To: XWiki Users users@xwiki.org Message-ID: 4a068df3.6010...@xwiki.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello, If minus.gif is attached to the document that holds the SSX object, the right line is : ul.mktree li.liOpen.bullet { cursor: pointer; background: url($doc.getAttachmentURL(minus.gif)) center left no-repeat; } ($doc instead of $xwiki) Make sure you also said Yes to the parse content option of the SSX, and it should all work fine :) Cheers, Jerome Dilipkumar Jadhav wrote: Hello friends, I am trying to use the work of Mark Strauss (mktree) found at http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin that allows creation of collapsible tree from a static ul and lit list. So far, I had it working through by adding the javascript and the css file by adding the actual path of these files in the presentation section of the admin dashboard. However, I wanted it to be more organized and make it available on demand. So i created the jsx and the ssx files in place of the javascript and the css files. So far so good. However, there are images that were referred by the css file which worked fine in the previous setup (basically they assign a plus and minus sign on the right of the ul and li elements). Now, I've attached these image files to the ssx. But I am not able to get the ssx to work with the images. The Javascript works fine from the jsx. The tree does collapse and expand as expected. However, the images from the style sheet does not show up. I've used the following line in the object edit mode of the ssx page: ul.mktree li.liOpen.bullet { cursor: pointer; background: url($xwiki.getAttachmentURL(minus.gif)) center left no-repeat; } ...here minus.gif is attached to the ssx page. But no go. I did go through the various resources on skin customizations and the addsizes extension tutorial. I could not understand the use velocity to attach images technique in the addsizes tutorial. Is there a simpler way to make the ssx pick up the image files and behave just like a normal css file?... Any help would be appreciated. Thank you all. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Message: 3 Date: Sun, 10 May 2009 11:22:44 +0300 From: Jerome Velociter jer...@xwiki.com Subject: Re: [xwiki-users] new application css+image To: XWiki Users users@xwiki.org Message-ID: 4a068ed4.4040...@xwiki.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Dilipkumar Jadhav wrote: Hello friends, I am trying to use the work of Mark Strauss (mktree) found at http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin Forgot to say BTW, this is cool :) You should publish it on code.xwiki.org once it's finished, I'm sure it can come handy to other application developers. Jerome. that allows creation of collapsible tree from a static ul and lit list. So far, I had it working through by adding the javascript and the css file by adding the actual path of these files in the presentation section of the admin dashboard. However, I wanted it to be more organized and make it available on demand. So i created the jsx and the ssx files in place of the javascript and the css files. So far so good. However, there are images that were referred by the css file which worked fine in the previous setup (basically they assign a plus and minus sign on the right of the ul and li elements). Now, I've attached these image files to the ssx. But I am not able to get the ssx to work with the images. The Javascript works fine from the jsx. The tree does collapse and expand as expected. However, the images from the style sheet does not show up. I've used the following line in the object edit mode of the ssx page: ul.mktree li.liOpen.bullet { cursor: pointer; background: url($xwiki.getAttachmentURL(minus.gif)) center left no-repeat; } ...here minus.gif is attached to the ssx page. But no go. I did go through the various resources on skin customizations and the addsizes extension tutorial. I could not understand the use velocity to attach images technique in the addsizes tutorial. Is there a simpler way
[xwiki-users] new application css+image
Hello friends, I am trying to use the work of Mark Strauss (mktree) found at http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin that allows creation of collapsible tree from a static ul and lit list. So far, I had it working through by adding the javascript and the css file by adding the actual path of these files in the presentation section of the admin dashboard. However, I wanted it to be more organized and make it available on demand. So i created the jsx and the ssx files in place of the javascript and the css files. So far so good. However, there are images that were referred by the css file which worked fine in the previous setup (basically they assign a plus and minus sign on the right of the ul and li elements). Now, I've attached these image files to the ssx. But I am not able to get the ssx to work with the images. The Javascript works fine from the jsx. The tree does collapse and expand as expected. However, the images from the style sheet does not show up. I've used the following line in the object edit mode of the ssx page: ul.mktree li.liOpen.bullet { cursor: pointer; background: url($xwiki.getAttachmentURL(minus.gif)) center left no-repeat; } ...here minus.gif is attached to the ssx page. But no go. I did go through the various resources on skin customizations and the addsizes extension tutorial. I could not understand the use velocity to attach images technique in the addsizes tutorial. Is there a simpler way to make the ssx pick up the image files and behave just like a normal css file?... Any help would be appreciated. Thank you all. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] ModalBox Application Xar deleted
Hello friends,Found out that the page where the new ModalBox Application Xar is to be downloaded is a deleted page URL : http://code.xwiki.org/xwiki/bin/view/Applications/ModalBoxApplicationDownloads It looks like a really cool app to have on the wiki. For me, it will be a nice workaround to the balloon styled tooltip I had requested help with on the mailing list some time back. Hope the modal box is available soon... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki External Database
Hello friends, Some time back I had asked the question on connecting XWiki to an external database. My organization had some special requirements they wished that the other database would be seperated from the main XWiki database. I was able to figure out how to go about doing this. However, my solution follows the simple JSP design pattern. Basically, I retrieve parameters from one page and push it to another page using html form (with the action tag) which in turn pushes the data to the database. It is very primitive when compared to the nature and complexity of XWiki itself but serves the purpose. The scripting is done in velocity and groovy. Also, the pages are secured through XWiki's rights feature. So a normal user can only see the page, enter data on the page but not edit it. I request you to let me know if there is a better way of doing it. If need be I can paste my scripting code in the mailing list. However, I have not worked with Struts do not know how to go about making changes at the source level. And eventhough I have just started using Groovy, I really like the ease of use. Is there a way that we can put in groovy or Java class files that will hide the scripting even at the XWiki page level. Thank you friends... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Stats module configuration
Hello folks, I am sorry to revive an old question I had asked in this forum but I wanted to share this with everyone. My statistics were not working on XWiki 1.7.2 originally. Finally, I figured this out. The database was MySql ver 4.x.x. I got this legacy database to work on since XWiki was on testing mode for my organization back then. I really did not have any option in the choice of the MySql version at that point of time. I had almost given up on getting the stats to work. But in the process of setting up a test XWiki I installed MySql 5.4. And the stats module worked !!! Guess, I missed something in the XWiki install guides or maybe the version compatibility (for database app servers) is not mentioned in the install guides. My most sincere thanks to Sergiu Thomas who took the time to answer my questions when this thread was active. Thank you everyone... On Mon, Mar 9, 2009 at 4:56 AM, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Dear all, Thank you so much for your prompt response. I've tried to check all the things you have suggested. This is where i stand now: 1. Debug each line of the stats panel I printed out the values at the end of each #set line in the most edited pages panel. This is what i got as a result: com.xpn.xwiki.criteria.impl.sc...@19fd285 com.xpn.xwiki.criteria.impl.per...@11ff313 com.xpn.xwiki.criteria.impl.ra...@4348c6 [] The final [] in the fourth line above is the value for $stats 2. The Joda time plugin might be disabled I see that the line com.xpn.xwiki.plugin.jodatime.JodaTimePlugin is in my xwiki.cfg properties Also, joda-time-1.4.jar is available in WEB_INF lib folder 3. Maybe you have a statistics field set to 0 in XWiki.XWikiPreferences (edit in object mode to check) I went to the XWiki.XwikiPreferences page and checked it in the object mode. Unfortunately, i do not see any statistics field in there. Could you please provide me with some exact example that i should look for in this page. I see info about panels skins et al. But nothing about the statistics field. 4. I read the line in the user guide that says - When statistics are globally enabled, storage can be enabled/disabled by wiki using the XWikiPreference property statistics Is this the same statistics field that we are talking about in point 3 above...If so, i really need some more clarity on looking up XWikipreferences in the object mode. 5. I have disabled the module and enabled it again. But there is still no data being displayed on the panels. All it says is - No statistics recorded Please help...thank you friends. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki External Database
Hello once again everone, Yesterday, I went through the XWiki main API reference guide at http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-1.7.2-javadoc.zip/index.html . I was wondering if the Context class could be used to pass parameter from one page to another (let's say input page to the page which does the actual database insert using groovy). There are two methods defined in the Context class: 1.put @Programming public void *put*(java.lang.String key, java.lang.Object value) Puts an object on the context using the given key. The context can be seen as a map of (paramName, paramValue) pairs. Requires programming rights. *Parameters:*key - The parameter name.value - The parameter value. 2. get @Programming public java.lang.Object *get*(java.lang.String key) Returns the value associated with the given key in the XWiki context. Programming rights are needed in order to call this method. The context can be seen as a map of (paramName, paramValue) pairs. This mechanism is useful for passing parameters between pages or from Java to Velocity. For instance an exception caught in Java code can be put on the context and handled in a user-friendly way in Velocity. This method is protected because sensitive information may be placed in the internal context, which shouldn't be publicly accessible. *Parameters:*key - The key to look for in the context. *Returns:*The value associated with the given key in the XWiki context, if you have programming rights, or null otherwise.Would it be possible to use the put method to assign a parameter and get to retrieve this parameter in the next page. I tried my little experiment with an html form with the action set to another page. This html form page sets the parameters using the put() method. However, when i try to access the parameter using the get() method on the next page, I get null values. I've tried context.put(key1,value1) and context.put('key1','value1') and also context.put(key1,value1). The first two give me null values whereas the last technique gives me a script error (probably because my syntax is incorrect). I am pretty sure that i do have programming rights since using just context.getDatabase() gives me the database name. Requesting some assistance here... Thank you in advance. On Sat, Apr 18, 2009 at 6:16 PM, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello Friends, I have been asked to connect an external database with XWiki (XWiki will be used as the application MySql as the database). I am using XWiki Enterprise 1.7.14685 :: MySql 5.0. The external database (let's call it titan) is on the same mysql instance (port) as XWiki database itself. The requirement is to fetch user input (in terms of check boxes, radio buttons text boxes) from XWiki page and insert it into database. Also, some degree of read operation from the database is required. I've been able to read from my external database using the following code directly in my XWiki page (under XWiki 1.0 syntax): % import groovy.sql.Sql def sql = Sql.newInstance(jdbc:mysql://localhost:3306/titan, root, test, com.mysql.jdbc.Driver) sql.eachRow(select * from user){ println ${it.user} } % Hence, I am confident that an update or insert operation can be performed with ease too (thanks to the groovy page at http://groovy.codehaus.org/Database+features). But I am not familiar with how to retrieve session parameters from the page context. Could someone please guide me to a resource or a working example of fetching context variables/parameters. Maybe it is a very simple solution, but I have very little background in velocity. Any help would be much appreciated. Also, any time-frame on the page rating feature which is being discussed very often now?(what version we could expect to see it?). Also, would page rating be available for all the documents in an existing wiki (as in embedded in the velocity templates) or would it be available only for newly created pages/documents. Thank you everyone... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki External Database
Hello Friends, I have been asked to connect an external database with XWiki (XWiki will be used as the application MySql as the database). I am using XWiki Enterprise 1.7.14685 :: MySql 5.0. The external database (let's call it titan) is on the same mysql instance (port) as XWiki database itself. The requirement is to fetch user input (in terms of check boxes, radio buttons text boxes) from XWiki page and insert it into database. Also, some degree of read operation from the database is required. I've been able to read from my external database using the following code directly in my XWiki page (under XWiki 1.0 syntax): % import groovy.sql.Sql def sql = Sql.newInstance(jdbc:mysql://localhost:3306/titan, root, test, com.mysql.jdbc.Driver) sql.eachRow(select * from user){ println ${it.user} } % Hence, I am confident that an update or insert operation can be performed with ease too (thanks to the groovy page at http://groovy.codehaus.org/Database+features). But I am not familiar with how to retrieve session parameters from the page context. Could someone please guide me to a resource or a working example of fetching context variables/parameters. Maybe it is a very simple solution, but I have very little background in velocity. Any help would be much appreciated. Also, any time-frame on the page rating feature which is being discussed very often now?(what version we could expect to see it?). Also, would page rating be available for all the documents in an existing wiki (as in embedded in the velocity templates) or would it be available only for newly created pages/documents. Thank you everyone... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Stats module configuration
Hello friends, I've tried placing the new xwiki-plugin-jodatime-1.3.jar. Restarted tomcat and still no statistics. The result set like another friend said is still : NULL There is definitely valid data in the stats tables (when i query it through Sqlyog). Thank you ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Stats module configuratio
Dear all, Thank you so much for your prompt response. I've tried to check all the things you have suggested. This is where i stand now: 1. Debug each line of the stats panel I printed out the values at the end of each #set line in the most edited pages panel. This is what i got as a result: com.xpn.xwiki.criteria.impl.sc...@19fd285 com.xpn.xwiki.criteria.impl.per...@11ff313 com.xpn.xwiki.criteria.impl.ra...@4348c6 [] The final [] in the fourth line above is the value for $stats 2. The Joda time plugin might be disabled I see that the line com.xpn.xwiki.plugin.jodatime.JodaTimePlugin is in my xwiki.cfg properties Also, joda-time-1.4.jar is available in WEB_INF lib folder 3. Maybe you have a statistics field set to 0 in XWiki.XWikiPreferences (edit in object mode to check) I went to the XWiki.XwikiPreferences page and checked it in the object mode. Unfortunately, i do not see any statistics field in there. Could you please provide me with some exact example that i should look for in this page. I see info about panels skins et al. But nothing about the statistics field. 4. I read the line in the user guide that says - When statistics are globally enabled, storage can be enabled/disabled by wiki using the XWikiPreference property statistics Is this the same statistics field that we are talking about in point 3 above...If so, i really need some more clarity on looking up XWikipreferences in the object mode. 5. I have disabled the module and enabled it again. But there is still no data being displayed on the panels. All it says is - No statistics recorded Please help...thank you friends. Message: 7 Date: Sun, 8 Mar 2009 10:51:34 +0100 From: Thomas Mortagne thomas.morta...@xwiki.com Subject: Re: [xwiki-users] Stats module configuration To: XWiki Users users@xwiki.org Message-ID: a8e97d9c0903080151t75b2a7b6l202fa944df517...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 Hi, On Sat, Mar 7, 2009 at 16:59, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello friends, My wiki has grown considerably now and we are at a phase where we would like to measure and analyze contributors and their contributions. ?I am using XWiki 1.7.2. I followed the instructions at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration and set the following in the ?xwiki.cfg file. xwiki.stats=1 xwiki.stats.default=1 Now, I can see that the stats are being recorded in the database (mysql) tables. However, when i visit the stats home in my wiki all i see is No statistics have been recorded for all statistics panels. All the graphs show no activity. Also, i have enabled the stats module about 2 weeks back during which course there has been a lot of activity on the wiki. Also, the stats seems to work on the XWiki installed on my home pc. However, at my office ?instance of XWiki the stats module does not work. Could it have something to do with the proxy server that we have setup in office. No statistics have been recorded is printed when statistics are disabled so I doubt it has anything to do with proxy (it does not really check if there is something recorded or not, even if nothing was in the database it should generate en empty graph). Maybe you have a statistics field set to 0 in XWiki.XWikiPreferences (edit in object mode to check) Did i miss out on some crucial steps... Any help will be greatly appreciated. Thank you... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne -- Message: 8 Date: Sun, 08 Mar 2009 11:40:58 +0100 From: Sergiu Dumitriu ser...@xwiki.com Subject: Re: [xwiki-users] Stats module configuration To: XWiki Users users@xwiki.org Message-ID: 49b3a0ba.3070...@xwiki.com Content-Type: text/plain; charset=UTF-8; format=flowed Thomas Mortagne wrote: Hi, On Sat, Mar 7, 2009 at 16:59, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello friends, My wiki has grown considerably now and we are at a phase where we would like to measure and analyze contributors and their contributions. I am using XWiki 1.7.2. I followed the instructions at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration and set the following in the xwiki.cfg file. xwiki.stats=1 xwiki.stats.default=1 Now, I can see that the stats are being recorded in the database (mysql) tables. However, when i visit the stats home in my wiki all i see is No statistics have been recorded for all statistics panels. All the graphs show no activity. Also, i have enabled the stats module about 2 weeks back during which course there has been a lot of activity on the wiki. Also, the stats seems to work on the XWiki installed on my home pc. However, at my office instance of XWiki the stats module does not work. Could it have something to do with the proxy server that we have setup in office
[xwiki-users] Stats module configuration
Hello friends, My wiki has grown considerably now and we are at a phase where we would like to measure and analyze contributors and their contributions. I am using XWiki 1.7.2. I followed the instructions at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration and set the following in the xwiki.cfg file. xwiki.stats=1 xwiki.stats.default=1 Now, I can see that the stats are being recorded in the database (mysql) tables. However, when i visit the stats home in my wiki all i see is No statistics have been recorded for all statistics panels. All the graphs show no activity. Also, i have enabled the stats module about 2 weeks back during which course there has been a lot of activity on the wiki. Also, the stats seems to work on the XWiki installed on my home pc. However, at my office instance of XWiki the stats module does not work. Could it have something to do with the proxy server that we have setup in office. Did i miss out on some crucial steps... Any help will be greatly appreciated. Thank you... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] users Digest, Vol 20, Issue 1
Hello Niels, Thank you so much for taking out the time to find this info for me. I do take your advice to heart about the pitfalls of using tooltip on XWiki. I also visited the website where the tooltips are actually implemented. Unfortunately, the performance was not satisfactory. I might have to come up with something else to circumnavigate my problem at hand. Once again, thank you so much for your timely response. Message: 7 Date: Sat, 28 Feb 2009 12:40:48 -0800 From: Niels Mayer nielsma...@gmail.com Subject: Re: [xwiki-users] Help with balloon styled tooltips To: XWiki Users users@xwiki.org Message-ID: 6fb2fb120902281240w7d1b8c11l76fb221ffd08f...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Take a look at: http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-1.8-rc-1-javadoc.zip/com/xpn/xwiki/api/XWiki.html java.lang.String *addTooltiphttp://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D1.8%2Drc%2D1%2Djavadoc.zip/com/xpn/xwiki/api/XWiki.html#addTooltip%28java.lang.String,%20java.lang.String%29 *(java.lang.String html, java.lang.String message) Inserts a tooltip using toolTip.js java.lang.String *addTooltiphttp://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D1.8%2Drc%2D1%2Djavadoc.zip/com/xpn/xwiki/api/XWiki.html#addTooltip%28java.lang.String,%20java.lang.String,%20java.lang.String%29 *(java.lang.String html, java.lang.String message, java.lang.String params) Inserts a tooltip using toolTip.js java.lang.String * addTooltipJShttp://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D1.8%2Drc%2D1%2Djavadoc.zip/com/xpn/xwiki/api/XWiki.html#addTooltipJS%28%29 *() Inserts the tooltip Javascript Also, see http://curriki.org for an example of a site using tooltips, e.g. note the popups over the document names in http://www.curriki.org/xwiki/bin/view/Search/#o%3As%3Ds%253Aresource%5Ef%3Do%253Aresource%253Do%25253Asubjectparent%25253Ds%2525253AFW_masterFramework.Science%25255Esubject%25253Ds%2525253AFW_masterFramework.Science%25255Ecategory%25253Ds%2525253A%25255Elevel%25253Ds%2525253A%25255Elanguage%25253Ds%2525253A%25255Ereview%25253Ds%2525253A%25255Eictprfx%25253Ds%2525253A%25255Eict%25253Ds%2525253A%25255Especial%25253Ds%2525253A%255Egroup%253Do%25253Asubjectparent%25253Ds%2525253A%25255Esubject%25253Ds%2525253A%25255Elevel%25253Ds%2525253A%25255Elanguage%25253Ds%2525253A%25255Epolicy%25253Ds%2525253A%255Emember%253Do%25253Asubjectparent%25253Ds%2525253A%25255Esubject%25253Ds%2525253A%25255Emember_type%25253Ds%2525253A%25255Ecountry%25253Ds%2525253A%255Eblog%253Do%25253A%255Ecurriki%253Do%25253A%5Ep%3Do%253Aresource%253Do%25253Ac%25253Dn%2525253A0%25255Es%25253Dn%2525253A25%255Egroup%253Do%25253Ac%25253Dn%2525253A0%25255Es%25253Dn%2525253A25%255Emember%253Do%25253Ac%25253Dn%2525253A0%25255Es%25253Dn%2525253A25%255Eblog%253Do%25253Ac%25253Dn%2525253A0%25255Es%25253Dn%2525253A25%255Ecurriki%253Do%25253Ac%25253Dn%2525253A0%25255Es%25253Dn%2525253A25%5Et%3Ds%253Asearch-resource-tab%5Ea%3Do%253Aresource%253Do%25253Aa%25253Db%2525253A1 Warning -- there is a potentially significant performance penalty for adding tooltips. For one, even if you don't need to display any tooltip text (or it's from a long document and might never be displayed as it's scrolled off screen), it's all loaded into the browser. Niels http://nielsmayer.com On Sat, Feb 28, 2009 at 8:29 AM, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello friends, I am here to request help on embedding a balloon styled tooltip in our XWiki instance. I have had a fair amount of success in embedding various third party javascript libraries, however, the ones that depend on jquery do not seem to work through XWiki. I did go through an article which guides us through creating tooltips and custom validations in forms. Our requirement, however, is to have a balloon styled tooltip that can hold images, text (generally info) about the link that the user is about to visit if s/he were to click on it. Our users are having a hard time navigating the pages since they move from page to page assuming that the next page that they are about to visit is the one where they will find their answers. It is also not possible to load the current page with too much info about the links that they are about to visit (as this will lead to cluttered pages). Could someone be kind enough to guide me through embedding a tooltip that pops-up when the user hovers the mouse over a link. Or maybe there is plugin for it already which i might have missed. Thank you for your time and interest friends. ___ 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 End
[xwiki-users] Help with balloon styled tooltips
Hello friends, I am here to request help on embedding a balloon styled tooltip in our XWiki instance. I have had a fair amount of success in embedding various third party javascript libraries, however, the ones that depend on jquery do not seem to work through XWiki. I did go through an article which guides us through creating tooltips and custom validations in forms. Our requirement, however, is to have a balloon styled tooltip that can hold images, text (generally info) about the link that the user is about to visit if s/he were to click on it. Our users are having a hard time navigating the pages since they move from page to page assuming that the next page that they are about to visit is the one where they will find their answers. It is also not possible to load the current page with too much info about the links that they are about to visit (as this will lead to cluttered pages). Could someone be kind enough to guide me through embedding a tooltip that pops-up when the user hovers the mouse over a link. Or maybe there is plugin for it already which i might have missed. Thank you for your time and interest friends. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] the panel for create new page disappear (harri...@gmail)
Hello, I have faced a similar issue with the search panel having disappeared both from the column and from the panel wizard. I tried changing all the possible page layouts and every time i changed the layout i went and checked the panel in the panel wizard. It just wasn't there! The one thing that i distinctly remember i did before the panel disappeared is that i changed the look feel of the search box by adding a different button and set a background image. In fact, i had playing around with the skin for quite a while not just the panels. Don't know if these two are related. I had to scrap one of the instances of XWiki 1.7 final because of this problem. I have managed to setup the whole thing again. However, i am afraid i might just end into the same thing again. I am running XWiki 1.7 final version on a tomcat 6 server with mysql 5 and the corresponding jdbc:mysql driver. This time, however, i've not changed the skin or the css at all except for the logo at the top. Thank you guys!!! Message: 1 Date: Mon, 19 Jan 2009 17:05:18 +0800 From: harri...@gmail huang.c...@gmail.com Subject: Re: [xwiki-users] the panel for create new page disappear To: 'XWiki Users' users@xwiki.org Message-ID: 49744250.06876e0a.2557.8...@mx.google.com Content-Type: text/plain; charset=gb2312 Thank you very much. I managed that by entering it in the Url directly. But your first suggestion doesn't work as I can't find new page panel under the tools. Only search panel is shown under tools. Is it a xWiki bug? Regards, Harrison ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users