Grails 1 « Development « Spring Q&A





1. Grails File Upload Problems    stackoverflow.com

I'm trying to emulate the file upload code from the grails website, and I'm running into some problems. I'm using the same code as found here. Here ...

2. Grails File Download    stackoverflow.com

I'm trying to craete a site which allows users to upload any file type they like. I've implemented this feature fine, and the file is held on the server. Later on ...

3. Merge Spring and Grails projects    stackoverflow.com

We are developing an backoffice application using Spring and Maven as configuration manager. The project is moreless divided in two parts, and one of this parts is just for manage the ...

4. Integrating grails into an existing spring application?    stackoverflow.com

What if you don't want to start a separate project for grails but instead sneak it into an existing webapp? I have to build an admin interface/crud for some new entities ...

5. What is the simplest solution to integrate 2 apps within a Tomcat server?    stackoverflow.com

I'm new to this and is looking at Apache Camel, Spring Integration and even Terracotta. I'm looking at sharing of common data like user/groups/account/permission and common business data like inventory/product details/etc. Any example ...

6. Which framework to choose?    stackoverflow.com

I was thinking which framework would be a good choice to go into. I'm focusing on java apps and tested spring, grails and seam so far. I've also looked aboard java ...

7. How to check for resource file existence at run-time [grails]?    stackoverflow.com

I need to test whether a resource file (an image, for instance) exists and if not, I will display another image. My GSP view code looks like:

