[xwiki-users] xwiki office
hi! i wish to import my files (.doc ...) into my xwiki page and I have installed the xar offered by xwiki called org.xwiki.platform:xwiki-platform-office~.xar now i must start the office server but when i try to make it I receive this error: Failed to execute the [velocity] macro the path of my office installation is /usr/lib64/openoffice.org and i have another directory called /usr/lib64/openoffice.org3 my xwiki. properties file has this paths. where is the problem? waiting for your response... -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, What version are you using ? Could you copy/paste here all the properties you can found in the "OpenOffice Server" panel, in the administration section? Can you also try to start the program with the same user you're running the wiki, for instance:
sudo -u xwiki /usr/lib64/openoffice.org/bin/soffice.bin
If you have anything writen in the terminal, it's most likely to be an error, so you can investigate on this. 2013/10/22 MaryJane <[email protected]>
hi! i wish to import my files (.doc ...) into my xwiki page and I have installed the xar offered by xwiki called org.xwiki.platform:xwiki-platform-office~.xar
now i must start the office server but when i try to make it I receive this error:
Failed to execute the [velocity] macro
the path of my office installation is /usr/lib64/openoffice.org and i have another directory called /usr/lib64/openoffice.org3
my xwiki. properties file has this paths. where is the problem? waiting for your response...
-- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Tue, Oct 22, 2013 at 4:45 PM, MaryJane <[email protected]> wrote:
hi!
i wish to import my files (.doc ...) into my xwiki page and I have installed the xar offered by xwiki called org.xwiki.platform:xwiki-platform-office~.xar
The office importer application is bundled with XWiki Enterprise so you don't have to install any XAR. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Office+Importer+Applica... .
now i must start the office server but when i try to make it I receive this error:
Failed to execute the [velocity] macro
the path of my office installation is /usr/lib64/openoffice.org and i have another directory called /usr/lib64/openoffice.org3
my xwiki. properties file has this paths. where is the problem?
Make sure you uncomment a configuration property when changing its value. By default all configuration properties are commented out and what you see are the default values. Hope this helps, Marius
waiting for your response...
-- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
thanks marius for your reply... my configuration property are uncommented #-# [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=/opt/openoffice.org3/ #-# [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=/opt/openoffice.org/ (i changed the path after a new installation of openoffice) -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684p7587693.html Sent from the XWiki- Users mailing list archive at Nabble.com.
hi Guillaume thank for your reply, the open office version is the 3.3 the properties in the "OpenOffice Server" panel are : SERVER TYPE Internally managed (local) SERVER PORT 8100 AUTO START Yes SERVER PATH /opt/openoffice.org3/ SERVER PROFILE /opt/openoffice.org/ SERVER STATE Not connected if I try the command sudo -u xwiki /usr/lib64/openoffice.org/bin/soffice.bin I receive sudo: unknown user: xwiki (furthermoreI haven't the /bin directory ) -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684p7587694.html Sent from the XWiki- Users mailing list archive at Nabble.com.
You need to check what user is really used. Try this out!
ps aux|grep java|grep -v grep|awk '{print $1}'
This command should give you a least the user currently running the wiki, so replace 'xwiki' by this user, to run the following command (it was not bin/ but program/)
sudo -u $USER /usr/lib64/openoffice.org/program/soffice.bin
If this file is still not found, perform a search on your system ("find" command, or "locate", for soffice.bin). Finally, replace the server profile (in xwiki.properties : openoffice.profilePath) by the home directory of that user. For example '/home/tomcat/. openoffice.org/3'. If you successfully run the soffice.bin command with that user, you should have a '.openoffice' directory created inside. In fact, the default value of openoffice.profilePath is "/home/user/. openoffice.org/3", so just replace user with the current XWiki user, fix the rights if necessary and that's all. And restart XWiki. 2013/10/23 MaryJane <[email protected]>
hi Guillaume thank for your reply, the open office version is the 3.3 the properties in the "OpenOffice Server" panel are :
SERVER TYPE Internally managed (local) SERVER PORT 8100 AUTO START Yes SERVER PATH /opt/openoffice.org3/ SERVER PROFILE /opt/openoffice.org/ SERVER STATE Not connected
if I try the command sudo -u xwiki /usr/lib64/openoffice.org/bin/soffice.bin I receive sudo: unknown user: xwiki (furthermoreI haven't the /bin directory )
-- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684p7587694.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
ok, the user is 'root', the 'soffice.bin' file is in /opt/openoffice.org3/program/ path The command runs successfully but I haven't the openoffice.org/3 directory ... In my /home directory there are two directories inside : oracle nagios thanks for your help -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684p7587697.html Sent from the XWiki- Users mailing list archive at Nabble.com.
If you run XWiki with root user, then thoses directory will be created in /root/, instead of /home/xxxx. It's not the best idea to run Tomcat with root user, but since it's not the purpose of this mail, let's ignore that. You need to set openoffice.profilePath (in xwiki.properties) to "/root/.openoffice/3", but make sure this directory exists before. 2013/10/23 MaryJane <[email protected]>
ok, the user is 'root', the 'soffice.bin' file is in /opt/openoffice.org3/program/ path
The command runs successfully but I haven't the openoffice.org/3 directory ...
In my /home directory there are two directories inside : oracle nagios
thanks for your help
-- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684p7587697.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
yeeeeeaaahhhh!!! now it works!!!!! you are a genious!!! thanks a lot!! i love you :) -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-office-tp7587684p7587739.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Guillaume Fenollar -
Marius Dumitru Florea -
MaryJane