History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRVY-1943
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Peter Gromov
Reporter: Mike Brevoort
Votes: 3
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Groovy

JetGroovy chokes on Grails 1.1 SDK

Created: 06 Dec 08 21:08   Updated: 11 Jan 09 16:03
Component/s: Grails editor support
Affects Version/s: None
Fix Version/s: 8.1 - 9572

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment:
Windoes, Mac OS X
7.0.5, 8.0.1


 Description  « Hide
If you try to associate a Grails project to a Grails 1.1 distribution, it recognizes the version but chokes when you click apply or OK and reverts to no SDK selected. I could find no errors in the logs. There are several key changes to Grails 1.1 including how jars are packaged in /dist and the plugin-in system.

Related thread on the forums:
http://www.jetbrains.net/devnet/message/5228193#5228193



 All   Comments   Work Log   Change History      Sort Order:
Change by Peter Gromov - 08 Dec 08 15:04
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s jetgroovy 2.0 [ 11590 ]
Resolution Fixed [ 1 ]

Barry Kaplan - 09 Dec 08 02:58
What does v2.0 mean? I only see 0.8 in the plugin manager.

Barry Kaplan - 09 Dec 08 03:02
Sorry, the version number is 8.0. So now I really don't know what the version numbers mean. Is a different version numbering scheme used for jira than in the plugin manager?

Peter Gromov - 09 Dec 08 10:30
The fix will go to next IDEA 8.1 EAP

Change by Peter Gromov - 09 Dec 08 10:33
Fix Version/s 8.1 [ 11811 ]
Fix Version/s jetgroovy 2.0 [ 11590 ]

Barry Kaplan - 09 Dec 08 15:24
Very nice. Thanks Peter!!

Josh - 22 Dec 08 15:47
The latest 8.1 EAP build (9572) does seem to register the grails-1.1-beta1 server correctly now. However, on startup, it generates a ClassNotFoundException.
Exception in thread "main" java.lang.ClassNotFoundException: org.codehaus.groovy.grails.cli.support.GrailsStarter

Looking at the startup command line in the Run window, I noticed that for the 1.1 Grails server, Intellij is no longer including "dist\grails-cli-1.0.4.jar" in the classpath. I believe that jar was possibly merged in to the "grails-bootstrap-1.1-beta1.jar", though I'm not positive.

Let me know if you'd prefer I submit a new issue ticket for this.


Peter Gromov - 22 Dec 08 20:17
Fixed. Check the next EAP or build the plugin from sources

Bob Brown - 30 Dec 08 10:36
Not fixed for me I just got EAP 9572 and trying to run gives:

"C:\Program Files\Java\jdk1.6.0_11\bin\java" -Dserver.host=localhost -Dserver.port=8080 -Denable.jndi=false -Ddisable.auto.recompile=false -Drecompile.frequency=3 -Xmx256M -Dgrails.home=C:\DEVTOOLS\grails-1.1-beta2 -Dbase.dir=C:\DEVELOPMENT\IntelliJ\T11 "-Dtools.jar=C:\Program Files\Java\jdk1.6.0_11\lib\tools.jar" -Dgroovy.starter.conf=C:\DEVTOOLS\grails-1.1-beta2/conf/groovy-starter.conf -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 9572\bin" -Dfile.encoding=windows-1252 -classpath "C:\DEVTOOLS\grails-1.1-beta2\lib\groovy-all-1.6-RC-1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 9572\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\DEVTOOLS\grails-1.1-beta2/conf/groovy-starter.conf --classpath C:\DEVTOOLS\grails-1.1-beta2\lib\groovy-all-1.6-RC-1.jar;. run-app

It seems that the grails jars are being left out of the runner's classpath.

See also: http://grails.markmail.org/message/zhggdwwbwfaywvgk


Peter Gromov - 30 Dec 08 12:06
#9572 was built 16.12, which is earlier than my fix. I hope the next EAP will be in this year.

Tyler Williams - 31 Dec 08 08:13
I was having all the problems described in people's comments, but finally got things working. I'll describe the fix for the last problem since the other problems have already been covered. When the "Run Grails" from inside the IDEA fails, I'm not sure if this is a grails issue or jetgroovy, but for whatever reason the ${grails.version} in groovy-starter.conf isn't working. So you need to explicitly define the file name in GRAILS_HOME/conf/groovy-starter.conf. And of course have the correct jetgroovy plugin. So the line below works for me using IDEA EAP 9572 + jetgroovy 21538 + grails 1.1-beta2.

load ${grails.home}/dist/grails-bootstrap-1.1-beta2.jar


Malte Hübner - 08 Jan 09 19:20
I'm getting this error too. I am using EAP 9618 and tried to fix it like Tyler said. But without luck. This only happens when I try to run the integration/unit tests.
It seems that there is missing grails-bootstrap-1.1-beta2.jar.

My workaround for this is finally to add a single module library (module settings->modules->dependencies->path_to_grails-bootstrap-1.1-beta2.jar) directly. This works fine so far...


Peter Gromov - 11 Jan 09 16:03
Issues with recognizing bootstrap jar and Grails tests will be fixed in next 8.1 EAP, thank you