<% if (resExists(dir: "images", file:"img.jpg")) {%>
 ...

8. Inject an AntBuilder using Spring?    stackoverflow.com

I have code scattered through a Service in a plugin, using AntBuilder like this:

def ant = new AntBuilder()
This results in code that is really hard to test I'd like to inject ...

9. How to generate tld files from grails taglibs?    stackoverflow.com

I want to have full code autocompletion. I managed to add core/grails/spring taglibs so that STS does autocomplete tags for me in gsp files. What i want to do now is ...





10. Spring injection failure after update to Grails 1.2.1    stackoverflow.com

I used an older grails version, latest that was out in November 2009, and upgraded to 1.2.1 now. Unfortunately. I did not touch the app, checked it out of VCS. Now ...

11. Databinding a StructuredPropertyEditor specific to type and target in Spring(Grails) - Selective application    stackoverflow.com

Using Grails 1.2.2, I'm working on binding a structured property (CC expiration Date) to a java.util.Date but only for specific Domain and Commands objects. I've found the StructuredPropertyEditor interface, but ...

12. What web platform is right for me?    stackoverflow.com

I've been looking at web frameworks like Rails, Grails, etc. I'm used to doing applications in Spring Framework with Hibernate... and I want something more productive. One of the things I realized ...

13. Grails GSP tab fieldValue formatting    stackoverflow.com

How does the Grails tag fieldValue perform its formatting? I have an domain class with an Double attribute.

class Thing {
    Double numericValue
}
In GSP, the fieldValue is used (as created ...

14. Grails dependency issues    stackoverflow.com

I'm in the process of moving a Java/Spring MVC app to Grails. I was able to get a couple of pages along with Spring Security working. However, when I added cxf-bundle-minimal ...

15. Errors in springsource using grails    stackoverflow.com

I am using Springsource Tool Suite as editor for grails project. The problem is at places i get an error message with a red cross saying Groovy:unable to resolve classes. But ...

16. How to filter a particular class when i have a inheritance?    stackoverflow.com

class A {
  String name
}
class B extends A{

} 
class C extends A{

}
class D{
  A a
}
D d = new D(); d.a = new B()
D d2 = new D(); d.a = ...





17. Grails filters: Any way of chaining filters?    stackoverflow.com

is there a way to chain several filters in a grails application (as in Java filters)? Maybe something with spring? I've written a couple of filters, and would like to get them ...

18. Stripes, Spring, Play (or ?) : which high performance Java framework to use?    stackoverflow.com

We are beginning to build out a webapp which will probably see a lot of traffic. We dont have a lot of money, so we want to reduce hardware cost. More or ...

19. How do I resolve the grails bootstrap execution error "postProcessBeanDefinitionRegistry already called for this post-processor"?    stackoverflow.com

I'm building a Grails (1.3.4) app configured with the grails plugin tomcat-1.3.4 and using Spring (3.0.3RELEASE) but reusing an existing Spring applicationContext.xml file. I copied the relevant portions of the ...

20. Best grails implementation for tracking number of views (or unique visitors) for a web page?    stackoverflow.com

I need to implement a very popular feature : displaying the number of views for a profile page. For instance, my profile page in StackOverflow will display how many persons have ...

21. grails development: eclipse vs. intellij idea    stackoverflow.com

i downloaded sts and installed the grails/groovy plugins which is good, but i can not use the javascript functionality like jumping trought classes and functions in the javascript editor. when i click ...

22. Refreshing Grails applicationContext    stackoverflow.com

In my configuration's spring/resources.xml file, I define a bean like this :

<bean id="myService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
    <property name="serviceUrl" value="http://${remote.host}:8080/MyAgent/remoting/MyService"/>
    <property name="serviceInterface" value="services.MyService"/>
</bean>
In my Config.groovy file I have ...

23. Problem with webflow(s) in Grails    stackoverflow.com

I've just come across a rather odd problem whilst testing my applications webflows. I have two seperate webflows that are accessed once a user logs in depending on whether the ...

24. Fastest Java web templating language    stackoverflow.com

I'm about to start in on a new Spring MVC project, and I'm examining the various options for the view. I've never been a fan of JSP, and I've run ...

25. How popular is GRAILS BeanBuilder for replacing xml based spring configuration?    stackoverflow.com

Interested to know how many are using BeanBuilder in production as a replacement to XML based config for Spring 3.x?

26. How to use WebArgumentResolver for assigning params with level of indirection    stackoverflow.com

I have a question about WebArgumentResolver. I added property emailSetting to user domain class,

EmailSetting emailSetting = new EmailSetting()
class for it:
class EmailSetting {
    boolean newsletter = true
  ...

27. Spring alias not available when running in Grails    stackoverflow.com

I have a problem with Spring aliases in Grails. I have a library .jar file containing classes and Spring configuration that is not working as expected. It does work as expected ...

28. Deploy a bundlet and get the dependent bundles from spring EBR    stackoverflow.com

I have a WAR file that was built using grails framework and OSGi plugin. When I try to deploy it in Eclipse Virgo it fails because the related dependencies are not ...

29. Does Grails use Spring Dependency Injection by default    stackoverflow.com

An additional question: What is service layer in Grails app? Thanks

30. Problem related to spring/resources.xml while deploying Grails applicatoin war in tomcat    stackoverflow.com

I have developed an application (named CBR) in Grails 1.3.7. When i run it with "grails run-app" or "grails run-app prod" it works fine. However when i create a war using ...

31. SimpleMapScope not found in spring 3.0.5 jar    stackoverflow.com

I am using Spring framework v 3.0.5.RELEASE in my grails 1.3.7 app. I found online the source code for a class from the org.springframework.beans-3.0.5.RELEASE.jar named org.springframework.beans.factory.config.SimpleMapScope but it was ...

32. 2.5.2 Grails: how to create a domain class in default package?    forum.springsource.org

Even when I don't specify a class path in the new Domain Class name, STS creates it in the project name package, which doesn't make much sense to me. Maybe I ...

33. 2.5.2 Grails bug: moving a domain class file to the default package    forum.springsource.org

If I drag a domain class file from test/ticket.groovy to the default/ticket.groovy STS moves the file to the destination directory and add a line "package" that fails the build, since the ...

34. 2.5.2 Grails: broke the "run> run as > Grails command"    forum.springsource.org

2.5.2 Grails: broke the "run> run as > Grails command" I just updated my 2.5.1 to 2.5.2. I enabled the Spring feedback or whatever it's called. First, 2.5.2 seems a lot ...

35. Grails dependencies [Grails 1.3.5] (unitialized)    forum.springsource.org

Grails dependencies [Grails 1.3.5] (unitialized) I have just installed 2.5.2 and continue to have the same problem I was experiencing under 2.5.1, namely, when I import an existing Grails project I ...

36. Imported Grails projects fail to start in embedded tc server    forum.springsource.org

Imported Grails projects fail to start in embedded tc server Hi there, I've just given STS another try. I've imported a Grails project I've been working on for a while into ...

37. Syntax highligthing disappears in Grails project    forum.springsource.org

Syntax highligthing disappears in Grails project Hi there! When I edit and edit and edit in a groovy file like MyDomainController.groovy then, from time to time, the colors turn to black ...

38. Abstract classes with Grails?    forum.springsource.org

Abstract classes with Grails? Hello, Is it possible to work with abstract classes in Grails, like in Java!? It seems to me that it's possible with Groovy, but with Grails I ...

39. Problems installing Grails-Support extension    forum.springsource.org

Problems installing Grails-Support extension Hello, I'm trying for hours to install the STS with the Grails extension and always get the same error. Anyhow the IDE cannot find the classes related ...

40. Can't create Grails project    forum.springsource.org

Can't create Grails project Windows 7 64-bit STS build 2.5.2 upgraded to 2.6.0M1 I'm trying to create a Grails project (File-->New--> Grails project) The wizard opens, where I fill in just ...

41. using non-Grails projects from Grails    forum.springsource.org

using non-Grails projects from Grails We need our grails web app to reference code from another project which is being developed at the same time inside the same STS instance. I ...

42. Enable Dependency Management from a Grails Project    forum.springsource.org

Enable Dependency Management from a Grails Project Hello, We are trying to evaluate STS & Grails. Are we able to use Maven to manage a grails project with STS? We created ...

43. Upgrade from 2.5.2 to 2.6.0 causes errors with Grails support    forum.springsource.org

Upgrade from 2.5.2 to 2.6.0 causes errors with Grails support I've been using the v2.5.2 of STS with the Grails/Groovy extensions for the last month without major problems. I recently was ...

44. Error running grails project on alternative port with STS2.6.0    forum.springsource.org

Mar 30th, 2011, 08:58 AM #1 ATeam View Profile View Forum Posts Private Message Junior Member Join Date Nov 2010 Posts 5 Error running grails project on alternative port with STS2.6.0 ...

45. Using Spring 3 path variables    forum.springsource.org

I'm playing with Grails and trying to port an existing Spring 3 app. I'm having trouble with @RequestMapping and @PathVariables of the following form: Code: @Controller @RequestMapping("/spring") class SpringController { @RequestMapping(value ...

46. Failing to install Grails Support extension    forum.springsource.org

Failing to install Grails Support extension This happens when trying to install the "Grails Support" under Language and Framework Tooling section. I have successfully installed Grails (current production release) under Languages ...

47. Grails plugins showing in package explorer    forum.springsource.org

I'm in a bit of on-again-off-again relationship with STS mostly because I can't seem to figure out how to get STS to clean up the Package Explorer window for my grails ...

48. [Grails] Cannot complete the install because of a conflicting dependency    forum.springsource.org

[Grails] Cannot complete the install because of a conflicting dependency I've just rebuilt my Windows 7 machine. Installed STS successfully. But when I try to add the Grails and Groovy extensions, ...

49. Can't find Grails perspective    forum.springsource.org

Hi, I just downloaded [STS 2.8.0.RELEASE] , went to DashBoard --> extentions selected : Grails Support Groovey Eclipse 1.8 clicked in Install after restarting STS, I can't find grails perspective, I ...

50. Problems with install grails in STS2.8    forum.springsource.org

Problems with install grails in STS2.8 Hi all: I have just installed STS2.8 on my WinXp pro.I have never installed STS before. I'm trying to add Grails extension to STS,but i ...

51. Issue with Grails Support    forum.springsource.org

Issue with Grails Support I am running STS 2.7.2 and when I try to install Grails Support I get the following error: Problems occurred while performing installation: Operation details Operation details ...

52. 2.0.0.RC1 and .grails plugins directory is empty    forum.springsource.org

2.0.0.RC1 and .grails plugins directory is empty So I am playing around with Grails 2.0.0.RC and I am trying to install some plugins. In this case Spring Security Core plugin. I ...

53. Will the Grails Nabble forums move to here?    forum.springsource.org

Will the Grails Nabble forums move to here? Any hope that the Nabble Grails forum will be moved to here? I have always had issues with Nabble where I just can't ...

54. Grails 2.0RC1 console command completion via the tab doesn't work    forum.springsource.org

Mac OS X (LION) STS 2.8 Grails 2.0RC1 In grails 2.0 the interactive console offers autocompletion using the tab key. However, while using the Console in STS the tab key inserts ...

55. Unable to Install Grails Support Due to Dependency Conflict    forum.springsource.org

Unable to Install Grails Support Due to Dependency Conflict Does anyone know how to resolve the following dependency conflict? Cannot complete the install because of a conflicting dependency. Software being installed: ...

56. grails war command in grails-2.0.0.M1 generates invalid web.xml    forum.springsource.org

grails war command in grails-2.0.0.M1 generates invalid web.xml I recently installed grails-2.0.0.M1 (using STS) and got a deployment error from the grails war command: Exception during schema validation: cvc-complex-type.2.4.a: Invalid content ...

57. Grails Support can not be installed from Extentions of Dashboard in STS2.8.1    forum.springsource.org

Grails Support can not be installed from Extentions of Dashboard in STS2.8.1 Hi, guys. I use Windows7 and install STS2.8.1 in C:\springsource, want online integrate Grail Support (The entry from the ...

58. Grails Support can not be installed from Extentions of Dashboard in STS2.8.1    forum.springsource.org

Grails Support can not be installed from Extentions of Dashboard in STS2.8.1 Hi, guys. I use Windows7 and install STS2.8.1 in C:\springsource, want online integrate Grail Support (The entry from the ...

59. Can not New a Grails Project after install Grails Support into my STS2.8.1    forum.springsource.org

Can not New a Grails Project after install Grails Support into my STS2.8.1 This is a new successor problem after http://forum.springsource.org/showth...rd-in-STS2-8-1 Here is my condition: I installed Grails 2.0 RC1 firstly. ...

60. Greenfield development - Spring or Grails? Alternative solutions...    forum.springsource.org

Greenfield development - Spring or Grails? Alternative solutions... I understand that Grails is built on Spring, and that there's also built-in support for Groovy in Spring as well. So perhaps the ...

61. XT.Framework & Grails    forum.springsource.org

Hi, I would like to know if I there are plans or exists a way to integrate XT.framework with Grails applications. I'm very interested in that. Thanks.

62. Grails Forum?    forum.springsource.org

Just wondered if there were any plans for a Grails forum on here? I've seen nabble, the mailing lists and unofficial forums, but was looking for a little more.

63. new to grails    forum.springsource.org

I just installed grails and am having a problem with running in windows. My java path is set before grails path as recommended. This is the error I get... Files"\Java\jdk1.6.0_14" was ...

64. Grails in 2.2.0?    forum.springsource.org

Downloaded the latest release (64 bit Cocoa), supposedly with Grails support, yet I see no reference to Grails within the IDE and find it impossible to create a Grails project. Was ...

65. grails command window    forum.springsource.org

The grails command widow will not appear unless a file is open in the editor any file will do, using ctrl-G or navigate menu -> open grails command prompt when the ...

66. Error creating new Grails Project    forum.springsource.org

Error creating new Grails Project I did a fresh install of STS and followed the instructions found here: http://www.grails.org/STS+Integration When I clicked finish on the new grails project window I got ...

67. Environment variables in grails shell    forum.springsource.org

Environment variables in grails shell I'm trying to setup a grails project in STS and the initial setup seems to have gone well, but I am having an issue when trying ...

68. Hard crash when building maven managed grails project    forum.springsource.org

Nov 11th, 2009, 02:21 PM #1 ryanc View Profile View Forum Posts Private Message Member Join Date Feb 2005 Posts 33 Hard crash when building maven managed grails project I am ...

69. Java classes in Grails app won't compile    forum.springsource.org

I have a controller that uses a java class in /src/java. The controller, compiled via STS, does not see the java class. Both the controller and java class are in the ...

70. Grails 1.2 M3 to Grails 1.2 M4    forum.springsource.org

I posted a query on Grails validation messages not working properly in release 1.2 M3 and was advised that the problem had been fixed in release 1.2 M4. I am on ...

71. Maven managed grails project and grails plugin dependencies    forum.springsource.org

I have a maven managed grails project imported into STS 2.2.1 with the acegi plugin installed. STS does not add the acegi plugin dependencies from the plugin's lib directory. I could ...

72. Why isn't there a Grails forum here?    forum.springsource.org

73. Infinite loop in maven build after Grails upgrade from 1.1.1 to 1.1.2    forum.springsource.org

Infinite loop in maven build after Grails upgrade from 1.1.1 to 1.1.2 I upgraded my grails application from the command line from 1.1.1 to 1.1.2. After that succeeded I went back ...

74. Grails GSP Editor    forum.springsource.org

Unfortunately, that is not possible yet. However, I am working on the gsp editor now. I expect to have some enhancements later this week (after the 2.3.0 release, but available in ...

75. Grails support not working    forum.springsource.org

Grails support not working Hi I've just installed STS 2.3.0. I have followed the steps to add the grails extension. I can now create grails projects but I have several problems ...

76. Cannot deploy grails apps    forum.springsource.org

Hi, I am using eclipse 3.5 and the latest sts. I have added a tcServer to my eclipse workspace, but I cannot add any of my grails projects to the server ...

77. Grails classpath container problem    forum.springsource.org

Grails classpath container problem Hi everyone, I'm having a problem with grails classpath integration in sts. When I create a new project or import an existing one, the "Grails Dependencies" library ...

78. Best practices for Grails plugin management?    forum.springsource.org

Best practices for Grails plugin management? I have a Grails application stored in a SVN repository. I want to add the Eclipse .project and .classpath files to the repository to make ...

79. Unit Test Grails    forum.springsource.org

Unit Test Grails I have set up a JUnit Run Configuration using "test/unit" in the "run all test..." box I get the following for each class it finds... Code: java.lang.ClassNotFoundException: *Tests ...

80. Grails is not seen by editor    forum.springsource.org

Do you see any exceptions in your error log? I'd recommend that you update to the latest nightly builds of grails tooling and Groovy-Eclipse: http://dist.springsource.com/snapshot/STS/nightly/e35 http://dist.codehaus.org/groovy/dist...snapshot/e3.5/ If none of this sheds ...

81. problems with opening/editing grails project    forum.springsource.org

problems with opening/editing grails project opening a project created in sts 2.3 created 2 errors. From Error Log: 1)- Unhandled event loop exception 2)- StructuredTextViewer.exception.verifyText whenever I edit or create a ...

82. Grails with project dependencies    forum.springsource.org

Grails with project dependencies We have a big project where we have multiple Eclipse projects depending on one another. One of this project is a Grails project. 1- Domain-project // used ...

83. Problems integrating Grails support    forum.springsource.org

Problems integrating Grails support Dear Community, perhaps you can help me: I've a problem installing the Grails support into SpringSource Tool Suite. When I go to 'dashboard'-> 'Extensions' -> 'Languages and ...

84. Grails Wizard Is Not Seen    forum.springsource.org

Grails Wizard Is Not Seen Hello. I installed grails-1.2.1 and grails help works at the command line. I installed springsource-tool-suite-2.3.0.RELEASE-e3.5.1-win32-installer.exe In order to integrate Groovy and Grails: I followed the directions ...

85. Grails bundle not working?    forum.springsource.org

Hi, can you check that you have a grails-1.2.x folder in your STS installation directory. If so, you can manually configure the Grails installation from the TS preferences (Groovy -> Grails ...

86. Grails Project Not Including src/java in Build    forum.springsource.org

Grails Project Not Including src/java in Build When I do grains run-app from within an STS Grails project it isn't compiling and including some files I have in src/java for some ...

87. Grails plugin depends on older mylyn JIRA connector    forum.springsource.org

Grails plugin depends on older mylyn JIRA connector When installing grails support I get the following message: Your original request has been modified. "Spring IDE Core (required)" is already installed, so ...

88. Problem with taglib in a Grails project    forum.springsource.org

Apr 8th, 2010, 03:44 PM #1 martinppp View Profile View Forum Posts Private Message Junior Member Join Date Apr 2008 Posts 9 Problem with taglib in a Grails project After configuring ...

89. dateCreated and lastUpdated like in Grails    forum.springsource.org

Hi, I'm migrating my app from Grails to Roo (if you were curious why it's because Grails still looks unstable, too much changes to the API in a short time). One ...

90. Grails Forum    forum.springsource.org

Hi, It has been awhile since SpringSource acquired Grails. The various Spring forums are so invaluable. Many have asked when there will be a real forum (here) for Grails, as opposed ...

91. repeat last command in grails command prompt    forum.springsource.org

92. grails: running create-script script from package/folder    forum.springsource.org

grails: running create-script script from package/folder if i have a project called something like "grails-test", and i execute: -> grails create-script MyScript a script will be create in "scripts/grails/test/MyScript.groovy" when i ...

93. Grails plugin libs to compiler classpath    forum.springsource.org

Hello, having Grails project with plugins, how do I add plugin's jars to compiler classpath? I have issue compiling my Grails project with Grails mail plugin as it has additional libraries ...

94. Problems creating a Grails project    forum.springsource.org

Problems creating a Grails project I installed the Eclipse Groovy plugin from Codehaus and then the grails plugin from STS into a Windows Galileo 3.5 JEE environment. When I try to ...

95. Grails GSP syntax highlighting gone!    forum.springsource.org

Hello, For some reason syntax highlighting for GSP has stopped working. I updated to sts 2.3.2 to see if that would help, but the problem persists. Any ideas on what I ...

96. Grails 1.3 Dependency Management Issue    forum.springsource.org

Grails 1.3 Dependency Management Issue I am using STS as an eclipse extension primarily for Grails development. Recently I updated a project to leverage Grails 1.3 but it seems ever since ...

97. I can't find Grails Support    forum.springsource.org

I've just installed STS 2.3.2. But I can't find "Language and Framework Tooling:Grails Support" in the Extensions.So I can't build a Grails Project. My system is MAC OS X. Help~

98. Unable to deploy grails app to tc Server    forum.springsource.org

Hi, I'm running: OSX 10.6.3 STS 2.3.3.CI-R5064-B222 (OSX Carbon) Grails 1.3.1 I have a tc Server v6.0 configured on STS, but I'm unable to drag a grails project on it. If ...

99. Class not found grails deployment    forum.springsource.org

Hi, So I created a new grails project in STS and do run-app and I get ERROR context.GrailsContextLoader - Error executing bootstraps: Error creating bean with name 'pluginManager' defined in ServletContext ...

100. grails app-engine: error with run-app    forum.springsource.org

grails app-engine: error with run-app Hi, I dont find a separate grails forum-so please help me if u can. I installed latest gae plugin(0.8.2) and try to run my app(gorm-jpa, grails ...