[xwiki-users] OpenOffice converter problem ("URL seems to be an unsupported one.")
Dear xwiki-list, I have a problem with the OpenOffice converter. XE is 2.0.1.24472, OpenOffice 3, Ubuntu 9.04 server. OpenOffice server is running & connected. But when I try to import even a very simple .odt test file, I get the error message: "could not complete task". xwiki.log (attached) shows the following problem: com.sun.star.lang.IllegalArgumentException: URL seems to be an unsupported one. Any suggestions ? Thanks! Ralf. /var/lib/tomcat6/webapps/xwiki/WEB-INF/xwiki.properties #-# Default port is 8100 openoffice.serverPort=8100 #-# [Since 1.9M2] #-# If the openoffice server should be started / connected upon XE start. #-# Default value is false openoffice.autoStart=true #-# [Since 1.8RC3] #-# Path to openoffice installation (serverType:0 only). #-# If no path is provided, a default value will be calculated based on the operating environment. openoffice.homePath=/usr/lib/openoffice/ #-# [Since 1.8RC3] #-# Path to openoffice execution profile (serverType:0 only). #-# If no path is provided, a default value will be calculated based on the operating environment. openoffice.profilePath=/home/OOo/.openoffice.org/3 #-# [Since 1.8RC3] #-# Maximum number of simultaneous conversion tasks to be handled by a single openoffice process (serverType:0 only). #-# Default value is 50 # openoffice.maxTasksPerProcess=50 #-# [Since 1.8RC3] #-# Timeout for conversion tasks (in miliseconds) (serverType:0 only). #-# Default value is 30 seconds # openoffice.taskExecutionTimeout=3 #- # Velocity #- #-# [Since 2.0M1] /tmp/tomcat6-temp 2009-11-12 11:23:33,936 [] [main] INFO ffice.DefaultOpenOfficeManager - Open Office instance started. 2009-11-12 11:23:40,649 [http://mswiki.scripps.edu:8080/xwiki/bin/admin/XWiki/XWikiPreferences] [http://mswiki.scripps.edu:8080/xwiki/bin/admin/XWiki/XWikiPreferences] INFO .AbstractXWikiMigrationManager - No storage migration required since current version is [15429] 2009-11-12 11:24:06,717 [http://mswiki.scripps.edu:8080/xwiki/bin/view/XWiki/OfficeImporterResults] [http://mswiki.scripps.edu:8080/xwiki/bin/view/XWiki/OfficeImporterResults] ERROR rterVelocityContextInitializer - could not complete task org.xwiki.officeimporter.OfficeImporterException: could not complete task at org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:175) at org.xwiki.officeimporter.internal.OfficeImporterVelocityBridge.importDocument(OfficeImporterVelocityBridge.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) 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)
Re: [xwiki-users] Adding buttons to WYSIWYG toolbar
Hi Ludovic, Ludovic Dubost wrote: > Marius, > > It would be cool if we could make this easier. Like already have the > pref in the wiki and/or have a yes/no for "Show fonts and colors" in the > prefs We already allow the users to configure the plugins and the toolbar from XWiki preferences but the properties are not there by default. I could add them but XWikiPrefereces class has grown a lot and contains all sorts of unrelated properties. Is this the best approach? Also, should we create a WYSIWYG configuration page in the administration? Marius > > Ludovic > > Trevor Russ a écrit : >> Hi Marius, >> >> I had even looked at "macros.vm" in 2.0 to see if it was any different than >> 1.9, but I had 2.0M3 installed in our test environment, not RC1. >> I restarted the server and it worked. >> >> Thanks for the reply and the clarifications, I do appreciate it. >> >> Trevor >> >> On Thu, 12 Nov 2009 10:39:18 +0200 Marius Dumitru Florea wrote: >> ... >> >>> Indeed. These two lines were changed in 2.0RC1 due to >>> http://jira.xwiki.org/jira/browse/XWIKI-4221 but the guide still applies. >>> >> ... >> >>> Otherwise you >>> have to restart (reload) the server (web container, servlet container, >>> application server) because velocity templates like macros.vm are cached >>> at application startup. >>> >> ___ >> 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] Adding buttons to WYSIWYG toolbar
Marius, It would be cool if we could make this easier. Like already have the pref in the wiki and/or have a yes/no for "Show fonts and colors" in the prefs Ludovic Trevor Russ a écrit : > Hi Marius, > > I had even looked at "macros.vm" in 2.0 to see if it was any different than > 1.9, but I had 2.0M3 installed in our test environment, not RC1. > I restarted the server and it worked. > > Thanks for the reply and the clarifications, I do appreciate it. > > Trevor > > On Thu, 12 Nov 2009 10:39:18 +0200 Marius Dumitru Florea wrote: > ... > >> Indeed. These two lines were changed in 2.0RC1 due to >> http://jira.xwiki.org/jira/browse/XWIKI-4221 but the guide still applies. >> > ... > >> Otherwise you >> have to restart (reload) the server (web container, servlet container, >> application server) because velocity templates like macros.vm are cached >> at application startup. >> > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > > -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Categories in Enterpriste Wiki?
Hello, categories are part of XWiki Workspaces. However, I cannot find this feature in XWiki Enterprise (neither in the software itself nor the documentation). In general, I consider categories a useful extension to spaces and tags and, thus, would like to have them at my disposal. Is there a way to include categories into XWiki Enterprise? Kind regards, Gerhard Festo AG & Co. KG Gerhard Peter Abteilung IS-KM Methoden und Prozesse Plieninger Stra?e 50 73760 Ostfildern-Scharnhausen Deutschland Telefon +49(711)347-4530 Telefax +49(711)34754-4530 http://www.festo.com Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieses E-Mails durch unberechtigte Dritte ist unzulaessig. Wir bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu setzen, falls Sie nicht der Adressat dieses E-Mails sind und das Material von Ihrem Computer zu loeschen. This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this e-mail, please delete it and immediately notify the sender. Rechtsform: Kommanditgesellschaft Sitz: Esslingen a.N., Registergericht Stuttgart HRA 211583, Umsatzsteuerident-Nummer: DE 145339206 Persoenlich haftende Gesellschafterin: Festo Management Aktiengesellschaft Sitz: Wien/Oesterreich, Firmenbuchgericht: Handelsgericht Wien, Firmenbuch Nr. FN 303027 d Vorstand: Dr. Ekkehard Gericke Dipl.-Kfm. Alfred Goll Dr. Ansgar Kriwet Dr. Thomas Rubbe Dr. Eberhard Veit (Vorsitzender) Dr. Ulrich Walker Aufsichtsratsvorsitzender: Dr. Wilfried Stoll ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] problem with FAQ tutorial .. space assignment?
Hi Joshua, (I apologize to all if this appears more than once; I haven't been successful posting to the mailing list since before yesterday. Perhaps attachments are prohibited? Trying again without.) Thanks again, your explanation of spaces was very clear and helpful. Now that I have a little better understanding of spaces, I'll present my problem. For some reason when I create a FAQ entry, it's not going into the FAQ space but instead into the Main space. Per the tutorial, I haven't created a FAQ space explicitly this go round. It seems to me this can only be happening as a result of the code that adds a FAQ, or perhaps in the class definition code which specifies the default space. Looks right to me and jibes with what you've said about spaces. Here it is yanked directly out of my code .. which was simply a copy/paste from the tutorial: FAQClass code: {{velocity}} ## Replace Main with the Space where you want your documents to be created. ## Replace the default parent with the one of your choice and save the document. ## #set($className = $doc.name.substring(0, $doc.name.indexOf("Class"))) #set($defaultParent = 'FAQ.WebHome') #set($defaultSpace = 'FAQ') {{/velocity}} {{include document="XWiki.ClassSheet"/}} FAQTemplate code: {{include document="FAQ.FAQSheet"/}} FAQ WebHome code (http://localhost/xwiki/bin/edit/FAQ/WebHome?&editor=wiki ): = Existing FAQ entries = {{velocity}} #set($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='FAQ.FAQClass' and obj.name<>'FAQ.FAQTemplate'") #set($results = $xwiki.searchDocuments($sql)) #if($results.empty) No FAQ has been created yet! #else #foreach ($item in $results) #set($faq = $xwiki.getDocument($item)) * [[${faq.display("question").replace("", "").replace("", "")}>>${item}]] #end #end {{/velocity}} {{velocity}} #if("$!request.docName" != '') ## Request for creating a new instance #set($targetDocName = "${request.spaceName}.${request.docName}") #set($targetDocName = $targetDocName.replace("?", "").replace("#", "").trim()) #if(!$xwiki.exists($targetDocName) && $xwiki.hasAccessLevel('edit', $context.user, $targetDocName)) $response.sendRedirect($xwiki.getURL($targetDocName, 'inline', "template=${request.template}&parent=${request.parent}")) ## Stop processing, since we already sent a redirect. #stop #end #end = Add a new question = #if("$!targetDocName" != '' && $xwiki.exists($targetDocName)) {{warning}}The target document already exists. Please choose a different name, or [[view the existing document>>$targetDocName]]{{/warning}} #elseif("$!targetDocName" != '') {{warning}}You don't have permission to create that document{{/warning}} #end {{html}} Document: {{/html}} {{/velocity}} So what am I missing? Thanks, Mark "Rieken, Joshua" Sent by: users-boun...@xwiki.org 11/10/2009 04:37 PM Please respond to XWiki Users To XWiki Users cc Subject Re: [xwiki-users] problem with FAQ tutorial .. space assignment? Mark, You're very welcome. It's not necessary to explicitly create the WebHome in FAQ until later in the tutorial. Question/Answer documents that are created from the FAQ Class page will go into the FAQ space, which "comes into existence" the instant any document is placed in it. For example, if you add a question/answer page called "FAQ.Howtoeditapage", you can still get to it regardless of whether "FAQ.WebHome" exists. A space "disappears" when every document that is part of the space is deleted. So a space is just a collection of documents and doesn't really exist outside of those documents. It's really just a convenient way to organize your documents. Good luck, and if you have any more questions, please don't hesitate to ask. -Joshua- > -Original Message- > From: users-boun...@xwiki.org > [mailto:users-boun...@xwiki.org] On Behalf Of mark_marzi...@bcbsil.com > Sent: Tuesday, November 10, 2009 3:31 PM > To: XWiki Users > Cc: XWiki Users; users-boun...@xwiki.org > Subject: Re: [xwiki-users] problem with FAQ tutorial .. space > assignment? > > Hi Joshua, > > Thanks very much for your prompt reply. It helps a lot to > know the history and what WebHome means! > > Am I correct then in first creating the FAQ space explicitly, > even though that's not called for in the tutorial? Like so: > > "I've first created the FAQ Space, then built the FAQ Class, > etc, then put the code into the 'home' page for the space, ie > http://localhost/xwiki/bin/view/FAQ/"; > > > Thanks, > Mark > > BCBS-IL > ph 312-653-4293 > mark_marzi...@bcbsil.com > > > > > > "Rieken, Joshua" > Sent by: users-boun...@xwiki.org > 11/10/2009 03:18 PM > Please respond to > XWiki Users > > > To > XWiki Users > cc > > Subject > Re: [xwiki-users] problem with FAQ tutorial .. space assignment? > > > > > > > Hi Mark, > > http://localhost/xwiki/bin/view/FAQ/ actually takes you to > http://localhost/xwiki/bin/view/FAQ/WebHome. "WebH
Re: [xwiki-users] Adding buttons to WYSIWYG toolbar
Hi Marius, I had even looked at "macros.vm" in 2.0 to see if it was any different than 1.9, but I had 2.0M3 installed in our test environment, not RC1. I restarted the server and it worked. Thanks for the reply and the clarifications, I do appreciate it. Trevor On Thu, 12 Nov 2009 10:39:18 +0200 Marius Dumitru Florea wrote: ... > Indeed. These two lines were changed in 2.0RC1 due to > http://jira.xwiki.org/jira/browse/XWIKI-4221 but the guide still applies. ... > Otherwise you > have to restart (reload) the server (web container, servlet container, > application server) because velocity templates like macros.vm are cached > at application startup. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] get content of page
Hi Bubulina, Bubulina wrote: > Hello > isn't this suppose to get the content of the each page? > > #foreach($sourceDoc in $xwiki.getSpaceDocsName($sourceSpace)) > > $contents = $xwiki.getDocument($sourceSpace.$sourceDoc) > contents = $contents > Try using: #set($docContent = $xwiki.getDocument($sourceDocument).content) ... $anotherDocument.setContent($docContent) Hope this helps, Oana > #end > > so that latter on i can set that content to another > page.($pageclass.setContent($contents)) it's about copying one document from > one space to another space. > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] many-to-many relationship with custom mapping
Hi, I'm currently evaluating xwiki. My goal is to develop a data maintenance system for books and authors data. Two entities, BOOK and AUTHOR, have a many-to-many relationship. The new system should provide an ability to maintain the attributes of each entity as well as the relationship between them using forms. There are a large number of existing data, which are sourced from other systems and I'm considering to store them using custom mapping in XWiki. Now I wonder how I should store the many-to-many relationship in XWiki database. Is it a right approach for XWiki to introduce the traditional intersection table? Also, I'd like to know the subsequent steps to follow. I need to create a .hbm file and define a many-to-many mapping, right? And next...? Any hint would be greatly appreciated. Thanks, ebi ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] get content of page
Hello isn't this suppose to get the content of the each page? #foreach($sourceDoc in $xwiki.getSpaceDocsName($sourceSpace)) $contents = $xwiki.getDocument($sourceSpace.$sourceDoc) contents = $contents #end so that latter on i can set that content to another page.($pageclass.setContent($contents)) it's about copying one document from one space to another space. -- View this message in context: http://n2.nabble.com/get-content-of-page-tp3992676p3992676.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XEclipse syntax highlighting and code completion
On Nov 12, 2009, at 11:23 AM, Fabio Mancinelli wrote: > > On Nov 11, 2009, at 12:10 AM, Radek Rekas wrote: > >> I've made sure that the xwiki syntax is set to Xwiki 1.0 for the page but >> when I type "[]" or "$xwiki." as per the screenshots in the XWiki Page >> Editor section of the XEclipse user guide >> (http://xeclipse.xwiki.org/xwiki/bin/view/Main/UserGuide) no autocompletion >> popup boxes appear. >> >> I'm using XEclipse 1.2.0 RC1 >> > You probably hit a bug here... > Could you send the content of the page you are editing? Ooops... I replied too fast. Didn't read the latest messages where Vincent identified the solution. Please ignore my previous message. -Fabio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XEclipse syntax highlighting and code completion
On Nov 11, 2009, at 12:10 AM, Radek Rekas wrote: > I've made sure that the xwiki syntax is set to Xwiki 1.0 for the page but > when I type "[]" or "$xwiki." as per the screenshots in the XWiki Page Editor > section of the XEclipse user guide > (http://xeclipse.xwiki.org/xwiki/bin/view/Main/UserGuide) no autocompletion > popup boxes appear. > > I'm using XEclipse 1.2.0 RC1 > You probably hit a bug here... Could you send the content of the page you are editing? Thanks, Fabio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Adding buttons to WYSIWYG toolbar
Hi Trevor, Trevor Russ wrote: > Hello, > > I've tried to add toolbar buttons for fonts and colours to the Syntax 2.0 > WYSIWYG toolbar in XWiki 1.9.3 by following the online guide at: > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor . > > First, in "macros.vm" (or anywhere else) I didn't find any lines that looked > like these: > plugins: '$xwiki.getXWikiPreference("wysiwyg.plugins", "submit line separator > text list indent history format symbol link image table macro > importer#if($full && $request.sync) sync#end")', > toolbar: '$xwiki.getXWikiPreference("wysiwyg.toolbar", "bold italic underline > strikethrough | subscript superscript | unorderedlist orderedlist | outdent > indent | undo redo | hr symbol")', > > they looked like this: > plugins: 'submit line separator text valign list indent history format symbol > link image table macro importer#if($full && $request.sync) sync#end', > toolbar: 'bold italic underline strikethrough | subscript superscript | > unorderedlist orderedlist | outdent indent | undo redo | format | hr symbol | > link unlink | importer', Indeed. These two lines were changed in 2.0RC1 due to http://jira.xwiki.org/jira/browse/XWIKI-4221 but the guide still applies. > > I changed the two lines to this: > plugins: 'submit line separator text font color valign list indent history > format symbol link image table macro importer#if($full && $request.sync) > sync#end', > toolbar: 'bold italic underline strikethrough | subscript superscript | > unorderedlist orderedlist | outdent indent | undo redo | format fontname > fontsize forecolor backcolor | hr symbol | link unlink | importer', Perfect. > > According to the documentation: "You can reload your web container." and "You > don't have to restart the server.". By reloading the web container do you > mean refreshing the browser page? Or exiting and re-entering the WYSIWYG > editor? I have not tried restarting the server but the buttons are not > showing up. I've updated the documentation to state this more clearly. "You don't have to restart the server." quote applies only when you edit XWiki preferences (since 2.0RC1) or when you overwrite the skin. Otherwise you have to restart (reload) the server (web container, servlet container, application server) because velocity templates like macros.vm are cached at application startup. In any case (with server restart or not) you have to reload (e.g. refresh, cancel + edit again) the edited page for the changes to take effect. Hope this helps, Marius > > Thanks, > Trevor > ___ > 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