| View previous topic :: View next topic |
| 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 ? |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3532 Location: Hamburg, Germany
|
|
| Back to top |
|
 |
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 |
|
| Back to top |
|
 |
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 |
|
| Back to top |
|
 |
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 |
|
| Back to top |
|
 |
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
<officepath>/program/classes
eg:
c:/programfiles/openoffice/program/classes/
which contains office executable |
|
| Back to top |
|
 |
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 |
|
| Back to top |
|
 |
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 |
|
| Back to top |
|
 |
|