Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError when running #176

Closed
mifeet opened this issue Sep 16, 2014 · 4 comments
Closed

NoClassDefFoundError when running #176

mifeet opened this issue Sep 16, 2014 · 4 comments

Comments

@mifeet
Copy link

mifeet commented Sep 16, 2014

Hi,
while working on a DPU, I came across the following problem. Although in the earlier versions of UV, there were some DPU templates by default, after installation of the latest one (1.3.1), there were none. I tried to add DPUs manually but running a pipeline always fails with the following exception (see attachement):

java.lang.NoClassDefFoundErro virtuoso/jdbc3/VirtuosoConnectionPoolDataSource

I am using UnifiedViews from branch release/UV_Core_v1.3.1, plugins from branch master (namely extractors uv-e-rdfFromSparql-1.3.0.jar, uv-e-rdfDataGenerator-1.3.0.jar - pipelines with both throw the error). The backend database is MySQL.

Please let me know if you need more information. Thanks.

@ghost
Copy link

ghost commented Sep 17, 2014

Hi,
first of all, try to be a pioneer and test fresh new release 1.3.1 not only on Core but also on plugins. I have done some updates last hour, so it would be best for you to remove all eu.* and cz.* artifacts from your local maven repository and try all again (to enforce redownload).
If I can ask you, please, use artifacts from release tags and sources from release tags. Not the master branch.
The release branches (in git flow meaning) no longer exist in any of the projects, since the release is done.
See these pages:
https://github.com/UnifiedViews/Core/releases
https://github.com/UnifiedViews/Plugins/releases

But it is not related to issue you have described. Sadly though, I am afraid, that there is only one RDF storage backend which works with UV fine these days and it is localRDF setting in config file.

database.rdf.platform = localRDF

As in this config file:
https://github.com/UnifiedViews/Core/blob/master/backend/conf/config.sample.properties

@ghost ghost closed this as completed Sep 17, 2014
@ghost
Copy link

ghost commented Sep 17, 2014

Also, there is a way to insert all DPUs from plugins repository into UV
installation.
Use plugins.sql from Plugins repository and build plugins from plugins
repository with maven command:

mvn install -Dextract-jar

it will create target/ folder where all DPUs are collected for UV
installation to be used (copy to module directory from config file).

If you have problems adding all plugins at once using these
instructions, create another issue.

On 09/16/2014 11:51 PM, Jan Michelfeit wrote:

Hi,
while working on a DPU, I came across the following problem. Although
in the earlier versions of UV, there were some DPU templates by
default, after installation of the latest one (1.3.1), there were
none. I tried to add DPUs manually but running a pipeline always fails
with the following exception (see attachement
https://cloud.githubusercontent.com/assets/3536362/4295574/2d8c0c1c-3deb-11e4-9ccc-424d4e702596.png):

|java.lang.NoClassDefFoundErro
virtuoso/jdbc3/VirtuosoConnectionPoolDataSource|

I am using UnifiedViews from branch |release/UV_Core_v1.3.1|, plugins
from branch |master| (namely extractors
|uv-e-rdfFromSparql-1.3.0.jar|, |uv-e-rdfDataGenerator-1.3.0.jar| -
pipelines with both throw the error). The backend database is MySQL.

Please let me know if you need more information. Thanks.


Reply to this email directly or view it on GitHub
#176.

@mifeet
Copy link
Author

mifeet commented Sep 18, 2014

Hi, thanks for your reply, I finally got it working (at least partially).

I have checked out the latest tags and tried everything according to instructions. There are failing tests when running mvn install -Dextract-jar in the plugins dir. With tests skipped, there is no target/ directory in plugins, if that's what you meant (there are individual targets for each module).

I executed plugins.sql and copied the plugin jars to the installation directory's target/ but, apparently, the expected path is target/dpu/<module-name>/<module-name>-<version>.jar, so I had to create these paths manually.

Now the plugins are working :) ! I didn't manage to extract data so far (L-RdfToSparqlEndpoint throws DPUNonFatalException: SPARQL Request Failed URL endpoint, but that may be a problem on my side; T-FilesToLocalFS throws FileAlreadyExistsException: T:\data.n3 after creating T:\data.n3 as a directory rather then copying data.n3 as a file) but that is a topic for another ticket.

It's a pitty UnifiedViews doesn't support Virtuoso anymore (both for RDF and relational data). It would be nice to have this, and the other issues above documented in the installation guide.

@ghost
Copy link

ghost commented Sep 18, 2014

Hi,
failing tests - clearly you found a bug in tests itself. It is an
encoding problem, the input stream to compare results is converted to
string using platform default encoding, which in your case is not UTF-8.
We will fix the tests themselves.

For me, what worked with target:

git clone https://github.com/UnifiedViews/Plugins.git
cd Plugins/
git checkout UV_Plugins_v1.3.1
mvn install -Dprofile=extract-jar -DskipTests=true
ls target/dpu/*

and output is list of the JARs copied properly for UV to take that
directory as lib/dpu/.
So I was not creating the paths manually.

L-FilesToLocalFS - i dont understand the issue, open separate issue.

Also if you only need to obtain plugin JARs (and do not have machine to
compile them), check maven repository at
maven.eea.sk/artifactory/public/

On 09/18/2014 03:42 AM, Jan Michelfeit wrote:

Hi, thanks for your reply, I finally got it working (at least partially).

I have checked out the latest tags and tried everything according to
instructions. There are failing tests
https://cloud.githubusercontent.com/assets/3536362/4313720/2e878eb8-3ecf-11e4-93d0-f08c53ab4065.png
when running |mvn install -Dextract-jar| in the plugins dir. With
tests skipped, there is no |target/| directory in |plugins|, if that's
what you meant (there are individual |target|s for each module).

I executed |plugins.sql| and copied the plugin jars to the
installation directory's |target/| but, apparently, the expected path
is |target/dpu//-.jar|, so I had to
create these paths manually.

Now the plugins are working :) ! I didn't manage to extract data so
far (L-RdfToSparqlEndpoint throws |DPUNonFatalException: SPARQL
Request Failed URL endpoint|, but that may be a problem on my side;
T-FilesToLocalFS throws |FileAlreadyExistsException: T:\data.n3| after
creating |T:\data.n3| as a directory rather then copying |data.n3| as
a file) but that is a topic for another ticket.

It's a pitty UnifiedViews doesn't support Virtuoso anymore (both for
RDF and relational data). It would be nice to have this, and the other
issues above documented in the installation guide.


Reply to this email directly or view it on GitHub
#176 (comment).

@skrchnavy skrchnavy added this to the Release 1.4.0 milestone Oct 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants