Re: [xwiki-users] Velocity code in XWiki Enterprise 1.9.1.21780
On Wednesday 22 July 2009 02:26:48 Sergiu Dumitriu wrote: Marc Lijour wrote: I did not find how to submit this fully as a comment to http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial What do you mean by that? Logged in users can post comments, and I see that you do have a user account on xwiki.org. I did not find how to escape the code (which contains things as {{velocity}}). The parser can not bite it. I only submitted a portion of the comment. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Velocity code in XWiki Enterprise 1.9.1.21780
Hi, I have the brand new XWiki Enterprise 1.9.1.21780. I noticed that the class wizard has issues (http://xwiki.markmail.org/message/kl7vi6p2dlc3ouwr?q=FAQTutorial#query:FAQTutorial+page:1+mid:zyimlrxfkx3uff6x+state:results), but I did create a class, a class sheet and a class template manually. I also added an empty object to the class. Because the Velocity code is not interpreted the same way in syntax xwiki 2.0, I followed the syntax help guide included in the XWiki instance and I protected the code as follows: {{velocity}} ## replace Main with the Space where you want your documents to be created ## replace the default parent with the one of your choice ## Save this template using the 'Save' button #set( $class = $doc.name.substring(0,$doc.name.indexOf(Class))) #set($defaultparent = XWiki.${class}Class) #set($defaultweb = LSQ) #includeForm(XWiki.ClassSheet) {{/velocity}} The Velocity code is parsed but it produce HTML that is not parsed by the Wiki page. It is displayed as-is: h1 id=HClass3ATermeClassspanClass: TermeClass/span/h1p/ The first thing to do is to a href=/xwiki/bin/edit/LSQ/TermeClass?xpage=editclassEdit the Class/a to add properties to it.p/ h2 id=HCreateanewdocumentspanCreate a new document/span/h2p/ To create a new document, you should first choose a name for you documentp/ form action= id=newdoc method=post div input type=hidden name=parent value=XWiki.TermeClass/ input type=hidden name=template value=LSQ.TermeClassTemplate/ input type=hidden name=sheet value=1/ Space: input type=text name=webname value=LSQ size=8/ Document: input type=text name=name value=Name of your document/ br/ br/ input type=button value=Create this document onclick='if (updateName(this.form.name)) {this.form.action=../../inline/ + this.form.webname.value + / + this.form.name.value; this.form.submit(); }'/ /div /formp/ h2 id=HSheetandTemplatespanSheet and Template/span/h2p/ ul class=star liSheet: span class=wikilinka href=/xwiki/bin/view/LSQ/TermeClassSheetTerme Class Sheet/a/span/li liTemplate: span class=wikilinka href=/xwiki/bin/view/LSQ/TermeClassTemplateTerme Class Template/a/span/li lispan class=wikilinka href=/xwiki/bin/view/XWiki/ClassSheet?xpage=codeView the sample code to show the document list and create new documents/a/span/li /ul h2 id=HExistingdocumentsspanExisting documents/span/h2p/ Is there a workaround that to make the page parse this HTML properly or to produce an equivalent display? It would be nice to also let people know at http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial (completing tapaya's remark) -I could do that if I knew the answer. Thanks Marc ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] ccomo me conecto a la base de datos
On October 25, 2007 11:33:55 am Valencia Patiño Julian Enrique wrote: I just realized that I´ve installed the easier installer I found .. it comes with hsqldb .. in the hibernate.cfg.xml file I found that the user is sa with no password .. but I wanto to connect to the database through a browser. I want to browse the database schema to change some things if it's possible. Is the wiki working as it should? What do you get from the browser? This wiki uses hibernate therefore changing the database schema is not a simple issue. Finally, it you want a production class installation you'd want to switch to a RDBMS such as MySQL or ORACLE. In that case, follow the instruction given on xwiki.org. You can create the database and connect your existing wiki to it by commenting out apropriately hibernate.cfg.xml . ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] ccomo me conecto a la base de datos
On October 24, 2007 04:10:13 pm Julian Valencia wrote: hola ..una pregunta!! instale la version para principiantes de xwiki enterprise quiero conectarme a la base de datos usando el mysql gui tools y no he podido ... como se lla ma la isntancia que queda creada por defecto y cual es el usuario de mysql?? gracias Cual instrucciones seguistes? Normalement alli viene el nombre y el password de tu base de dato. Para que funcione el wiki tienes que modificar este documento: hibernate.cfg.xml (en WEB-INF) Tambien tienes que adaptar xwiki.cfg. Mas info en el Wiki (xwiki.org) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Export/Import doesn't parse velocity macros
Hi Victor I see you have jumped one step forward and you made the export script work within 0.9. I did not the issue you are mentionning (parsing code) -yet. My problem emerges when unpacking in the new wiki 1.1.1. Although the package looks like a valid zip file -and the XML descriptor file validates- the import script cannot list the documents arguing it cannot parse the XML file (see JIRA issue WIKI-1809). Now my question: where do you get this information on the plugin? What does it do? Could you elaborate on what's useful in your case? Thank you Marc On October 18, 2007 06:10:37 pm Víctor A. Rodríguez wrote: Víctor A. Rodríguez wrote: BTW, in v1.1 it doesn't works either. Of course export and import are already embedded in 1.1, in Administration tasks. Víctor A. Rodríguez wrote: Hi, working with http://old.xwiki.org/xwiki/bin/view/Test/ImportExport I could make it work a bit, but when select a couple of documents and press Export, the next output is shown: $export.setWithVersions(false) $export.setAuthorName($author) $export.setDescription($description) $export.setLicence($licence) $export.setName($packageName) $export.add($itemexp, $xwiki.parseInt($defaultAction)) $export.add($itemexp, $xwiki.parseInt($defaultAction)) $export.export() I'm pretty sure i found the missing link : the packaging plugin !!! What I'll try to do is setup my development environment and compile this plug-in (http://svn.xwiki.org/svnroot/xwiki/xwiki-platform/core/trunk/xwiki-core/sr c/main/java/com/xpn/xwiki/plugin/packaging/) if anyones think that I'm in the wrong path or has a better/simpler answer, just let me know. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] More on upgrade from 0.9
On October 16, 2007 11:37:49 am Vincent Massol wrote: Hi Victor, On Oct 16, 2007, at 5:23 PM, Víctor A. Rodríguez wrote: Hi all, as anyone can see there's a first attempt to upgrade from v0.9 in http://www.xwiki.org/xwiki/bin/view/AdminGuide/ Installation#HUpgradinganXWikiv09Installation The problem with this approach is that it just migrates the Java code, but not the one inside the xwiki pages stored in the database. In order to construct a strong and complete migration process I need some help (as usual :-D), mainly : * what pages/spaces contain code that is considered part of XWiki distribution ?? If you're talking about XE (XWiki Enterprise). The list of pages is available there: http://fisheye2.cenqua.com/browse/xwiki/xwiki-products/xwiki- enterprise/trunk/wiki/src/main/resources How does this relate to the question? I missed something here :P * does anyone has success in making the code at http://old.xwiki.org/xwiki/bin/view/Test/ImportExport work on 0.9 ?? Yes * any other places to look at for other pieces of XWiki core that should be added to the upgrade guide ?? I think we need more detailed instructions for moving data from an existing DB to a new DB. The exporter would be the best way to do that but importing a large XAR doesn't work either when the memory is not large enough so import at the DB level is required anyway for some large XWiki installs. I haven't tried doing this myself (I don't have a 0.9 wiki to migrate) so I'm not the best placed to help here but I'm pretty sure some 0.9 users are having a hard time so they should speak up! Have you checked the list archives to check messages about migrating to 1.1.1 from a 0.9 install? You will see of couple of messages of mine ;) With time I came close to migrate and I documented how I did it in these messages. Mostly the information is available in the Wiki as well but it is a long process to identify what we need and to fetch the information. For this reason this list is a good start but we could also get together on xwiki.org and build a page just around the issue if it makes sense. I don't have the migration done yet, so I am angry for any info you could produce ;) To make the story short you have to find this information: - install the import/export into 0.9 (see old.xwiki.org for the code) - fix the database XWD_ARCHIVE mediumblob type to longblob (xwiki.org) - increase the attachment file size limit (also xwiki.org) - increase the heap size used by your servlet container (-Xms : see for example http://java.sun.com/docs/hotspot/gc1.4.2/ for more) Weirdness and bad luck: - (A) migrating to 1.1rc2 works to 1.1.1 fails :P - (B) 1.1.1 can't open the xar package (once attached), it complains about a file not ending correctly (zip) Strategies - option 1 - install 1.1.1 fresh and import a xar (first fix the issues above) - option 2 - install 1.1.1 and connect it to the database (there bad luck happens) Possible ways to fix the problem - B could be fixed by modifying the import code (is there something hardcoded involving the size of the expected zip?) - the database migration could be fixed by running a script within mysql to migrate the schema (if only we knew what has been changed as well as the exact meaning and purpose of the attributes) What's next? ;) Marc ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Help on upgrade from 0.9.853
Hi Victor you should start by looking at this: http://www.xwiki.org/xwiki/bin/view/AdminGuide/Installation Now I have the same problem as you have. Here are the issues I see: - the 0.9 database schema is not compatible with latest 1.1.1 (though connecting 1.1rc2 to the 0.9 database works provided that you applied the fix you refered too). - You can export you 0.9 wiki pages by copying the script available at http://old.xwiki.org/xwiki/bin/view/Test/ImportExport . It allows you to create a .xar (zip formatted) package containing all your wiki - Alternatively you can connect a 1.1 wiki to the 0.9 database (provided you applied your fix), import the appropriate pages if necessary and export using the 1.1 export feature. It will create the xar package containing ALL your wiki pages and I don't see how to select only a few pages. As far as I can see this method is equivalent to the one above and the outcome is the same. - I tried a fresh installation: 1) create the database in MySQL (leave it empty) by following to the letter the excellent tutorial from the URL above; 2) connect you 1.1.1 wiki to this new database and it will create all the tables for you; 3) proceed with the tutorial and import all the pages you need (I recommand at least Panels.xar); 3) Now we have a problem: importing .xar packages coming from a 0.9 wiki does not work. This is where I am stuck. If you know the end of the story, I'd like to hear it ;-) I hope that could help to some extent... Marc Hi all, I've been using XWiki during this year and now I have a titanic task : upgrade it to XWiki 1.1 Unfortunately I haven't found any document on how to upgrade, neither in the site nor in the list archives, so I decided to transfer the MySQL database to a new location (unsing mysqldump) and install XWiki 1.1 from scratch (http://www.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallingtheXWikiWARmanually) using MySQL 5.0 and Tomcat 6 After obtaining a *Field 'XWD_ARCHIVE' doesn't have a default value error (and solved it thanks to http://jira.xwiki.org/jira/browse/XWIKI-1702) a more obscure error appears regarding some attributes and so. I decided not to follow a trial an error path, and I'm here asking for some guide or guidelines to do this upgrade, or in case such a thing doesn't exists beg for some help from you all, and as a thanks gift offer to publish a mini howto for upgrading XWiki from v0.9.x to 1.1. Thanks in advance for your help. -- Víctor A. Rodríguez (http://www.bit-man.com.ar) El bit Fantasma (Bit-Man) - Algorithm junkie Perl Mongers Capital Federal (http://cafe.pm.org/) GNU/Linux User Group - FCEyN - UBA (http://glugcen.dc.uba.ar/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Help on upgrade from 0.9.853
See also http://jira.xwiki.org/jira/browse/XE-131 Hi Victor you should start by looking at this: http://www.xwiki.org/xwiki/bin/view/AdminGuide/Installation Now I have the same problem as you have. Here are the issues I see: - the 0.9 database schema is not compatible with latest 1.1.1 (though connecting 1.1rc2 to the 0.9 database works provided that you applied the fix you refered too). - You can export you 0.9 wiki pages by copying the script available at http://old.xwiki.org/xwiki/bin/view/Test/ImportExport . It allows you to create a .xar (zip formatted) package containing all your wiki - Alternatively you can connect a 1.1 wiki to the 0.9 database (provided you applied your fix), import the appropriate pages if necessary and export using the 1.1 export feature. It will create the xar package containing ALL your wiki pages and I don't see how to select only a few pages. As far as I can see this method is equivalent to the one above and the outcome is the same. - I tried a fresh installation: 1) create the database in MySQL (leave it empty) by following to the letter the excellent tutorial from the URL above; 2) connect you 1.1.1 wiki to this new database and it will create all the tables for you; 3) proceed with the tutorial and import all the pages you need (I recommand at least Panels.xar); 3) Now we have a problem: importing .xar packages coming from a 0.9 wiki does not work. This is where I am stuck. If you know the end of the story, I'd like to hear it ;-) I hope that could help to some extent... Marc Hi all, I've been using XWiki during this year and now I have a titanic task : upgrade it to XWiki 1.1 Unfortunately I haven't found any document on how to upgrade, neither in the site nor in the list archives, so I decided to transfer the MySQL database to a new location (unsing mysqldump) and install XWiki 1.1 from scratch (http://www.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallingtheXWikiWARmanually) using MySQL 5.0 and Tomcat 6 After obtaining a *Field 'XWD_ARCHIVE' doesn't have a default value error (and solved it thanks to http://jira.xwiki.org/jira/browse/XWIKI-1702) a more obscure error appears regarding some attributes and so. I decided not to follow a trial an error path, and I'm here asking for some guide or guidelines to do this upgrade, or in case such a thing doesn't exists beg for some help from you all, and as a thanks gift offer to publish a mini howto for upgrading XWiki from v0.9.x to 1.1. Thanks in advance for your help. -- Víctor A. Rodríguez (http://www.bit-man.com.ar) El bit Fantasma (Bit-Man) - Algorithm junkie Perl Mongers Capital Federal (http://cafe.pm.org/) GNU/Linux User Group - FCEyN - UBA (http://glugcen.dc.uba.ar/ ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Can I setup XWiki as a windows service?
Thank you for the tip. In the past, I used the java service wrapper with great success. http://wrapper.tanukisoftware.org/doc/english/introduction.html As its names says... btw, we have been running xwiki 1.0 in tomcat 5.5 (runs as a windows service) and it has been very stable for the past 5 months or so. c.f. http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html -Chengmin On 9/28/07, Vincent Massol [EMAIL PROTECTED] wrote: On Sep 28, 2007, at 3:53 PM, Sheila Hobeck wrote: Hi Vincent, It looks as if the default Windows version is running Jetty. Is that correct? If so, I will try to set it up using this: [http://docs.codehaus.org/display/JETTY/Win32Wrapper ] Perhaps I can add this as a comment to the installation notes? I'd add it in the AdminGuide somewhere but yes that'd be great if you could add it when you get it working. Thanks! -Vincent On 9/28/07, Vincent Massol [EMAIL PROTECTED] wrote: Hi Sheila, On Sep 28, 2007, at 3:43 PM, Sheila Hobeck wrote: Is there a batch file that can do this for me? And yes I wish we were using a non-Windows server, however... XWiki is running in the servlet container you've chosen to use. Check the documentation for that servlet container and you'll find how to run it as a windows service. -Vincent ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] migration from old XWiki to XWiki new
Hi Bikram this page is a good starting point: http://www.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradinganexistingwiki my company is running XWiki old and using databse MYSql... they want me to migrate it to new XWikican you please suggest how to accomplish it bikram Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Languages preferences
It will be my pleasure to help but my knowledge is quite empirical and I should not be trusted at this point ;) ;) Users can participate just a little bit at a time. No need to have the full knowledge. Thanks -Vincent That's sound like something I can do ;) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Languages preferences
Thank you Vincent. Currently Skol is working on it... (the page is unavailable). I found the old one: http://old.xwiki.org/xwiki/bin/view/DevGuide/Database+Schema . I can find most of this information just by looking at the database schema myself. I wonder which tables are affected when I create a page (for example). My problem was actually the reverse because I needed to fix it, hence I needed to know how it should look. It will be my pleasure to help but my knowledge is quite empirical and I should not be trusted at this point ;) Hi Marc, On Sep 4, 2007, at 12:23 AM, Marc Lijour wrote: [snip] It would really be helpful if the datamodel were documented somewhere (so that Sergiu could do something else than repeat the same things over and over...). Just my 0.02$. There was a try done there a long time ago: http://www.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema Only issues is that it's no longer up to date. But anyone is free to update it... Thanks -Vincent ___ 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