FS#33502 - [grails] 2.2.0-1 fails on dependencies on "run-app"

Attached to Project: Community Packages
Opened by Joe (joefromct) - Tuesday, 22 January 2013, 00:07 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 26 January 2013, 23:10 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Package Name: grails 2.2.0-1

https://www.archlinux.org/packages/community/any/grails/

Although the package installs with no issues, using the package seems to have issues with the grails create-app and run-app. I have tested a groovy app to ensure the issue is not there, and can reproduce the error in both Grails and Eclipse. I had no issues in Grails version 1.8.x (from Spring Tools Suite). I couldn't find anything pertaining specifically to this on the Grails Jira site also, and IRC chats indicated other arch users were having a problem (although i believe this is the first bug report.)


[yeoj@localhost workspace]$ grails create-app test

| Created Grails Application at /home/yeoj/workspace/test
[yeoj@localhost workspace]$ cd test
[yeoj@localhost test]$ grails run-app
| Compiling 114 source files

| Compiling 114 source files.
| Error Compilation error: startup failed:
/home/yeoj/.grails/2.2.0/projects/test/plugins/database-migration-1.2.1/src/groovy/grails/plugin/databasemigration/DslBuilder.groovy: 52: unable to resolve class liquibase.util.StringUtils
@ line 52, column 1.
import liquibase.util.StringUtils
^

.....clip...... (386 more errors, see attachment.)

Because the issue is in the liquidbase area, i attempted to remove the dependency for database-migration:1.2.1 in the conf/BuildConfig.groovy file. After doing this, i no longer recieve the issue on liquidbase imports but instead recieve the error below:


[yeoj@localhost test]$ grails run-app

| Uninstalled plugin [database-migration]
| Compiling 36 source files.
| Error Fatal error during compilation java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy (Use --stacktrace to see the full trace)



Let me know if i can provide any help,

-Joe


Additional System Information:

[yeoj@localhost test]$ java -version; javac -version;
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.4) (ArchLinux build 7.u9_2.3.4-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
javac 1.7.0_09
[yeoj@localhost test]$ groovy -version
Groovy Version: 2.0.6 JVM: 1.7.0_09 Vendor: Oracle Corporation OS: Linux
[yeoj@localhost test]$ grails -version

Grails version: 2.2.0
[yeoj@localhost test]$ pacman -Ss grails
community/grails 2.2.0-1 [installed]
Groovy on rails, web framework
[yeoj@localhost test]$

[yeoj@localhost test]$ uname -a
Linux localhost 3.6.11-1-ARCH #1 SMP PREEMPT Tue Dec 18 08:57:15 CET 2012 x86_64 GNU/Linux
[yeoj@localhost test]$

This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Saturday, 26 January 2013, 23:10 GMT
Reason for closing:  Fixed
Comment by Joe (joefromct) - Tuesday, 22 January 2013, 00:12 GMT
Sorry, just realized this should be in community packages. Please move the task.

Comment by Alexander F. Rødseth (xyproto) - Wednesday, 23 January 2013, 15:26 GMT
Thanks for reporting, I will look at this.
Comment by Alexander F. Rødseth (xyproto) - Friday, 25 January 2013, 12:52 GMT
Confirmed. I'm able to reproduce. I see that there's a liquibase package in AUR. I'll try to find the best way to include the missing files and move liquibase to [community] if needed.
Comment by Alexander F. Rødseth (xyproto) - Friday, 25 January 2013, 12:55 GMT
I see that these files are included with grails:

/usr/share/grails/lib/org.liquibase/liquibase-core/ivy-2.0.5.xml
/usr/share/grails/lib/org.liquibase/liquibase-core/jars/liquibase-core-2.0.5.jar

Don't know why grails can't find them and/or if these are the files it's looking for, though. Will investigate further.
Comment by Alexander F. Rødseth (xyproto) - Friday, 25 January 2013, 13:17 GMT
It looks like it just can't find the jar file when running "grails run-app".
After copying the liquidbase jar file to the "lib" directory of the test-project and running "grails clean; grails run-app", it complained about not finding hibernate instead.
I'll see if I can find the right place to configure grails. I'm also running strace to see where it actually searches for the files.
Comment by Alexander F. Rødseth (xyproto) - Friday, 25 January 2013, 13:44 GMT
Seems like the latest developments in grail are about dependency management. I think this is related.
Hopefully, the next release of grails, 2.3.0, will have resolved this issue. (About 2.3.0: http://grails.org/news/1286064)
Marking bug as upstream. I'll test if this is fixed for a snapshot build of 2.3.0.
Comment by Alexander F. Rødseth (xyproto) - Friday, 25 January 2013, 17:06 GMT
There are also problems with the latest 2.3.0 snapshot:

% grails run-app
| Configuring classpath
| Error Could not find artifact org.grails:grails-plugin-hibernate:jar:2.3.0.BUILD-SNAPSHOT in grailsCentral (http://repo.grails.org/grails/plugins)
| Run 'grails dependency-report' for further information.

grails dependency-report: http://ix.io/47G

Please report the bug upstream to the Grails developers and include the url to the bug report here: http://grails.org/doc/latest/ref/Command%20Line/bug-report.html

Thank you.
Comment by Alexander F. Rødseth (xyproto) - Saturday, 26 January 2013, 11:45 GMT Comment by Alexander F. Rødseth (xyproto) - Saturday, 26 January 2013, 22:14 GMT
Fixed it. I think a directory or two was added to the latest release that unfortunately wasn't packaged with the latest grails package.
The updated package will appear in [community] shortly.

Loading...