Connecting to stardog from grails fails

0 views
Skip to first unread message

Alexandru Bolboaca

unread,
Jun 13, 2013, 8:30:50 AM6/13/13
to sta...@clarkparsia.com
I'm trying to connect to stardog from grails. I keep getting the error:

Class
java.lang.NoClassDefFoundError
Message
com/clarkparsia/stardog/api/ConnectionConfiguration


I tried adding the jars to the build and ended up with the following BuildConfig file:

repositories {
//... standard stuff       
        flatDir name:'stardog', dirs:'../stardog-1.2.3/lib', include:'**/*.jar', exclude:"**/spring*.jar"
 }

    dependencies {
        build 'stardog:stardog:1.2.3'
        build 'stardog:stardog-debug:1.2.3'
        build 'stardog:stardog-empire:1.2.3'
        build 'stardog:stardog-http:1.2.3'
        build 'stardog:stardog-icv:1.2.3'
        build 'stardog:stardog-jena:1.2.3'
        build 'stardog:stardog-logging:1.2.3'
        build 'stardog:stardog-search:1.2.3'
        build 'stardog:stardog-security:1.2.3'
        build 'stardog:stardog-sesame:1.2.3'
        build 'stardog:stardog-test:1.2.3'
        build 'stardog:stardog-groovy:1.2.3'
        build 'stardog:stardog-spring:1.2.3'
    }

The compilation works and the jars are correctly picked up in the war. Still, runtime error.

Any idea?

Al Baker

unread,
Jun 13, 2013, 10:57:34 AM6/13/13
to sta...@clarkparsia.com
I use Stardog with Grails quite extensively, and I found the best way to manage the dependencies is pull all the Stardog jars into the <your app>/lib folder.  The Grails build system and the Groovy & Grails Tool Suite will both pick this up and make all the jars available in both Grails CLI and the IDE. 

Please see the attached list of jars. 

When 2.0 is released, you'll be able to go back to just adding a "compile " statement to your BuildConfig, but for now the jars need to be pulled in manually.

Regards,
Al
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
 
 

jars.txt
Reply all
Reply to author
Forward
0 new messages