How to configure external libraries?

Hi,

I'm currently evaluating Groovy and Grails + JetGroovy for a new project that is built on top of existing EJBs. The plan is to deploy the grails application to the same app server (JBoss) as the EJBs, so I don't want to package the depending libraries (jboss client, ejb client) into the grails-app/lib folder. As long as I stick to the command line, this is not an issue: I simply add the jar files to the classpath environment variable and voila, everything works fine. But when starting the application from JetGroovy, using a default grails debug configuration, I get an error saying that the imports from these libraries cannot be resolved. What I have done so far is that I have added the required jar files as project libraries, and IDEA can resolve them and even provides code completion... Any hint how I can includ the project libs in the grails runtime configuration classpath?
Thanks for your help
Thommy

7 comments
Comment actions Permalink

Oops, it's definitely a bug. I fixed it in 1.6 and 2.0 versions and changes will be available with next plugin version in our repository.
Thanks.

0
Comment actions Permalink

Thanks for the information.... Is there any way to work around this issue? I have already tried to specify a classpath vm switch with all my libs in the run config but this could not solve the problem as there are multiple other classes that cannot be resolved then...
Any help would be higly appreciated.
Thanks

0
Comment actions Permalink

Thomas,

Sorry, but as I understand there is not intelligent workaround for this bug. I fixed it in last JetGroovy of 1.6.x and 2.0.y versions (not in 1.5). You may download them from our plugin repository.

0
Comment actions Permalink

Hi Sergej,

First of all: thanks for your support!
I was using Idea 7.0.3 with JetGroovy 1.5.17497 (installed from within Idea plugin manager) when I encountered this problem. As you suggested, I have tried to upgrade to the latest JetGroovy 1.6.18387 version:I was not able to find any 1.6 JetGroovy version in the plugin manager, so I first uninstalled JetGroovy 1.5 from within Idea plugin manager and then I unzipped the downloaded (http://plugins.intellij.net/plugin/?id=1524) JetGroovy 1.6.18387 into my Idea\plugin directory. When I started Idea, it told that it could not determine the type of my grails module any more... :(
So I downloaded and installed Idea 7.0.4, went to the plugin manager, downloaded JetGroovy 1.6.18387, restarted Idea, and grails support was back!
BUT: Finally my problem is not solved! All the classes of my project libs cannot be resolved when I start grails using the grails run configuration in Idea. Have I missed anything?
Thanks
Thommy

0
Comment actions Permalink

Yes - I have had this a few times copying projects around.

You probably need to put all the source linkages back together.

Project Settings -> Modules

Choose the top-level module. The source folders need to be specified here.

Happens particularly if you don't check out a project using the same root as it was setup with.

John

0
Comment actions Permalink

Thousands of pardons. it was my fault again.
It fixed in last build available in plugin repository.

Ilya

0
Comment actions Permalink

Ilya, thanks for your great support! It is working fine now!

0

Please sign in to leave a comment.