• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Problem in viewing OOo in web browser

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I have made an applet that loads OpenOffice document. when I want to view this applet in a web browser like Internet Explorer or Mozilla, it throws exception:

My html file has the following code for applet:



All jar files included in the above <APPLET> tag are signed jars.

This is the information and exception in the JavaConsole:

basic: Reading cached JAR file from JRE 1.5 release
basic: Certificates for http://192.168.1.21:8080/so/ssandbox.jar is read from JAR cache
network: Connecting http://192.168.1.21:8080/so/msvcr70.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/msvcr71.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/msvcr71.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/msvcr71.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/uwinapi.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/uwinapi.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/uwinapi.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/jawt.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/jawt.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/jawt.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/officebean.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/officebean.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/officebean.dll with proxy=DIRECT
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
network: Connecting http://192.168.1.21:8080/../lib/msvcr71.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/msvcr71.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/msvcr71.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/msvcr70.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/msvcr70.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/msvcr70.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/uwinapi.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/uwinapi.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/uwinapi.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/sal3.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/sal3.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/sal3.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/jpipe.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/jpipe.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/jpipe.dll with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/../lib/soffice.exe with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/bin/soffice.exe with proxy=DIRECT
network: Connecting http://192.168.1.21:8080/so/soffice.exe with proxy=DIRECT
java.lang.Exception:
java.io.IOException: CreateProcess: \soffice -nologo -nodefault -accept=pipe,name=Administrator_25B7Office;urp;StarOffice.ServiceManager error=2
java.io.IOException: CreateProcess: \soffice -nologo -nodefault -accept=pipe,name=Administrator_25B7Office;urp;StarOffice.ServiceManager error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.sun.star.comp.beans.LocalOfficeConnection$OfficeService.startupService(LocalOfficeConnection.java:793)
at com.sun.star.comp.beans.LocalOfficeConnection.connect(LocalOfficeConnection.java:344)
at com.sun.star.comp.beans.LocalOfficeConnection.getComponentContext(LocalOfficeConnection.java:248)
at com.sun.star.comp.beans.OOoBean.setOOoConnection(OOoBean.java:188)
at com.sun.star.comp.beans.OOoBean.getOOoConnection(OOoBean.java:288)
at SoftOfficeEditor.getConnected(SoftOfficeEditor.java:69)
at SoftOfficeEditor.paint(SoftOfficeEditor.java:34)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(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)
--- end.

And what does this url http://192.168.1.21:8080/../lib/msvcr71.dll means? I mean what does /../lib means in this url?

Thanks for the help.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks to me like it is trying to start an OO instance, which -not surprisingly- relies on a number of DLLs. Is that what you want/need to happen? I could imagine any number problems with this approach, but have you tried putting the DLLs where it is trying to download them?
 
Joseph Bashir
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thanks for the reply.

Here at this url http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=14390 Joachim says:
-------------------------------------------------
Based on the location of jurt.jar, etc., the OOoBean finds other native
libraries of the office, as well as the soffice.exe (which is started by
OOoBean)
---------------------------------------------

According to the above comments by Joachim I placed all the DLLs where all the required jar files (jurt.jar, etc) are placed, but still I got the same problem.

Regards
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds to me like he is talking about a local installation of OO, not one that is downloaded. The poster mentions that it works fine if run locally, but not if run with WebStart, with apparently (and not unexpectedly) has similar problems as your applet approach.

You can try arranging the libraries in places where the applet JVM will find them (i.e., not a place like "http://192.168.1.21:8080/../lib/msvcr71.dll", which is outside of the web root, and thus inaccessible.) Those messages should help with that. I doubt that it's possible, though.
 
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic