Java modules b0rked when installed from Ubuntu PPA
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Juan Zacarias |
Bug Description
This is at least true of the read-pdf module, I haven't yet checked others.
Initial symptom: Running a query using the module produces a NoClassDefFound
Moreover, in /usr/lib/
Also in /usr/lib/
This is a problem either with the recipe used to build the Ubuntu package, or else with the build scripts when building a module stand-alone (not as part of a Zorba build). When you build and install Zorba with the read-pdf module, the lib/zorba/jars directory is correct (no broken symlinks, no copies of pdfbox.jar etc, and the classpath.txt file contains absolute paths for those external jars).
tags: | added: installation |
tags: | added: linux |
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
milestone: | 2.9 → 3.0 |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
Changed in zorba: | |
milestone: | 3.0 → 2.9 |
I tested the installed read-pdf and this are my observations:
>Moreover, in /usr/lib/ zorba/jars, there are broken symlinks for commons- logging. jar,
>fontbox.jar, jempbox.jar, and pdfbox.jar (they all point to eg. pdfbox-1.7.0.jar in the
>same directory, but that file does not exist). Our module package should not include
>those jars anyway, and they certainly shouldn't be symlinks to non-existent files.
We don't include those jars, we set the dependencies to those jars and the package manager makes sure you have them before installing if you don't it gives you a message if you want to install them, and use the packages of each jar and install them.
>This is a problem either with the recipe used to build the Ubuntu package, or else with the build
>scripts when building a module stand-alone (not as part of a Zorba build). When you build and
>install Zorba with the read-pdf module, the lib/zorba/jars directory is correct (no broken symlinks,
>no copies of pdfbox.jar etc, and the classpath.txt file contains absolute paths for those external jars).
I took a look and I get other errors, I get :
operating system error [zerr:ZOSE0005]: "/usr/lib/ zorba/com/ zorba-xquery/ www/modules/ libread- pdf_1.0. so": error loading dynamic library: libjvm.so: cannot open shared object file: No such file or directory
So I tested with building the module as stand alone and it threw the same error so I am guessing the problem is that the module is not designed to work correctly as a stand alone module. as stand alone module, it does not even compile correctly (I will propose for merge a branch that fixes the building process but doesn't solve this bug it just allows the compilation of the module as stand alone)
I will subscribe Cezar to this bug report to see if he knows what could be wrong since I have no clue of how does the java modules work.