[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
dhruba
Newbie

Joined: 19 Dec 2006
Posts: 4
Location: Bangalore, India

 Posted: Tue Dec 19, 2006 1:00 am    Post subject: "no office executable found" - error in tomcat I have written a servlet to start OpenOffice Draw, the servlet to run on tomcat. But it always gives this error - "com.sun.star.comp.helper.BootstrapException: no office executable found! at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:253)". I am using Internet Explorer. But the same code runs properly when I run it from Eclipse. Do I need to to do some special settings for tomcat? Any idea to solve this problem ?
hol.sten
Super User

Joined: 14 Nov 2004
Posts: 3532
Location: Hamburg, Germany

Posted: Tue Dec 19, 2006 2:36 am    Post subject: Re: "no office executable found" - error in tomcat

 dhruba wrote: no office executable found

Try this threads on "no office executable found":
http://www.oooforum.org/forum/viewtopic.phtml?t=41093&highlight=office+executable
http://www.oooforum.org/forum/viewtopic.phtml?t=37008&highlight=office+executable
http://www.oooforum.org/forum/viewtopic.phtml?t=35392&highlight=office+executable
http://www.oooforum.org/forum/viewtopic.phtml?t=34294&highlight=office+executable
http://www.oooforum.org/forum/viewtopic.phtml?t=33261&highlight=office+executable

If none of them helps, try the older connection mechanism which has been discussed in this thread: http://www.oooforum.org/forum/viewtopic.phtml?t=39950&highlight=connection. Try this thread http://www.oooforum.org/forum/viewtopic.phtml?t=29097 if you need some more Java code about the connection mechanism. And this thread for OOo's listen parameter http://www.oooforum.org/forum/viewtopic.phtml?t=19790.

Regards
hol.sten
dhruba
Newbie

Joined: 19 Dec 2006
Posts: 4
Location: Bangalore, India

 Posted: Tue Dec 19, 2006 2:49 am    Post subject: Re: no office executable found - error in tomcat Thanks for the links. I searched in all of those links, but I could not find any answer to my problem. All of them talk about getting this error when launched from Java. My case is different. I have a servlet, where I am trying to start the StarOffice Draw. That servlet is hosted on a tomcat web server, and I am using Internet Explorer to view that. When I try to view the servlet in the IE, the tomcat server crashes with that particular error message Please let me know if you have any solution for that. Best Regards Dhruba
hol.sten
Super User

Joined: 14 Nov 2004
Posts: 3532
Location: Hamburg, Germany

Posted: Tue Dec 19, 2006 10:36 am    Post subject: Re: no office executable found - error in tomcat

 dhruba wrote: All of them talk about getting this error when launched from Java. My case is different. I have a servlet,

Ups? You have a Servlet which is not written in Java? I never thought of that.

 dhruba wrote: where I am trying to start the StarOffice Draw.

Please explain more detailed how you try to start Draw.

Are you using OpenOffice.org (named in your first post) or StarOffice (named in your previous post)? Anyway, which version?

Which connection method are you using? Bootstrap or are you using the connection mechanism from OOo 1.1.x (http://www.oooforum.org/forum/viewtopic.phtml?t=39950&highlight=connection)? As I already wrote, I'm strongly recommending the old connection method!

Which JAR files are you using? Where did you put them?

 dhruba wrote: Please let me know if you have any solution for that.

Sorry, but right now I only have a lot of questions.

Regards
ho.sten
logicalsid
General User

Joined: 20 Mar 2006
Posts: 26

 Posted: Tue Dec 19, 2006 7:56 pm    Post subject: Hey, This could be slightly offtrack ... but did u set the OpenOffice env variable and included the path in tomcat server??? Because i guess this is happening bcoz the servlet is not getting the 'soffice.exe' present in OO.org installation folder Sidd
arasucss
General User

Joined: 20 Nov 2006
Posts: 15

 Posted: Tue Dec 19, 2006 8:45 pm    Post subject: Set class path in evironment variables for the following directory /program/classes eg: c:/programfiles/openoffice/program/classes/ which contains office executable
dhruba
Newbie

Joined: 19 Dec 2006
Posts: 4
Location: Bangalore, India

 Posted: Wed Dec 20, 2006 12:56 am    Post subject: Thanks to all of you for providing me the valuable information. I got the solution, the problem was related to the CLASSPATH only. The following two conditions must be met - (1) The directory where StartOffice executables are installed (i.e. c:\program files\OpenOffice.org 2.0\program) must be included in the CLASSPATH (2) The file "setclasspath.bat" file in the tomcat installation directory (i.e. c:\tomcat\apache-tomcat-5.5.20\bin) must be modified to include existing CLASSPATH variable. The file must have one line as - "set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar;" It means that the "tomcat" must know the path of the StartOffice executables to work properly. This is the way I solved the problem. Alternative solutions are welcome. Best Regards Dhruba
charlesvc
Power User

Joined: 06 Mar 2008
Posts: 59
Location: Bangalore

 Posted: Tue Apr 08, 2008 2:24 am    Post subject: soffice not opening while calling from tomcat hi dhruba, I too tried ur solution, but failed, can you give one suggestion on this_________________Charles v c
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum