[xwiki-users] Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception: Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3 1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the update button.) 2) The office 3.1 version works standalone. Any idea? Best Regards Andrea
Hi, Please see http://code.google.com/p/jodconverter/wiki/GettingStarted You need OOo > 3.0.0 - Asiri On Tue, Sep 14, 2010 at 9:50 PM, Andrea Belli <[email protected]>wrote:
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception:
Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3
1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the update button.)
2) The office 3.1 version works standalone.
Any idea?
Best Regards
Andrea _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Asiri, I think Andrea is using OOo 3.1 (see below) and 2.4 refers to the XE version. Thanks -Vincent On Sep 14, 2010, at 7:44 PM, Asiri Rathnayake wrote:
Hi,
Please see http://code.google.com/p/jodconverter/wiki/GettingStarted
You need OOo > 3.0.0
- Asiri
On Tue, Sep 14, 2010 at 9:50 PM, Andrea Belli <[email protected]>wrote:
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception:
Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3
1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the update button.)
2) The office 3.1 version works standalone.
Any idea?
Best Regards
Andrea _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Andrea, On Tue, Sep 14, 2010 at 9:50 PM, Andrea Belli <[email protected]>wrote:
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception:
Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3
Can you provide the log file messages corresponding to this error? When this error happens, you should see an exception trace (bunch of messages) in the xwiki.log file. Thanks. - Asiri
1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the update button.)
2) The office 3.1 version works standalone.
Any idea?
Best Regards
Andrea _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thank for response. I restart the server and this is the fulllog file. 2010-09-15 10:06:17,970 [] [Thread-2] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.ApplicationStartedEvent@17fc44f] to listener [org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener@13136e5] java.lang.IllegalStateException: invalid templateProfileDir: C:\Documents and Settings\Administrator\Application Data\OpenOffice.org\3 at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:122) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.initialize(DefaultOpenOfficeManager.java:102) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:135) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.startOpenOffice(OpenOfficeManagerLifecycleListener.java:96) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.onEvent(OpenOfficeManagerLifecycleListener.java:83) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:290) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) the directory exists and it's empty. Thank you Andrea -----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Asiri Rathnayake Inviato: mercoledì 15 settembre 2010 05:34 A: XWiki Users Oggetto: Re: [xwiki-users] Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir Hi Andrea, On Tue, Sep 14, 2010 at 9:50 PM, Andrea Belli <[email protected]>wrote:
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception:
Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3
Can you provide the log file messages corresponding to this error? When this error happens, you should see an exception trace (bunch of messages) in the xwiki.log file. Thanks. - Asiri
1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the update button.)
2) The office 3.1 version works standalone.
Any idea?
Best Regards
Andrea _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Andrea, Did you try without specifying a template profile dir? (Comment out that configuration option). As I remember, a temporary template profile dir is created when one does not specify it. Thanks. - Asiri On Wed, Sep 15, 2010 at 1:41 PM, Andrea Belli <[email protected]>wrote:
Thank for response.
I restart the server and this is the fulllog file.
2010-09-15 10:06:17,970 [] [Thread-2] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.ApplicationStartedEvent@17fc44f] to listener [org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener@13136e5 ] java.lang.IllegalStateException: invalid templateProfileDir: C:\Documents and Settings\Administrator\Application Data\OpenOffice.org\3 at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:122) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.initialize(DefaultOpenOfficeManager.java:102) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:135) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.startOpenOffice(OpenOfficeManagerLifecycleListener.java:96) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.onEvent(OpenOfficeManagerLifecycleListener.java:83) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:290) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
the directory exists and it's empty. Thank you Andrea
-----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Asiri Rathnayake Inviato: mercoledì 15 settembre 2010 05:34 A: XWiki Users Oggetto: Re: [xwiki-users] Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir
Hi Andrea,
On Tue, Sep 14, 2010 at 9:50 PM, Andrea Belli <[email protected]
wrote:
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception:
Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3
Can you provide the log file messages corresponding to this error? When this error happens, you should see an exception trace (bunch of messages) in the xwiki.log file.
Thanks.
- Asiri
1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the
update
button.)
2) The office 3.1 version works standalone.
Any idea?
Best Regards
Andrea _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Here the new log; now I'm using default configuration without specifying the template dir in the properties file 2010-09-15 17:38:07,458 [] [Thread-2] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.ApplicationStartedEvent@bbf7aa] to listener [org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener@80ed90] java.lang.IllegalArgumentException: templateProfileDir must exist and be a directory at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.checkArgument(DefaultOfficeManagerConfiguration.java:160) at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.setTemplateProfileDir(DefaultOfficeManagerConfiguration.java:88) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.initialize(DefaultOpenOfficeManager.java:99) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:135) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.startOpenOffice(OpenOfficeManagerLifecycleListener.java:96) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.onEvent(OpenOfficeManagerLifecycleListener.java:83) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:290) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) -----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Asiri Rathnayake Inviato: mercoledì 15 settembre 2010 13:57 A: XWiki Users Oggetto: Re: [xwiki-users] R: Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir Hi Andrea, Did you try without specifying a template profile dir? (Comment out that configuration option). As I remember, a temporary template profile dir is created when one does not specify it. Thanks. - Asiri On Wed, Sep 15, 2010 at 1:41 PM, Andrea Belli <[email protected]>wrote:
Thank for response.
I restart the server and this is the fulllog file.
2010-09-15 10:06:17,970 [] [Thread-2] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.ApplicationStartedEvent@17fc44f] to listener [org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener@13136e5 ] java.lang.IllegalStateException: invalid templateProfileDir: C:\Documents and Settings\Administrator\Application Data\OpenOffice.org\3 at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:122) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.initialize(DefaultOpenOfficeManager.java:102) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:135) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.startOpenOffice(OpenOfficeManagerLifecycleListener.java:96) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.onEvent(OpenOfficeManagerLifecycleListener.java:83) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:290) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
the directory exists and it's empty. Thank you Andrea
-----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Asiri Rathnayake Inviato: mercoledì 15 settembre 2010 05:34 A: XWiki Users Oggetto: Re: [xwiki-users] Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir
Hi Andrea,
On Tue, Sep 14, 2010 at 9:50 PM, Andrea Belli <[email protected]
wrote:
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception:
Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3
Can you provide the log file messages corresponding to this error? When this error happens, you should see an exception trace (bunch of messages) in the xwiki.log file.
Thanks.
- Asiri
1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the
update
button.)
2) The office 3.1 version works standalone.
Any idea?
Best Regards
Andrea _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Did you try http://xwiki.475771.n2.nabble.com/OpenOffice-Server-Inadequate-privileges-td... Hope this helps, Marius On 09/15/2010 06:44 PM, Andrea Belli wrote:
Here the new log; now I'm using default configuration without specifying the template dir in the properties file
2010-09-15 17:38:07,458 [] [Thread-2] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.ApplicationStartedEvent@bbf7aa] to listener [org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener@80ed90] java.lang.IllegalArgumentException: templateProfileDir must exist and be a directory at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.checkArgument(DefaultOfficeManagerConfiguration.java:160) at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.setTemplateProfileDir(DefaultOfficeManagerConfiguration.java:88) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.initialize(DefaultOpenOfficeManager.java:99) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:135) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.startOpenOffice(OpenOfficeManagerLifecycleListener.java:96) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.onEvent(OpenOfficeManagerLifecycleListener.java:83) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:290) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
-----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Asiri Rathnayake Inviato: mercoledì 15 settembre 2010 13:57 A: XWiki Users Oggetto: Re: [xwiki-users] R: Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir
Hi Andrea,
Did you try without specifying a template profile dir? (Comment out that configuration option). As I remember, a temporary template profile dir is created when one does not specify it.
Thanks.
- Asiri
On Wed, Sep 15, 2010 at 1:41 PM, Andrea Belli<[email protected]>wrote:
Thank for response.
I restart the server and this is the fulllog file.
2010-09-15 10:06:17,970 [] [Thread-2] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.ApplicationStartedEvent@17fc44f] to listener [org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener@13136e5 ] java.lang.IllegalStateException: invalid templateProfileDir: C:\Documents and Settings\Administrator\Application Data\OpenOffice.org\3 at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:122) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.initialize(DefaultOpenOfficeManager.java:102) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:135) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.startOpenOffice(OpenOfficeManagerLifecycleListener.java:96) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.onEvent(OpenOfficeManagerLifecycleListener.java:83) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:290) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
the directory exists and it's empty. Thank you Andrea
-----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Asiri Rathnayake Inviato: mercoledì 15 settembre 2010 05:34 A: XWiki Users Oggetto: Re: [xwiki-users] Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir
Hi Andrea,
On Tue, Sep 14, 2010 at 9:50 PM, Andrea Belli<[email protected]
wrote:
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception:
Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3
Can you provide the log file messages corresponding to this error? When this error happens, you should see an exception trace (bunch of messages) in the xwiki.log file.
Thanks.
- Asiri
1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the
update
button.)
2) The office 3.1 version works standalone.
Any idea?
Best Regards
Andrea _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi all, I solved!! I change the following configurations: * I replaced \ occurencies with / in the OpenOffice path (install dir and template dir) * I noticed that my template dir C:\Documents and Settings\Administrator\Application Data\OpenOffice.org\3 was empty but the user specific folder was not. So I changed the dir for the template using the not empty one And now it works. I check the link suggested by Marius and I notice I have the same message "Invalid Privileges" on OpenOffice administration panel when I try to restart the server; it's not critical for me , because OO starts :) Thanks for the support. A -----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Marius Dumitru Florea Inviato: mercoledì 15 settembre 2010 18:04 A: [email protected] Oggetto: Re: [xwiki-users] R: R: Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir Did you try http://xwiki.475771.n2.nabble.com/OpenOffice-Server-Inadequate-privileges-td... Hope this helps, Marius On 09/15/2010 06:44 PM, Andrea Belli wrote:
Here the new log; now I'm using default configuration without specifying the template dir in the properties file
2010-09-15 17:38:07,458 [] [Thread-2] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.ApplicationStartedEvent@bbf7aa] to listener [org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener@80ed90] java.lang.IllegalArgumentException: templateProfileDir must exist and be a directory at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.checkArgument(DefaultOfficeManagerConfiguration.java:160) at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.setTemplateProfileDir(DefaultOfficeManagerConfiguration.java:88) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.initialize(DefaultOpenOfficeManager.java:99) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:135) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.startOpenOffice(OpenOfficeManagerLifecycleListener.java:96) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.onEvent(OpenOfficeManagerLifecycleListener.java:83) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:290) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
-----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Asiri Rathnayake Inviato: mercoledì 15 settembre 2010 13:57 A: XWiki Users Oggetto: Re: [xwiki-users] R: Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir
Hi Andrea,
Did you try without specifying a template profile dir? (Comment out that configuration option). As I remember, a temporary template profile dir is created when one does not specify it.
Thanks.
- Asiri
On Wed, Sep 15, 2010 at 1:41 PM, Andrea Belli<[email protected]>wrote:
Thank for response.
I restart the server and this is the fulllog file.
2010-09-15 10:06:17,970 [] [Thread-2] ERROR rnal.DefaultObservationManager - Fail to send event [org.xwiki.observation.event.ApplicationStartedEvent@17fc44f] to listener [org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener@13136e5 ] java.lang.IllegalStateException: invalid templateProfileDir: C:\Documents and Settings\Administrator\Application Data\OpenOffice.org\3 at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:122) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.initialize(DefaultOpenOfficeManager.java:102) at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeManager.start(DefaultOpenOfficeManager.java:135) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.startOpenOffice(OpenOfficeManagerLifecycleListener.java:96) at org.xwiki.officeimporter.internal.openoffice.OpenOfficeManagerLifecycleListener.onEvent(OpenOfficeManagerLifecycleListener.java:83) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:290) at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:76) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
the directory exists and it's empty. Thank you Andrea
-----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di Asiri Rathnayake Inviato: mercoledì 15 settembre 2010 05:34 A: XWiki Users Oggetto: Re: [xwiki-users] Office Importer: Caused by: java.lang.IllegalStateException: invalid templateProfileDir
Hi Andrea,
On Tue, Sep 14, 2010 at 9:50 PM, Andrea Belli<[email protected]
wrote:
After I installed the 2.4 version, the Office importer does not work because it says the soffice process is not running. I tried to restart the process using the Admin page but I get a velocity error 4001 caused by this exception:
Caused by: java.lang.IllegalStateException: invalid templateProfileDir: C:Documents and SettingsAdministratorApplication DataOpenOffice.org3
Can you provide the log file messages corresponding to this error? When this error happens, you should see an exception trace (bunch of messages) in the xwiki.log file.
Thanks.
- Asiri
1) The path exists and it is defined into xwiki.cfg correctly (it's also shown correctly in the admin panel before I tried to press the
update
button.)
2) The office 3.1 version works standalone.
Any idea?
Best Regards
Andrea _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
[attached message/solution to correct thread this time] I solved a solved a similar problem running on Fedora Linux using its standard fedora-packaged Tomcat/httpd/openoffice and Sun's Java. The problem is that the error message is deceptive. If you run the application directly, instead of from the admin panel, and then click to see error message details, you'll see the actual source of the error message. Perhaps yours is the same issue as what I had: The openoffice server is having problems reading or not finding some necessary config information buried in the directory. You have to create a shadow-UID'd (same uid as 'tomcat' under which openoffice runs different account/login/etc) user like I did at /home/OOo and start the openoffice server once as a "regular" user. Once that's done, it saves enough configuration information in the account that it will then recognize the directory and start. Details: http://nielsmayer.com/npm/XWiki24-OpenOffice.txt hidden in page when executing directly as http://xwiki/xwiki/bin/view/XWiki/OfficeImporterAdmin --> Caused by: java.lang.IllegalStateException: invalid templateProfileDir: /home/OOo/.openoffice.org/3 fixing this required running 'oofice' out of user 'OOo' account, which setup a giant new batch of config info... Note my xwiki.properties points to the /home/OOo config info setup by the first interactive run of openoffice. 1/WEB-INF/xwiki.properties.orig 2010-06-01 15:23:48.000000000 -0700 --- xe-231/WEB-INF/xwiki.properties 2010-06-07 20:16:34.181462173 -0700 *************** *** 77,88 **** #-# [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=/home/user/.openoffice.org/3 #-# [Since 1.8RC3] #-# Maximum number of simultaneous conversion tasks to be handled by a single openoffice process (serverType:0 only). --- 77,88 ---- #-# [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/lib64/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=/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). -- Niels http://nielsmayer.com
participants (5)
-
Andrea Belli -
Asiri Rathnayake -
Marius Dumitru Florea -
Niels Mayer -
Vincent Massol