[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2023-08-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

Hossein  changed:

   What|Removed |Added

   Assignee|libreoffice-b...@lists.free |hoss...@libreoffice.org
   |desktop.org |

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2023-08-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

Hossein  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2023-08-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

--- Comment #6 from Commit Notification 
 ---
Hossein committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/345b214c37d1f645dd0e6e084358f8ca81d9ed66

tdf#149069 Revert "ridljar: check UnoClassLoader used for NativeLibraryLoader"

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2023-08-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

Commit Notification  changed:

   What|Removed |Added

 Whiteboard||target:24.2.0

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2023-08-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

Hossein  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW

--- Comment #5 from Hossein  ---
A similar symptom can be reproduced with FirstUnoContact DevGuide example. It
can be found here:

LibreOffice Developer's Guide: Chapter 1 - First Steps
https://wiki.documentfoundation.org/Documentation/DevGuide/First_Steps#First_Contact

Upon running it in official way, I get:

$ make FirstUnoContact.run
"/usr/bin/java" 
-Dcom.sun.star.lib.loader.unopath="/opt/libreoffice7.6/program" -jar
/home/hossein/libreoffice7.6_sdk/LINUXexample.out/class/FirstStepsExamples/FirstUnoContact.jar
warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)
Connected to a running office ...
remote ServiceManager is available

It is possible to run it manually:

You only need to copy FirstUnoContact.java somewhere, and then invoke:
(assuming LibreOffice 7.6 on Linux)

$ javac -cp /opt/libreoffice7.6/program/classes/unoil.jar FirstUnoContact.java
$ java -cp .:/opt/libreoffice7.6/program/classes/unoil.jar FirstUnoContact
warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)
Connected to a running office ...
remote ServiceManager is available

On Windows:

> javac -cp "c:\Program Files\LibreOffice\program\classes\unoil.jar" 
> FirstUnoContact.java
> java -cp ".;c:\Program Files\LibreOffice\program\classes\unoil.jar" 
> FirstUnoContact
warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)
Connected to a running office ...
remote ServiceManager is available

I tried using com.sun.star.lib.loader.Loader class, but it didn't help.

java -Dcom.sun.star.lib.loader.unopath="c:\Program Files\LibreOffice\program"
-cp ".;c:\Program Files\LibreOffice\program\classes\unoil.jar;c:\Program
Files\LibreOffice\program\classes\unoloader.jar;C:\Program
Files\LibreOffice\sdk\classes" com.sun.star.lib.loader.Loader FirstUnoContact
warning: com.sun.star.lib.util.NativeLibraryLoader must be loaded by
com.sun.star.lib.unoloader.UnoClassLoader for java_uno bridge to work (not a
problem if this is using Java remote bridge or unit test)
Connected to a running office ...
remote ServiceManager is available

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2022-10-10 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

--- Comment #4 from Tobias Widmann  ---
Having recently looked into this again, I'd like to add to my original
findings:

The problem only occurs when using a pipe connection. With a socket,
unoloader.jar isn't needed and no warning is printed. This might be a viable
workaround for some users.

Additionally, I tested versions 7.4.1 and 7.3.6 to verify that the problem
still occurs.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

--- Comment #3 from Tobias Widmann  ---
(In reply to Stephan Bergmann from comment #2)
> The libreoffice.jar META-INF/MANIFEST.MF contains
> 
> > Class-Path:  unoloader.jar ../
> 
> which should avoid the issue that code from libreoffice.jar can't find
> classes from unoloader.jar?  But maybe that's how Maven works, which I have
> little idea about.

To make it work with Maven, the dependency on unoloader should be declared in
pom.libreoffice.xml, I think. Maybe something along those lines:


  

  org.libreoffice
  unoloader
  @version@

  


-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

Stephan Bergmann  changed:

   What|Removed |Added

 CC||michael.st...@allotropia.de

--- Comment #2 from Stephan Bergmann  ---
(In reply to Tobias Widmann from comment #0)
> We use libreoffice.jar from Maven to connect to a running (local or remote)
> LibreOffice instance. Since version 7.3.0, this results in a
> NoClassDefFoundError when calling UnoUrlResolver#resolve. We identified
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=97b61ea3297e04e64aab1e1a4ec50202e9f86fff as the source of this problem.
> The class com.sun.star.lib.unoloader.UnoClassLoader can't be found in
> libreoffice.jar, but instead in unoloader.jar.

The libreoffice.jar META-INF/MANIFEST.MF contains

> Class-Path:  unoloader.jar ../

which should avoid the issue that code from libreoffice.jar can't find classes
from unoloader.jar?  But maybe that's how Maven works, which I have little idea
about.

At worst, we could revert the problematic

"ridljar: check that UnoClassLoader is used for NativeLibraryLoader" again. 
Michael, what do you think?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 149069] Warning when using libreoffice.jar from Maven, NativeLibraryLoader expects UnoClassLoader

2022-05-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149069

Julien Nabet  changed:

   What|Removed |Added

 CC||sberg...@redhat.com,
   ||serval2...@yahoo.fr

--- Comment #1 from Julien Nabet  ---
Stephan: just seeing "Java", "Uno", I think you might be interested in this one
:-)

-- 
You are receiving this mail because:
You are the assignee for the bug.