It could be that the java bootstrap code is in fact broken in the latest DEV300 builds (at least for c++ it is).

I have no idea what Eclipse does but you could have a look at the applet example in the bean project. The applet needs to know where the office is located. The paths to the office jars are then passed into a custom class loader which then loads all classes.

Joachim


Marco Castillo wrote:
Dear list:
For some months now I have been working in automatizing OO using the OOoBean. 
But at this moment I'm facing some problems when I'm finally deploying my 
solution into a web application.
I use the OOoBean to embed OO within an java applet. I'm using Eclipse for the 
development. When I run the applet within Eclipse, everything goes fine, OO is 
shown within the applet, and I have some gui controls (like buttons and drop 
down lists) that interacts with the writer application and do some stuff. 
Within the developing environment, I'm using some jars from the OpenOffice 
installation, the jars are: officebean.jar, ridl.jar, unoil.jar, juh.jar, 
jurt.jar. I grouped these jars under a user library.
As I said before, when running the applet within Eclipse, it works fine, it find the 
OpenOffice quickstarter and correctly embeds it into the applet. But when I'm deploying 
the application as a jar into a web server (Apache) and load it into a web browser 
(firefox or IE 7.0 in Windows XP Professional), all the problems begins. The first 
problem that I faced is that some classes are not found if I deployed my jar with some of 
the libraries (I understand that only the officebean.jar must be deployed). That's why I 
modified the class-path directive of the manifest file of the jar to include all the 
libraries I previously mentioned. When I do this, the applet is shown, but the OO is not 
embedded within the applet. I received an error in the java console stating the 
following:  "java.lang.ClassFormatError: Truncated class file". It states this 
error, and it is not important that the quickstarter application of OO is running or not. 
I assume that the
 bootstraping mechanism is not working.
Now, If I run the html file with the applet directive right from the command 
prompt of the machine (did I mention that I'm running the test in a Windows XP 
Professional machine?) putting the jars all in a same directory, all works 
fine, the applet loads into the browser and OpenOffice appears embedded into 
the application.
My problem is how I must deploy my application that is using the OOoBean? which 
jars do I have to include?, do I have to explicitly set the uno connection 
string?.
By the way, I'm starting open office with the following command:
"C:\Program Files\OpenOffice.org 2.3\program\soffice.exe" -bean 
-accept=pipe,name=Marquitos_25B7Office;urp;StarOffice.NamingService
(the name Marquitos_25B7Office is the pipe name that the LocalOfficeConnection 
object creates by default with the user Marquitos). Also OpenOffice 2.3 is 
installed in the following path: C:\Program Files\OpenOffice.org 2.3\program 
and in the path environment variable are set these two directories:
C:\Program Files\OpenOffice.org 2.3\program\
C:\Program Files\OpenOffice.org 2.3\program\classes

Do I have to do something else? Please, any help would be greatly appreciated.

Thanks in advance for your kind reply and for your time reading this post.

Regards

Marco






      
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to