Dear List:
I've been using the OOBean to embed OO into a browser. All works if I run
my applet directly from the disk of the machine and if I run it directly from
the develpoment environment (I'm using Eclipse). I'm using Windows XP and when
In a directory a run a .html file with the applet directive that runs my
applet, all works without a problem.
The problem comes when I deployed the applet in a Web Container like
Tomcat. When I deployed the applet in the web container, I got the following
error when starting:
com.sun.star.comp.beans.NoConnectionException
at com.sun.star.comp.beans.OOoBean.loadFromURL(OOoBean.java:704)
at com.sun.star.comp.beans.OOoBean.loadFromByteArray(OOoBean.java:795)
at net.vdkit.tc.TextControlApplet.componentShown(TextControlApplet.java:324)
at java.awt.Component.processComponentEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
The applet shows, but OO is not embedded within.
As you can see, the error comes from the line 704 from the OOoBean.java source,
in the loadFromURL method.
In this file, the line 704 is the following:
702 aCallWatchThread.cancel();
703 if ( xServiceFactory == null )
704 throw new NoConnectionException();
It seems that the xServiceFactory object is null, but in some lines before, it
is verified that this object is not null.
I started OO using the following command:
"C:\Program Files\OpenOffice.org 2.3\program\soffice.exe" -bean
-accept=pipe,name=Marquitos_25B7Office;urp;StarOffice.NamingService
In the path of the system, the following paths are set:
C:\Program Files\OpenOffice.org 2.3\program
C:\Program Files\OpenOffice.org 2.3\program\classes
The user name that is logged into the system is Marquitos. The _25B7 is a
suffix that was suggested by the LocalOfficeConnection object, it is not
exactly as the documentation states.
In the applet, the manifest file looks like the following:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.5.0_14-b03 (Sun Microsystems Inc.)
Built-By: VDKIT Copyright (c) 2008
Main-Class: net.vdkit.tc.TextControlApplet.class
Class-Path: /TcTest/tc/jTDS3.jar /TcTest/tc/jconn3.jar
/TcTest/tc/officebean.jar /TcTest/tc/unoil.jar /TcTest/tc/unoloader.jar
/TcTest/tc/ridl.jar /TcTest/tc/jur.jar /TcTest/tc/juh.jar
the path /TcTest/tc is because all the jars, including the applet are in a tc
folder within an application called TcTest.
the jars that are bundled with the tc.jar (the jar where the applet is
embedded) are:
officebean.jar
unoil.jar
unoloader.jar
ridl.jar
jur.jar
juh.jar
these jars are not bundled within the tc.jar but are in the same directory, so
it can be called when the tc.jar needs them. If I remove these jars, I receive
some NoDefClassFound exception.
Do I have to do something else? Do I'm missing something? Please I need help,
I'm stuck with this for about 3 weeks now. Somebody has done something similar
in the past?
Thanks in advance for your kind reply.
Marco
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]