OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

"no office executable found" - error in tomcat

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
dhruba
Newbie
Newbie


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

PostPosted: Tue Dec 19, 2006 1:00 am    Post subject: "no office executable found" - error in tomcat Reply with quote

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
View user's profile Send private message
hol.sten
Super User
Super User


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

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

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
Back to top
View user's profile Send private message
dhruba
Newbie
Newbie


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

PostPosted: Tue Dec 19, 2006 2:49 am    Post subject: Re: no office executable found - error in tomcat Reply with quote

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
View user's profile Send private message
hol.sten
Super User
Super User


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

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

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
View user's profile Send private message
logicalsid
General User
General User


Joined: 20 Mar 2006
Posts: 26

PostPosted: Tue Dec 19, 2006 7:56 pm    Post subject: Reply with quote

Hey,

This could be slightly offtrack ... but did u set the OpenOffice env variable and included the path in tomcat server???
Question

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
View user's profile Send private message
arasucss
General User
General User


Joined: 20 Nov 2006
Posts: 15

PostPosted: Tue Dec 19, 2006 8:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
dhruba
Newbie
Newbie


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

PostPosted: Wed Dec 20, 2006 12:56 am    Post subject: Reply with quote

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
View user's profile Send private message
charlesvc
Power User
Power User


Joined: 06 Mar 2008
Posts: 59
Location: Bangalore

PostPosted: Tue Apr 08, 2008 2:24 am    Post subject: soffice not opening while calling from tomcat Reply with quote

hi dhruba,

I too tried ur solution, but failed, can you give one suggestion on this
_________________
Charles v c
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group