Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4082732
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:13:26+00:00 2026-05-20T18:13:26+00:00

I am interested in using a certain library ( Gremlin , the graph traversal

  • 0

I am interested in using a certain library (Gremlin, the graph traversal language) in my Grails project. I dropped the necessary .jars into [grailsproject]/lib. But when I do grails run-app it gives me a compilation error re:a class ‘Gremlin’ which is part of the jar (I confirmed that it is included in the jar by running tar tf <jarfile>.jar, and it shows the class Gremlin):

[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed,
...unexpected token: Gremlin @ line 45, column 2.
  [groovyc]     Gremlin.load()
  [groovyc]     ^

Is there a way to “refresh” Grails to make sure it loads the new jar files? I use the exact same jar in an independent groovy test app with the same import statements, and there I am able to use the Gremlin class and it works fine. My system $CLASSPATH doesn’t include any jar files that I haven’t also added in [grailsproject]/lib.

Any ideas?

Thanks!

Update: Here’s the relevant section from the code:

package com.mycompany.myproject

import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
import com.orientechnologies.common.collection.*
import com.orientechnologies.common.*
import com.orientechnologies.orient.core.*
import com.tinkerpop.blueprints.*
import com.tinkerpop.blueprints.pgm.*
import com.tinkerpop.blueprints.pgm.impls.orientdb.*
import com.tinkerpop.gremlin.pipes.*
import com.tinkerpop.gremlin.Gremlin
import com.tinkerpop.gremlin.*


class GraphDbService {

    boolean transactional = true    

    Gremlin.load()

    ...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:13:26+00:00Added an answer on May 20, 2026 at 6:13 pm

    I think you have to put Gremlin.load() inside a method, not just in the definition section of your service class…

    ie:

    class GraphDbService {
      boolean transactional = true    
    
      def someServiceMethod() {
        Gremlin.load()
      }
    
      ...
    

    Or, preferably, you should be able to put it in the init() method of your BootStrap.groovy file, as it only needs calling once , so that it can decorate all of the required classes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Python and PyGTK. I'm interested in running a certain function, which gets
I'm interested in using an Object-Relational Mapping package for an upcoming project. This project
I am interested in using/learning RoR in a project where I have to use
I'm interested in using a code coverage tool for my next .NET project but
I'm interested in using the WMD editor in another project * but I'm not
I'm interested how to construct certain kinds of layout in RTF documents, ideally using
I'm interested in using Functional MetaPost on Mac OS X: http://cryp.to/funcmp/ I'm looking for
I'm interested in using a Reed-Solomon error correction [ http://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction as a reference] to
I am interested in using some kind of a command-line utility for SQL Server
I am interested in using a onmouseover event to make a listbox appear and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.